/* =========================================================
   NokosID - Theme biru putih minimalist
   Landing page + Dashboard + Panel Admin
   ========================================================= */

:root {
    --bg: #f6f9ff;
    --bg-2: #eef4ff;
    --surface: #ffffff;
    --surface-2: #f4f8ff;
    --ink: #0b1b34;
    --ink-2: #2f405f;
    --muted: #6b7c99;
    --line: #e3ebf8;
    --line-2: #d5e2f6;

    --primary: #1d6cf3;
    --primary-600: #1557cf;
    --primary-700: #1147a8;
    --primary-50: #eaf2ff;
    --primary-100: #d7e6ff;

    --ok: #16a34a;
    --ok-bg: #e8f9ef;
    --warn: #d97706;
    --warn-bg: #fff4e5;
    --danger: #ef4444;
    --danger-bg: #ffecec;
    --info: #0ea5e9;
    --info-bg: #e7f6ff;

    --radius: 16px;
    --radius-lg: 22px;
    --radius-sm: 10px;

    --shadow-sm: 0 2px 8px -4px rgba(15, 40, 90, .18);
    --shadow: 0 10px 30px -18px rgba(15, 40, 90, .45);
    --shadow-lg: 0 30px 70px -30px rgba(11, 27, 52, .45);

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --sidebar-w: 250px;
    --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }

img { max-width: 100%; }

