/* Dana Monitor v2 — Ported from DigiKang UI Reference */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500&display=swap');

:root,
[data-theme="light"] {
    color-scheme: light;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: rgba(79, 70, 229, 0.1);
    --primary-soft-border: rgba(79, 70, 229, 0.28);
    --primary-text-on-soft: #4338ca;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.1);
    --accent-border: rgba(79, 70, 229, 0.28);
    --welcome-bg: #ffffff;
    --welcome-text: #0f172a;
    --welcome-muted: #64748b;
    --welcome-border: #e6ebf3;
    --theme-bg-page: #f3f5fb;
    --theme-bg-sidebar: #ffffff;
    --theme-bg-topbar: rgba(255, 255, 255, 0.94);
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8fafc;
    --theme-bg-tertiary: #eef2f7;
    --theme-input-bg: #ffffff;
    --theme-accent-soft: rgba(79, 70, 229, 0.1);
    --theme-accent-text: #4338ca;
    --theme-text-primary: #0f172a;
    --theme-text-secondary: #475569;
    --theme-text-muted: #94a3b8;
    --theme-border-color: #e2e8f0;
    --theme-border-light: #e6ebf3;
    --theme-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --theme-shadow-md: 0 8px 20px -12px rgba(15, 23, 42, 0.1);
    --theme-shadow-lg: 0 16px 36px -18px rgba(15, 23, 42, 0.16);
    --theme-overlay: rgba(15, 23, 42, 0.45);
    --sidebar-w: 280px;
    --radius: 12px;
    --radius-sm: 10px;
    --radius-lg: 16px;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --badge-info-bg: #eef2ff;
    --badge-info-text: #4338ca;
    --badge-info-border: rgba(99, 102, 241, 0.16);
    --notify-info-bg: var(--badge-info-bg);
    --notify-info-border: var(--badge-info-border);
    --notify-info-text: var(--badge-info-text);
    --notify-success-bg: #f0fdf4;
    --notify-success-border: rgba(22, 163, 74, 0.18);
    --notify-success-text: #16a34a;
    --notify-warning-bg: #fffbeb;
    --notify-warning-border: rgba(217, 119, 6, 0.18);
    --notify-warning-text: #b45309;
    --notify-danger-bg: #fef2f2;
    --notify-danger-border: rgba(220, 38, 38, 0.16);
    --notify-danger-text: #b91c1c;
}

[data-theme="dark"] {
    color-scheme: dark;
    --primary: #7caaff;
    --primary-hover: #9cbbff;
    --primary-soft: rgba(77, 143, 255, 0.16);
    --primary-soft-border: rgba(110, 146, 223, 0.45);
    --primary-text-on-soft: #d7e4ff;
    --primary-gradient: linear-gradient(115deg, #235ca8 0%, #494794 100%);
    --accent: #7caaff;
    --accent-soft: rgba(99, 102, 241, 0.16);
    --accent-border: rgba(129, 140, 248, 0.32);
    --welcome-bg: rgba(14, 24, 51, 0.92);
    --welcome-text: #edf3ff;
    --welcome-muted: #8fa6cb;
    --welcome-border: rgba(110, 146, 223, 0.35);
    --theme-bg-page: #050817;
    --theme-bg-sidebar: #0a1024;
    --theme-bg-topbar: rgba(10, 16, 32, 0.92);
    --theme-bg-primary: #0e1833;
    --theme-bg-secondary: #121c38;
    --theme-bg-tertiary: #182448;
    --theme-input-bg: #0a1429;
    --theme-accent-soft: rgba(99, 102, 241, 0.16);
    --theme-accent-text: #c7d2fe;
    --theme-text-primary: #edf3ff;
    --theme-text-secondary: #c8d7f3;
    --theme-text-muted: #8fa6cb;
    --theme-border-color: rgba(110, 146, 223, 0.22);
    --theme-border-light: rgba(110, 146, 223, 0.35);
    --theme-shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --theme-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
    --theme-shadow-lg: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
    --theme-overlay: rgba(2, 6, 14, 0.72);
    --badge-info-bg: rgba(99, 102, 241, 0.14);
    --badge-info-text: #c7d2fe;
    --badge-info-border: rgba(129, 140, 248, 0.18);
    --notify-info-bg: var(--badge-info-bg);
    --notify-info-border: var(--badge-info-border);
    --notify-info-text: var(--badge-info-text);
    --notify-success-bg: rgba(16, 185, 129, 0.1);
    --notify-success-border: rgba(52, 211, 153, 0.18);
    --notify-success-text: #6ee7b7;
    --notify-warning-bg: rgba(245, 158, 11, 0.1);
    --notify-warning-border: rgba(251, 191, 36, 0.18);
    --notify-warning-text: #fcd34d;
    --notify-danger-bg: rgba(239, 68, 68, 0.1);
    --notify-danger-border: rgba(248, 113, 113, 0.18);
    --notify-danger-text: #fca5a5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { overflow-x: hidden; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    background: var(--theme-bg-page) !important;
    color: var(--theme-text-primary) !important;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.22s ease, color 0.18s ease;
}

/* ── Layout ── */
.layout-wrapper { min-height: 100vh; }
.app-main {
    display: flex; flex-direction: column;
    min-height: 100vh; min-width: 0;
}
.main-content-area {
    flex: 1; overflow-y: auto;
    padding: 1.5rem 1.75rem 2rem;
    background: var(--theme-bg-page);
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w); min-width: var(--sidebar-w);
    background: var(--theme-bg-sidebar) !important;
    border-right: 1px solid var(--theme-border-light) !important;
    z-index: 200;
    overflow: hidden;
}
.sidebar-inner {
    display: flex; flex-direction: column;
    height: 100%; min-height: 0;
    padding: 1.25rem 1rem;
    overflow: hidden;
}
.brand-wrapper { display: flex; align-items: center; gap: 11px; padding: 0.35rem 0.5rem; margin-bottom: 1rem; }
.brand-text { min-width: 0; }
.brand-logo {
    width: 36px; height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}
.brand-name { font-size: 1.05rem; font-weight: 800; color: var(--theme-text-primary); letter-spacing: -0.4px; line-height: 1.2; }
.brand-sub { font-size: 10px; font-weight: 600; color: var(--theme-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 1px; }

.sidebar-session {
    display: flex; align-items: center; gap: 10px;
    padding: 1rem; margin-bottom: 1rem;
    background: var(--theme-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--theme-border-light);
}
.session-info { min-width: 0; flex: 1; }
.session-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); flex-shrink: 0; }
.session-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--theme-text-muted); }
.session-name { font-size: 13px; font-weight: 700; color: var(--theme-text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.session-role { font-size: 11px; color: var(--theme-text-muted); margin-top: 1px; }

.sidebar-nav-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--theme-text-muted);
    padding: 0 0.75rem; margin-bottom: 6px;
}

.sidebar-nav {
    flex: 1; display: flex; flex-direction: column; gap: 4px;
    overflow-y: auto; min-height: 0;
    padding-bottom: 8px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(100,116,139,.35) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(100,116,139,.45); border-radius: 99px; }

.sidebar-footer {
    flex-shrink: 0;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--theme-border-light);
}
.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
    color: var(--theme-text-secondary) !important;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
    position: relative;
}
.nav-link i { font-size: 1.05rem; width: 18px; text-align: center; opacity: 0.9; transition: transform 0.2s, color 0.2s; }
.nav-link:hover i { transform: translateX(2px); }
.nav-link.active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}
.nav-link.active::before { display: none; }
.nav-link.active i { color: #fff !important; opacity: 1; }
.nav-link:hover { background: var(--theme-bg-secondary); color: var(--primary) !important; }
.nav-link.active:hover { color: #fff !important; }
.nav-link.logout:hover { color: #ef4444 !important; background: rgba(239, 68, 68, 0.08); }
[data-theme="dark"] .nav-link.logout:hover { background: rgba(239, 68, 68, 0.14); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(3px); z-index: 150; }
.sidebar-overlay.show { display: block; }

/* ── Topbar ── */
.topbar {
    background: var(--theme-bg-topbar) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1.5px solid var(--theme-border-light) !important;
    padding: 0 18px;
    height: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 24px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--theme-shadow-sm);
}
[data-theme="dark"] .topbar { background: var(--theme-bg-topbar) !important; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}
.topbar-pill {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--theme-text-secondary);
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    border-radius: 99px; padding: 6px 12px;
}
.menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0; padding: 0;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    border-radius: 12px;
    color: var(--theme-text-primary); font-size: 1.25rem; cursor: pointer;
    line-height: 1;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.menu-toggle:hover { background: var(--theme-bg-tertiary); border-color: var(--primary-soft-border); color: var(--primary); }
[data-theme="dark"] .menu-toggle {
    background: rgba(14, 24, 51, 0.85);
    border-color: rgba(110, 146, 223, 0.4);
    color: #d7e6ff;
    box-shadow: inset 0 1px 0 rgba(180, 205, 255, 0.12);
}
[data-theme="dark"] .menu-toggle:hover {
    border-color: rgba(124, 170, 255, 0.75);
    color: #fff;
}

.sync-badge, .clock-badge { /* legacy alias */ }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--theme-text-muted); flex-shrink: 0; }
.sync-dot.active { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.55} }

#realtime-clock { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 12px; color: var(--theme-text-primary) !important; }
.clock-badge i { font-size: 0.85rem; color: var(--theme-text-muted); }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    color: var(--theme-text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--theme-bg-tertiary); border-color: var(--primary-soft-border); color: var(--primary); }

.btn-logout {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    color: var(--theme-text-secondary); padding: 7px 12px;
    border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
    text-decoration: none !important;
    display: flex; align-items: center; gap: 6px;
    transition: background 0.15s, border-color 0.15s, color 0.15s; cursor: pointer;
}
.btn-logout:hover { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
[data-theme="dark"] .btn-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); color: #f87171; }

.user-chip { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 16px; border-left: 1px solid var(--theme-border-light); margin-left: 4px; }
.user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.user-name { font-size: 12px; font-weight: 700; color: var(--theme-text-primary); line-height: 1.2; }
.user-role { font-size: 10px; color: var(--theme-text-muted); margin-top: 1px; }

