/* ============================================================
   MahiPay — Core Stylesheet & Design System
   Brand Identity: MahiCenter (Navy #0d2346 & Amber #ea8a1e)
   ============================================================ */

:root {
    /* Color Palette - Light Mode */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #e2e8f0;
    
    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    
    --navy-950: #08172e;
    --navy-900: #0d2346;
    --navy-800: #132f59;
    --navy-700: #1a3d70;
    --navy-100: #e0e9f6;
    --navy-50:  #f0f4fa;
    
    --amber-600: #ea8a1e;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50:  #fffbeb;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    
    --rose-600: #e11d48;
    --rose-500: #f43f5e;
    --rose-100: #ffe4e6;
    --rose-50:  #fff1f2;
    
    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    
    /* Elevation */
    --shadow-xs: none;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 4px 10px 0 rgba(15, 23, 42, 0.06);
    
    /* Sizing & Radii */
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

[data-theme="dark"] {
    --bg-page: #0b1120;
    --bg-surface: #111827;
    --bg-subtle: #1e293b;
    --bg-hover: #273549;
    
    --border-subtle: #1f2937;
    --border-strong: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --navy-900: #e2e8f0;
    --navy-800: #cbd5e1;
    --navy-100: #1e293b;
    --navy-50:  #172033;

    --emerald-50:  rgba(16, 185, 129, 0.14);
    --emerald-100: rgba(16, 185, 129, 0.28);
    --emerald-600: #34d399;
    --amber-50:    rgba(245, 158, 11, 0.14);
    --amber-100:   rgba(245, 158, 11, 0.28);
    --amber-600:   #fbbf24;
    --rose-50:     rgba(244, 63, 94, 0.14);
    --rose-100:    rgba(244, 63, 94, 0.28);
    --rose-600:    #fb7185;
    
    --shadow-xs: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   App Layout: Sidebar + Main Content (Production SaaS Style)
   ============================================================ */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid var(--border-subtle);
}

.brand-text-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .brand-text-name {
    color: #ffffff;
}

.brand-text-name span.brand-accent {
    color: var(--amber-600);
}

.brand-text-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-group-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 0 10px;
    margin-bottom: 6px;
}

.nav-links-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
}

.nav-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-item-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.nav-item-btn.active {
    background: var(--navy-900);
    color: #ffffff;
    box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .nav-item-btn.active {
    background: #1d4ed8;
    color: #ffffff;
}

[data-theme="dark"] .user-avatar-circle {
    background: #1d4ed8;
    color: #ffffff;
}

.nav-item-btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item-btn.active svg {
    opacity: 1;
}

.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-merchant-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-900);
    color: #ffffff;
    font-weight: 800;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-details {
    overflow: hidden;
}

.user-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 10px;
    color: var(--text-muted);
}

.sidebar-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Main Area */
.main-wrapper {
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
}

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

.mobile-menu-btn {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.server-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-100);
    font-family: var(--font-mono);
}

[data-theme="dark"] .server-status-pill {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.server-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
}

.settlement-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   Buttons & Controls
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
}

.btn-primary:hover {
    background: var(--navy-800);
}

[data-theme="dark"] .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-amber {
    background: var(--amber-600);
    color: #ffffff;
    border-color: var(--amber-600);
}

.btn-amber:hover {
    background: #d97706;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 11px;
}

.btn-full {
    width: 100%;
}

/* Preset Nominal Chips for Cashier */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.12s ease;
}

.chip-btn:hover {
    background: var(--navy-50);
    border-color: var(--navy-900);
    color: var(--navy-900);
}

[data-theme="dark"] .chip-btn:hover {
    background: var(--navy-800);
    border-color: var(--amber-600);
    color: #ffffff;
}

/* ============================================================
   Cards & Layout Grids
   ============================================================ */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Metric Display Cards */
.metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.metric-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

[data-theme="dark"] .metric-val {
    color: #ffffff;
}

.metric-footer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Saldo Privacy Blur */
.saldo-hidden .saldo-blur {
    filter: blur(7px);
    user-select: none;
}

/* ============================================================
   Form Elements
   ============================================================ */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--navy-900);
    box-shadow: 0 0 0 1px var(--navy-900);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus,
[data-theme="dark"] .form-textarea:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 1px var(--amber-600);
}

.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.input-with-prefix {
    padding-left: 38px;
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ============================================================
   Tables & Badges (Standard Banking Data Grid)
   ============================================================ */
.data-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    text-align: left;
}

.data-table th {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--bg-subtle);
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-sans);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.badge-paid {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-100);
}
.badge-paid .badge-dot { background: var(--emerald-500); }

