/* ==========================================================================
   KOPERASI PPOB SECURITY FULL - DESIGN SYSTEM
   Theme: Modern Teal & Slate Glassmorphism
   Author: Advanced Agentic Assistant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Color Palette - Dark Slate & Vibrant Teal */
    --bg-main: #0b1329;
    --bg-surface: #131f37;
    --bg-card: #1a2942;
    --bg-card-hover: #223452;
    --bg-glass: rgba(19, 31, 55, 0.85);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(20, 184, 166, 0.3);

    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-glow: rgba(20, 184, 166, 0.25);
    
    --secondary: #6366f1;
    --secondary-glow: rgba(99, 102, 241, 0.25);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(20, 184, 166, 0.15);
}

/* Light Theme Variables Toggle */
[data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: #f8fafc;
    --bg-card-hover: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --border-color: #e2e8f0;
    --border-highlight: rgba(20, 184, 166, 0.5);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* App Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-item {
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: var(--shadow-glow);
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.security-badge-box {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.security-badge-icon {
    font-size: 24px;
    color: var(--primary);
}

.security-badge-info h5 {
    font-size: 12px;
    color: var(--primary);
}

.security-badge-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Main Content Wrapper */
.main-wrapper {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Top Navbar */
.top-navbar {
    height: 72px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-header-title h2 {
    font-size: 20px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-balance-pill {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--border-highlight);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.balance-amount {
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-mono);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

/* Page Body */
.page-body {
    padding: 32px;
    flex: 1;
}

/* Glass Cards & Containers */
.card-glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card-glass:hover {
    border-color: rgba(20, 184, 166, 0.2);
}

/* Stats Overview Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.stat-card.secondary::before { background: var(--secondary); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.secondary { background: rgba(99, 102, 241, 0.1); color: var(--secondary); }
.stat-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.stat-icon.info { background: rgba(59, 130, 246, 0.1); color: var(--info); }

.stat-content h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-top: 4px;
}

/* Quick PPOB Grid Tiles */
.ppob-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.ppob-tile {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ppob-tile:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.ppob-tile.active {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.15);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(99,102,241,0.2));
    color: var(--primary);
}

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

/* Form Controls & Nominal Grid */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.nominal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.nominal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.nominal-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.nominal-card.selected {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.15);
    box-shadow: var(--shadow-glow);
}

.nominal-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.nominal-price {
    font-size: 12px;
    color: var(--primary);
    margin-top: 4px;
}

/* Buttons & Actions */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* Data Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.custom-table th {
    padding: 12px 16px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    background: var(--bg-surface);
    font-size: 13px;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.custom-table tr td:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    border-left: 1px solid var(--border-color);
}

.custom-table tr td:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    border-right: 1px solid var(--border-color);
}

/* Risk Badges & Status Pills */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Security 6-Digit PIN Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 41, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.pin-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.pin-modal-header .shield-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.pin-input-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.pin-box {
    width: 46px;
    height: 54px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}

.pin-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* Printable Struk Bukti PPOB */
.struk-card {
    background: #ffffff;
    color: #1e293b;
    padding: 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-top: 20px;
    border: 1px dashed #cbd5e1;
}

.struk-header {
    text-align: center;
    border-bottom: 1px dashed #94a3b8;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.struk-header h3 {
    color: #0f172a;
    font-size: 16px;
}

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

.token-code-highlight {
    background: #f1f5f9;
    border: 2px dashed #0d9488;
    padding: 14px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #0f766e;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    letter-spacing: 2px;
}

@media print {
    body * { visibility: hidden; }
    .struk-card, .struk-card * { visibility: visible; }
    .struk-card { position: absolute; left: 0; top: 0; width: 100%; }
}

/* QRIS Payment Standar Nasional Card & Modal */
.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.payment-method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: rgba(20, 184, 166, 0.15);
    box-shadow: var(--shadow-glow);
}

.payment-method-card i {
    font-size: 24px;
    color: var(--primary);
}

.qris-card-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    color: #0f172a;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    max-width: 360px;
    margin: 0 auto;
}

.qris-header-logo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.qris-logo-badge {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    color: #dc2626;
    font-family: var(--font-heading);
}

.qris-merchant-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-top: 4px;
}

.qris-nmid {
    font-size: 10px;
    color: #64748b;
    font-family: var(--font-mono);
}

.qris-qr-box {
    background: #ffffff;
    padding: 16px;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 12px 0;
}

.qris-qr-box img {
    width: 200px;
    height: 200px;
    display: block;
}