/* ── Welcome Banner ── */
.welcome-banner {
    background: var(--welcome-bg);
    border-radius: var(--radius);
    padding: 1.15rem 1.5rem;
    color: var(--welcome-text);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: none;
    border: 1px solid var(--welcome-border);
}
.welcome-banner::before { display: none; }
.welcome-banner-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; position: relative; z-index: 1;
}
.welcome-greeting { min-width: 0; }
.welcome-label {
    display: block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--welcome-muted); margin-bottom: 2px;
}
.welcome-banner h2 {
    font-weight: 700; font-size: 1.2rem; letter-spacing: -0.3px;
    margin: 0; line-height: 1.25; color: var(--welcome-text);
}
.welcome-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    border-radius: 99px; padding: 5px 12px;
    font-size: 12px; font-weight: 600;
    color: var(--theme-text-secondary);
}
.hero-pill-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--theme-text-primary); }
.hero-pill .sync-dot.active { background: #10b981; box-shadow: none; }

/* ── Section Header ── */
.section-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.section-header-text h2 { font-size: 1.15rem; font-weight: 700; color: var(--theme-text-primary); letter-spacing: -0.3px; }
.section-header-text p { font-size: 13px; color: var(--theme-text-muted); margin-top: 3px; }
.section-header-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Mutasi page: compact layout, table langsung terlihat ── */
.page-mutasi .main-content-area { padding: 0; }
.page-mutasi .section-header { display: none; }
.page-mutasi .sync-badge,
.page-mutasi .clock-badge { display: none; }
.page-mutasi .user-chip {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
}
.page-mutasi .mutasi-table-card {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}
.page-mutasi .mutasi-table-card.is-refreshing .mutasi-table-wrap {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.page-mutasi .mutasi-table-card.is-refreshing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    background-size: 200% 100%;
    animation: mutasiLoadBar 1.1s linear infinite;
    z-index: 6;
    pointer-events: none;
}
@keyframes mutasiLoadBar {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mutasi-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3rem 1.5rem;
    color: var(--theme-text-muted);
    text-align: center;
}
.mutasi-loading-state p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-text-secondary);
}
.mutasi-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--theme-border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: mutasiSpin 0.75s linear infinite;
}
@keyframes mutasiSpin { to { transform: rotate(360deg); } }
.mutasi-summary-loading {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
    .mutasi-summary-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mutasi-summary-loading .skeleton-stat {
    height: 72px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--theme-bg-secondary) 25%, var(--theme-bg-tertiary) 50%, var(--theme-bg-secondary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border: 1px solid var(--theme-border-light);
}
.topbar-mutasi-btn.is-loading {
    opacity: 0.85;
    pointer-events: none;
}
.topbar-mutasi-btn.is-loading .bi-arrow-clockwise {
    animation: mutasiSpin 0.75s linear infinite;
}
#btn-load.is-loading {
    opacity: 0.85;
    pointer-events: none;
}
#btn-load.is-loading .bi-arrow-repeat {
    animation: mutasiSpin 0.75s linear infinite;
}
.page-mutasi .mutasi-table-card .data-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--theme-bg-secondary);
}

.topbar-mutasi-context {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.topbar-mutasi-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 116px;
    padding-right: 18px;
    border-right: 1px solid var(--theme-border-light);
}

.topbar-mutasi-title {
    color: var(--theme-text-primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.topbar-mutasi-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mutasi-live-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 2px 6px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.09);
    color: #15803d;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

[data-theme="dark"] .mutasi-live-status {
    color: #86efac;
}

.mutasi-live-dot {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.mutasi-live-status.is-checking .mutasi-live-dot {
    animation: mutasiLivePulse 1s ease-in-out infinite;
}

.mutasi-live-status.is-paused {
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.1);
    color: var(--theme-text-muted);
}

.mutasi-live-status.is-error {
    border-color: rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

@keyframes mutasiLivePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

.topbar-mutasi-count {
    color: var(--theme-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.topbar-mutasi-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding: 4px;
    border: 1px solid var(--theme-border-light);
    border-radius: 12px;
    background: var(--theme-bg-secondary);
}

.topbar-mutasi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--theme-text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.topbar-mutasi-btn:hover {
    background: var(--theme-accent-soft);
    border-color: transparent;
    color: var(--primary);
}
.topbar-mutasi-btn.is-filter {
    background: var(--theme-accent-soft);
    color: var(--primary);
}
.topbar-mutasi-btn.is-download {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}
.topbar-mutasi-btn.is-download:hover {
    background: rgba(22, 163, 74, 0.2);
    color: #166534;
}
[data-theme="dark"] .topbar-mutasi-btn.is-download {
    color: #86efac;
}
.topbar-mutasi-btn.is-google-sheet {
    background: rgba(52, 168, 83, 0.12);
    color: #188038;
    text-decoration: none;
}

.google-sheet-auto-note {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 13px;
    border: 1px solid rgba(52, 211, 153, .25);
    border-radius: 12px;
    background: rgba(16, 185, 129, .08);
    color: var(--theme-text-primary);
}

.google-sheet-auto-note > i {
    color: #22c55e;
    font-size: 18px;
    line-height: 1.2;
}

.google-sheet-auto-note span,
.google-sheet-auto-note small {
    display: block;
}

.google-sheet-auto-note small {
    margin-top: 4px;
    color: var(--theme-text-muted);
    font-size: 11px;
    line-height: 1.45;
}
.topbar-mutasi-btn.is-google-sheet:hover {
    background: rgba(52, 168, 83, 0.2);
    color: #137333;
}
[data-theme="dark"] .topbar-mutasi-btn.is-google-sheet {
    color: #81c995;
}
.topbar-mutasi-btn:disabled,
.topbar-mutasi-btn.is-disabled {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: none;
}
.topbar-mutasi-btn.is-loading i {
    animation: mutasiSpin 0.75s linear infinite;
}
.topbar-mutasi-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.topbar-mutasi-btn i { font-size: 1rem; opacity: 0.9; }

.mutasi-filter-modal-head-text { flex: 1; min-width: 0; }
.mutasi-filter-modal-sub {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--theme-text-muted);
}
.mutasi-filter-block { margin-bottom: 1.35rem; }
.mutasi-filter-block:last-child { margin-bottom: 0; }
.mutasi-filter-block-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--theme-text-muted);
}
.mutasi-filter-stats .stat-card { padding: 1rem 1.05rem; }
.mutasi-filter-stats .stat-label { font-size: 10px; margin-bottom: 4px; }
.mutasi-filter-stats .stat-value { font-size: 1.35rem; letter-spacing: -0.02em; }
.page-mutasi .modal-backdrop {
    background: var(--theme-overlay, rgba(15, 23, 42, 0.55));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mutasi-filter-stats.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.mutasi-filter-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mutasi-date-field { position: relative; }
.mutasi-date-input {
    width: 100%;
    cursor: pointer;
}
.mutasi-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
@media (max-width: 640px) {
    .mutasi-filter-stats.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mutasi-filter-dates { grid-template-columns: 1fr; }
}
.mutasi-filter-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.mutasi-filter-modal-head .modal-title { margin-bottom: 0; }
.modal-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--theme-border-light);
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-close-btn:hover { background: var(--theme-bg-tertiary); color: var(--theme-text-primary); }
.mutasi-filter-stats { margin-bottom: 1.25rem; }
.mutasi-filter-form {
    display: grid;
    gap: 14px;
}
.mutasi-filter-field .form-input { width: 100%; }
.mutasi-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 4px;
}
.mutasi-filter-actions .btn { width: 100%; justify-content: center; }

.page-mutasi .mutasi-td-approve {
    min-width: 92px;
    white-space: nowrap;
}
.page-mutasi .mutasi-td-user-id {
    min-width: 130px;
    white-space: nowrap;
}
.page-mutasi .mutasi-td-approver {
    min-width: 120px;
    white-space: nowrap;
}
.page-mutasi .mutasi-td-action {
    min-width: 122px;
    white-space: nowrap;
}
.page-mutasi .mutasi-force-manual-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(239, 68, 68, 0.34);
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.09);
    color: #dc2626;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.page-mutasi .mutasi-force-manual-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(239, 68, 68, 0.56);
    background: rgba(239, 68, 68, 0.16);
}
.page-mutasi .mutasi-force-manual-btn:focus-visible {
    outline: 2px solid #ef4444;
    outline-offset: 2px;
}
[data-theme="dark"] .page-mutasi .mutasi-force-manual-btn { color: #fca5a5; }
.page-mutasi .mutasi-action-empty { color: var(--theme-text-muted); }
.mutasi-force-manual-panel { max-width: 620px; }
.mutasi-force-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: #dc2626;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mutasi-force-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 15px;
    padding: 12px 13px;
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 12px;
    background: rgba(245, 158, 11, .09);
    color: var(--theme-text-primary);
}
.mutasi-force-warning > i { color: #d97706; font-size: 20px; line-height: 1.1; }
.mutasi-force-warning strong,
.mutasi-force-warning span { display: block; }
.mutasi-force-warning strong { margin-bottom: 3px; font-size: 12px; }
.mutasi-force-warning span { color: var(--theme-text-secondary); font-size: 11px; line-height: 1.45; }
.mutasi-force-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--theme-border-light);
    border-radius: 12px;
    background: var(--theme-border-light);
}
.mutasi-force-summary > div {
    min-width: 0;
    padding: 10px 12px;
    background: var(--theme-bg-secondary);
}
.mutasi-force-summary span,
.mutasi-force-summary strong { display: block; }
.mutasi-force-summary span {
    margin-bottom: 4px;
    color: var(--theme-text-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mutasi-force-summary strong {
    overflow: hidden;
    color: var(--theme-text-primary);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mutasi-force-form { display: grid; gap: 14px; }
.mutasi-force-help {
    display: block;
    margin-top: 5px;
    color: var(--theme-text-muted);
    font-size: 10px;
}
.mutasi-force-confirm {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid var(--theme-border-light);
    border-radius: 10px;
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
}
.mutasi-force-confirm input { margin-top: 2px; accent-color: #dc2626; }
.mutasi-force-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    margin-top: 18px;
}
.mutasi-force-actions .btn { width: 100%; justify-content: center; }
.mutasi-force-submit {
    border: 1px solid #dc2626;
    background: #dc2626;
    color: #fff;
}
.mutasi-force-submit:hover { border-color: #b91c1c; background: #b91c1c; }
.mutasi-force-submit.is-loading .mutasi-spinner {
    width: 14px;
    height: 14px;
    border-width: 2px;
    border-color: rgba(255,255,255,.35);
    border-top-color: #fff;
}
.page-mutasi .mutasi-user-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    padding: 4px 9px;
    border: 1px solid var(--theme-border-light);
    border-radius: 7px;
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-mutasi .mutasi-user-id.is-empty {
    border-color: transparent;
    background: transparent;
    color: var(--theme-text-muted);
    font-weight: 600;
}
.page-mutasi .mutasi-approver {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    padding: 4px 9px;
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 7px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--theme-text-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-mutasi .mutasi-approver.is-empty {
    border-color: transparent;
    background: transparent;
    color: var(--theme-text-muted);
    font-weight: 600;
}

/* ── Mutasi mobile: kartu transaksi (bukan tabel horizontal) ── */
@media (max-width: 767px) {
    .page-mutasi .main-content-area {
        padding: 0;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
    .page-mutasi .mutasi-table-wrap {
        overflow: visible;
        padding: 10px max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
    }
    .page-mutasi .mutasi-data-table {
        display: block;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }
    .page-mutasi .mutasi-data-table thead {
        display: none;
    }
    .page-mutasi .mutasi-data-table tbody {
        display: block;
    }
    .page-mutasi .mutasi-data-table tbody tr.mutasi-data-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
        gap: 4px 10px;
        align-items: start;
        padding: 12px 14px;
        border: 1px solid var(--theme-border-light);
        border-radius: 12px;
        background: var(--theme-bg-primary);
        box-shadow: var(--theme-shadow-sm);
        margin-bottom: 10px;
    }
    .page-mutasi .mutasi-data-table tbody tr.mutasi-data-row:hover {
        background: var(--theme-bg-primary);
    }
    .page-mutasi .mutasi-data-table tbody tr.mutasi-data-row.approve-y {
        border-left: 3px solid #16a34a;
    }
    .page-mutasi .mutasi-data-table tbody tr.mutasi-data-row.approve-n {
        border-left: 3px solid #f59e0b;
    }
    .page-mutasi .mutasi-data-table tbody tr.mutasi-data-row td {
        display: block;
        padding: 0;
        border: none;
        text-align: left !important;
    }
    .page-mutasi .mutasi-td-time {
        grid-column: 1;
        grid-row: 1;
        font-size: 11px;
        font-weight: 600;
        color: var(--theme-text-muted);
        white-space: nowrap;
    }
    .page-mutasi .mutasi-td-approve {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        text-align: right !important;
    }
    .page-mutasi .mutasi-td-approve .badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .page-mutasi .mutasi-td-akun {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 15px;
        line-height: 1.3;
        color: var(--theme-text-primary);
    }
    .page-mutasi .mutasi-td-amount {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 1.2rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.2;
    }
    .page-mutasi .mutasi-td-zero {
        display: none !important;
    }
    .page-mutasi .mutasi-td-desc {
        grid-column: 1 / -1;
        grid-row: 4;
        max-width: none !important;
        font-size: 12px;
        line-height: 1.45;
        color: var(--theme-text-secondary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        white-space: normal;
    }
    .page-mutasi .mutasi-td-pengirim {
        grid-column: 1 / -1;
        grid-row: 5;
        font-size: 12px;
        color: var(--theme-text-muted);
    }
    .page-mutasi .mutasi-td-pengirim::before {
        content: 'Dari: ';
        font-weight: 600;
    }
    .page-mutasi .mutasi-td-user-id {
        grid-column: 1 / -1;
        grid-row: 6;
        min-width: 0;
        margin-top: 2px;
        color: var(--theme-text-muted);
        font-size: 12px;
        text-align: left !important;
    }
    .page-mutasi .mutasi-td-user-id::before {
        content: 'User ID: ';
        font-weight: 600;
    }
    .page-mutasi .mutasi-user-id {
        display: inline;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--theme-text-secondary);
        font-size: 12px;
    }
    .page-mutasi .mutasi-td-approver {
        grid-column: 1 / -1;
        grid-row: 7;
        min-width: 0;
        color: var(--theme-text-muted);
        font-size: 12px;
        text-align: left !important;
    }
    .page-mutasi .mutasi-td-action {
        grid-column: 1 / -1;
        grid-row: 8;
        min-width: 0;
        margin-top: 7px;
        text-align: left !important;
    }
    .page-mutasi .mutasi-force-manual-btn {
        width: 100%;
        min-height: 36px;
        font-size: 11px;
    }
    .page-mutasi .mutasi-action-empty { display: none; }
    .page-mutasi .mutasi-td-approver::before {
        content: 'Approver: ';
        font-weight: 600;
    }
    .page-mutasi .mutasi-approver {
        display: inline;
        max-width: none;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--theme-text-secondary);
        font-size: 12px;
    }
    .page-mutasi .mutasi-td-saldo {
        display: none !important;
    }
    .page-mutasi .mutasi-data-table tbody tr:not(.mutasi-data-row) td {
        display: block;
        padding: 0;
        border: none;
    }
    .page-mutasi .mutasi-data-table tbody tr:not(.mutasi-data-row) {
        display: block;
        margin-bottom: 0;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .page-mutasi .mutasi-loading-state,
    .page-mutasi .empty-state {
        padding: 2rem 1rem;
    }
}

@media (max-width: 520px) {
    .mutasi-force-summary { grid-template-columns: 1fr; }
    .mutasi-force-actions { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .topbar-mutasi-btn-label { display: none; }
    .topbar-mutasi-btn { padding: 8px 11px; }
}
@media (max-width: 480px) {
    .mutasi-filter-actions { grid-template-columns: 1fr; }
    .mutasi-filter-stats.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mutasi-filter-stats .stat-value { font-size: 1.1rem; }
}

/* ── Section Card ── */
.section-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--theme-shadow-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}
.section-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--theme-border-light);
    display: flex; align-items: center; justify-content: space-between;
}
.section-card-title {
    font-weight: 700; font-size: 15px; color: var(--theme-text-primary);
    letter-spacing: -0.3px;
    display: flex; align-items: center; gap: 8px;
}
.section-card-body { padding: 1rem 1.5rem; }

/* ── Toolbar ── */
.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 1.25rem;
    box-shadow: none;
}
.toolbar-page { margin-bottom: 1rem; }
.toolbar .search-wrap { flex: 1; min-width: 220px; position: relative; }
.toolbar .search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--theme-text-muted); pointer-events: none; font-size: 0.9rem; }
.toolbar .search-wrap .form-input { padding-left: 36px; background: var(--theme-bg-secondary) !important; border-color: transparent !important; }
.toolbar .search-wrap .form-input:focus { background: var(--theme-bg-primary) !important; border-color: var(--primary) !important; }
.toolbar-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }

/* ── Page head (dashboard) ── */
.page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 1rem; flex-wrap: wrap;
}
.page-head-title {
    font-size: 1.25rem; font-weight: 700; color: var(--theme-text-primary);
    letter-spacing: -0.35px; line-height: 1.2; margin: 0;
}
.page-head-sub { font-size: 13px; color: var(--theme-text-muted); margin-top: 4px; line-height: 1.4; }
.page-head-stat {
    text-align: right; padding: 10px 14px;
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-sm);
    box-shadow: none;
    min-width: 110px;
}
.page-head-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.page-head-stat-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-text-muted); margin-top: 4px; }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 1.25rem; }
.stat-card {
    background: var(--theme-bg-primary);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--theme-border-color);
    box-shadow: var(--theme-shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative; overflow: hidden;
}
.stat-card:hover { border-color: var(--primary-soft-border); box-shadow: var(--theme-shadow-md); transform: none; }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--primary-gradient); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--theme-text-muted); margin-bottom: 6px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }

/* ── Account Cards ── */
.accounts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.account-card {
    background: var(--theme-bg-primary) !important;
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: none;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.account-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.9;
}
.account-card:hover { transform: none; box-shadow: none; border-color: var(--theme-text-muted); }
.account-card.has-error::before { background: #dc2626; }
.account-card.has-error { border-color: rgba(239,68,68,0.25); }
[data-theme="dark"] .account-card.has-error { background: var(--theme-bg-primary) !important; }

.account-card-body { padding: 1.25rem 1.25rem 1rem; flex: 1; display: flex; flex-direction: column; }
.account-card-skeleton { padding: 1.25rem; }
.account-card-skeleton::before { display: none; }

.account-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; gap: 10px; }
.account-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.account-avatar {
    width: 42px; height: 42px; border-radius: var(--radius-sm);
    background: var(--theme-bg-secondary); color: var(--theme-text-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px; flex-shrink: 0;
    border: 1px solid var(--theme-border-light);
}
.account-card.has-error .account-avatar { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.account-name { font-weight: 700; font-size: 14px; color: var(--theme-text-primary); line-height: 1.25; }
.account-phone { font-size: 12px; color: var(--theme-text-muted); margin-top: 2px; font-family: 'JetBrains Mono', monospace; font-size: 11px; }

.account-balance {
    font-size: 1.65rem; font-weight: 800; letter-spacing: -0.03em;
    color: var(--theme-text-primary);
    margin-bottom: 0.75rem; line-height: 1.1;
}
.account-balance-currency { font-size: 0.75em; font-weight: 700; color: var(--theme-text-muted); margin-right: 2px; }

.account-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.account-meta-row {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--theme-text-secondary);
}
.account-meta-row i { color: var(--theme-text-muted); font-size: 0.85rem; width: 14px; flex-shrink: 0; }
.account-meta-row strong { color: var(--theme-text-primary); font-weight: 600; }

.account-error {
    display: flex; align-items: flex-start; gap: 7px;
    font-size: 11px; font-weight: 600; color: #92400e;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 10px; line-height: 1.4;
}
[data-theme="dark"] .account-error { background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.25); color: #fbbf24; }

.account-actions {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--theme-border-light);
    background: var(--theme-bg-secondary);
    margin-top: auto;
}
.account-actions .btn {
    padding: 8px 6px !important;
    font-size: 11px !important;
    border-radius: var(--radius-sm) !important;
    min-height: 36px;
}
.account-actions .btn-account-robot { grid-column: span 2; min-height: 38px; margin-bottom: 2px; }
.btn-account-robot span { font-weight: 700; }
.btn-account-robot small { font-size: 9px; font-weight: 600; opacity: .82; }
.btn-account-robot.is-unlinked {
    background: var(--theme-bg-primary) !important;
    color: var(--theme-text-muted) !important;
    border: 1px dashed var(--theme-border-light) !important;
    box-shadow: none !important;
}

/* ── Buttons ── */
.btn {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: none; text-decoration: none !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-block { flex: 1; }

.btn-primary {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}
.btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.32);
}

.btn-secondary {
    background: var(--theme-bg-primary) !important;
    color: var(--theme-text-secondary) !important;
    border: 1px solid var(--theme-border-light) !important;
    box-shadow: none !important;
}
.btn-secondary:hover { color: var(--theme-text-primary) !important; border-color: var(--theme-border-light) !important; background: var(--theme-bg-secondary) !important; }

.btn-success {
    background: var(--success) !important;
    color: #fff !important;
    box-shadow: none;
}
.btn-success:hover { transform: none; filter: brightness(1.04); }