.badge-pending {
    background: var(--amber-50);
    color: var(--amber-600);
    border: 1px solid var(--amber-100);
}
.badge-pending .badge-dot { background: var(--amber-500); }

.badge-expired,
.badge-failed {
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid var(--rose-100);
}
.badge-expired .badge-dot,
.badge-failed .badge-dot { background: var(--rose-500); }

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-paid {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-100);
}

.status-pending {
    background: var(--amber-50);
    color: var(--amber-600);
    border: 1px solid var(--amber-100);
}

.status-failed {
    background: var(--rose-50);
    color: var(--rose-600);
    border: 1px solid var(--rose-100);
}

.badge-neutral {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* ============================================================
   Official QRIS Poster Frame Replica (Bank Indonesia / ASPI)
   ============================================================ */
.qris-poster-card {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 330px;
    width: 100%;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.qris-poster-header {
    padding: 12px 16px;
    border-bottom: 2px solid #ef4444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.qris-frame-box {
    border: 2px solid #0d2346;
    border-radius: var(--radius-md);
    padding: 8px;
    width: 210px;
    height: 210px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.qris-frame-box svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   Receipt Thermal Printer Modal (58mm / 80mm Physical Receipt)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: 10px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-strong);
}

[data-theme="dark"] .modal-content {
    box-shadow: none;
    border-color: #334155;
}

.receipt-paper {
    background: #ffffff;
    color: #0f172a;
    padding: 24px 20px;
    font-family: var(--font-mono);
    font-size: 11px;
}

.receipt-dashed {
    border-top: 1px dashed #cbd5e1;
    margin: 10px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

/* ============================================================
   Mobile Sidebar Backdrop & Responsive Rules
   ============================================================ */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 95;
}

.sidebar-backdrop.show {
    display: block;
}

/* Responsive Form Grids & Profile Helpers */
.resp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.resp-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.resp-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: var(--bg-subtle);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.theme-subtle-box {
    background: var(--bg-subtle);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.payout-preview-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.payout-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.payout-preview-row strong {
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.payout-preview-row.total {
    border-top: 1px dashed var(--border-strong);
    padding-top: 6px;
    margin-top: 2px;
    font-weight: 700;
    color: var(--text-primary);
}

.payout-preview-row.total strong {
    font-size: 13.5px;
    color: var(--emerald-600);
}

.payout-rule-note {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 2px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .content-area {
        padding: 18px 16px 28px;
    }
}

@media (max-width: 768px) {
    .resp-grid-2,
    .resp-grid-3 {
        grid-template-columns: 1fr;
    }
    .resp-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .channel-pill-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
    .topbar { padding: 0 10px; gap: 6px; }
    .topbar-left { gap: 6px; min-width: 0; overflow: hidden; }
    .topbar-right { gap: 5px; flex-shrink: 0; }
    .topbar-right .btn-sm { padding: 5px 8px; font-size: 11px; }
    #activeUserName { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #eyeBtnText, #topMerchantShortName { display: none; }
    .content-area { padding: 14px 12px 24px; }
    .card { padding: 16px; }
}

/* Print Only */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .sidebar, .sidebar-backdrop, .topbar, .no-print {
        display: none !important;
    }
    .main-wrapper {
        margin: 0 !important;
    }
    .modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }
    .modal-content {
        box-shadow: none;
        border: none;
        max-width: 100%;
    }
}

/* Utility */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   KYC & Face ID Biometrics Scanner Styles
   ============================================================ */
.face-scan-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-subtle);
    border: 1px dashed var(--border-subtle);
    border-radius: 16px;
    text-align: center;
    margin: 16px 0;
}

.face-circle-viewport {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    border: 3px solid var(--amber-600);
    box-shadow: 0 0 0 6px rgba(234, 138, 30, 0.15);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-circle-viewport video,
.face-circle-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-scanner-radar {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(234, 138, 30, 0.4);
}

.face-scanner-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber-600), transparent);
    animation: faceScanAnim 2s infinite ease-in-out;
}

@keyframes faceScanAnim {
    0% { top: 15%; opacity: 0.3; }
    50% { top: 80%; opacity: 1; }
    100% { top: 15%; opacity: 0.3; }
}

.ktp-upload-zone {
    border: 2px dashed var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: var(--bg-surface);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.ktp-upload-zone:hover {
    border-color: var(--amber-600);
}

/* Verified Merchant Card */
.verified-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 14px;
    padding: 24px;
    color: #064e3b;
}

