*,
*::before,
*::after { box-sizing: border-box; }

:root {
    --primary: #4634ff;
    --primary-dark: #3423d6;
    --primary-light: #eef2ff;
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 14px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header & Brand */
.site-header {
    background: #0b1220;
    color: #fff;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: #818cf8;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #a5b4fc;
}

.header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

/* Layout container */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}

main.container {
    flex: 1;
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius);
    margin-bottom: 28px;
    box-shadow: 0 10px 25px -5px rgba(70, 52, 255, 0.25);
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero p {
    margin: 0;
    opacity: 0.92;
    font-size: 0.95rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Packages Section */
.packages-section {
    margin-bottom: 28px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 700;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.status {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: var(--muted);
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    margin-bottom: 16px;
}

.status.error { color: var(--danger); }
.status:empty,
.status[hidden] { display: none !important; }
.status a { color: var(--primary); font-weight: 600; }

.packages-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.package {
    background: var(--card);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    transition: transform .15s, border-color .15s, box-shadow .15s;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package:hover,
.package:focus-visible {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(70,52,255,.18);
    outline: none;
}

.package-name {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.package-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.package-meta {
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    flex: 1;
}

.package-cta {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background .15s;
}

.package:hover .package-cta {
    background: var(--primary-dark);
}

/* How It Works & Support cards */
.how-it-works,
.support-section,
.card-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.how-it-works h2,
.support-section h2,
.card-section h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
}

.support-section p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid var(--border);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 600;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.contact-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    background: var(--bg);
}

.contact-num {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1 1 70px;
    text-align: center;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.15s;
}

.contact-btn:hover {
    opacity: 0.9;
}

.contact-btn.call { background: var(--primary); }
.contact-btn.wa   { background: #25d366; }
.contact-btn.sms  { background: #475569; }

.support-hours,
.support-note {
    font-size: 0.85rem !important;
    color: var(--muted);
    margin: 10px 0 0 !important;
}

/* Footer */
.site-footer,
.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    padding: 24px 16px;
    margin-top: auto;
}

.site-footer p,
.footer p {
    margin: 0;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}

.modal[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(3px);
    animation: fade .2s ease;
}

.modal-dialog,
.modal-card {
    position: relative;
    background: var(--card);
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    animation: pop .2s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--text);
    background: #f1f5f9;
}

.modal-header {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.modal-header .eyebrow {
    color: var(--muted);
    margin: 0 0 4px;
}

.modal-header h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-price,
.summary-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    margin: 4px 0;
}

.modal-validity,
.modal-bandwidth {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}

form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}

form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70,52,255,.15);
}

form input.invalid {
    border-color: var(--danger);
}

.field-error,
.error {
    display: block;
    color: var(--danger);
    min-height: 1.2em;
    margin: 4px 0 10px;
    font-size: 0.85rem;
}

.field-error:empty {
    display: none;
}

.payment-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 10px 0 16px;
    line-height: 1.45;
}

.pay-button,
.btn {
    width: 100%;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    transition: background 0.15s, opacity 0.15s;
    font-family: inherit;
}

.pay-button:hover,
.btn:hover {
    background: var(--primary-dark);
}

.pay-button:disabled,
.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.pay-result {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pay-result[hidden] {
    display: none !important;
}

.pay-result.success {
    background: #dcfce7;
    color: var(--success);
    border: 1px solid #bbf7d0;
}

.pay-result.pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pay-result.error {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.secure-note {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 14px 0 0;
}

html { scroll-behavior: smooth; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