.btn-danger {
    background: var(--theme-bg-secondary) !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
}
.btn-danger:hover { background: #fef2f2 !important; }
[data-theme="dark"] .btn-danger { border-color: rgba(239,68,68,0.3) !important; }
[data-theme="dark"] .btn-danger:hover { background: rgba(239,68,68,0.15) !important; }

.btn-ghost {
    background: var(--theme-bg-primary) !important; color: var(--primary) !important;
    border: 1px solid var(--primary-soft-border) !important;
}
.btn-ghost:hover { background: var(--theme-accent-soft) !important; }
[data-theme="dark"] .btn-ghost { background: var(--theme-bg-secondary) !important; border-color: var(--primary-soft-border) !important; color: var(--primary) !important; }

/* ── Forms ── */
.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--theme-input-bg) !important;
    border: 1px solid var(--theme-border-light) !important;
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--theme-text-primary) !important;
    font-size: 13px; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-soft);
    background: var(--theme-bg-primary) !important;
}
.form-input::placeholder { color: var(--theme-text-muted) !important; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--theme-text-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 8px;
    font-size: 11px; font-weight: 700;
}
.badge-active { background: var(--notify-success-bg); color: var(--notify-success-text); border: 1px solid var(--notify-success-border); }
.badge-inactive { background: var(--notify-danger-bg); color: var(--notify-danger-text); border: 1px solid var(--notify-danger-border); }
.badge-error { background: var(--notify-warning-bg); color: var(--notify-warning-text); border: 1px solid var(--notify-warning-border); }
.badge-neutral { background: rgba(100,116,139,0.12); color: #475569; border: 1px solid rgba(100,116,139,0.28); }
.badge-info { background: var(--badge-info-bg); color: var(--badge-info-text); border: 1px solid var(--badge-info-border); }
[data-theme="dark"] .badge-active { background: rgba(22,163,74,0.15); border-color: rgba(22,163,74,0.3); color: #4ade80; }
[data-theme="dark"] .badge-inactive { background: rgba(220,38,38,0.15); border-color: rgba(220,38,38,0.3); color: #f87171; }
[data-theme="dark"] .badge-error { background: rgba(217,119,6,0.15); border-color: rgba(217,119,6,0.3); color: #fbbf24; }
[data-theme="dark"] .badge-neutral { background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.28); color: #cbd5e1; }
[data-theme="dark"] .badge-info { background: var(--badge-info-bg); border-color: var(--badge-info-border); color: var(--badge-info-text); }

/* ── Data Table ── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrap .section-card { margin-bottom: 0; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--theme-bg-secondary); }
.data-table th {
    padding: 13px 18px; text-align: left;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--theme-text-muted);
    border-bottom: 1px solid var(--theme-border-light);
}
.data-table td { padding: 12px 18px; font-size: 13px; color: var(--theme-text-secondary); border-bottom: 1px solid var(--theme-border-light); }
.data-table tbody tr:hover { background: var(--theme-bg-secondary); }
.data-table .text-right { text-align: right; }
.data-table .text-center { text-align: center; }

.page-users .col-check { width: 48px; padding-left: 14px !important; padding-right: 8px !important; }
.page-users .table-checkbox {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
    vertical-align: middle;
}
.page-users .table-checkbox:disabled { cursor: not-allowed; opacity: 0.45; }
.page-users .data-table tbody tr.is-selected { background: var(--primary-soft); }
.page-users .data-table tbody tr.is-selected:hover { background: var(--primary-soft); }
.page-users .users-bulk-delete.hidden { display: none !important; }
.page-users .toolbar-page .users-bulk-delete { margin-left: auto; }

html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-n td { background: rgba(34, 197, 94, .09) !important; color: #e7f8ee; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-y td { background: rgba(56, 189, 248, .10) !important; color: #e7f4ff; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-manual td { background: rgba(245, 158, 11, .12) !important; color: #fff4df; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.mutasi-outgoing td { background: rgba(244, 63, 94, .11) !important; color: #ffe8ec; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.mutasi-failed td { background: rgba(250, 204, 21, .10) !important; color: #fff8dc; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-n td { background: #f4fbf6 !important; color: #14532d; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-y td { background: #f3f8fc !important; color: #0f3a56; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-manual td { background: #fff6ec !important; color: #7c2d12; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.mutasi-outgoing td { background: #fff5f5 !important; color: #7f1d1d; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.mutasi-failed td { background: #fffbeb !important; color: #713f12; }
.page-mutasi .mutasi-data-row td:first-child { box-shadow: inset 3px 0 0 transparent; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-n td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-y td:first-child { box-shadow: inset 3px 0 0 #38bdf8; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.approve-manual td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.mutasi-outgoing td:first-child { box-shadow: inset 3px 0 0 #fb7185; }
html[data-theme="dark"] .page-mutasi .mutasi-data-row.mutasi-failed td:first-child { box-shadow: inset 3px 0 0 #facc15; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-n td:first-child { box-shadow: inset 3px 0 0 #16a34a; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-y td:first-child { box-shadow: inset 3px 0 0 #0284c7; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.approve-manual td:first-child { box-shadow: inset 3px 0 0 #d97706; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.mutasi-outgoing td:first-child { box-shadow: inset 3px 0 0 #e11d48; }
html[data-theme="light"] .page-mutasi .mutasi-data-row.mutasi-failed td:first-child { box-shadow: inset 3px 0 0 #ca8a04; }
.page-mutasi .mutasi-data-row td .text-muted,
.page-mutasi .mutasi-data-row td .mutasi-user-id,
.page-mutasi .mutasi-data-row td .mutasi-approver { color: inherit; }

/* ── WebAdmin login panels ── */
.wa-method-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--theme-bg-secondary);
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.wa-tab {
    border: none;
    background: transparent;
    color: var(--theme-text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.wa-tab.active {
    background: var(--theme-bg-primary);
    color: var(--theme-text-primary);
    box-shadow: var(--theme-shadow-sm);
}
.wa-panel-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--theme-text-primary);
}
.wa-captcha-box {
    margin-top: 4px;
    padding: 12px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    border-radius: 10px;
}
.wa-captcha-img {
    display: none;
    width: 100%;
    max-width: 280px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-light);
    background: #fff;
    margin-bottom: 8px;
}
.wa-captcha-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.wa-captcha-actions .form-input { flex: 1; min-width: 120px; }
.wa-google-box {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid var(--theme-border-color);
    background: var(--theme-bg-secondary);
    border-radius: 10px;
}
.wa-google-hint {
    font-size: 12px;
    color: var(--theme-text-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}
.wa-google-hint code {
    font-size: 11px;
    background: var(--theme-bg-primary);
    padding: 1px 5px;
    border-radius: 4px;
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    margin-bottom: 10px;
    font-weight: 600;
}
.btn-google:hover {
    background: #f9fafb !important;
    border-color: #9ca3af !important;
}
.wa-google-box .form-input { margin-bottom: 8px; }

.wa-bridge-box {
    margin-top: 4px;
    padding: 14px;
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    border-radius: 10px;
}
.wa-bridge-hint {
    font-size: 12px;
    color: var(--theme-text-secondary);
    margin: 0 0 10px;
    line-height: 1.5;
}
.wa-bridge-steps {
    margin: 0 0 10px 18px;
    padding: 0;
    font-size: 12px;
    color: var(--theme-text-secondary);
    line-height: 1.6;
}
.wa-bridge-status {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
}
.wa-bridge-status.online { background: #dcfce7; color: #166534; }
.wa-bridge-status.offline { background: #fef3c7; color: #92400e; }
.wa-open-panel { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ── Banner (topbar) ── */
.topbar-banners {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(760px, 52vw);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: 8px;
}
.topbar-banners:empty {
    display: none;
    margin: 0;
}
.page-mutasi #banners {
    display: none !important;
}
.banner-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 12px;
    max-width: 100%;
    box-shadow: none;
    line-height: 1.35;
    font-size: 11px;
}
.topbar .banner-alert.badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.banner-alert-body {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
}
.banner-alert-body a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}
.banner-alert-body p {
    margin: 0;
    display: inline;
}
.banner-alert.badge { margin-bottom: 0; }
#login-error.banner-alert.badge {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* ── Empty / Skeleton ── */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--theme-text-muted); grid-column: 1 / -1; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; background: var(--theme-bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--theme-text-muted); }

@keyframes shimmer { 0%{background-position:-400px 0} 100%{background-position:400px 0} }
.skeleton {
    background: linear-gradient(90deg, var(--theme-bg-secondary) 25%, var(--theme-bg-tertiary) 50%, var(--theme-bg-secondary) 75%);
    background-size: 800px 100%; animation: shimmer 1.5s infinite linear;
    border-radius: 8px; height: 14px;
}
.skeleton-lg { height: 28px; width: 60%; }
.skeleton-md { height: 14px; width: 40%; margin-top: 8px; }

/* ── Toast ── */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
@keyframes toastIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes toastOut { from{opacity:1} to{opacity:0;transform:translateY(8px)} }
.toast-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600;
    border: 1px solid;
    box-shadow: var(--theme-shadow-md);
    animation: toastIn .28s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.toast-item i { flex-shrink: 0; font-size: 1.05rem; opacity: 0.95; }
.toast-item.removing { animation: toastOut .28s ease forwards; }
.toast-info {
    background: var(--notify-info-bg);
    border-color: var(--notify-info-border);
    color: var(--notify-info-text);
}
.toast-success {
    background: var(--notify-success-bg);
    border-color: var(--notify-success-border);
    color: var(--notify-success-text);
}
.toast-error {
    background: var(--notify-danger-bg);
    border-color: var(--notify-danger-border);
    color: var(--notify-danger-text);
}
.toast-mutasi-custom {
    align-items: flex-start;
    cursor: pointer;
    background: var(--theme-bg-primary) !important;
    border: 1px solid var(--mutasi-toast-border, var(--primary));
    color: var(--mutasi-toast-color, var(--theme-text-primary));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--mutasi-toast-shadow, #108EE9) 35%, transparent);
}
.toast-mutasi-copy {
    min-width: 0;
    line-height: 1.45;
    font-weight: 500;
}
.toast-mutasi-copy strong {
    display: block;
    font-size: 12px;
    margin-bottom: 2px;
}
.toast-mutasi-msg {
    display: block;
    font-size: 12px;
    font-weight: 600;
}
.toast-mutasi-msg a {
    color: inherit;
    text-decoration: underline;
}
[data-theme="dark"] .toast-mutasi-custom {
    background: #16233d !important;
    color: #edf3ff !important;
    border-color: rgba(148, 176, 230, .28) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .48) !important;
}
[data-theme="dark"] .toast-mutasi-custom i { color: #9eb6e6; }
[data-theme="dark"] .toast-mutasi-copy strong { color: #edf3ff; }
[data-theme="dark"] .toast-mutasi-msg { color: #c5d4ee; }
[data-theme="dark"] .toast-mutasi-custom[data-dk="D"] { border-color: rgba(251, 113, 133, .55) !important; }
[data-theme="dark"] .toast-mutasi-custom[data-dk="D"] i { color: #fda4af; }
[data-theme="dark"] .toast-mutasi-custom[data-dk="K"] { border-color: rgba(52, 211, 153, .5) !important; }
[data-theme="dark"] .toast-mutasi-custom[data-dk="K"] i { color: #6ee7b7; }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: var(--theme-overlay); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal-backdrop.open { display: flex; }
@keyframes modalIn { from{opacity:0;transform:scale(.96) translateY(8px)} to{opacity:1;transform:none} }
.modal-panel { background: var(--theme-bg-primary); border: 1px solid var(--theme-border-light); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 480px; box-shadow: var(--theme-shadow-lg); animation: modalIn .2s ease; }
.modal-panel.mutasi-filter-panel {
    max-width: min(920px, calc(100vw - 40px));
    width: 100%;
    padding: 32px 40px 36px;
    max-height: min(92dvh, 880px);
    overflow-y: auto;
    border-color: var(--theme-border-color);
    box-shadow: var(--theme-shadow-lg);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--theme-text-primary); margin-bottom: 20px; }

/* ── Login ── */
.login-page-body {
    margin: 0;
    background: #070b1c;
    color: #f4f7ff;
    font-family: Orbitron, sans-serif;
}
.login-page {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 18px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 46% 58% at 30% 50%, rgba(36, 92, 210, 0.28), transparent 68%),
        radial-gradient(ellipse 30% 24% at 78% 80%, rgba(40, 70, 160, 0.12), transparent 72%),
        linear-gradient(180deg, #10183a 0%, #0a1024 42%, #070b18 100%) !important;
}
.tech-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.tech-glow,
.tech-dots {
    position: absolute;
    inset: 0;
}
.tech-glow {
    background: radial-gradient(circle at 30% 50%, rgba(48, 120, 255, 0.22), transparent 26%);
}
.tech-dots {
    background-image: radial-gradient(circle, rgba(186, 208, 255, 0.38) 0.8px, transparent 1.1px);
    background-size: 18px 18px;
    opacity: 0.7;
}
.login-stage {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 48px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 36px;
    align-items: center;
}
.tech-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}
.tech-orb {
    position: relative;
    width: min(460px, 100%);
    aspect-ratio: 1;
}
.tech-orb::before {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(120, 180, 255, 0.55) 0%, rgba(40, 110, 255, 0.28) 36%, rgba(16, 40, 120, 0.05) 62%, transparent 72%);
    box-shadow: 0 0 40px rgba(40, 110, 255, 0.35);
    filter: blur(1px);
}
.tech-circuit {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}
.tech-tag,
.tech-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-family: Orbitron, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(198, 214, 245, 0.82);
}
.tech-tag {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-shadow: 0 0 18px rgba(80, 140, 255, 0.35);
}
.tech-status {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(140, 176, 240, 0.35);
    background: rgba(8, 14, 36, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 9px;
    letter-spacing: 0.12em;
}
.tech-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #5ef0c8;
    box-shadow:
        0 0 0 4px rgba(94, 240, 200, 0.16),
        0 0 12px rgba(94, 240, 200, 0.85),
        0 0 22px rgba(70, 160, 255, 0.45);
}
.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(4, 7, 18, 0.5) 100%);
}
.digi-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    background: linear-gradient(180deg, rgba(24, 36, 78, 0.96) 0%, rgba(12, 18, 46, 0.98) 100%);
    border: 1px solid rgba(186, 206, 255, 0.22);
    border-radius: 28px;
    padding: 42px 36px 26px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -20px 40px rgba(4, 8, 24, 0.28),
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 40px 90px rgba(2, 6, 20, 0.55),
        0 0 60px rgba(50, 90, 190, 0.22);
}
.digi-card::before {
    content: "";
    position: absolute;
    inset: -48px -36px;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 40%, rgba(70, 120, 230, 0.28), transparent 68%);
    filter: blur(6px);
    pointer-events: none;
}
.digi-logo {
    margin: 0;
    font-family: Orbitron, sans-serif;
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    color: #f7f9ff;
}
.digi-kicker {
    margin: 14px 0 0;
    font-family: Orbitron, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a9b4d0;
}
.digi-title {
    margin: 32px 0 0;
    font-family: Orbitron, sans-serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    color: #f7f9ff;
}
.digi-lead {
    margin: 10px 0 0;
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.65;
    color: #9aa6c4;
}
.digi-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.digi-field { display: flex; flex-direction: column; gap: 8px; }
.digi-label {
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #e7ecf8;
}
.digi-input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(138, 162, 220, 0.55) !important;
    background: rgba(7, 12, 32, 0.45) !important;
    color: #f7f9ff !important;
    font-family: Orbitron, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: none;
}
.digi-input::placeholder { color: rgba(169, 180, 208, 0.7) !important; }
.digi-input:focus {
    outline: none;
    border-color: #7ea2ff !important;
    box-shadow: 0 0 0 3px rgba(90, 130, 255, 0.18);
    background: rgba(7, 12, 32, 0.7) !important;
}
.digi-input:-webkit-autofill,
.digi-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f7f9ff;
    caret-color: #f7f9ff;
    transition: background-color 9999s ease-out;
    box-shadow: 0 0 0 1000px #121a3c inset;
}
.digi-error {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
    font-size: 13px;
    line-height: 1.45;
}
.digi-submit {
    margin-top: 6px;
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: #fff;
    font-family: Orbitron, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #3f86f8 0%, #6d7ef2 34%, #c57aa8 70%, #e8a184 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 24px rgba(40, 70, 180, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.25);
    transition: filter 0.15s ease, transform 0.15s ease;
}
.digi-submit:hover { filter: brightness(1.06); }
.digi-submit:active { transform: translateY(1px); }
.digi-submit:disabled { opacity: 0.65; cursor: wait; }
.digi-foot {
    margin: 28px 0 4px;
    text-align: center;
    font-family: Orbitron, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7d8aab;
}