[data-theme="dark"] .verified-card {
    background: #064e3b15;
    border-color: #05966950;
    color: #a7f3d0;
}

/* Pricing & Tier Plans */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    border-color: var(--navy-900);
}

.pricing-card.featured {
    border: 2px solid var(--amber-600);
    box-shadow: none;
}

.pricing-badge-popular {
    position: absolute;
    top: -10px;
    right: 18px;
    background: var(--amber-600);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Terms of Service Modal */
.tos-modal-content {
    background: var(--bg-surface);
    border-radius: 10px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border-strong);
}

[data-theme="dark"] .tos-modal-content {
    box-shadow: none;
    border-color: #334155;
}

.tos-scrollable {
    padding: 20px 24px;
    overflow-y: auto;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.tos-article {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.tos-article-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 6px;
}


/* ============================================================
   Bespoke Form Selects (Zero OS Default Gray Controls)
   ============================================================ */
.mahi-native-hidden {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mahi-select {
    position: relative;
    width: 100%;
}

.mahi-select-inline {
    width: auto;
    min-width: 140px;
}

.mahi-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mahi-select-trigger:hover {
    border-color: var(--border-strong);
}

.mahi-select.open .mahi-select-trigger {
    border-color: #2563eb;
}

.mahi-select-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mahi-select-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.18s ease;
}

.mahi-select.open .mahi-select-chevron {
    transform: rotate(180deg);
}

.mahi-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 180px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    z-index: 2500;
    display: none;
    overflow: hidden;
}

.mahi-select.open .mahi-select-menu {
    display: block;
}

.mahi-select-search-wrap {
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
}

.mahi-select-search {
    width: 100%;
    padding: 6px 10px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    outline: none;
}

.mahi-select-search:focus {
    border-color: #2563eb;
}

.mahi-select-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mahi-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mahi-select-option:hover {
    background: var(--bg-subtle);
}

.mahi-select-option.selected {
    background: var(--navy-50);
    color: #2563eb;
    font-weight: 700;
}

[data-theme="dark"] .mahi-select-option.selected {
    background: #1e293b;
    color: #60a5fa;
}

