/* ==========================================================================
   KAMLETFX BOT V2 — Stylesheet utama
   Tema: dark premium trading dashboard (navy gelap + aksen emas)
   Tahap 1: fondasi, autentikasi, dashboard
   ========================================================================== */

/* ----- 1. Variabel & dasar ----- */
:root {
    --bg: #070B18;
    --bg-soft: #0A1120;
    --panel: rgba(20, 29, 50, 0.82);
    --panel-2: rgba(14, 21, 38, 0.92);
    --panel-inset: rgba(255, 255, 255, 0.03);

    --gold: #D4AF37;
    --gold-light: #F2D57E;
    --gold-deep: #A97C1B;
    --gold-soft: rgba(212, 175, 55, 0.12);
    --gold-line: rgba(212, 175, 55, 0.22);

    --text: #EAF0FA;
    --text-muted: #93A2BC;
    --text-dim: #6E7D97;

    --ok: #34D399;
    --warn: #FBBF24;
    --bad: #F87171;
    --info: #60A5FA;
    --violet: #A78BFA;

    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    --radius-lg: 18px;
    --radius: 14px;
    --radius-sm: 11px;

    --shadow-lg: 0 16px 36px rgba(2, 6, 18, 0.58);
    --shadow: 0 8px 20px rgba(2, 6, 18, 0.46);

    --sidebar-w: 268px;
    --sidebar-w-collapsed: 86px;

    --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

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

html, body { height: 100%; }

/*
 * Topbar bersifat sticky. Tanpa ini, menggulir ke suatu elemen (mis. saat menekan
 * tombol di bagian bawah form) dapat berhenti dengan elemen tertutup topbar sehingga
 * sulit diklik. scroll-padding-top memberi ruang setinggi topbar.
 */
html { scroll-padding-top: 96px; }

/*
 * BUG YANG DIPERBAIKI: beberapa elemen memakai atribut `hidden` (dropdown profil,
 * overlay sidebar, panel lot manual). Karena CSS menetapkan `display: flex`, atribut
 * `hidden` (yang hanya `display:none` dari stylesheet peramban) KALAH prioritas,
 * sehingga elemen tetap tampil & menutupi tombol di bawahnya. Aturan ini memastikan
 * `hidden` benar-benar menyembunyikan elemen.
 */
[hidden] { display: none !important; }
/* Elemen interaktif & kartu tidak boleh tersembunyi di bawah topbar saat digulir. */
a, button, input, select, textarea, label,
.btn, form, .card, .form-actions, .row-actions, .table-wrap, .filter-bar, .control-item {
    scroll-margin-top: 96px;
    scroll-margin-bottom: 24px;
}

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

/*
 * Latar gradien dipasang pada lapisan tetap (position: fixed) alih-alih memakai
 * background-attachment: fixed. Tampilan tetap sama, tetapi lapisan ini hanya
 * digambar sekali dan tidak dipaksa digambar ulang setiap kali halaman digulir.
 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1100px 620px at 10% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(900px 640px at 100% 0%, rgba(79, 70, 229, 0.16), transparent 62%),
        radial-gradient(820px 700px at 45% 118%, rgba(139, 92, 246, 0.13), transparent 66%);
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(212, 175, 55, 0.28); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(212, 175, 55, 0.45); background-clip: content-box; }

.muted-text { color: var(--text-dim); font-size: 12.5px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 60;
    background: var(--gold);
    color: #1a1305;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
}
.skip-link:focus { left: 16px; }

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

/* ----- 2. Ikon ----- */
.ic { flex: 0 0 auto; }

/* ----- 3. Sidebar ----- */
.app-body { --current-sidebar: var(--sidebar-w); min-height: 100vh; }
.app-body.is-collapsed { --current-sidebar: var(--sidebar-w-collapsed); }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--current-sidebar);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px 18px;
    background: linear-gradient(180deg, rgba(12, 18, 33, 0.985), rgba(8, 13, 25, 0.985));
    border-right: 1px solid var(--border);
    z-index: 40;
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 16px;
    border-bottom: 1px solid var(--border);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; overflow: hidden; }
.brand-text strong { font-size: 15.5px; letter-spacing: 0.16em; color: var(--gold-light); white-space: nowrap; }
.brand-text small { font-size: 10.5px; letter-spacing: 0.34em; color: var(--text-dim); white-space: nowrap; }