.qris-timer-pill {
    background: #fef3c7;
    color: #92400e;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

/* Mobile Sidebar Controls & Backdrop */
.mobile-menu-toggle {
    display: none;
}

.mobile-sidebar-close {
    display: none;
    margin-left: auto;
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 41, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.responsive-two-col {
    display: grid;
}

/* Responsive Mobile Layout (Tablet & Smartphones) */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        height: 100vh;
        z-index: 1100;
        transform: translateX(-100%);
        box-shadow: 0 0 35px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .mobile-sidebar-close {
        display: inline-flex !important;
    }

    .responsive-two-col {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-body {
        padding: 20px 16px;
    }

    .top-navbar {
        padding: 0 16px;
        height: 64px;
    }

    .page-header-title h2 {
        font-size: 16px;
        max-width: 240px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==========================================================================
   TOKEN LISTRIK & PENDING QUEUE EXTENSIONS
   ========================================================================== */

.nav-badge-pill {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    line-height: 1.2;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.token-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.token-subtab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.token-subtab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-highlight);
}

.token-subtab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.token-sn-display {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--primary);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--border-highlight);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.btn-copy-token {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-copy-token:hover {
    background: var(--primary);
    color: #ffffff;
}

.token-review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 20px;
}

.token-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
}

.token-review-item label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.token-review-item strong {
    color: var(--text-primary);
}

.token-input-highlight {
    font-family: var(--font-mono) !important;
    font-size: 20px !important;
    letter-spacing: 2px !important;
    font-weight: 700 !important;
    text-align: center;
    color: var(--primary) !important;
    background: rgba(20, 184, 166, 0.05) !important;
    border: 2px solid var(--border-highlight) !important;
}

.token-input-highlight:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
}

/* ==========================================================================
   NOTIFICATION BELL & MEMBER STRUK POPUP
   ========================================================================== */

.navbar-notif-wrapper {
    position: relative;
}

.notif-badge-pill {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    line-height: 1.2;
    border: 2px solid var(--bg-surface);
    animation: pulseBadge 2s infinite;
}

.notif-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 330px;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    overflow: hidden;
    animation: slideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-dropdown-item:hover {
    background: rgba(20, 184, 166, 0.1);
}

.notif-dropdown-item.unseen {
    background: rgba(20, 184, 166, 0.08);
    border-left: 3px solid var(--primary);
}

/* ==========================================================================
   SMARTPHONE RESPONSIVE STYLES (AUTOMATIC ADAPTIVE LAYOUT)
   ========================================================================== */

@media (max-width: 640px) {
    .page-body {
        padding: 14px 10px;
    }

    .top-navbar {
        padding: 0 10px;
        height: 58px;
    }

    .page-header-title h2 {
        font-size: 13px;
        max-width: 130px;
    }

    .navbar-actions {
        gap: 6px;
    }

    .user-balance-pill {
        padding: 4px 8px;
        font-size: 11px;
        gap: 4px;
    }

    /* Hide points pill on smartphone screens to prevent navbar overflow */
    .navbar-actions .user-balance-pill:nth-of-type(2) {
        display: none !important;
    }

    /* Collapse profile info to avatar circle only on smartphone */
    .user-profile-menu {
        padding: 2px;
        background: transparent;
        border: none;
    }

    .user-profile-menu > div:nth-child(2) {
        display: none !important;
    }

    .btn-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .card-glass {
        padding: 16px 12px;
        border-radius: var(--radius-md);
        margin-bottom: 20px !important;
    }

    /* Stats Grid: 2 columns on smartphone */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        padding: 12px 10px;
        gap: 8px;
        border-radius: var(--radius-md);
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stat-content h4 {
        font-size: 10px;
    }

    .stat-number {
        font-size: 15px;
    }

    /* PPOB Tiles Grid */
    .ppob-tile-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        margin-bottom: 20px;
    }

    .ppob-tile {
        padding: 10px 4px;
        gap: 6px;
    }

    .tile-icon {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .tile-label {
        font-size: 10px;
    }

    /* Nominal Selection Grid */
    .nominal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nominal-card {
        padding: 10px 8px;
    }

    .payment-method-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Token Subtabs Navigation */
    .token-subtabs {
        flex-direction: column;
        gap: 6px;
    }

    .token-subtab-btn {
        width: 100%;
        justify-content: center;
        padding: 9px 12px;
        font-size: 12px;
    }

    .token-review-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .token-input-highlight {
        font-size: 16px !important;
        letter-spacing: 1px !important;
        padding: 10px !important;
    }

    /* Modals Responsive */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 18px 14px !important;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: var(--radius-md);
    }

    .pin-input-grid {
        gap: 6px;
    }

    .pin-box {
        width: 38px;
        height: 46px;
        font-size: 19px;
    }

    /* Receipt Styling on Smartphone */
    .struk-card {
        padding: 16px 12px;
        font-size: 11px;
    }

    .token-code-highlight {
        font-size: 15px !important;
        padding: 10px 8px !important;
        letter-spacing: 1px !important;
        word-break: break-all;
    }

    .notif-dropdown-menu {
        width: 285px;
        right: -30px;
    }

    /* Smooth Horizontal Scroll for Custom Tables */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .custom-table th, .custom-table td {
        white-space: nowrap;
        font-size: 11px;
        padding: 10px 12px;
    }
}

@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .ppob-tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nominal-grid {
        grid-template-columns: 1fr;
    }

    .pin-box {
        width: 34px;
        height: 42px;
        font-size: 17px;
    }
}