.mahi-select-empty {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   Bespoke Dropdown Menu Architecture
   ============================================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.dropdown-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-toggle.active .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 6px;
    z-index: 2000;
    display: none;
    transform: translateY(-4px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .dropdown-menu {
    box-shadow: none;
    border-color: #334155;
}

.dropdown-menu.dropdown-menu-left {
    right: auto;
    left: 0;
}

.dropdown-menu.show {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-header {
    padding: 6px 10px 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.12s ease;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg-subtle);
    color: var(--navy-900);
}

[data-theme="dark"] .dropdown-item:hover {
    background: #1e293b;
    color: #ffffff;
}

.dropdown-item.active {
    background: var(--navy-50);
    color: var(--navy-900);
    font-weight: 700;
}

[data-theme="dark"] .dropdown-item.active {
    background: #1e3a6c;
    color: #ffffff;
}

.dropdown-item-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item-desc {
    display: block;
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 1px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

/* ============================================================
   Bespoke Toast Notification Engine
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100% - 40px);
}

.toast-card {
    pointer-events: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
    padding: 12px 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transform: translateX(110%);
    animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .toast-card {
    box-shadow: none;
    border-color: #334155;
}

.toast-card.closing {
    animation: toastSlideOut 0.22s ease forwards;
}

@keyframes toastSlideIn {
    to { transform: translateX(0); }
}

@keyframes toastSlideOut {
    to { transform: translateX(110%); opacity: 0; }
}

.toast-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-success .toast-icon-wrap {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.toast-error .toast-icon-wrap {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
}

.toast-warning .toast-icon-wrap {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.toast-info .toast-icon-wrap {
    background: #f0f9ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.toast-message {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.4;
    word-break: break-word;
}

.toast-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    font-size: 16px;
    transition: color 0.12s;
}

.toast-close-btn:hover {
    color: var(--text-primary);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    transform-origin: left;
    animation: toastProgress linear forwards;
}

.toast-success .toast-progress { background: #059669; }
.toast-error .toast-progress { background: #e11d48; }
.toast-warning .toast-progress { background: #d97706; }
.toast-info .toast-progress { background: #0284c7; }

@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ============================================================
   Bespoke Custom Dialog / Confirm Modal
   ============================================================ */
.custom-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.custom-dialog-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-dialog-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transform: scale(0.94);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .custom-dialog-box {
    border-color: #334155;
    box-shadow: none;
}

.custom-dialog-overlay.active .custom-dialog-box {
    transform: scale(1);
}

.custom-dialog-header {
    padding: 18px 20px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.custom-dialog-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-dialog-icon-wrap.icon-success { background: #ecfdf5; color: #059669; }
.custom-dialog-icon-wrap.icon-error { background: #fff1f2; color: #e11d48; }
.custom-dialog-icon-wrap.icon-warning { background: #fffbeb; color: #d97706; }
.custom-dialog-icon-wrap.icon-info { background: #f0f9ff; color: #0284c7; }

.custom-dialog-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.custom-dialog-body {
    padding: 16px 20px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.custom-dialog-footer {
    padding: 12px 20px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   Micro-Details (Custom Scrollbars, Focus, Tooltips)
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.65);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.45);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.75);
}

/* Button Micro Press Effect */
.btn:active {
    transform: scale(0.98);
}

/* Pure CSS Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #0f172a;
    color: #f8fafc;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   Role Badges & Cashier POS Keypad Styles
   ============================================================ */
.badge-role {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}
.role-owner {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
.role-cashier {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}
[data-theme="dark"] .role-owner {
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}
[data-theme="dark"] .role-cashier {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.pos-keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.pos-key-btn {
    padding: 10px 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pos-key-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--navy-600);
}
.pos-key-btn.clear {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}
[data-theme="dark"] .pos-key-btn.clear {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.3);
    color: #f87171;
}

.auth-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.auth-tab-btn {
    flex: 1;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.auth-tab-btn.active {
    color: var(--amber-600);
    border-bottom-color: var(--amber-600);
    background: var(--bg-surface);
}

/* ============================================================
   LANDING PAGE & MARKETING PRESENTATION (ENTERPRISE FINTECH)
   ============================================================ */
.landing-view {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-page);
    color: var(--text-primary);
    overflow-x: hidden;
}

.landing-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 24px;
}
[data-theme="dark"] .landing-nav {
    background: rgba(15, 23, 42, 0.92);
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.landing-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.landing-brand-text {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--navy-900);
}
[data-theme="dark"] .landing-brand-text {
    color: #ffffff;
}

.landing-brand-text span {
    color: var(--amber-600);
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--amber-600);
}

.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 20px;
}
[data-theme="dark"] .hero-badge-chip {
    background: rgba(30, 58, 108, 0.3);
    border-color: rgba(30, 58, 108, 0.6);
    color: #93c5fd;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--navy-950);
    letter-spacing: -1px;
    margin-bottom: 16px;
}
[data-theme="dark"] .hero-title {
    color: #f8fafc;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--amber-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .hero-title .gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-900);
    margin: 0;
    font-family: var(--font-mono);
}
[data-theme="dark"] .hero-stat-item h4 {
    color: #60a5fa;
}

.hero-stat-item p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
    font-weight: 600;
}

/* ============================================================
   HERO ENTERPRISE DASHBOARD SHOWCASE (UANGX & SAAS GRADE)
   Clean • Solid • Human Designed • Zero AI Gimmicks
   ============================================================ */
.hero-browser-window {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .hero-browser-window {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: none;
}

/* Browser Window Chrome / Header */
.browser-window-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] .browser-window-header {
    background: #0b1120;
    border-color: #1e293b;
}

.browser-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot-red, .dot-yellow, .dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .browser-address-bar {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.browser-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .browser-live-badge {
    color: #34d399;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: none;
}

/* Browser Window Body */
.browser-window-body {
    padding: 20px;
}

/* ============================================================
   LIVE INTERACTIVE POS & DYNAMIC QRIS SHOWCASE (ZERO MOCK DATA)
   ============================================================ */
.hero-pos-container {
    padding: 16px;
    background: var(--bg-surface);
}

[data-theme="dark"] .hero-pos-container {
    background: #0f172a;
}

.hero-pos-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.pos-topbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-topbar-icon {
    font-size: 16px;
    background: rgba(234, 138, 30, 0.12);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.pos-title-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy-900);
}

[data-theme="dark"] .pos-title-text {
    color: #f8fafc;
}

.pos-desc-text {
    font-size: 10px;
    color: var(--text-muted);
}

.pos-status-badge {
    font-size: 9.5px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
}

[data-theme="dark"] .pos-status-badge {
    color: #34d399;
}

/* 2-Column POS Simulator Grid */
.hero-pos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Left: Interactive Controls */
.hero-pos-controls {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-theme="dark"] .hero-pos-controls {
    background: #141e33;
    border-color: #1e293b;
}

.pos-ctrl-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pos-chips-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.pos-chip-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

[data-theme="dark"] .pos-chip-btn {
    background: #0f172a;
    border-color: #1e293b;
    color: #cbd5e1;
}

.pos-chip-btn:hover {
    border-color: var(--amber-600);
    color: var(--amber-600);
}

.pos-chip-btn.active {
    background: rgba(234, 138, 30, 0.12);
    border-color: var(--amber-600);
    color: var(--amber-600);
    font-weight: 800;
}

.pos-meta-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

[data-theme="dark"] .pos-meta-box {
    background: #0f172a;
    border-color: #1e293b;
}

.pos-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    padding: 2.5px 0;
}

.pos-meta-label {
    color: var(--text-muted);
}

.pos-meta-val {
    color: var(--text-secondary);
    font-weight: 600;
}

[data-theme="dark"] .pos-meta-val {
    color: #cbd5e1;
}

.btn-hero-simulate {
    width: 100%;
    background: linear-gradient(135deg, #0d2346 0%, #1a3d70 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-hero-simulate {
    background: linear-gradient(135deg, #ea8a1e 0%, #d97706 100%);
    box-shadow: none;
}

.btn-hero-simulate:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-hero-simulate.btn-success-state {
    background: #059669 !important;
}

.pos-loading-spin {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Right: Screen & QRIS */
.hero-pos-screen {
    min-height: 240px;
    display: flex;
}

.pos-screen-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

[data-theme="dark"] .pos-screen-card {
    background: #141e33;
    border-color: #1e293b;
}

.screen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.qris-brand-pill {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.qris-brand-text {
    font-size: 11px;
    font-weight: 900;
    color: #cf152d;
    letter-spacing: 0.5px;
}

.qris-brand-sub {
    font-size: 7.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.qris-timer-pill {
    font-size: 9.5px;
    font-weight: 700;
    color: #dc2626;
    font-family: var(--font-mono);
    background: rgba(220, 38, 38, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
}

.screen-amount-display {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy-900);
    font-family: var(--font-mono);
}

[data-theme="dark"] .screen-amount-display {
    color: #ffffff;
}

.screen-sub-text {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.screen-qr-frame {
    position: relative;
    background: #ffffff;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    display: inline-block;
    margin: 0 auto;
    overflow: hidden;
}

.screen-qr-img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    display: block;
}

.screen-supported-banks {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

/* Success Screen State */
.pos-screen-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 14px 12px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: scaleInSuccess 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .pos-screen-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

@keyframes scaleInSuccess {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: none;
}

.success-title {
    font-size: 11px;
    font-weight: 900;
    color: #059669;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .success-title {
    color: #34d399;
}

.success-amount {
    font-size: 17px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--navy-900);
    margin: 2px 0;
}

[data-theme="dark"] .success-amount {
    color: #ffffff;
}

.success-sub {
    font-size: 8.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.success-receipt-box {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 10px;
    font-size: 9.5px;
}

[data-theme="dark"] .success-receipt-box {
    background: #0f172a;
    border-color: #1e293b;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    color: var(--text-secondary);
}

[data-theme="dark"] .receipt-row {
    color: #94a3b8;
}

.badge-webhook-ok {
    font-size: 8px;
    font-weight: 800;
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.btn-reset-demo {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-reset-demo:hover {
    border-color: var(--amber-600);
    color: var(--amber-600);
}

/* Footer Flow Strip */
.hero-pos-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 10px;
}

.pos-pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 9.5px;
    color: var(--text-muted);
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.pipeline-step .step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s ease;
}

.pipeline-step.active {
    color: #10b981;
    font-weight: 700;
}

[data-theme="dark"] .pipeline-step.active {
    color: #34d399;
}

.pipeline-step.active .step-dot {
    background: #10b981;
    box-shadow: none;
}

.pipeline-arrow {
    color: var(--border-strong);
    font-size: 8px;
}

/* Hero Trust Badges Under CTA */
.hero-trust-badges {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

[data-theme="dark"] .trust-badge-item {
    color: #cbd5e1;
}

/* ============================================================
   PARTNER INSTITUTIONS SECTION (UANGX STYLE)
   ============================================================ */
.partner-section {
    padding: 40px 24px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    text-align: center;
}

[data-theme="dark"] .partner-section {
    background: #0b1120;
    border-color: #1e293b;
}

.partner-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-title {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-2px);
    background: var(--bg-subtle);
}

.partner-logo {
    max-height: 28px;
    max-width: 90px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}

[data-theme="dark"] .partner-logo {
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.75;
}

[data-theme="dark"] .partner-item:hover .partner-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ============================================================
   DEVELOPER & REST API SECTION (UANGX / STRIPE STYLE)
   ============================================================ */
.dev-section {
    background: #08172e;
    color: #ffffff;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .dev-section {
    background: #050b16;
}

.dev-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.dev-header {
    text-align: center;
    margin-bottom: 40px;
}

.dev-tag {
    color: #10b981;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    margin-bottom: 8px;
    display: block;
}

.dev-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin-bottom: 12px;
}

.dev-desc {
    font-size: 14px;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.code-window {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    overflow: hidden;
    box-shadow: none;
}

.code-header {
    background: #0b1120;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

.code-tabs {
    display: flex;
    gap: 8px;
}

.code-tab {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    font-family: var(--font-mono);
}

.code-tab.active {
    background: #1e293b;
    color: #38bdf8;
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.7;
    overflow-x: auto;
    color: #cbd5e1;
}

.code-comment { color: #64748b; }
.code-cmd { color: #f59e0b; font-weight: 700; }
.code-str { color: #34d399; }
.code-prop { color: #38bdf8; }
.code-val { color: #f43f5e; }

/* Responsive Adjustments for Showcase */
@media (max-width: 900px) {
    .hero-pos-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Mockup Card (Legacy Compatibility) */
.hero-mockup-card {
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
    padding: 24px;
    text-align: center;
    position: relative;
}

.mockup-aspi-bar {
    height: 4px;
    background: linear-gradient(90deg, #cf152d, #ea8a1e);
    border-radius: 4px 4px 0 0;
    margin: -24px -24px 20px;
}

.mockup-qris-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.mockup-qris-box {
    margin: 16px auto;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #0d2346;
    border-radius: 12px;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Landing Section General */
.landing-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section-badge-center {
    text-align: center;
    margin-bottom: 12px;
}

.section-title-center {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-950);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
[data-theme="dark"] .section-title-center {
    color: #f8fafc;
}

.section-desc-center {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.landing-feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
}

.landing-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--amber-500);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--navy-50);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
[data-theme="dark"] .feature-icon-box {
    background: rgba(30, 58, 108, 0.4);
    color: #93c5fd;
}

.feature-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
}
[data-theme="dark"] .feature-card-title {
    color: #f1f5f9;
}

.feature-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Steps Grid */
.landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
}

.step-number-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--amber-600);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

/* Policy & Terms Cards */
.landing-policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.landing-policy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 22px;
}

.landing-policy-card.warning-style {
    background: #fff1f2;
    border-color: #fecdd3;
}
[data-theme="dark"] .landing-policy-card.warning-style {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.3);
}

.policy-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .policy-card-title {
    color: #f8fafc;
}

.landing-policy-card.warning-style .policy-card-title {
    color: #9f1239;
}
[data-theme="dark"] .landing-policy-card.warning-style .policy-card-title {
    color: #fda4af;
}

.policy-card-text {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}
.landing-policy-card.warning-style .policy-card-text {
    color: #881337;
}
[data-theme="dark"] .landing-policy-card.warning-style .policy-card-text {
    color: #fecdd3;
}

/* FAQ Grid */
.landing-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.landing-faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 18px 20px;
}

.faq-question {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 6px;
}
[data-theme="dark"] .faq-question {
    color: #f1f5f9;
}

.faq-answer {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Landing Footer */
.landing-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   MODERN SPLIT-SCREEN AUTHENTICATION (FINTECH SAAS GRADE)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    width: 100%;
    background: var(--bg-page);
    display: flex;
}

.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Column: Brand Showcase (Dark Navy Theme) */
.auth-brand-side {
    flex: 1;
    background: #08172e;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #ffffff;
    overflow: hidden;
}

.auth-brand-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(234, 138, 30, 0.12) 1px, transparent 1px), radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    opacity: 0.7;
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

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

.auth-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
}

.auth-brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.auth-brand-name strong {
    color: var(--amber-500);
}

.auth-brand-content {
    margin: 40px 0;
}

.auth-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 24px;
}
.auth-status-chip .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: none;
}

.auth-brand-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    color: #f8fafc;
}

.auth-brand-subtitle {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 32px;
}

.auth-preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 20px;
}

.auth-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-preview-store {
    display: flex;
    align-items: center;
    gap: 10px;
}

.store-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--amber-600);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    object-fit: cover;
    flex-shrink: 0;
}