@media (max-width: 900px) {
    .tech-panel { display: none; }
    .login-stage {
        grid-template-columns: 1fr;
        width: min(440px, calc(100% - 32px));
    }
}

@media (max-width: 480px) {
    .digi-card {
        padding: 32px 22px 22px;
        border-radius: 24px;
    }
    .digi-logo { font-size: 42px; letter-spacing: 0.1em; }
    .digi-title { font-size: 22px; margin-top: 24px; }
    .digi-kicker { letter-spacing: 0.12em; font-size: 10px; }
    .digi-foot { letter-spacing: 0.06em; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,0.4); border-radius: 99px; }

/* ── Responsive ── */
@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        height: 100vh;
        height: 100dvh;
    }
    .app-main {
        margin-left: var(--sidebar-w);
        width: calc(100% - var(--sidebar-w));
    }
    .sidebar-overlay { display: none !important; }
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--theme-shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

    .topbar {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
        padding:
            max(10px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            0
            max(12px, env(safe-area-inset-left));
        min-height: 0;
    }
    .topbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .menu-toggle {
        grid-column: 1;
        grid-row: 1;
    }
    .topbar-banners {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 8px 0 4px;
    }
    .topbar-banners:empty {
        display: none;
        padding: 0;
    }
    .page-mutasi .topbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px 8px;
        padding:
            max(10px, env(safe-area-inset-top))
            max(12px, env(safe-area-inset-right))
            12px
            max(12px, env(safe-area-inset-left));
        min-height: 56px;
    }
    .page-mutasi .menu-toggle {
        grid-column: unset;
        grid-row: unset;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 0;
    }
    .page-mutasi .topbar-mutasi-context {
        flex: 0 0 auto;
        gap: 0;
    }
    .page-mutasi .topbar-mutasi-heading { display: none; }
    .page-mutasi .topbar-mutasi-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex: 0 0 auto;
        grid-column: unset;
        grid-row: unset;
        min-width: 0;
        padding: 3px;
        border-radius: 11px;
    }
    .page-mutasi .topbar-mutasi-btn {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
        flex: 0 0 auto;
        justify-content: center;
        border-radius: var(--radius-sm);
    }
    .page-mutasi .topbar-mutasi-btn i {
        margin: 0;
        font-size: 1.05rem;
    }
    .page-mutasi .topbar-right {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        flex: 0 0 auto;
        grid-column: unset;
        grid-row: unset;
    }
    .page-mutasi .user-chip {
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        border: none;
    }
    .page-mutasi .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .page-mutasi .theme-toggle {
        width: 40px;
        height: 40px;
    }
    .page-mutasi .btn-logout {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    .topbar-right {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-left: 0;
        gap: 8px;
    }
    .topbar-right .sync-badge { display: none; }
    .topbar-right .clock-badge { display: none; }
    .user-chip {
        border-left: none;
        padding: 0;
        margin: 0;
    }

    .main-content-area {
        padding: 16px max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    }
    .welcome-banner {
        padding: 1rem 1.1rem;
        margin-bottom: 1rem;
    }
    .welcome-banner h2 { font-size: 1.1rem; }
    .welcome-banner-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .welcome-meta { width: 100%; }
    .hero-pill { max-width: 100%; }

    .page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 1rem;
    }
    .page-head-stat { text-align: left; width: 100%; }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    .toolbar-page { margin-bottom: 1rem; }
    .toolbar .search-wrap { min-width: 0; width: 100%; flex: none; }
    .toolbar-actions {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .toolbar-actions .btn { flex: none; width: 100%; min-height: 42px; }

    .section-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .section-header-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .section-header-actions .btn { flex: 1; }
    .accounts-grid { grid-template-columns: 1fr; gap: 14px; }
    .robot-intro-body { flex-direction: column; gap: 16px; }
    .data-table th,
    .data-table td { padding: 10px 12px; font-size: 12px; }
}