.sidebar-collapse {
    margin-left: auto;
    transition: transform 0.28s ease;
}
.is-collapsed .sidebar-collapse { transform: rotate(180deg); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.nav-section-label {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 14px 12px 6px;
    white-space: nowrap;
}
.is-collapsed .nav-section-label { text-align: center; padding-inline: 0; font-size: 0; }
.is-collapsed .nav-section-label::after { content: "•"; font-size: 12px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 550;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.nav-link:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
}
.nav-link.is-active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.04));
    border-color: var(--gold-line);
    color: var(--gold-light);
    box-shadow: inset 2px 0 0 var(--gold);
}
.nav-link.is-active .ic { color: var(--gold-light); }

.nav-tag {
    margin-left: auto;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 2px 7px;
}

.logout-form { margin: 0; }

.nav-link-logout,
.dropdown-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 550;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.nav-link-logout:hover,
.dropdown-link-danger:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.32);
    color: #FCA5A5;
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-dim);
    line-height: 1.35;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
    flex: 0 0 auto;
}

.is-collapsed .brand-text,
.is-collapsed .nav-link > span:not(.badge),
.is-collapsed .nav-tag,
.is-collapsed .sidebar-footer span:last-child { display: none; }
.is-collapsed .nav-link,
.is-collapsed .nav-link-logout { justify-content: center; padding-inline: 0; }
.is-collapsed .sidebar-brand { justify-content: center; padding-inline: 0; }
.is-collapsed .sidebar-collapse { position: absolute; right: 10px; bottom: -14px; margin: 0; background: var(--panel-2); }
.is-collapsed .sidebar-footer { justify-content: center; }

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 14, 0.72);
    z-index: 35;
}

/* ----- 4. Shell utama, topbar, footer ----- */
.main-shell {
    margin-left: var(--current-sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 28px;
    background: rgba(9, 14, 26, 0.94);
    border-bottom: 1px solid var(--border);
}

.topbar-menu { display: none; }

.topbar-titles { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.page-title { font-size: 19px; }
.page-sub { font-size: 12.5px; color: var(--text-dim); }

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    background: var(--panel-inset);
    color: var(--text-muted);
    white-space: nowrap;
}
.pill-ok    { border-color: rgba(52, 211, 153, 0.35); color: #6EE7B7; background: rgba(52, 211, 153, 0.10); }
.pill-warn  { border-color: rgba(251, 191, 36, 0.38); color: #FCD34D; background: rgba(251, 191, 36, 0.10); }
.pill-bad   { border-color: rgba(248, 113, 113, 0.38); color: #FCA5A5; background: rgba(248, 113, 113, 0.10); }
.pill-neutral { border-color: var(--border-strong); color: var(--text-muted); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--panel-inset);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); border-color: var(--border-strong); }

.profile-menu { position: relative; }

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: var(--panel-inset);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.profile-trigger:hover { border-color: var(--gold-line); background: rgba(212, 175, 55, 0.07); }
.profile-trigger .ic { color: var(--text-dim); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #1B1405;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.profile-meta { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.profile-meta strong { font-size: 13.5px; }
.profile-meta small { font-size: 11.5px; color: var(--text-dim); }

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 268px;
    background: linear-gradient(180deg, rgba(24, 33, 56, 0.99), rgba(14, 20, 36, 0.99));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 45;
}
.dropdown-head {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.dropdown-head strong { font-size: 14px; }
.dropdown-head span { font-size: 12px; color: var(--text-dim); }
.dropdown-rental { margin-top: 6px; }

.dropdown-link:hover { background: rgba(255, 255, 255, 0.055); color: var(--text); }

.content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 28px 28px 40px;
    max-width: 1380px;
    width: 100%;
}

.app-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: space-between;
    padding: 18px 28px 28px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
}

.flash-stack:empty { display: none; }
.flash-stack { display: flex; flex-direction: column; gap: 12px; }

/* ----- 5. Kartu & grid ----- */
/*
 * Catatan performa: efek backdrop-filter (blur kaca) pada setiap kartu membuat
 * browser menggambar ulang area di belakang kartu pada tiap kali digulir, dan
 * terbukti menjadi penyebab utama halaman terasa berat. Tampilan "kaca" tetap
 * dipertahankan lewat gradien semi-transparan + garis tepi terang, dengan
 * ketebalan warna sedikit dinaikkan sebagai pengganti blur.
 */
.card {
    background: linear-gradient(180deg, rgba(23, 32, 54, 0.93), rgba(13, 19, 34, 0.96));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; }
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.card-head-main { display: flex; flex-direction: column; gap: 7px; }

.card-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
.card-title { font-size: 17px; }

.card-note {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-dim);
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}