.store-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
}

.store-sub {
    font-size: 10.5px;
    color: #64748b;
    font-family: var(--font-mono);
}

.badge-live-settlement {
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}

.auth-preview-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.auth-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.preview-stat-col .stat-label {
    display: block;
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.preview-stat-col .stat-value {
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}
.preview-stat-col .stat-value.text-emerald {
    color: #34d399;
}

.auth-brand-footer {
    font-size: 11.5px;
    color: #475569;
}

/* Right Column: Clean Authentication Form */
.auth-form-side {
    flex: 1.1;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    overflow-y: auto;
}

.auth-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 24px;
}

.auth-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s ease;
}
.auth-back-button:hover {
    color: var(--text-primary);
    background: var(--bg-subtle);
}

.btn-theme-pill {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-theme-pill:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 12px 0;
}

.auth-mobile-header {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-mobile-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}
.auth-mobile-title {
    font-size: 18px;
    font-weight: 700;
}
.auth-mobile-title strong {
    color: var(--amber-600);
}

.auth-headings {
    margin-bottom: 24px;
}

.auth-main-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.auth-main-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-tab-pill-group {
    display: flex;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 24px;
}

.auth-pill-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.auth-pill-item:hover {
    color: var(--text-primary);
}
.auth-pill-item.active {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.auth-form-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon-left {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input-modern {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-size: 13.5px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.15s ease;
    outline: none;
    font-family: inherit;
}
.auth-input-modern:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(234, 138, 30, 0.15);
}

.field-btn-eye {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s;
}
.field-btn-eye:hover, .field-btn-eye.active {
    color: var(--amber-600);
}

.auth-extras-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    margin-top: -4px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.auth-checkbox {
    accent-color: var(--amber-600);
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 10px;
    border: none;
    background: var(--navy-900);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: none;
}
.btn-auth-submit:hover {
    background: var(--navy-800);
    transform: translateY(-1px);
    box-shadow: none;
}
.btn-auth-submit:active {
    transform: translateY(0);
}
[data-theme="dark"] .btn-auth-submit {
    background: var(--amber-600);
    color: #ffffff;
}
[data-theme="dark"] .btn-auth-submit:hover {
    background: var(--amber-500);
}

.field-otp-row {
    display: flex;
    gap: 8px;
}
.btn-otp-action {
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-otp-action:hover {
    background: var(--bg-hover);
}
.field-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.otp-verify-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-subtle);
}
.auth-input-otp {
    width: 100%;
    padding: 12px;
    font-size: 22px;
    letter-spacing: 0.25em;
    text-align: center;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    font-weight: 700;
    transition: all 0.15s;
}
.auth-input-otp:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(234, 138, 30, 0.15);
}