::selection { background: var(--primary-100); color: var(--primary-700); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd9ee; border-radius: 20px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b6c6e4; }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; }
p { margin: 0; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.full { width: 100%; }

.text-primary { color: var(--primary); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

/* ============================ BUTTONS ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
    background: linear-gradient(135deg, #2b7bff 0%, #1d6cf3 60%, #1a5fe0 100%);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(29, 108, 243, .9);
}
.btn-primary:hover { box-shadow: 0 14px 26px -12px rgba(29, 108, 243, 1); color: #fff; }

.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 10px 22px -14px rgba(239, 68, 68, 1); }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    cursor: pointer;
    transition: .18s;
    flex: none;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.icon-btn svg { width: 18px; height: 18px; }

/* ============================ FORMS ============================ */
.field { margin-bottom: 16px; }
.label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    margin-bottom: 7px;
}
.input, .select, .textarea {
    width: 100%;
    font: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line-2);
    border-radius: 12px;
    padding: 11px 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 108, 243, .13);
}
.input::placeholder, .textarea::placeholder { color: #9aa9c2; }
.textarea { min-height: 90px; resize: vertical; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7c99' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.tight { gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { flex: 1; min-width: 0; }

.search-wrap { position: relative; }
.search-wrap .input { padding-left: 40px; }
.search-wrap svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}

/* ============================ CARDS ============================ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 15.5px; font-weight: 800; }
.card-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ============================ BADGES / CHIPS ============================ */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
    padding: 4px 10px; border-radius: 999px;
    background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
    text-transform: uppercase;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-ok { background: var(--ok-bg); color: #0f8a3d; border-color: #c8f0d6; }
.badge-warn { background: var(--warn-bg); color: #b45309; border-color: #ffe0b3; }
.badge-danger { background: var(--danger-bg); color: #d43a3a; border-color: #ffd4d4; }
.badge-info { background: var(--info-bg); color: #0384b8; border-color: #c9ecfb; }
.badge-muted { background: #f1f5fb; color: var(--muted); }

.chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 12px;
    background: var(--surface); border: 1.5px solid var(--line-2);
    font-size: 13.5px; font-weight: 700; color: var(--ink-2);
    cursor: pointer; transition: .16s; user-select: none;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.chip.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary-600); box-shadow: 0 0 0 3px rgba(29, 108, 243, .12); }
.chip .flag { font-size: 16px; line-height: 1; }
.chip img.flagimg { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }

.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================ TABS ============================ */
.tabs {
    display: inline-flex; gap: 4px; padding: 4px;
    background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 14px;
}
.tab {
    border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 13.5px;
    color: var(--muted); padding: 8px 16px; border-radius: 10px; cursor: pointer; transition: .16s;
}
.tab:hover { color: var(--primary); }
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ============================ TABLE ============================ */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.table th {
    text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 800; padding: 12px 16px;
    background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fbff; }
.table .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================ EMPTY / LOADING ============================ */
.empty {
    text-align: center; padding: 42px 20px; color: var(--muted);
}
.empty-icon {
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px;
    background: var(--primary-50); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.empty-icon svg { width: 26px; height: 26px; }
.empty-title { font-weight: 800; color: var(--ink-2); margin-bottom: 4px; }

.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2.5px solid var(--primary-100); border-top-color: var(--primary);
    animation: spin .7s linear infinite; display: inline-block; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
    background: linear-gradient(90deg, #eef3fb 25%, #f7fafe 37%, #eef3fb 63%);
    background-size: 400% 100%; animation: shimmer 1.3s ease infinite;
    border-radius: 8px; height: 14px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ============================ CALLOUT ============================ */
.callout {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 13px 15px; border-radius: 12px; font-size: 13.5px;
    background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-700);
}
.callout-warn { background: var(--warn-bg); border-color: #ffe0b3; color: #92400e; }
.callout-danger { background: var(--danger-bg); border-color: #ffd4d4; color: #b91c1c; }
.callout-ok { background: var(--ok-bg); border-color: #c8f0d6; color: #15803d; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ============================ LANDING: NAVBAR ============================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(227, 235, 248, .9);
}
.nav-inner {
    width: min(1140px, 92%); margin: 0 auto; height: 66px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 17px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px; flex: none;
    background: linear-gradient(135deg, #3b82f6, #1d6cf3);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; box-shadow: 0 8px 18px -10px rgba(29, 108, 243, .9);
}
.brand-text b { color: var(--primary); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

/* ============================ LANDING: HERO ============================ */
.hero {
    position: relative; overflow: hidden;
    padding: 140px 0 90px;
    background:
        radial-gradient(900px 420px at 12% -10%, #dceaff 0%, rgba(220, 234, 255, 0) 62%),
        radial-gradient(760px 380px at 92% 0%, #e6f0ff 0%, rgba(230, 240, 255, 0) 60%),
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--line-2);
    padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .16); }
.hero-title {
    font-size: clamp(34px, 5vw, 54px); font-weight: 900; letter-spacing: -.035em;
    margin: 20px 0 16px; line-height: 1.08;
}
.hero-title .grad {
    background: linear-gradient(120deg, #1d6cf3, #4f9bff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .m b { display: block; font-size: 22px; font-weight: 900; color: var(--ink); }
.hero-meta .m span { font-size: 12.5px; color: var(--muted); }

.hero-visual { position: relative; }
.mock-stack { position: relative; }
.mock-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 20px;
    box-shadow: var(--shadow-lg);
}
.mock-card + .mock-card { margin-top: 14px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.mock-num { font-size: 22px; font-weight: 900; letter-spacing: .04em; color: var(--ink); margin-top: 6px; }
.mock-otp {
    font-size: 30px; font-weight: 900; letter-spacing: 12px; color: var(--primary);
    background: var(--primary-50); border: 1.5px dashed var(--primary-100);
    border-radius: 14px; padding: 12px 8px 12px 20px; text-align: center; margin-top: 12px;
}
.mock-qr {
    width: 96px; height: 96px; border-radius: 14px; flex: none;
    background:
        repeating-linear-gradient(0deg, #0b1b34 0 6px, transparent 6px 12px),
        repeating-linear-gradient(90deg, #0b1b34 0 6px, #fff 6px 12px);
    opacity: .9;
}
.float-chip {
    position: absolute; background: var(--surface); border: 1px solid var(--line);
    border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg);
    font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.float-chip .ic { width: 26px; height: 26px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.float-chip.a { top: -18px; right: 8px; }
.float-chip.b { bottom: -16px; left: -10px; }

/* ============================ LANDING: SECTIONS ============================ */
.section { padding: 78px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--primary); background: var(--primary-50);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.03em; }
.section-desc { color: var(--muted); margin-top: 12px; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 20px; transition: .2s;
}
.section.alt .feature { background: var(--bg); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.feature-icon {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary); display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--muted); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px 22px;
}
.section.alt .step-card { background: var(--bg); }
.step-num {
    width: 40px; height: 40px; border-radius: 13px; font-weight: 900; font-size: 16px;
    background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px -12px rgba(29, 108, 243, 1); margin-bottom: 16px;
}
.step-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13.5px; }

.country-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.country-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
    font-size: 13.5px; font-weight: 700; color: var(--ink-2);
}
.section.alt .country-pill { background: var(--bg); }
.country-pill img.flagimg { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 0 20px; transition: .2s;
}
.section.alt .faq-item { background: var(--bg); }
.faq-item[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq-item summary {
    cursor: pointer; font-weight: 800; font-size: 15px; padding: 17px 0; list-style: none;
    display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 22px; color: var(--primary); font-weight: 600; line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--muted); font-size: 14px; padding-bottom: 18px; }

.cta {
    background: linear-gradient(135deg, #1d6cf3 0%, #1147a8 100%);
    border-radius: 26px; padding: 52px 40px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(500px 200px at 80% 0%, rgba(255, 255, 255, .18), transparent 70%);
}
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; position: relative; z-index: 1; }
.cta p { opacity: .85; margin-top: 10px; position: relative; z-index: 1; }
.cta .btn { position: relative; z-index: 1; margin-top: 24px; background: #fff; color: var(--primary-700); }
.cta .btn:hover { color: var(--primary); }

.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 46px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.footer a, .footer li { color: var(--ink-2); font-size: 14px; line-height: 2; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-note {
    margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    color: var(--muted); font-size: 13px;
}

.announce {
    background: var(--primary-50); border-bottom: 1px solid var(--primary-100);
    color: var(--primary-700); font-size: 13.5px; font-weight: 600;
    text-align: center; padding: 9px 16px;
}

/* ============================ APP SHELL ============================ */
.app { min-height: 100vh; }

.sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-w);
    background: var(--surface); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; z-index: 600;
    transition: transform .25s ease;
}
.sidebar .brand { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.side-nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.nav-label {
    font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); padding: 14px 12px 8px;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 13px; border-radius: 12px; margin-bottom: 3px;
    color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer;
    transition: .16s; border: 1px solid transparent;
}
.nav-item svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.nav-item:hover { background: var(--primary-50); color: var(--primary-600); }
.nav-item.active {
    background: linear-gradient(135deg, #eaf2ff, #e2edff);
    color: var(--primary-600); border-color: var(--primary-100);
}
.nav-item .nav-badge {
    margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 8px;
    background: var(--primary); color: #fff; border-radius: 999px;
}
.sidebar-foot {
    padding: 14px 18px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--muted);
}

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 500;
    height: var(--topbar-h); flex: none;
    display: flex; align-items: center; gap: 14px;
    padding: 0 22px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.topbar-sub { font-size: 12px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; }

.balance-chip {
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(135deg, #eaf2ff, #f4f9ff);
    border: 1px solid var(--primary-100);
    color: var(--primary-700); font-weight: 800; font-size: 14px;
    padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: .16s;
}
.balance-chip:hover { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(29, 108, 243, .1); }
.balance-chip svg { width: 16px; height: 16px; }

.avatar {
    width: 36px; height: 36px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--primary), #4f9bff);
    color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}

.content { padding: 24px 22px 60px; flex: 1; max-width: 1180px; width: 100%; }
.page { display: none; animation: fadeIn .25s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 20px; }
.page-head h2 { font-size: 22px; font-weight: 900; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.scrim {
    position: fixed; inset: 0; background: rgba(11, 27, 52, .45);
    backdrop-filter: blur(2px); z-index: 590; opacity: 0; pointer-events: none; transition: .22s;
}
.scrim.show { opacity: 1; pointer-events: auto; }

/* ============================ KEBAB (MENU TITIK 3) ============================ */
.kebab { position: relative; }
.kebab-btn {
    width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: .16s;
}
.kebab-btn:hover, .kebab-btn.open { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.kebab-btn svg { width: 18px; height: 18px; }

.kebab-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 216px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: 7px; z-index: 700;
    opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
    transition: .16s ease; transform-origin: top right;
}
.kebab-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-head b { display: block; font-size: 13.5px; }
.menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
    font: inherit; font-size: 13.8px; font-weight: 700; color: var(--ink-2);
    cursor: pointer; text-align: left; transition: .14s;
}
.menu-item svg { width: 17px; height: 17px; opacity: .75; }
.menu-item:hover { background: var(--primary-50); color: var(--primary-600); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-bg); color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ============================ STAT CARDS ============================ */
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px 18px; display: flex; gap: 14px; align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.stat-ic {
    width: 42px; height: 42px; border-radius: 13px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-50); color: var(--primary);
}
.stat-ic svg { width: 20px; height: 20px; }
.stat-ic.ok { background: var(--ok-bg); color: var(--ok); }
.stat-ic.warn { background: var(--warn-bg); color: var(--warn); }
.stat-ic.danger { background: var(--danger-bg); color: var(--danger); }
.stat-body { min-width: 0; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 21px; font-weight: 900; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ============================ ORDER / OTP ============================ */
.order-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.order-card + .order-card { margin-top: 14px; }
.order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.order-service { font-weight: 800; font-size: 15.5px; }
.order-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.number-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface-2); border: 1.5px dashed var(--line-2);
    border-radius: 14px; padding: 13px 15px; margin-top: 14px;
}
.number-box .n {
    font-size: 21px; font-weight: 900; letter-spacing: .06em; flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    word-break: break-all;
}
.otp-box {
    margin-top: 12px; text-align: center;
    background: linear-gradient(135deg, #eaf2ff, #f4f9ff);
    border: 1.5px dashed var(--primary-100);
    border-radius: 14px; padding: 14px;
}
.otp-label { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.otp-value {
    font-size: 30px; font-weight: 900; letter-spacing: 10px; color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin-top: 4px;
}
.otp-waiting { font-size: 14px; color: var(--muted); font-weight: 700; margin-top: 6px; display: flex; gap: 8px; align-items: center; justify-content: center; }

.order-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.countdown {
    font-variant-numeric: tabular-nums; font-weight: 800; color: var(--warn);
    background: var(--warn-bg); border: 1px solid #ffe0b3;
    padding: 4px 10px; border-radius: 999px; font-size: 12.5px;
}

/* ============================ QR / DEPOSIT ============================ */
.deposit-hero {
    background: linear-gradient(135deg, #1d6cf3, #1147a8);
    color: #fff; border-radius: var(--radius-lg); padding: 24px;
    position: relative; overflow: hidden;
}
.deposit-hero::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 70%);
}
.deposit-hero .lbl { font-size: 12.5px; opacity: .85; font-weight: 700; }
.deposit-hero .amt { font-size: 34px; font-weight: 900; letter-spacing: -.02em; margin-top: 2px; }

.amount-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.amount-chips .chip { justify-content: center; }

.qr-panel { text-align: center; }
.qr-image {
    width: 210px; height: 210px; object-fit: contain; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px;
    display: block;
}
.qr-total {
    font-size: 27px; font-weight: 900; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.qr-hint { font-size: 13px; color: var(--muted); }

.kv { display: grid; gap: 8px; }
.kv-row {
    display: flex; justify-content: space-between; gap: 14px;
    font-size: 13.8px; padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* ============================ MODAL ============================ */
.modal-root {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-backdrop {
    position: absolute; inset: 0; background: rgba(11, 27, 52, .5);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    animation: fadeIn .18s ease;
}
.modal-card {
    position: relative; background: var(--surface); border-radius: 22px;
    box-shadow: var(--shadow-lg); width: min(460px, 100%);
    max-height: 90vh; overflow-y: auto;
    animation: popIn .22s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-card.wide { width: min(620px, 100%); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 20px 0;
}
.modal-title { font-size: 17px; font-weight: 900; }
.modal-body { padding: 16px 20px 20px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 20px 20px; }

.alert-ic {
    width: 54px; height: 54px; border-radius: 17px; margin: 4px auto 14px;
    display: flex; align-items: center; justify-content: center;
}
.alert-ic svg { width: 28px; height: 28px; }
.alert-ic.success { background: var(--ok-bg); color: var(--ok); }
.alert-ic.error { background: var(--danger-bg); color: var(--danger); }
.alert-ic.warning { background: var(--warn-bg); color: var(--warn); }
.alert-ic.info { background: var(--info-bg); color: var(--info); }

/* ============================ TOAST ============================ */
.toast-wrap {
    position: fixed; top: 18px; right: 18px; z-index: 1200;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
    pointer-events: none; max-width: min(380px, calc(100vw - 36px));
}
.toast {
    pointer-events: auto; display: flex; gap: 11px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 15px; padding: 12px 15px; box-shadow: var(--shadow-lg);
    min-width: 260px; position: relative; overflow: hidden;
    animation: toastIn .28s cubic-bezier(.2, .9, .3, 1.15);
}
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
.toast .t-ic {
    width: 26px; height: 26px; border-radius: 9px; flex: none;
    display: flex; align-items: center; justify-content: center;
}
.toast .t-ic svg { width: 16px; height: 16px; }
.toast .t-body { min-width: 0; }
.toast .t-title { font-weight: 800; font-size: 13.8px; }
.toast .t-msg { font-size: 13px; color: var(--muted); margin-top: 1px; word-break: break-word; }
.toast::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: currentColor; opacity: .5; transform-origin: left;
    animation: toastBar 4s linear forwards;
}
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.toast.success { color: var(--ok); }
.toast.error { color: var(--danger); }
.toast.warning { color: var(--warn); }
.toast.info { color: var(--info); }
.toast.success .t-ic { background: var(--ok-bg); }
.toast.error .t-ic { background: var(--danger-bg); }
.toast.warning .t-ic { background: var(--warn-bg); }
.toast.info .t-ic { background: var(--info-bg); }
.toast .t-title, .toast .t-msg { color: var(--ink); }
.toast .t-msg { color: var(--muted); }

/* ============================ STEP INDICATOR ============================ */
.stepper { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.step-pill {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.8px; font-weight: 800; color: var(--muted);
    background: var(--surface); border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px;
}
.step-pill .n {
    width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2);
    color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.step-pill.active { color: var(--primary-600); border-color: var(--primary-100); background: var(--primary-50); }
.step-pill.active .n, .step-pill.done .n { background: var(--primary); color: #fff; }
.step-pill.done { color: var(--primary-600); }
.step-line { flex: 1; height: 2px; background: var(--line); min-width: 16px; }

.product-list { display: grid; gap: 10px; }
.product-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border: 1.5px solid var(--line-2); border-radius: 14px; padding: 13px 15px;
    cursor: pointer; transition: .16s; background: var(--surface);
}
.product-item:hover { border-color: var(--primary); background: var(--primary-50); }
.product-item.active { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(29, 108, 243, .12); }
.product-item.disabled { opacity: .5; pointer-events: none; }
.product-item .p-name { font-weight: 800; font-size: 14px; }
.product-item .p-sub { font-size: 12px; color: var(--muted); }
.product-item .p-price { font-weight: 900; font-size: 16px; color: var(--primary); font-variant-numeric: tabular-nums; }

/* ============================ AUTH MODAL ============================ */
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.auth-switch a { font-weight: 800; cursor: pointer; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: none; }
    .main { margin-left: 0; }
    .hamburger { display: inline-flex; }
    .nav-links, .nav-actions .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 116px 0 64px; }
    .features, .steps-grid { grid-template-columns: 1fr; }
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .content { padding: 18px 14px 50px; }
    .topbar { padding: 0 14px; }
    .section { padding: 56px 0; }
    .cta { padding: 38px 22px; }
    .topbar-sub { display: none; }
}

@media (max-width: 560px) {
    .balance-chip { font-size: 13px; padding: 7px 11px; }
    .topbar-title { font-size: 15.5px; }
    .hero-title { font-size: 32px; }
    .hero-meta { gap: 18px; }
    .btn-lg { padding: 13px 20px; }
    .modal-card { border-radius: 18px; }
    .toast-wrap { left: 12px; right: 12px; align-items: stretch; max-width: none; }
    .stat-value { font-size: 19px; }
}