.grid-main {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: -12px;
}
.section-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* ----- 6. Countdown ----- */
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.countdown-grid.is-compact { gap: 10px; }

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--gold-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cd-value {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cd-label {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.countdown-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.meta-value { font-size: 13.5px; font-weight: 600; }

/* ----- 7. Metrik ----- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
    gap: 18px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.metric:hover { border-color: var(--gold-line); transform: translateY(-1px); }

.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.metric-icon { color: var(--text-dim); display: inline-flex; }
.metric-value { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.metric-hint { font-size: 11.5px; color: var(--text-dim); }
.metric-demo { margin-top: 4px; }

.metric-ok .metric-value { color: var(--ok); }
.metric-warn .metric-value { color: var(--warn); }
.metric-bad .metric-value { color: var(--bad); }
.metric-gold .metric-value { color: var(--gold-light); }
.metric-neutral .metric-value { color: var(--text-muted); }
.metric-ok .metric-icon { color: var(--ok); }
.metric-warn .metric-icon { color: var(--warn); }
.metric-bad .metric-icon { color: var(--bad); }
.metric-gold .metric-icon { color: var(--gold); }

/* ----- 8. Badge & alert ----- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-strong);
    background: var(--panel-inset);
    color: var(--text-muted);
    white-space: nowrap;
    max-width: 100%;
}
.badge-ok      { border-color: rgba(52, 211, 153, 0.38); color: #6EE7B7; background: rgba(52, 211, 153, 0.12); }
.badge-warn    { border-color: rgba(251, 191, 36, 0.40); color: #FCD34D; background: rgba(251, 191, 36, 0.12); }
.badge-bad     { border-color: rgba(248, 113, 113, 0.40); color: #FCA5A5; background: rgba(248, 113, 113, 0.12); }
.badge-info    { border-color: rgba(96, 165, 250, 0.40); color: #93C5FD; background: rgba(96, 165, 250, 0.12); }
.badge-neutral { border-color: var(--border-strong); color: var(--text-muted); }
.badge-demo    {
    border-color: rgba(167, 139, 250, 0.42);
    color: #C4B5FD;
    background: rgba(167, 139, 250, 0.14);
    letter-spacing: 0.1em;
    font-size: 10.5px;
}
.badge-gold    { border-color: var(--gold-line); color: var(--gold-light); background: var(--gold-soft); }

.alert {
    display: flex;
    gap: 13px;
    padding: 15px 17px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: var(--panel-inset);
    font-size: 13.5px;
    align-items: flex-start;
}
.alert-icon { display: inline-flex; margin-top: 1px; }
.alert-body { display: flex; flex-direction: column; gap: 3px; }
.alert-title { font-size: 13.5px; }
.alert-body p { color: var(--text-muted); }
.alert-info    { border-color: rgba(96, 165, 250, 0.32); background: rgba(96, 165, 250, 0.09); color: #BFDBFE; }
.alert-info .alert-body p { color: #A9C8F5; }
.alert-success { border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.09); color: #A7F3D0; }
.alert-success .alert-body p { color: #86D9B6; }
.alert-warning { border-color: rgba(251, 191, 36, 0.34); background: rgba(251, 191, 36, 0.09); color: #FDE68A; }
.alert-warning .alert-body p { color: #E8CE8C; }
.alert-error   { border-color: rgba(248, 113, 113, 0.34); background: rgba(248, 113, 113, 0.09); color: #FECACA; }
.alert-error .alert-body p { color: #EFB2B2; }

/* ----- 9. Tombol ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 620;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    background: transparent;
    color: var(--text);
}
.btn:active { transform: translateY(1px); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
    color: #1F1806;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.26);
}
.btn-gold:hover { box-shadow: 0 8px 20px rgba(212, 175, 55, 0.34); }
.btn-gold:disabled, .btn-gold.is-disabled { box-shadow: none; }

.btn-ghost {
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--gold-line); }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--gold-line); color: var(--gold-light); }

.btn-danger {
    background: rgba(248, 113, 113, 0.10);
    border-color: rgba(248, 113, 113, 0.34);
    color: #FCA5A5;
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.16); }

.btn-block { width: 100%; }

.btn:disabled,
.btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: saturate(0.55);
}
.btn:disabled:hover, .btn.is-disabled:hover { box-shadow: none; transform: none; }

/* ----- 10. Panel kontrol bot ----- */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--border);
}
.control-item .btn { width: 100%; }
.control-label { font-size: 13px; font-weight: 620; }
.control-desc { font-size: 11.5px; color: var(--text-dim); }
.control-lock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--warn);
}