.auth-bottom-info {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-role-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.auth-role-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--amber-600);
}

.auth-terms-text {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.auth-terms-text a {
    color: var(--amber-600);
    text-decoration: none;
    font-weight: 600;
}
.auth-terms-text a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .auth-brand-side {
        display: none;
    }
    .auth-form-side {
        padding: 24px 20px;
    }
    .auth-mobile-header {
        display: flex;
    }
    .auth-top-actions {
        max-width: 100%;
    }
    .auth-form-container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding: 40px 16px;
        gap: 32px;
    }
    .landing-steps-grid,
    .landing-faq-grid {
        grid-template-columns: 1fr;
    }
    .landing-nav-links {
        display: none;
    }
    .hero-title {
        font-size: 30px;
    }
}

/* ============================================================
   GOOGLE AUTH & REGISTRATION STYLES
   ============================================================ */
.btn-auth-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 16px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}
.btn-auth-google:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .btn-auth-google {
    background: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}
[data-theme="dark"] .btn-auth-google:hover {
    background: #283548;
    border-color: #4b5563;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0 20px;
    color: var(--text-muted);
    font-size: 11.5px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-subtle);
}
.auth-divider span {
    padding: 0 12px;
}

.auth-toggle-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.auth-toggle-mode .btn-link {
    background: none;
    border: none;
    color: var(--amber-600);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ============================================================
   DUAL SETTLEMENT & KYC STATUS BANNERS
   ============================================================ */
.kyc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    gap: 12px;
}
.kyc-banner.verified {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #065f46;
}
[data-theme="dark"] .kyc-banner.verified {
    color: #34d399;
}
.kyc-banner.pending {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92400e;
}
[data-theme="dark"] .kyc-banner.pending {
    color: #fbbf24;
}
.kyc-banner.rejected {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}
[data-theme="dark"] .kyc-banner.rejected {
    color: #f87171;
}