/* ── Utilities ── */
.hidden { display: none !important; }
.text-green { color: #16a34a !important; }
.text-red { color: #dc2626 !important; }
.text-primary { color: var(--primary) !important; }
.text-white { color: var(--theme-text-primary) !important; }
.text-muted { color: var(--theme-text-muted) !important; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── DANA Robot V2 / WebAdmin ── */
.robot-intro-card { overflow: hidden; }
.robot-intro-body { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.robot-intro-title { margin:0 0 8px; font-size:18px; display:flex; align-items:center; gap:9px; }
.robot-intro-title i { color: var(--primary); }
.robot-intro-text { max-width:760px; line-height:1.65; margin:0; }
.robot-install-steps { margin:10px 0 0 18px; padding:0; font-size:12px; line-height:1.75; }

.account-card.robot-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.robot-card-body {
    padding: 1.15rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.robot-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.robot-card-identity {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
    flex: 1;
}
.robot-card-title-wrap { min-width: 0; flex: 1; }
.robot-avatar { background:var(--theme-bg-secondary); color:var(--theme-text-primary); border:1px solid var(--theme-border-light); }
[data-theme="dark"] .robot-avatar { background:var(--theme-bg-tertiary); border-color:var(--theme-border-light); }
.robot-domain {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    text-decoration: none;
}
.robot-domain:hover { text-decoration: underline; opacity: 0.9; }
.robot-owner {
    margin-top: 5px;
    color: var(--theme-text-muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.robot-mode-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    line-height: 1;
}
.robot-mode-badge.is-monitor { color:#1d4ed8; background:#eff6ff; border-color:#bfdbfe; }
.robot-mode-badge.is-auto { color:#4338ca; background:#eef2ff; border-color:#c7d2fe; }
.robot-mode-badge.is-disabled { color:#64748b; background:var(--theme-bg-secondary); border-color:var(--theme-border-light); }
[data-theme="dark"] .robot-mode-badge.is-monitor { color:#93c5fd; background:rgba(59,130,246,0.12); border-color:rgba(96,165,250,0.25); }
[data-theme="dark"] .robot-mode-badge.is-auto { color:#c4b5fd; background:rgba(99,102,241,0.15); border-color:rgba(129,140,248,0.3); }
[data-theme="dark"] .robot-mode-badge.is-disabled { color:#94a3b8; background:rgba(51,65,85,0.5); border-color:rgba(148,163,184,0.2); }

.robot-state {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}
.robot-state-text { min-width: 0; flex: 1; }
.robot-state-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1rem;
}
.robot-state strong, .robot-state small { display:block; }
.robot-state strong { font-size: 12px; font-weight: 700; line-height: 1.3; }
.robot-state small { font-size: 11px; line-height: 1.45; margin-top: 3px; opacity: 0.88; }

.robot-state-ready { color:#166534; background:#f0fdf4; border-color:#bbf7d0; }
.robot-state-ready .robot-state-icon { background:#dcfce7; color:#16a34a; }
.robot-state-online { color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.robot-state-online .robot-state-icon { background:#dbeafe; color:#2563eb; }
.robot-state-warning { color:#92400e; background:#fffbeb; border-color:#fde68a; }
.robot-state-warning .robot-state-icon { background:#fef3c7; color:#d97706; }
.robot-state-error { color:#991b1b; background:#fef2f2; border-color:#fecaca; }
.robot-state-error .robot-state-icon { background:#fee2e2; color:#dc2626; }
.robot-state-offline, .robot-state-unpaired {
    color: var(--theme-text-secondary);
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border-light);
}
.robot-state-offline .robot-state-icon, .robot-state-unpaired .robot-state-icon {
    background: var(--theme-bg-tertiary);
    color: var(--theme-text-muted);
}
[data-theme="dark"] .robot-state-ready { color:#86efac; background:rgba(22,163,74,0.12); border-color:rgba(34,197,94,0.25); }
[data-theme="dark"] .robot-state-ready .robot-state-icon { background:rgba(22,163,74,0.2); }
[data-theme="dark"] .robot-state-online { color:#93c5fd; background:rgba(59,130,246,0.12); border-color:rgba(96,165,250,0.25); }
[data-theme="dark"] .robot-state-online .robot-state-icon { background:rgba(59,130,246,0.2); }
[data-theme="dark"] .robot-state-warning { color:#fcd34d; background:rgba(217,119,6,0.12); border-color:rgba(251,191,36,0.25); }
[data-theme="dark"] .robot-state-warning .robot-state-icon { background:rgba(217,119,6,0.2); }
[data-theme="dark"] .robot-state-error { color:#fca5a5; background:rgba(220,38,38,0.12); border-color:rgba(248,113,113,0.25); }
[data-theme="dark"] .robot-state-error .robot-state-icon { background:rgba(220,38,38,0.2); }
[data-theme="dark"] .robot-state-offline,
[data-theme="dark"] .robot-state-unpaired {
    color: var(--theme-text-secondary);
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--theme-border-light);
}
[data-theme="dark"] .robot-state-offline .robot-state-icon,
[data-theme="dark"] .robot-state-unpaired .robot-state-icon {
    background: rgba(51, 65, 85, 0.8);
    color: #94a3b8;
}

.robot-alert {
    display:flex; gap:8px; align-items:flex-start;
    color:#92400e; background:#fffbeb; border:1px solid #fde68a;
    border-radius: var(--radius-sm); padding:9px 10px; font-size:11px; line-height:1.45;
}
[data-theme="dark"] .robot-alert { color:#fcd34d; background:rgba(217,119,6,0.1); border-color:rgba(251,191,36,0.25); }

.robot-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.robot-meta-cell {
    min-width: 0;
    padding: 8px 10px;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-light);
    border-radius: var(--radius-sm);
}
.robot-meta-cell span {
    display: block;
    color: var(--theme-text-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.robot-meta-cell strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--theme-text-primary);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.robot-meta-cell:nth-child(1) strong,
.robot-meta-cell:nth-child(2) strong {
    font-size: 10px;
    font-weight: 600;
}

.robot-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 6px;
    align-items: stretch;
    padding: 0.7rem 1rem 0.85rem;
    border-top: 1px solid var(--theme-border-light);
    background: var(--theme-bg-secondary);
    margin-top: auto;
}
.robot-card-actions .btn {
    min-height: 36px;
    padding: 8px 10px !important;
    font-size: 11px !important;
}
.robot-card-actions .btn-icon {
    width: 36px;
    min-width: 36px;
    padding: 0 !important;
}
.robot-card-actions .btn-pair { grid-column: span 1; }

.pair-code-panel { text-align:center; }
.pair-code-value { margin:22px 0 8px; padding:18px; border-radius:var(--radius); background:var(--theme-bg-secondary); color:var(--theme-text-primary); font-size:40px; font-weight:700; letter-spacing:.22em; text-indent:.22em; font-variant-numeric:tabular-nums; border:1px solid var(--theme-border-light); box-shadow:none; }
.pair-code-countdown { font-size:12px; font-weight:700; }
.robot-settings-panel { max-height:90vh; overflow-y:auto; }
.robot-settings-head, .robot-mapping-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.robot-account-context { display:flex; align-items:center; gap:10px; margin:14px 0 16px; padding:11px 12px; border:1px solid var(--theme-border); border-radius:12px; background:var(--theme-bg-secondary); }
.robot-account-context-icon { width:34px; height:34px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; flex-shrink:0; background:var(--theme-bg-secondary); color:var(--theme-text-primary); border:1px solid var(--theme-border-light); }
.robot-account-context strong, .robot-account-context small { display:block; }
.robot-account-context strong { font-size:12px; }
.robot-account-context small { margin-top:3px; color:var(--theme-text-muted); font-size:10px; }
.robot-mapping-item.is-current { border-color:#818cf8; box-shadow:0 0 0 3px rgba(99,102,241,.08); }
.robot-mode-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.robot-mode-option { display:flex; align-items:flex-start; gap:11px; border:1px solid var(--theme-border); border-radius:14px; padding:14px; cursor:pointer; transition:.18s ease; }
.robot-mode-option:hover { border-color:#a5b4fc; transform:translateY(-1px); }
.robot-mode-option:has(input:checked) { border-color:var(--theme-text-primary); box-shadow:none; background:var(--theme-bg-secondary); }
.robot-mode-option input { margin-top:6px; }
.robot-mode-icon { width:34px; height:34px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; background:var(--theme-bg-secondary); color:var(--theme-text-primary); border:1px solid var(--theme-border-light); flex-shrink:0; }
.robot-mode-auto .robot-mode-icon { background:var(--theme-bg-secondary); color:#ea580c; border-color:var(--theme-border-light); }
.robot-mode-option strong, .robot-mode-option small { display:block; }
.robot-mode-option strong { font-size:13px; }
.robot-mode-option small { margin-top:4px; color:var(--theme-text-muted); font-size:10px; line-height:1.5; }
.robot-check-row { display:flex; gap:10px; align-items:flex-start; padding:11px 12px; border:1px solid var(--theme-border); border-radius:12px; }
.robot-check-row input { margin-top:4px; }
.robot-check-row strong, .robot-check-row small { display:block; }
.robot-check-row strong { font-size:12px; }
.robot-check-row small { color:var(--theme-text-muted); font-size:10px; margin-top:3px; }
.robot-settings-divider { height:1px; background:var(--theme-border); margin:22px 0; }
.robot-mapping-head h4, .robot-mapping-head p { margin:0; }
.robot-mapping-head h4 { font-size:14px; }
.robot-mapping-head p { font-size:11px; margin-top:4px; }
.robot-mapping-form { display:grid; grid-template-columns:1fr 1fr auto; gap:9px; margin-top:12px; }
.robot-mapping-list, .robot-event-list { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.robot-mapping-item { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid var(--theme-border); border-radius:11px; padding:10px 11px; }
.robot-mapping-item strong, .robot-mapping-item span { display:block; }
.robot-mapping-item strong { font-size:12px; }
.robot-mapping-item span { margin-top:3px; color:var(--theme-text-muted); font-size:10px; }
.robot-empty-inline { color:var(--theme-text-muted); font-size:11px; padding:12px; text-align:center; border:1px dashed var(--theme-border); border-radius:11px; }
.robot-event-item { display:flex; align-items:flex-start; gap:9px; padding:8px 4px; border-bottom:1px solid var(--theme-border); }
.robot-event-item:last-child { border-bottom:0; }
.robot-event-dot { width:8px; height:8px; border-radius:50%; background:var(--theme-text-muted); margin-top:5px; flex-shrink:0; }
.robot-event-warning .robot-event-dot { background:#f59e0b; }
.robot-event-error .robot-event-dot { background:#ef4444; }
.robot-event-item strong, .robot-event-item small { display:block; }
.robot-event-item strong { font-size:11px; font-weight:600; }
.robot-event-item small { margin-top:3px; color:var(--theme-text-muted); font-size:9px; }
.btn-danger { background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
.btn-danger:hover { background:#ffe4e6; color:#9f1239; }

@media (max-width: 720px) {
    .robot-intro-body { flex-direction:column; }
    .robot-mode-grid, .robot-mapping-form { grid-template-columns:1fr; }
    .robot-card-top { flex-direction:column; align-items: stretch; }
    .robot-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .robot-card-actions {
        grid-template-columns: 1fr 1fr;
    }
    .robot-card-actions .btn-pair { grid-column: span 2; }
    .robot-card-actions .btn:nth-child(3),
    .robot-card-actions .btn:nth-child(4) { grid-column: span 1; }
    .pair-code-value { font-size:34px; }
}

/* DANA Robot V2 v1.0.5 diagnostics */
#robot-match-diagnostics .robot-event-item small{display:block;line-height:1.45;margin-top:3px;word-break:break-word}

/* DANA Robot Account Button Fix v1.0.20 */

/* ── WebAdmin page ── */
.page-webadmin .section-header { align-items: center; flex-wrap: nowrap; gap: 12px; }
.page-webadmin .section-header-text { min-width: 0; flex: 1 1 auto; }
.page-webadmin #webadmin-grid.accounts-grid { grid-template-columns: 1fr; gap: 12px; }
.page-webadmin .robot-meta-cell strong {
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
    font-size: 11px;
}
.page-webadmin .robot-meta-grid { gap: 8px; }
.page-webadmin .robot-card-actions .btn { font-size: 12px !important; min-height: 36px; }
@media (min-width: 992px) {
    .page-webadmin .robot-meta-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .page-webadmin .robot-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Admin Deposit page ── */
.page-deposits .section-header { align-items: center; flex-wrap: nowrap; gap: 12px; }
.page-deposits .section-header-text { min-width: 0; flex: 1 1 auto; }
.page-deposits .section-header-actions {
    display: flex !important;
    flex: 0 0 auto;
    width: auto !important;
}
.page-deposits .deposits-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}
.page-deposits .deposits-filter-select {
    width: auto !important;
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 160px;
    font-size: 12px;
    min-height: 36px;
}
.page-deposits .deposits-refresh-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 12px;
    min-height: 36px;
}
.page-deposits .deposit-td-mobile-meta { display: none; }
.page-deposits .deposits-data-table th { font-size: 10px; padding: 10px 12px; }
.page-deposits .deposits-data-table td { font-size: 12px; padding: 10px 12px; }
.page-deposits .deposit-td-admin,
.page-deposits .deposit-td-webadmin {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}
@media (max-width: 720px) {
    .page-deposits .section-header { flex-wrap: wrap; }
    .page-deposits .deposits-toolbar { width: 100%; }
    .page-deposits .deposits-filter-select { flex: 1; max-width: none; }
    .page-deposits .deposits-data-table thead { display: none; }
    .page-deposits .deposits-data-table,
    .page-deposits .deposits-data-table tbody { display: block; width: 100%; }
    .page-deposits .deposits-data-table tbody tr.deposit-data-row {
        display: block;
        padding: 10px 12px;
        margin-bottom: 8px;
        border: 1px solid var(--theme-border-light);
        border-radius: 10px;
        background: var(--theme-bg-primary);
    }
    .page-deposits .deposits-data-table tbody tr.deposit-data-row td {
        display: block;
        padding: 3px 0;
        border: none;
        text-align: left !important;
        max-width: none;
    }
    .page-deposits .deposit-td-admin,
    .page-deposits .deposit-td-webadmin,
    .page-deposits .deposit-td-mutasi { display: none !important; }
    .page-deposits .deposit-td-mobile-meta {
        display: block !important;
        margin-top: 6px;
        padding-top: 8px !important;
        border-top: 1px dashed var(--theme-border-light);
    }
    .page-deposits .deposit-mobile-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 10px;
        font-size: 10px;
    }
}

/* ── Dashboard page polish ── */
.page-dashboard .main-content-area {
    background: var(--theme-bg-page);
}
[data-theme="dark"] .page-dashboard .main-content-area {
    background: var(--theme-bg-page);
}

@media (max-width: 640px) {
    .user-chip .user-info { display: none; }
    .btn-logout-text { display: none; }
    .btn-logout { padding: 7px 10px; }
    .theme-toggle { width: 34px; height: 34px; }
    .user-avatar { width: 32px; height: 32px; font-size: 11px; }
    .account-actions { grid-template-columns: 1fr 1fr; }
    .account-actions .btn-account-robot { grid-column: span 2; }
    .account-actions .btn:nth-child(3) { grid-column: span 1; }
    .account-balance { font-size: 1.45rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 22px; }
    .section-card-header { padding: 1rem 1.1rem; flex-wrap: wrap; gap: 8px; }
    .section-card-body { padding: 0.85rem 1rem; }
    .modal-panel { padding: 20px 18px; max-height: min(92dvh, 640px); overflow-y: auto; }
    .modal-panel.mutasi-filter-panel {
        max-width: calc(100vw - 32px);
        padding: 22px 20px 24px;
        max-height: min(92dvh, 880px);
    }
    .mutasi-filter-modal-head .modal-title { font-size: 1.2rem; }
    .mutasi-filter-modal-sub { font-size: 13px; }
    .page-head-title { font-size: 1.15rem; }
}

/* ── Settings / Notifikasi ── */
.page-settings .main-content-area { padding-top: 1.15rem; }
.page-settings .section-header { margin-bottom: 1rem; align-items: center; }
.page-settings .section-header-text h2 { font-size: 1.1rem; }
.page-settings .settings-layout { max-width: none; }
.page-settings .settings-main-card > .section-card-body { padding: 0; }
.page-settings .settings-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 0;
}
.page-settings .settings-banners-pane {
    padding: 1rem 1.15rem;
    min-width: 0;
    border-right: 1px solid var(--theme-border-light);
}
.page-settings .settings-toast-pane {
    padding: 1rem 1.1rem;
    background: var(--theme-bg-secondary);
}
.page-settings .settings-pane-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.page-settings .settings-pane-desc {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--theme-text-muted);
    line-height: 1.4;
}
.page-settings .settings-banners-table { table-layout: fixed; width: 100%; }
.page-settings .settings-banners-table th { font-size: 10px; padding: 8px 10px; }
.page-settings .settings-banners-table td { font-size: 12px; padding: 9px 10px; vertical-align: middle; }
.page-settings .settings-banners-table .col-type { width: 88px; }
.page-settings .settings-banners-table .col-status { width: 82px; }
.page-settings .settings-banners-table .col-actions { width: 96px; min-width: 96px; }
.page-settings .settings-banners-table .table-actions {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
}
.page-settings .settings-banners-table .table-actions .btn {
    flex: 0 0 auto;
    min-width: 34px;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-settings .settings-banner-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-settings .settings-banner-message {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-settings .settings-toast-form { display: flex; flex-direction: column; gap: 10px; }
.page-settings .settings-color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.page-settings .settings-toast-form .form-label { margin-bottom: 4px; font-size: 10px; }
.page-settings .settings-toast-form .form-input { font-size: 12px; padding: 8px 10px; }
.page-settings .settings-toast-save { width: 100%; justify-content: center; margin-top: 4px; }
@media (max-width: 960px) {
    .page-settings .settings-split { grid-template-columns: 1fr; }
    .page-settings .settings-banners-pane { border-right: none; border-bottom: 1px solid var(--theme-border-light); }
    .page-settings .settings-toast-pane { background: var(--theme-bg-primary); }
}
@media (max-width: 720px) {
    .page-settings .settings-banners-table thead { display: none; }
    .page-settings .settings-banners-table,
    .page-settings .settings-banners-table tbody { display: block; width: 100%; }
    .page-settings .settings-banners-table tbody tr {
        display: block;
        padding: 10px 12px;
        margin-bottom: 8px;
        border: 1px solid var(--theme-border-light);
        border-radius: 10px;
    }
    .page-settings .settings-banners-table tbody tr td {
        display: block;
        padding: 3px 0;
        border: none;
        text-align: left !important;
        white-space: normal;
    }
    .page-settings .settings-banner-message { white-space: normal; }
}

.settings-hint {
    font-size: 13px;
    color: var(--theme-text-muted);
    line-height: 1.55;
    margin: 0 0 14px;
}
.settings-hint code {
    font-size: 11px;
    background: var(--theme-bg-secondary);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid var(--theme-border-light);
}
.form-input-color { height: 42px; padding: 4px 6px; cursor: pointer; }
.table-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.users-filter-select { width: 160px; flex-shrink: 0; }
.toolbar-meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-text-muted);
    white-space: nowrap;
    margin-left: auto;
    padding: 0 4px;
}
@media (max-width: 720px) {
    .users-filter-select { width: 100%; }
    .toolbar-meta { margin-left: 0; width: 100%; text-align: right; }
}
/* ── Download App ── */
.page-downloads .downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.download-desc {
    font-size: 14px;
    color: var(--theme-text-secondary);
    line-height: 1.55;
    margin: 0 0 12px;
}
.download-steps {
    margin: 0 0 16px;
    padding-left: 1.15rem;
    font-size: 13px;
    color: var(--theme-text-muted);
    line-height: 1.55;
}
.download-steps code {
    font-size: 11px;
    background: var(--theme-bg-secondary);
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid var(--theme-border-light);
}
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.download-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }
.download-meta {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--theme-text-muted);
    line-height: 1.45;
}

/* Tombol lihat PWA (Download App) */
.download-pwa-preview-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--theme-border-light);
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.download-pwa-preview-btn:hover {
    color: var(--primary);
    border-color: var(--primary-soft-border);
    background: var(--primary-soft);
}
.download-pwa-preview-btn i { font-size: 1.05rem; line-height: 1; }

@media (max-width: 640px) {
    .page-downloads .downloads-grid { grid-template-columns: 1fr; }
    .download-actions { flex-direction: column; }
    .download-actions .btn { width: 100%; min-width: 0; }
}

/* ── Light / Dark theme polish ── */
.sidebar,
.topbar,
.section-card,
.account-card,
.toolbar,
.modal-panel,
.welcome-banner,
.hero-pill {
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.18s ease;
}
.data-table thead {
    background: var(--theme-bg-secondary);
}
.data-table th {
    color: var(--theme-text-muted);
    border-bottom-color: var(--theme-border-light);
}
.data-table td {
    color: var(--theme-text-secondary);
    border-bottom-color: var(--theme-border-color);
}
.data-table tbody tr:hover {
    background: var(--theme-bg-secondary);
}
.section-card {
    background: var(--theme-bg-primary);
    border-color: var(--theme-border-color);
}
.section-card-header {
    border-bottom-color: var(--theme-border-light);
}
.toolbar .search-wrap .form-input {
    background: var(--theme-input-bg) !important;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
}
[data-theme="dark"] .sidebar-nav {
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

/* ── Mutasi Liquid Glass v1.0.27 ── */
.clock-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
#realtime-clock-date {
    color: var(--theme-text-muted);
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}


/* Token renewal notice — account management */
.token-admin-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
    padding: 15px 16px;
    border: 1px solid var(--notify-warning-border);
    border-radius: 14px;
    color: var(--notify-warning-text);
    background:
        radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.13), transparent 38%),
        var(--notify-warning-bg);
    box-shadow: var(--theme-shadow-sm);
}

.token-admin-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--notify-warning-text);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--notify-warning-border);
    font-size: 1.1rem;
}

.token-admin-alert-copy { min-width: 0; }

.token-admin-alert-copy > span {
    display: block;
    margin-bottom: 3px;
    color: var(--theme-text-primary);
    font-size: 13px;
    font-weight: 800;
}

.token-admin-alert-copy p {
    margin: 0;
    color: var(--notify-warning-text);
    font-size: 12px;
    line-height: 1.5;
}

.account-row-attention td {
    background: var(--notify-warning-bg);
}

.account-renew-label {
    display: block;
    margin-top: 3px;
    color: var(--notify-warning-text);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
}

.account-renew-label i { margin-right: 3px; }

@media (max-width: 680px) {
    .token-admin-alert {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .token-admin-alert .btn {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* ── Mutasi Copy Queue v1.0.91 ── */
.topbar-mutasi-btn.is-copy-mutation {
    position: relative;
    background: rgba(37, 99, 235, 0.11);
    color: #1d4ed8;
}
.topbar-mutasi-btn.is-copy-mutation:hover {
    background: rgba(37, 99, 235, 0.19);
    color: #1e40af;
}
[data-theme="dark"] .topbar-mutasi-btn.is-copy-mutation {
    color: #93c5fd;
}
.topbar-mutasi-btn.is-copy-again {
    background: rgba(124, 58, 237, 0.10);
    color: #6d28d9;
}
.topbar-mutasi-btn.is-copy-again:hover {
    background: rgba(124, 58, 237, 0.18);
    color: #5b21b6;
}
[data-theme="dark"] .topbar-mutasi-btn.is-copy-again {
    color: #c4b5fd;
}
.mutasi-copy-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.14);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.topbar-mutasi-btn:disabled .mutasi-copy-counter {
    background: rgba(148, 163, 184, 0.16);
}
.page-mutasi .mutasi-copy-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    min-width: 0;
    font-size: 9px;
    line-height: 1.1;
    white-space: nowrap;
}
.page-mutasi .mutasi-copy-ref {
    color: var(--theme-text-muted);
    font-weight: 700;
    letter-spacing: 0.01em;
}
.page-mutasi .mutasi-copy-badge {
    display: inline-flex;
    align-items: center;
    max-width: 88px;
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
}
.page-mutasi .mutasi-copy-badge.is-new {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.09);
    color: #1d4ed8;
}
.page-mutasi .mutasi-copy-badge.is-copied {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(22, 163, 74, 0.09);
    color: #15803d;
}
.page-mutasi .mutasi-copy-badge.is-legacy {
    border-color: rgba(148, 163, 184, 0.20);
    background: rgba(148, 163, 184, 0.09);
    color: var(--theme-text-muted);
}
.page-mutasi .mutasi-copy-badge.is-waiting-api {
    border-color: rgba(217, 119, 6, 0.22);
    background: rgba(217, 119, 6, 0.09);
    color: #b45309;
}
[data-theme="dark"] .page-mutasi .mutasi-copy-badge.is-new { color: #93c5fd; }
[data-theme="dark"] .page-mutasi .mutasi-copy-badge.is-copied { color: #86efac; }
[data-theme="dark"] .page-mutasi .mutasi-copy-badge.is-waiting-api { color: #fcd34d; }

@media (max-width: 991px) {
    .mutasi-copy-counter {
        position: absolute;
        top: 1px;
        right: 1px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        font-size: 8px;
        box-shadow: 0 0 0 2px var(--theme-bg-secondary);
    }
}
@media (max-width: 767px) {
    .page-mutasi .mutasi-copy-meta {
        margin-top: 3px;
        font-size: 9px;
    }
}

.page-player-audit .audit-stats .stat-value { font-size: 22px; }
.page-player-audit .audit-stat-money { font-size: 18px; letter-spacing: -0.03em; }
.page-player-audit .audit-note { margin: 0; color: var(--theme-text-secondary); font-size: 13px; line-height: 1.55; }
.page-player-audit .audit-note-card { margin-bottom: 1.25rem; }
.page-player-audit .section-header { align-items: flex-start; }
.page-player-audit .section-header-actions { display: flex; width: auto; grid-template-columns: none; }
.page-player-audit .audit-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-player-audit .audit-filter-select { min-width: 160px; height: 36px; }
.page-player-audit .audit-filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.page-player-audit .audit-filter {
    border: 1px solid var(--theme-border-color);
    background: var(--theme-bg-primary);
    color: var(--theme-text-secondary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.page-player-audit .audit-filter.is-active {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}
.page-player-audit .audit-table-wrap { padding: 0; overflow: auto; }
.page-player-audit .audit-detail-wrap { max-height: calc(100vh - 220px); }
.page-player-audit .audit-day-table tbody tr { cursor: pointer; }
.page-player-audit .audit-sub { color: var(--theme-text-muted); font-size: 11px; margin-top: 2px; }
.page-player-audit .audit-note-cell { min-width: 220px; max-width: 360px; }
.page-player-audit .audit-detail-row.is-gap { background: rgba(220, 38, 38, 0.04); }
.page-player-audit .audit-detail-row.is-pair td:first-child { box-shadow: inset 3px 0 0 #d97706; }
.page-player-audit .audit-empty { padding: 28px 18px; color: var(--theme-text-muted); }
.page-player-audit .data-table .badge { margin-right: 4px; }
.page-player-audit .data-table thead th { position: sticky; top: 0; z-index: 1; background: var(--theme-bg-secondary); }
@media (max-width: 767px) {
    .page-player-audit .audit-detail-wrap { max-height: none; }
    .page-player-audit .audit-note-cell { min-width: 180px; }
}

/* ── DIGI reference shell ── */
[data-theme="dark"] body {
    background:
        radial-gradient(ellipse at 18% 0%, rgba(36, 72, 160, 0.28), transparent 42%),
        radial-gradient(ellipse at 100% 100%, rgba(48, 36, 110, 0.22), transparent 46%),
        var(--theme-bg-page) !important;
}
.brand-name,
.welcome-banner h2,
.section-header-text h2,
.page-head-title {
    font-family: Orbitron, 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.04em;
}
.brand-name { font-size: 15px; font-weight: 700; }
.brand-sub { letter-spacing: 0.12em; }
.brand-logo {
    background: linear-gradient(135deg, #1671e6, #5b41c9 70%, #7dd3fc);
    box-shadow: 0 0 18px rgba(57, 109, 255, 0.35);
}
[data-theme="dark"] .sidebar { box-shadow: inset -1px 0 0 rgba(110, 146, 223, 0.2); }
.nav-link.active {
    background: linear-gradient(115deg, #235ca8, #494794) !important;
}
[data-theme="dark"] .nav-link.active {
    box-shadow: 0 8px 22px rgba(36, 70, 160, 0.35);
}
.account-card,
.welcome-banner,
.stat-card,
.section-card,
.toolbar,
.page-head-stat {
    border-radius: 16px;
}
[data-theme="dark"] .account-card,
[data-theme="dark"] .welcome-banner,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .section-card,
[data-theme="dark"] .toolbar,
[data-theme="dark"] .page-head-stat {
    border-color: rgba(110, 146, 223, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.topbar-pill,
.hero-pill,
.user-chip {
    background: rgba(14, 24, 51, 0.72);
}
.profile-menu { position: relative; }
.profile-menu-trigger {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px 8px 5px 5px;
    border: 1px solid rgba(110, 146, 223, 0.38);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(28, 42, 78, 0.55), rgba(10, 16, 36, 0.92));
    box-shadow: inset 0 1px 0 rgba(180, 205, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.22);
    color: var(--theme-text-primary);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.profile-menu-trigger::-webkit-details-marker { display: none; }
.profile-menu-trigger:hover,
.profile-menu[open] .profile-menu-trigger {
    border-color: rgba(124, 170, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(180, 205, 255, 0.16), 0 0 0 3px rgba(77, 143, 255, 0.14);
}
.profile-menu .user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-family: Orbitron, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px rgba(8, 14, 32, 0.9), 0 0 0 3px rgba(124, 170, 255, 0.45);
}
.profile-menu .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding-right: 2px;
    line-height: 1.1;
}
.profile-menu .user-name {
    display: block;
    max-width: 148px;
    overflow: hidden;
    font-family: Orbitron, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.25;
    color: #f4f8ff;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.profile-menu .user-role {
    display: block;
    margin-top: 3px;
    max-width: 148px;
    overflow: hidden;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #8eaae0;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.profile-menu-caret {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(124, 170, 255, 0.12);
    font-size: 11px;
    color: #b9cff8;
    transition: transform 0.15s ease, background 0.15s ease;
}
.profile-menu[open] .profile-menu-caret {
    transform: rotate(180deg);
    background: rgba(124, 170, 255, 0.22);
}
.profile-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 248px;
    padding: 12px;
    border: 1px solid rgba(110, 146, 223, 0.4);
    border-radius: 18px;
    background: linear-gradient(180deg, #152240 0%, #0d1730 100%);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    z-index: 30;
}
.profile-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(110, 146, 223, 0.22);
}
.profile-menu-head strong,
.profile-menu-head small { display: block; }
.profile-menu-head strong {
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #edf3ff;
}
.profile-menu-head small {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #8fa6cb;
}
.profile-menu-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #ffd0d8 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
}
.profile-menu-logout:hover { background: rgba(239, 68, 68, 0.2); }

.sidebar-hamburger {
    margin-left: auto;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(110, 146, 223, 0.4);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(28, 42, 78, 0.7), rgba(10, 16, 36, 0.95));
    color: #d7e6ff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(180, 205, 255, 0.14);
}
.sidebar-hamburger:hover {
    border-color: rgba(124, 170, 255, 0.75);
    color: #fff;
}
.sidebar .brand-wrapper {
    padding: 6px;
    margin-bottom: 14px;
    border: 1px solid rgba(110, 146, 223, 0.22);
    border-radius: 16px;
    background: rgba(14, 24, 51, 0.55);
}
.sidebar .sidebar-nav { gap: 6px; }
.sidebar .sidebar-nav-label {
    padding: 0 8px;
    margin-bottom: 8px;
    color: #7f97c4;
}
.sidebar .nav-link {
    gap: 12px;
    min-height: 48px;
    padding: 7px 10px;
    border-radius: 14px;
}
.sidebar .nav-link i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 10px;
    background: rgba(124, 170, 255, 0.12);
    font-size: 15px;
    opacity: 1;
}
.sidebar .nav-link:hover {
    background: rgba(124, 170, 255, 0.1);
}
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    transform: none;
}
.sidebar .nav-link.active i {
    background: rgba(255, 255, 255, 0.16);
}
@media (min-width: 992px) {
    .sidebar,
    .app-main {
        transition: width 0.22s ease, min-width 0.22s ease, margin-left 0.22s ease;
    }
    .sidebar.collapsed {
        width: 72px;
        min-width: 72px;
        border-right: 1px solid rgba(160, 186, 230, 0.16) !important;
        background: var(--theme-bg-sidebar) !important;
    }
    .layout-wrapper:has(.sidebar.collapsed) .app-main {
        margin-left: 72px;
        width: calc(100% - 72px);
    }
    .sidebar.collapsed,
    .sidebar.collapsed .sidebar-inner,
    .sidebar.collapsed .sidebar-nav {
        overflow: hidden;
    }
    .sidebar.collapsed .sidebar-inner {
        align-items: center;
        padding: 0 0 16px;
    }
    .sidebar.collapsed .brand-text,
    .sidebar.collapsed .sidebar-nav-label {
        display: none;
    }
    .sidebar.collapsed .brand-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 100%;
        height: 72px;
        margin: 0 0 14px;
        padding: 0;
        border: none;
        border-bottom: 1px solid rgba(160, 186, 230, 0.16);
        border-radius: 0;
        background: transparent;
    }
    .sidebar.collapsed .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .sidebar.collapsed .brand-wrapper::after { display: none; }
    .sidebar.collapsed .sidebar-hamburger {
        width: 36px;
        height: 32px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #d5deee;
        font-size: 20px;
        line-height: 1;
    }
    .sidebar.collapsed .sidebar-hamburger:hover { color: #fff; }
    .sidebar.collapsed .sidebar-nav {
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }
    .sidebar.collapsed .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 36px;
        min-height: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
    }
    .sidebar.collapsed .nav-link i {
        width: auto;
        height: auto;
        flex: none;
        border: none;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
        color: #9eacc4;
        font-size: 19px;
        line-height: 1;
        transition: color 0.15s ease, filter 0.15s ease;
    }
    .sidebar.collapsed .nav-link:hover i {
        border: none;
        background: transparent !important;
        box-shadow: none !important;
        color: #f7f9ff !important;
    }
    .sidebar.collapsed .nav-link.active i {
        border: none;
        background: transparent !important;
        box-shadow: none !important;
        color: #8eb6ff !important;
        filter: drop-shadow(0 0 7px rgba(120, 170, 255, 0.65));
    }
    .sidebar.collapsed .nav-link.active { position: relative; }
    .sidebar.collapsed .nav-link.active::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 3px;
        height: 20px;
        border-radius: 3px 0 0 3px;
        background: #8eb6ff;
        box-shadow: 0 0 10px rgba(142, 182, 255, 0.9);
        transform: translateY(-50%);
        pointer-events: none;
    }
    .sidebar.collapsed .nav-link span { display: none; }
}
@media (max-width: 640px) {
    .profile-menu .user-info { display: none; }
    .profile-menu-trigger { padding: 4px; gap: 6px; }
}

[data-theme="light"] .account-card,
[data-theme="light"] .welcome-banner,
[data-theme="light"] .stat-card,
[data-theme="light"] .section-card,
[data-theme="light"] .toolbar,
[data-theme="light"] .page-head-stat {
    border-color: #e7edf5 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 20px -14px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .topbar {
    box-shadow: 0 1px 0 #e8edf5;
}
[data-theme="light"] .sidebar {
    box-shadow: none;
    border-right: 1px solid #e8edf5;
}
[data-theme="light"] .nav-link.active {
    box-shadow: none;
}
[data-theme="light"] .profile-menu-trigger {
    border-color: #e6ebf3;
    background: #ffffff;
    box-shadow: none;
}
[data-theme="light"] .profile-menu-trigger:hover,
[data-theme="light"] .profile-menu[open] .profile-menu-trigger {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
[data-theme="light"] .profile-menu .user-name,
[data-theme="light"] .profile-menu-head strong { color: #0f172a; }
[data-theme="light"] .profile-menu .user-role,
[data-theme="light"] .profile-menu-head small { color: #64748b; }
[data-theme="light"] .profile-menu-caret {
    color: #64748b;
    background: #f1f5f9;
}
[data-theme="light"] .profile-menu-panel {
    border-color: #e6ebf3;
    background: #ffffff;
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .profile-menu .user-avatar {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(79, 70, 229, 0.35);
}
[data-theme="light"] .sidebar.collapsed {
    border-right-color: #e6ebf3 !important;
}
[data-theme="light"] .sidebar.collapsed .brand-wrapper {
    border-bottom-color: #e6ebf3;
}
[data-theme="light"] .sidebar.collapsed .brand-wrapper::after { background: #d5dce8; }
[data-theme="light"] .sidebar.collapsed .nav-link i,
[data-theme="light"] .sidebar.collapsed .sidebar-hamburger { color: #64748b; }
[data-theme="light"] .sidebar.collapsed .nav-link:hover i,
[data-theme="light"] .sidebar.collapsed .sidebar-hamburger:hover { color: #0f172a !important; }
[data-theme="light"] .theme-toggle { background: #fff; }