.control-notice {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.26);
    color: #E8CE8C;
    font-size: 12.5px;
}

/* ----- 11. Data row / profil ----- */
.data-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2px 26px;
}
.data-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 14px 2px;
    border-bottom: 1px solid var(--border);
}
.data-row.is-wide { grid-column: 1 / -1; }
.data-label { font-size: 12.5px; color: var(--text-dim); flex: 0 1 45%; min-width: 0; }
.data-value { font-size: 14px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.data-badge { margin-left: auto; }

/* ----- 12. Form ----- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
}
.field-hint { font-size: 11.5px; color: var(--text-dim); }

.input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(8, 13, 25, 0.85);
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 14.5px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input::placeholder { color: var(--text-dim); }
.input:hover { border-color: rgba(255, 255, 255, 0.18); }
.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
    background: rgba(10, 16, 30, 0.95);
}
.input.is-invalid { border-color: rgba(248, 113, 113, 0.6); }

.password-wrap { position: relative; display: flex; }
.password-wrap .input { padding-right: 50px; }
.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.pw-toggle:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.10); }
.pw-toggle .ic-eye-off { display: none; }
.pw-toggle.is-visible .ic-eye { display: none; }
.pw-toggle.is-visible .ic-eye-off { display: block; }

/* ----- 13. Halaman login ----- */
.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 40px 20px;
}
.auth-wrap { width: 100%; max-width: 452px; }

.auth-card {
    background: linear-gradient(180deg, rgba(24, 33, 56, 0.92), rgba(12, 18, 32, 0.95));
    border: 1px solid var(--gold-line);
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    text-align: center;
    margin-bottom: 26px;
}
.auth-brand h1 {
    font-size: 21px;
    letter-spacing: 0.16em;
    color: var(--gold-light);
}
.auth-brand p { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.05em; }

.auth-note {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}
.auth-note .row { display: flex; align-items: center; gap: 9px; }

.auth-footer {
    position: fixed;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
}

/* ----- 14. Placeholder halaman ----- */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
}
.placeholder-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    color: var(--gold-light);
}
.placeholder-title { font-size: 20px; }
.placeholder-text { color: var(--text-muted); font-size: 14px; max-width: 62ch; }

.placeholder-list-wrap {
    width: 100%;
    margin-top: 8px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.placeholder-list-label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.placeholder-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px 22px;
}
.placeholder-list li { display: flex; gap: 11px; align-items: flex-start; }
.placeholder-item-icon { color: var(--gold); display: inline-flex; margin-top: 2px; }
.placeholder-list li div { display: flex; flex-direction: column; gap: 2px; }
.placeholder-list li strong { font-size: 13.5px; }
.placeholder-list li span { font-size: 12px; color: var(--text-dim); }

.placeholder-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    width: 100%;
}