.payout-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.channel-pill-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.channel-pill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.channel-pill-item.active {
    background: #0d2346;
    color: #ffffff;
    border-color: #0d2346;
}

[data-theme="dark"] .channel-pill-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ============================================================
   Activity Notification Popover
   ============================================================ */
.notif-bell-btn {
    position: relative;
    padding: 6px 9px !important;
}

.notif-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 1px 5px;
    border-radius: 9999px;
    border: 2px solid var(--bg-surface);
    line-height: 1.2;
}

.notif-dropdown-menu {
    width: 360px !important;
    max-width: 92vw;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-strong) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="dark"] .notif-dropdown-menu {
    box-shadow: none !important;
    border-color: #334155 !important;
}

.notif-dropdown-header {
    padding: 12px 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--navy-900);
}

.notif-feed-container {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-card-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.notif-card-item:hover {
    background: var(--bg-subtle);
    border-color: var(--border-subtle);
}

.notif-card-item.unread {
    background: rgba(234, 138, 30, 0.06);
}

[data-theme="dark"] .notif-card-item.unread {
    background: rgba(234, 138, 30, 0.1);
}

.notif-item-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-item-body {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.notif-item-content {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary);
    margin-top: 2px;
    word-break: break-word;
}

.notif-item-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    font-family: var(--font-mono);
}

