:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f5f7fb;
    --card: #ffffff;
    --indigo: #4f46e5;
    --indigo-dark: #3730a3;
    --cyan: #06b6d4;
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(15, 23, 42, .09);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    color: #fff; font-size: .8rem; font-weight: 800;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-size: .92rem; }
.nav-links a { color: #334155; }
.nav-links a:hover { color: var(--indigo); text-decoration: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 12px;
    padding: 12px 18px; font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--indigo), var(--cyan));
    box-shadow: 0 12px 26px rgba(79, 70, 229, .28);
}
.btn-primary:hover { box-shadow: 0 16px 32px rgba(79, 70, 229, .34); }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: .82rem; border-radius: 10px; }
.btn-danger { color: #fff; background: var(--red); }
.btn-muted { color: #334155; background: #f1f5f9; border-color: var(--line); }

/* Hero */
.hero {
    position: relative; overflow: hidden; color: #f8fafc;
    background: linear-gradient(135deg, #0b1020 0%, #171554 48%, #075985 100%);
    padding: 76px 0 64px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(20px); pointer-events: none;
}
.hero::before { width: 480px; height: 480px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(99,102,241,.55), transparent 70%); }
.hero::after { width: 420px; height: 420px; right: -160px; bottom: -220px; background: radial-gradient(circle, rgba(34,211,238,.42), transparent 70%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a5f3fc; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 5px rgba(34,211,238,.16); }
.hero-title { margin: 16px 0 14px; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 900; }
.hero-title .grad { background: linear-gradient(90deg, #a5f3fc, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0 0 24px; font-size: 1.05rem; color: #cbd5e1; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-stat strong { display: block; font-size: 1.25rem; color: #fff; }
.hero-stat span { font-size: .8rem; color: #94a3b8; }
.hero-card {
    background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 26px; padding: 26px;
    box-shadow: 0 30px 70px rgba(2,6,23,.42);
    backdrop-filter: blur(18px);
}
.hero-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hero-card p { margin: 0 0 18px; color: #cbd5e1; font-size: .9rem; }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #e2e8f0; }
.hero-list .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,185,129,.2); color: #6ee7b7; font-size: .8rem; font-weight: 800; }

/* Section */
.section { padding: 66px 0; }
.section.tight { padding: 42px 0; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .icon {
    width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe); color: var(--indigo);
    font-weight: 900; margin-bottom: 14px;
}
.jenjang-card { position: relative; overflow: hidden; }
.jenjang-card::after {
    content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px;
    border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.12), transparent 70%);
}
.jenjang-card .tag { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--indigo); background: #eef2ff; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.jenjang-card ul { margin: 12px 0 0; padding-left: 18px; color: #475569; font-size: .88rem; }

.price-card {
    background: linear-gradient(160deg, #111827, #1e1b4b 58%, #0e7490);
    color: #f8fafc; border: 0;
}
.price-card h3 { color: #fff; }
.price-card p { color: #cbd5e1; }
.price { font-size: 2.4rem; font-weight: 900; letter-spacing: -.04em; margin: 6px 0 2px; }
.price small { font-size: .85rem; color: #94a3b8; font-weight: 500; }
.price-list { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; font-size: .9rem; color: #e2e8f0; }
.price-list li::before { content: "✓"; color: #6ee7b7; font-weight: 900; margin-right: 8px; }
.price-card .btn-primary { background: #fff; color: #0f172a; box-shadow: none; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.step::before { counter-increment: step; content: counter(step); flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--indigo), var(--cyan)); color: #fff; font-weight: 800; font-size: .85rem; }
.step h4 { margin: 0 0 4px; font-size: .98rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: #334155; }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, select, textarea {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 12px;
    padding: 12px 13px; font: inherit; color: var(--ink); background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79,70,229,.12); }
textarea { min-height: 96px; resize: vertical; }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.radio-card { position: relative; display: block; border: 1px solid #cbd5e1; border-radius: 14px; padding: 14px 14px 14px 44px; cursor: pointer; background: #fff; }
.radio-card input { position: absolute; left: 14px; top: 18px; accent-color: var(--indigo); }
.radio-card strong { display: block; font-size: .95rem; }
.radio-card span { display: block; font-size: .8rem; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--indigo); background: #eef2ff; box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #475569; }
.checkline input { margin-top: 4px; accent-color: var(--indigo); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 20px; }
.form-note { font-size: .78rem; color: var(--muted); }

/* Alerts & badges */
.alert { border-radius: 14px; padding: 13px 16px; margin: 0 0 16px; font-size: .9rem; border: 1px solid; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: .74rem; font-weight: 800; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #e2e8f0; color: #334155; }

/* Payment/status */
.pay-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: start; }
.code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; background: #0f172a; color: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.bank-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 16px; white-space: pre-line; font-size: .92rem; }
.amount { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; }
.meta-list { display: grid; gap: 8px; margin: 14px 0 0; font-size: .9rem; }
.meta-list div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 8px; }
.meta-list span:first-child { color: var(--muted); }
.credential { background: #0f172a; color: #e2e8f0; border-radius: 16px; padding: 18px; font-size: .92rem; }
.credential code { color: #a5f3fc; font-size: 1rem; }
.credential .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.credential .row:last-child { border-bottom: 0; }
.upload-box { border: 1.5px dashed #cbd5e1; border-radius: 16px; padding: 18px; background: #f8fafc; }

/* Admin */
.admin-shell { min-height: 100vh; background: #f1f5f9; }
.admin-top { background: #0f172a; color: #fff; }
.admin-top .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.admin-top a { color: #cbd5e1; font-size: .88rem; }
.admin-top a:hover { color: #fff; }
.admin-nav { display: flex; gap: 18px; align-items: center; }
.admin-body { padding: 28px 0 60px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #0b1020, #1e1b4b 58%, #0e7490); }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 30px 80px rgba(2,6,23,.45); }
.login-card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.login-card p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.stat span { font-size: .78rem; color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
th { background: #f8fafc; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #64748b; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-form { display: inline; }
.note { font-size: .78rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.filters .input, .filters select { width: auto; min-width: 150px; padding: 8px 10px; border-radius: 10px; font-size: .85rem; }
details summary { cursor: pointer; color: var(--indigo); font-size: .8rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }

/* Footer & misc */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 28px 0; color: var(--muted); font-size: .85rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.faq summary { font-weight: 700; font-size: .92rem; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 28px; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: 1fr; }
    .pay-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .grid-2, .grid-4, .form-grid, .radio-cards { grid-template-columns: 1fr; }
    .hero { padding: 52px 0 46px; }
    .section { padding: 46px 0; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .footer .container { flex-direction: column; align-items: flex-start; }
}