/* ----- 15. Info strip ----- */.info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}
.info-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--panel-inset);
    border: 1px solid var(--border);
}
.info-cell span:first-child {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.info-cell span:last-child { font-size: 14px; font-weight: 600; }

/* ----- 16. Responsif ----- */
@media (max-width: 1180px) {
    .grid-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
    .app-body { --current-sidebar: 0px; }
    .sidebar {
        transform: translateX(-104%);
        width: 284px;
        box-shadow: var(--shadow-lg);
    }
    .is-drawer-open .sidebar { transform: none; }
    .is-collapsed .sidebar { width: 284px; }
    .is-collapsed .brand-text,
    .is-collapsed .nav-link > span:not(.badge),
    .is-collapsed .nav-tag,
    .is-collapsed .sidebar-footer span:last-child { display: initial; }
    .is-collapsed .nav-link,
    .is-collapsed .nav-link-logout { justify-content: flex-start; padding-inline: 12px; }
    .is-collapsed .sidebar-brand { justify-content: flex-start; }
    .is-collapsed .sidebar-collapse { position: static; }
    .is-collapsed .nav-section-label { font-size: 10.5px; padding: 14px 12px 6px; text-align: left; }
    .is-collapsed .nav-section-label::after { content: none; }
    .is-collapsed .sidebar-footer { justify-content: flex-start; }
    .sidebar-collapse { display: none; }
    .topbar-menu { display: inline-flex; }
    .main-shell { margin-left: 0; }
    .app-body.is-drawer-open { overflow: hidden; }
}

@media (max-width: 900px) {
    .grid-two { grid-template-columns: minmax(0, 1fr); }
    .content { padding: 22px 20px 34px; gap: 22px; }
    .topbar { padding: 14px 20px; flex-wrap: wrap; }
    .app-footer { padding: 16px 20px 24px; }
}

@media (max-width: 720px) {
    .profile-meta { display: none; }
    .profile-trigger { padding: 5px; }
    .topbar-right { gap: 10px; }
    .pill span:last-child { white-space: nowrap; }
    .card { padding: 20px 18px; }
    .countdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pill { font-size: 11.5px; padding: 7px 11px; }
    .page-title { font-size: 17px; }
    .page-sub { display: none; }

    /* Baris data ditumpuk agar badge status tidak memicu overflow */
    .data-label { flex: 1 1 100%; }
    .data-value { flex: 1 1 auto; }
    .data-badge { margin-left: 0; }
    .data-row { padding: 12px 0; }
}

@media (max-width: 460px) {
    .metrics-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
    .metric { padding: 15px; }
    .metric-value { font-size: 17px; }
    .cd-unit { padding: 13px 6px; }
    .countdown-meta { gap: 14px; }
    .auth-card { padding: 30px 22px 26px; }
    .auth-footer { position: static; }
}

/* ==========================================================================
   TAHAP 2 — Komponen pengaturan bot, jadwal, lot layering, dan tabel
   ========================================================================== */

/* ----- Form tambahan ----- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px 22px;
}
.form-grid-3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.field.has-error .field-label { color: #FCA5A5; }
.req { color: var(--gold); }

.input-wrap { position: relative; display: flex; }
.input-wrap .input { padding-right: 76px; }
.input-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    pointer-events: none;
}

.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                      linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 14px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}
.select option { background: #101a2f; color: var(--text); }

.field-error { font-size: 11.5px; color: #FCA5A5; }

.error-list {
    margin: 6px 0 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.error-list li { font-size: 12.5px; color: #EFB2B2; }

.form-section { display: flex; flex-direction: column; gap: 4px; }
.form-section-title { font-size: 15px; }
.form-section-desc { font-size: 12.5px; color: var(--text-dim); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--panel-inset);
    border: 1px solid var(--border);
}

/* ----- Saklar ON/OFF ----- */
.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid var(--border-strong);
    transition: background 0.2s ease, border-color 0.2s ease;
    flex: 0 0 auto;
}
.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: transform 0.2s ease, background 0.2s ease;
}
.switch input:checked + .switch-track {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    border-color: var(--gold);
}
.switch input:checked + .switch-track .switch-thumb {
    transform: translateX(24px);
    background: #1B1405;
}
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.switch-text { font-size: 13.5px; font-weight: 620; }

/* ----- Bar status sinkronisasi ----- */
.sync-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.sync-item { display: flex; flex-direction: column; gap: 6px; }
.sync-label {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.sync-value { font-size: 14px; font-weight: 620; }

/* ----- Tabel ----- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(8, 13, 25, 0.45);
}
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.table thead th {
    text-align: left;
    padding: 13px 16px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table tbody td {
    padding: 13px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-dim); }

.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; }
.inline-form-block { display: block; width: 100%; }

.btn-sm { padding: 8px 12px; font-size: 12.5px; border-radius: 10px; }

/* ----- Mode Lot Layering ----- */
.mode-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.mode-option {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.mode-option:hover { border-color: var(--gold-line); }
.mode-option.is-selected { border-color: var(--gold-line); background: rgba(212, 175, 55, 0.07); }
.mode-option input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    flex: 0 0 auto;
}
.mode-body { display: flex; flex-direction: column; gap: 8px; }
.mode-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-head strong { font-size: 14.5px; }
.mode-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; }
.mode-formula {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gold-light);
    background: rgba(212, 175, 55, 0.09);
    border: 1px solid var(--gold-line);
    border-radius: 8px;
    padding: 7px 11px;
    align-self: flex-start;
}

.lot-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 14px;
}
.lot-input { display: flex; flex-direction: column; gap: 6px; }
.lot-input label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.lot-input .input { padding: 10px 12px; font-size: 13.5px; text-align: center; }
.lot-auto-hint { font-size: 10.5px; color: var(--text-dim); text-align: center; }
.lot-input.has-error .input { border-color: rgba(248, 113, 113, 0.6); }