.notif-empty-state {
    padding: 28px 16px;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

.notif-dropdown-footer {
    padding: 9px 14px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
}

.notif-footer-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.15s ease;
}

.notif-footer-link:hover {
    color: var(--amber-600);
}

.btn-link-xs {
    background: none;
    border: none;
    color: var(--amber-600);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.btn-link-xs:hover {
    text-decoration: underline;
    color: var(--amber-700);
}

/* Custom Prompt Input in Custom Dialog */
.custom-dialog-input-wrap {
    margin-top: 12px;
}

.custom-dialog-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font-sans);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s ease;
}

.custom-dialog-input:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* ============================================================
   GLOBAL DARK THEME REFINEMENT (PERFECTION & HIGH CONTRAST)
   ============================================================ */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .landing-brand-text,
[data-theme="dark"] strong:not(.channel-badge strong) {
    color: #f8fafc;
}

[data-theme="dark"] .section-desc-center,
[data-theme="dark"] .feature-card-desc,
[data-theme="dark"] .faq-answer,
[data-theme="dark"] .hero-desc,
[data-theme="dark"] .policy-card-text {
    color: #94a3b8;
}

[data-theme="dark"] .landing-step-card {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme="dark"] .landing-step-card h3 {
    color: #f8fafc !important;
}

[data-theme="dark"] .landing-step-card p {
    color: #94a3b8 !important;
}

[data-theme="dark"] .landing-footer {
    background: #080d1a;
    border-color: #1e293b;
    color: #94a3b8;
}

[data-theme="dark"] .landing-footer strong {
    color: #f8fafc !important;
}

[data-theme="dark"] .tos-warning-box {
    background: rgba(245, 158, 11, 0.15) !important;
    border-left-color: #f59e0b !important;
}
[data-theme="dark"] .tos-warning-box strong {
    color: #fcd34d !important;
}
[data-theme="dark"] .tos-warning-box span {
    color: #fef08a !important;
}

[data-theme="dark"] .auth-brand-side {
    background: #050b16;
}

[data-theme="dark"] .auth-form-side {
    background: #080d1a;
}

[data-theme="dark"] .auth-main-title {
    color: #f8fafc;
}

[data-theme="dark"] .auth-input-modern {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
}

[data-theme="dark"] .auth-input-modern:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .custom-dialog-box {
    background: #0f172a;
    border-color: #1e293b;
}

[data-theme="dark"] .custom-dialog-header {
    border-bottom-color: #1e293b;
}

[data-theme="dark"] .custom-dialog-footer {
    border-top-color: #1e293b;
    background: #0b1120;
}

[data-theme="dark"] .custom-dialog-icon-wrap.icon-error {
    background: rgba(225, 29, 72, 0.2);
    color: #fb7185;
}

[data-theme="dark"] .custom-dialog-icon-wrap.icon-warning {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .custom-dialog-input {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

[data-theme="dark"] .custom-dialog-input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .btn-link-xs {
    color: #fbbf24;
}

[data-theme="dark"] .card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .modal-content {
    background: var(--bg-surface);
    border-color: var(--border-strong);
}

[data-theme="dark"] .data-table th {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border-bottom-color: var(--border-strong);
}

[data-theme="dark"] .data-table td {
    border-bottom-color: var(--border-subtle);
    color: var(--text-primary);
}