/* ----- Jam WIB & panel jadwal ----- */
.schedule-head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.clock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.09);
    border: 1px solid var(--gold-line);
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 640;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.schedule-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-top: 20px;
    border-radius: var(--radius-sm);
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.24);
    color: #A9C8F5;
    font-size: 12.5px;
}
.schedule-form { margin-top: 22px; }
.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px 22px;
    align-items: start;
}

/* ----- Empty state ----- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 34px 20px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px dashed var(--border-strong);
    color: var(--text-dim);
}
.empty-state h3 { font-size: 15.5px; color: var(--text); }
.empty-state p { font-size: 13px; max-width: 56ch; line-height: 1.6; }

.metric-info .metric-value { color: var(--info); }
.metric-info .metric-icon { color: var(--info); }
.metric-default .metric-value { color: var(--text); }

@media (max-width: 720px) {
    .form-actions { padding: 16px 18px; }
    .table { min-width: 480px; }
    .table thead th, .table tbody td { padding: 11px 12px; }
    .schedule-head-right { width: 100%; }
    .mode-choice { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   TAHAP 3 — Kartu token koneksi bot
   ========================================================================== */
.token-reveal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.34);
}
.token-reveal-head { display: flex; gap: 12px; align-items: flex-start; color: #A7F3D0; }
.token-reveal-head strong { display: block; font-size: 14.5px; margin-bottom: 5px; }
.token-reveal-head p { font-size: 12.5px; color: #8FD3B6; line-height: 1.55; }

.token-value-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.token-value {
    flex: 1 1 320px;
    min-width: 0;
    font-family: var(--mono);
    font-size: 13.5px;
    letter-spacing: 0.02em;
    word-break: break-all;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(6, 12, 22, 0.9);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: var(--gold-light);
}

.token-steps { display: flex; flex-direction: column; gap: 5px; }
.token-step { font-size: 12.5px; color: var(--text-muted); }
.token-step code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 6px;
}
.token-warn { font-size: 12px; color: #FDBFBF; }

.token-create-form { margin-top: 20px; }
.token-create-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 20px;
    align-items: end;
}
.token-create-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

@media (max-width: 720px) {
    .token-create-row { grid-template-columns: minmax(0, 1fr); }
    .token-value { flex-basis: 100%; }
}

/* ==========================================================================
   TAHAP E — Halaman Administrator
   ========================================================================== */
.admin-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 22px;
}
.admin-slot-card { display: flex; flex-direction: column; }
.admin-slot-card.is-empty { border-style: dashed; }
.admin-slot-rows { display: flex; flex-direction: column; gap: 2px; }
.admin-slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.admin-slot-row:last-child { border-bottom: none; }
.admin-slot-row > span:first-child { color: var(--text-dim); font-size: 12.5px; }
.admin-slot-row strong { font-variant-numeric: tabular-nums; text-align: right; }
.admin-slot-row .badge { font-size: 11px; }

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

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    margin-bottom: 22px;
}

.session-current { border-color: var(--gold-line) !important; background: rgba(212, 175, 55, 0.06) !important; }

.notif-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--panel-inset);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.notif-item.is-unread { border-color: var(--gold-line); }
.notif-item .notif-body { flex: 1 1 auto; min-width: 0; }
.notif-item pre {
    margin: 8px 0 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--font);
    font-size: 12.5px;
    color: var(--text-muted);
    background: rgba(8, 13, 25, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    max-height: 220px;
    overflow: auto;
}

.health-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel-inset);
    margin-bottom: 10px;
    font-size: 13px;
}
.health-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.health-ok .health-dot { background: var(--ok); }
.health-warning .health-dot { background: var(--warn); }
.health-error .health-dot { background: var(--bad); }
.health-unknown .health-dot { background: var(--text-dim); }

@media (max-width: 720px) {
    .admin-slot-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .filter-bar { grid-template-columns: minmax(0, 1fr); }
}

/* Tahap F — lonceng notifikasi & halaman pelanggan */
.bell-btn { position: relative; }
.bell-count {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 19px; height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
    color: #1B1405;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid rgba(9,14,26,0.95);
}

/* TOTP — langkah aktivasi */
.steps-list { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
    flex: 0 0 auto;
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gold-soft);
    border: 1px solid var(--gold-line);
    color: var(--gold-light);
    font-size: 12px; font-weight: 700;
}
.step-item strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.step-item p { font-size: 12.5px; color: var(--text-dim); }
