        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        *, *:before, *:after {
            box-sizing: inherit;
        }
        html {
            -webkit-text-size-adjust: 100%;
            scroll-behavior: smooth;
        }
        a, button, input, select {
            font-family: inherit;
        }
        ::selection {
            background: var(--primary-light);
            color: #0a0e17;
        }
        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }
        @media (prefers-reduced-motion: reduce) {
            .background-gradient { animation: none; }
            *, *:before, *:after {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }
        :root {
            --primary: #635bff;
            --primary-light: #4338ca;
            --primary-dim: rgba(99,91,255,0.08);
            --accent: #4338ca;
            --danger: #b91c1c;
            --danger-strong: #a91616;
            --success: #0a7a3f;
            --pending: #9a6700;
            --bg-dark: #fafafa;
            --surface: #ffffff;
            --surface-2: #f6f6f8;
            --card: rgba(255,255,255,0.98);
            --glass: rgba(255,255,255,0.95);
            --text: #0a0a0a;
            --muted: #6b7280;
            --border: #e6e6e6;
            --radius: 8px;
            --shadow: 0 4px 20px -8px rgba(0,0,0,0.1);
            --transition: 0.2s;
            --topbar-h: 68px;
        }
        html[data-theme="dark"] {
            --primary: #7c75ff;
            --primary-light: #a29dff;
            --primary-dim: rgba(124,117,255,0.16);
            --accent: #a29dff;
            --danger: #f87171;
            --danger-strong: #ef4444;
            --success: #34d399;
            --pending: #fbbf24;
            --bg-dark: #0a0a0f;
            --surface: #121218;
            --surface-2: #1a1a22;
            --card: rgba(18,18,24,0.97);
            --glass: rgba(18,18,24,0.94);
            --text: #f5f5f7;
            --muted: #9092a0;
            --border: #26262f;
            --shadow: 0 6px 24px -8px rgba(0,0,0,0.5);
        }
        html, body {
            transition: background-color 0.25s ease, color 0.25s ease;
        }
        body {
            font-family: 'Inter', sans-serif;
            color: var(--text);
            min-height: 100vh;
            background: var(--bg-dark);
            letter-spacing: 0;
        }
        h1, h2, h3, .brand-name {
            font-family: 'Sora', sans-serif;
        }
        .background-gradient {
            position: fixed;
            top: 0; left: 0; width: 100vw; height: 100vh;
            z-index: 0;
            pointer-events: none;
            background: radial-gradient(circle at 85% 0%, rgba(99,91,255,0.04) 0%, transparent 50%);
            opacity: 1;
            transition: opacity 0.25s ease;
        }
        html[data-theme="dark"] .background-gradient {
            background: radial-gradient(circle at 85% 0%, rgba(124,117,255,0.1) 0%, transparent 50%);
        }
        .top-progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            width: 0%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            z-index: 100;
            opacity: 0;
            transition: width 0.3s ease, opacity 0.2s ease;
        }
        .top-progress-bar.active {
            opacity: 1;
        }
        .top-progress-bar.done {
            width: 100% !important;
            opacity: 0;
            transition: width 0.2s ease, opacity 0.4s ease 0.15s;
        }
        .app-shell {
            position: relative;
            z-index: 3;
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: var(--topbar-h) auto 1fr auto;
            grid-template-areas:
                "topbar"
                "navbar"
                "main"
                "footer";
        }
        .topbar {
            grid-area: topbar;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: var(--glass);
            border-bottom: 1px solid var(--border);
            padding: 0 clamp(16px, 3vw, 32px);
            position: sticky;
            top: 0;
            z-index: 30;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .lang-switcher {
            display: flex;
            align-items: center;
            gap: 2px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 3px;
            max-width: 46vw;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .lang-switcher::-webkit-scrollbar { display: none; }
        .lang-btn {
            border: none;
            background: transparent;
            color: var(--muted);
            font-size: 0.76rem;
            font-weight: 600;
            padding: 7px 11px;
            border-radius: 999px;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            transition: background 0.2s, color 0.2s;
        }
        .lang-btn:hover {
            color: var(--text);
        }
        .lang-btn.active {
            background: var(--primary);
            color: #fff;
        }
        .theme-toggle {
            flex-shrink: 0;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--surface-2);
            color: var(--muted);
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
        }
        .theme-toggle:hover, .theme-toggle:focus-visible {
            color: var(--primary-light);
            border-color: var(--primary);
            transform: rotate(-12deg);
        }
        .notif-wrap {
            position: relative;
        }
        .notif-dot {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--danger);
            border: 2px solid var(--surface);
        }
        .notif-panel {
            position: absolute;
            top: calc(100% + 10px);
            right: 0;
            width: 300px;
            max-width: 88vw;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: 0 12px 30px rgba(0,0,0,0.12);
            z-index: 50;
            overflow: hidden;
        }
        .notif-panel-header {
            padding: 10px 14px;
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid var(--border);
        }
        .notif-list {
            max-height: 320px;
            overflow-y: auto;
        }
        .notif-item {
            display: flex;
            gap: 10px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--border);
        }
        .notif-item:last-child {
            border-bottom: none;
        }
        .notif-icon {
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9em;
        }
        .notif-icon.warn {
            background: color-mix(in srgb, var(--pending) 15%, transparent);
            color: var(--pending);
        }
        .notif-icon.danger {
            background: color-mix(in srgb, var(--danger) 15%, transparent);
            color: var(--danger);
        }
        .notif-body { min-width: 0; flex: 1 1 auto; }
        .notif-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text);
            margin: 0 0 2px;
        }
        .notif-desc {
            font-size: 0.78rem;
            color: var(--muted);
            margin: 0;
            line-height: 1.4;
        }
        .notif-empty {
            padding: 24px 14px;
            text-align: center;
            font-size: 0.82rem;
            color: var(--muted);
        }
        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
        }
        .logo {
            width: clamp(30px, 6vw, 36px);
            flex-shrink: 0;
            border-radius: 8px;
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
            transition: box-shadow 0.3s;
        }
        .brand:hover .logo {
            box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent);
        }
        .brand-name {
            font-size: clamp(1rem, 3vw, 1.2rem);
            font-weight: 700;
            color: var(--text);
            letter-spacing: 0.2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .sidenav {
            grid-area: navbar;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            padding: 0 clamp(12px, 3vw, 32px);
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 4px;
            position: sticky;
            top: var(--topbar-h);
            z-index: 25;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .sidenav::-webkit-scrollbar { display: none; }
        .sidenav a {
            position: relative;
            color: var(--muted);
            font-weight: 600;
            text-decoration: none;
            padding: 15px 16px;
            border-radius: 0;
            transition: color var(--transition), background var(--transition);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 9px;
            background: transparent;
            outline: none;
            cursor: pointer;
            letter-spacing: 0.01em;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .sidenav a i {
            font-size: 1rem;
            color: var(--muted);
            transition: color var(--transition), transform var(--transition);
        }
        .sidenav a::after {
            content: '';
            position: absolute;
            left: 14px;
            right: 14px;
            bottom: 0;
            height: 2px;
            background: var(--primary);
            border-radius: 2px 2px 0 0;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .sidenav a:hover {
            color: var(--text);
            background: var(--surface-2);
        }
        .sidenav a:hover i {
            transform: translateY(-1px) scale(1.08);
        }
        .sidenav a:hover::after {
            transform: scaleX(0.5);
        }
        .sidenav a.active {
            color: var(--primary-light);
        }
        .sidenav a.active i {
            color: var(--primary-light);
        }
        .sidenav a.active::after {
            transform: scaleX(1);
        }
        @media (max-width: 900px) {
            .app-shell {
                grid-template-columns: 1fr;
                grid-template-rows: var(--topbar-h) auto 1fr auto;
                grid-template-areas:
                    "topbar"
                    "navbar"
                    "main"
                    "footer";
                padding-bottom: 0;
            }
            .sidenav {
                justify-content: flex-start;
                padding: 0 8px;
            }
            .sidenav a {
                padding: 13px 12px;
                font-size: 0.82rem;
            }
            .sidenav a span {
                white-space: nowrap;
            }
        }
        @media (max-width: 480px) {
            .brand-name { max-width: 42vw; }
            .sidenav a span { display: none; }
            .sidenav a { padding: 13px 14px; }
            .sidenav a i { font-size: 1.1rem; }
        }
        .main {
            grid-area: main;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            margin: 0;
            padding: 0;
            position: relative;
            z-index: 3;
            display: flex;
            flex-direction: column;
        }
        .card {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: clamp(20px, 5vw, 38px) clamp(18px, 6vw, 48px);
            transition: box-shadow var(--transition), transform var(--transition);
            position: relative;
            overflow: hidden;
            max-width: min(560px, 94vw);
            margin: clamp(24px, 6vw, 40px) auto 0 auto;
            backdrop-filter: blur(12px);
            border: 1px solid var(--border);
        }
        .card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent) 130%);
        }
        @media (hover: hover) {
            .card:hover {
                box-shadow: 0 14px 36px -10px rgba(0,0,0,0.16);
                transform: translateY(-2px);
            }
        }
        .card h2 {
            font-size: clamp(1.15rem, 4vw, 1.4rem);
            margin-top: 0;
        }
        .card h2 i {
            color: var(--primary);
            margin-right: 2px;
        }
        @keyframes contentFadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .content-animate {
            animation: contentFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .table-container { margin-top: 8px; }
        table { width: 100%; border-collapse: collapse; background: transparent; table-layout: fixed; }
        th, td { 
            padding: 12px 6px; 
            border-bottom: 1px solid var(--border); 
            text-align: left; 
            word-break: break-word;
            font-size: 0.95em;
        }
        th { color: var(--primary-light); font-size: 0.92rem; font-weight: 600; background: transparent; }
        td { font-size: 0.98rem; font-weight: 500; vertical-align: middle; }
        tr:last-child td { border-bottom: none; }
        tbody tr:hover td, tr:hover td {
            background: var(--primary-dim);
        }
        .renewal-alert { color: var(--danger); font-weight: 700; }
        .renewal-ok { color: var(--success); font-weight: 700; }
        /* Plan Extend status badge */
        .plan-status {
            font-weight: 600;
            font-size: 1.1em;
            margin-bottom: 18px;
            padding: 8px 16px;
            border-radius: var(--radius);
            display: inline-block;
            background: var(--surface-2);
            color: var(--text);
            border: 1px solid var(--border);
        }
        .plan-status-active {
            background: color-mix(in srgb, var(--success) 10%, transparent);
            color: var(--success);
            border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
        }
        .plan-status-deactivate {
            background: color-mix(in srgb, var(--danger) 10%, transparent);
            color: var(--danger);
            border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
        }
        /* Plan Extend modern form styles */
        .plan-extend-inner {
            margin-top: 18px;
            background: var(--surface-2);
            border-radius: var(--radius);
            padding: 22px 20px 20px 20px;
            border: 1px solid var(--border);
        }
        .plan-form label {
            display: block;
            margin-bottom: 7px;
            font-weight: 600;
            color: var(--muted);
            font-size: 0.92em;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .plan-form select,
        .plan-form input[type="password"],
        .plan-form input[type="text"] {
            width: 100%;
            padding: 12px 14px;
            margin-bottom: 18px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 1.02em;
            transition: border 0.2s, box-shadow 0.2s;
            outline: none;
        }
        .plan-form select:focus,
        .plan-form input:focus {
            border: 1px solid var(--primary);
            box-shadow: 0 0 0 3px var(--primary-dim);
        }
        .pin-group {
            display: flex;
            align-items: center;
            gap: 0;
            margin-bottom: 18px;
        }
        .pin-group input {
            flex: 1 1 auto;
            margin-bottom: 0;
            padding-right: 46px;
        }
        .toggle-pin {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 1.1em;
            margin-left: -44px;
            padding: 10px 12px;
            cursor: pointer;
            outline: none;
            transition: color 0.2s;
        }
        .toggle-pin:focus, .toggle-pin:hover {
            color: var(--primary-light);
        }
        .plan-form button[type="submit"] {
            width: 100%;
            background: var(--primary);
            color: #fff;
            font-weight: 600;
            font-size: 1.02em;
            border: none;
            border-radius: var(--radius);
            padding: 13px 0;
            margin-top: 6px;
            cursor: pointer;
            transition: background 0.2s, opacity 0.2s, transform 0.2s, box-shadow 0.2s;
            letter-spacing: 0.01em;
        }
        .plan-form button[type="submit"]:hover {
            opacity: 0.92;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--primary) 45%, transparent);
        }
        .plan-form button[type="submit"]:active {
            transform: translateY(0);
        }
        .plan-message {
            margin-top: 12px;
            font-size: 0.95em;
            font-weight: 600;
            color: var(--muted);
        }
        .plan-message.success { color: var(--success); }
        .plan-message.error { color: var(--danger); }
        /* Reports full page table */
        .fullpage-table-container {
            flex: 1 1 auto;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 100%;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
        }
        #reportsTableWrap {
            padding-left: 10px;
            padding-right: 10px;
            overflow-x: auto;
            max-width: 100%;
        }
        .table-scroll-hint {
            display: none;
            align-items: center;
            gap: 6px;
            font-size: 0.76rem;
            color: var(--muted);
            padding: 0 18px 8px 18px;
        }
        .table-scroll-outer {
            overflow-x: auto;
            max-width: 100%;
            -webkit-overflow-scrolling: touch;
        }
        @media (max-width: 900px) {
            .table-scroll-hint {
                display: flex;
            }
        }
        .modern-table {
            width: 100%;
            min-width: 1150px;
            border-collapse: collapse;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
            table-layout: fixed;
            border: 1px solid var(--border);
        }
        .modern-table th, .modern-table td {
            padding: 13px 8px;
            text-align: center;
            font-size: 0.92em;
            word-break: break-word;
            border-bottom: 1px solid var(--border);
            border-left: none;
            border-right: none;
            border-top: none;
        }
        .modern-table th {
            background: var(--surface-2);
            color: var(--primary-light);
            font-weight: 700;
            font-size: 0.78em;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            white-space: nowrap;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
        }
        .modern-table tr {
            background: var(--surface);
            transition: background 0.15s;
        }
        .modern-table tbody tr:nth-child(even) {
            background: var(--surface-2);
        }
        .modern-table tbody tr:hover {
            background: var(--primary-dim);
        }
        .modern-table tr:last-child td {
            border-bottom: none;
        }
        .modern-table th:nth-child(1), .modern-table td:nth-child(1) { width: 14%; }
        .modern-table th:nth-child(2), .modern-table td:nth-child(2) { width: 11%; }
        .modern-table th:nth-child(3), .modern-table td:nth-child(3) { width: 6%; }
        .modern-table th:nth-child(4), .modern-table td:nth-child(4) { width: 8%; }
        .modern-table th:nth-child(5), .modern-table td:nth-child(5) { width: 10%; }
        .modern-table th:nth-child(6), .modern-table td:nth-child(6) { width: 12%; white-space: nowrap; }
        .modern-table th:nth-child(7), .modern-table td:nth-child(7) { width: 7%; }
        .modern-table th:nth-child(8), .modern-table td:nth-child(8) { width: 9%; }
        .modern-table td:nth-child(8) { white-space: nowrap; }
        .modern-table th:nth-child(9), .modern-table td:nth-child(9) { width: 6%; white-space: nowrap; }
        .modern-table th:nth-child(10), .modern-table td:nth-child(10) { width: 17%; }
        .trxn-cell {
            white-space: nowrap;
            overflow-x: auto;
            text-align: left;
            font-family: 'Inter', monospace;
            font-size: 0.85em;
            letter-spacing: 0.01em;
            color: var(--muted);
            scrollbar-width: none;
        }
        .trxn-cell::-webkit-scrollbar { display: none; }
        .num-cell {
            white-space: nowrap;
            overflow-x: auto;
            scrollbar-width: none;
        }
        .num-cell::-webkit-scrollbar { display: none; }
        .timestamp-cell {
            text-align: left;
            font-size: 0.82em;
            white-space: nowrap;
        }
        .ts-row {
            display: flex;
            align-items: baseline;
            gap: 3px;
        }
        .ts-row:first-child {
            margin-bottom: 3px;
        }
        .ts-label {
            font-size: 0.85em;
            font-weight: 700;
            color: var(--muted);
            flex-shrink: 0;
        }
        .badge {
            display: inline-block;
            padding: 3px 11px;
            border-radius: 6px;
            font-size: 0.82em;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            transition: transform 0.15s;
        }
        .modern-table tbody tr:hover .badge {
            transform: scale(1.05);
        }
        .badge-success {
            background: color-mix(in srgb, var(--success) 12%, transparent);
            color: var(--success);
            border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
        }
        .badge-failed {
            background: color-mix(in srgb, var(--danger) 12%, transparent);
            color: var(--danger);
            border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
        }
        .badge-pending {
            background: color-mix(in srgb, var(--pending) 12%, transparent);
            color: var(--pending);
            border: 1px solid color-mix(in srgb, var(--pending) 40%, transparent);
        }
        /* Skeleton loading placeholders */
        @keyframes skeletonShimmer {
            0% { background-position: -200px 0; }
            100% { background-position: calc(200px + 100%) 0; }
        }
        .skeleton-block, .skeleton-line {
            background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
            background-size: 400px 100%;
            animation: skeletonShimmer 1.4s ease-in-out infinite;
            border-radius: var(--radius);
        }
        .skeleton-block { height: 64px; margin-bottom: 14px; }
        .skeleton-line { height: 12px; margin-bottom: 10px; border-radius: 6px; }
        /* Stat cards */
        .stat-cards {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-bottom: 18px;
        }
        .stat-card {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 12px 14px;
        }
        .stat-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 6px;
        }
        .stat-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text);
        }
        .last-updated {
            font-size: 0.78rem;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 0 0 16px;
        }
        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--muted);
        }
        .empty-state i {
            font-size: 2.2rem;
            color: var(--border);
            margin-bottom: 12px;
            display: block;
        }
        .empty-state p { margin: 0; font-size: 0.95rem; }
        /* Pagination */
        .pagination-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 10px 6px 10px;
            flex-wrap: wrap;
        }
        .pagination-row button {
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: var(--radius);
            padding: 7px 14px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, opacity 0.2s;
        }
        .pagination-row button:hover:not(:disabled) {
            background: var(--primary-dim);
            color: var(--primary-light);
        }
        .pagination-row button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .page-numbers {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-wrap: wrap;
            justify-content: center;
        }
        .page-num-btn {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--muted);
            border-radius: 8px;
            min-width: 32px;
            height: 32px;
            padding: 0 8px;
            font-size: 0.82rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, color 0.2s, border-color 0.2s;
        }
        .page-num-btn:hover {
            background: var(--surface-2);
            color: var(--text);
        }
        .page-num-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
            cursor: default;
        }
        .page-num-dots {
            color: var(--muted);
            font-size: 0.85rem;
            padding: 0 2px;
        }
        .pagination-summary {
            text-align: center;
            font-size: 0.78rem;
            color: var(--muted);
            padding-bottom: 12px;
        }
        /* Copy button + export button */
        .copy-btn {
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 2px 6px;
            margin-left: 4px;
            border-radius: 4px;
            transition: color 0.2s, transform 0.15s;
            font-size: 0.85em;
        }
        .copy-btn:hover { color: var(--primary-light); }
        .copy-btn.copied { color: var(--success); transform: scale(1.15); }
        .export-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: var(--radius);
            padding: 9px 16px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, border-color 0.2s;
        }
        .export-btn:hover {
            background: var(--primary-dim);
            border-color: var(--primary);
            color: var(--primary-light);
        }
        /* Inline banners (session / rate limit) */
        .inline-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            background: color-mix(in srgb, var(--pending) 10%, transparent);
            border: 1px solid color-mix(in srgb, var(--pending) 35%, transparent);
            color: var(--pending);
            border-radius: var(--radius);
            padding: 10px 14px;
            font-size: 0.85rem;
            margin-bottom: 14px;
        }
        .top-banner {
            position: fixed;
            top: calc(var(--topbar-h) + 8px);
            left: 50%;
            transform: translateX(-50%) translateY(-10px);
            background: var(--surface);
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            border-radius: var(--radius);
            padding: 12px 18px;
            font-size: 0.85rem;
            color: var(--text);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 40;
            max-width: 92vw;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s, transform 0.3s;
        }
        .top-banner.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }
        .top-banner button {
            background: var(--primary);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 5px 12px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
        }
        .top-banner .dismiss {
            background: none;
            color: var(--muted);
            padding: 4px;
            font-size: 1rem;
        }
        /* API Document page */
        .api-doc-toprow {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0 18px 14px 18px;
        }
        .api-base-url {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 7px 12px;
        }
        .api-base-url-label {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--muted);
        }
        .api-base-url code {
            font-family: 'Inter', monospace;
            font-size: 0.82rem;
            color: var(--primary-light);
        }
        .postman-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--primary-light);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .postman-link:hover {
            text-decoration: underline;
        }
        .api-quick-nav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            padding: 0 18px 16px 18px;
        }
        .api-quick-nav-item {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 999px;
            padding: 6px 12px 6px 8px;
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--text);
            text-decoration: none;
            transition: border-color 0.2s, background 0.2s;
        }
        .api-quick-nav-item:hover {
            border-color: var(--primary);
            background: var(--primary-dim);
            text-decoration: none;
        }
        .api-doc-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 0 18px 18px 18px;
        }
        .api-endpoint-card {
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 20px;
            scroll-margin-top: 90px;
            display: grid;
            grid-template-columns: 1fr;
            gap: 18px;
        }
        @media (min-width: 900px) {
            .api-endpoint-card {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
            }
        }
        .api-endpoint-left { min-width: 0; }
        .api-endpoint-right { min-width: 0; }
        .api-endpoint-header {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        .api-method-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 6px;
            font-size: 0.76em;
            font-weight: 700;
            letter-spacing: 0.03em;
            font-family: 'Inter', monospace;
        }
        .api-method-get {
            background: color-mix(in srgb, var(--success) 14%, transparent);
            color: var(--success);
        }
        .api-method-post {
            background: color-mix(in srgb, var(--primary) 14%, transparent);
            color: var(--primary-light);
        }
        .api-endpoint-name {
            font-weight: 700;
            font-size: 1.05rem;
            color: var(--text);
        }
        .api-endpoint-url-row {
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 8px 10px;
            margin-bottom: 12px;
        }
        .api-endpoint-url {
            font-family: 'Inter', monospace;
            font-size: 0.85em;
            font-weight: 500;
            color: var(--text);
            word-break: break-all;
            flex: 1 1 auto;
        }
        .api-endpoint-desc {
            font-size: 0.94em;
            font-weight: 500;
            color: var(--text);
            line-height: 1.55;
            margin: 0 0 16px 0;
        }
        .api-section-label {
            font-size: 0.74rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--primary-light);
            margin: 0 0 8px 0;
        }
        .api-params-table {
            width: 100%;
            border-collapse: collapse;
        }
        .api-params-table th, .api-params-table td {
            text-align: left;
            padding: 9px 10px;
            font-size: 0.87em;
            font-weight: 500;
            color: var(--text);
            border-bottom: 1px solid var(--border);
        }
        .api-params-table th {
            color: var(--muted);
            font-size: 0.7em;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 700;
        }
        .api-params-table td:first-child {
            font-family: 'Inter', monospace;
            color: var(--text);
            font-weight: 700;
            white-space: nowrap;
        }
        .api-params-table tr:last-child td {
            border-bottom: none;
        }
        .api-code-section {
            margin-bottom: 18px;
        }
        .api-code-section:last-child {
            margin-bottom: 0;
        }
        .api-request-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 8px;
        }
        .api-lang-select {
            padding: 5px 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 0.78em;
            font-weight: 600;
            outline: none;
            cursor: pointer;
        }
        .api-lang-select:hover, .api-lang-select:focus-visible {
            border-color: var(--primary);
        }
        .api-response-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }
        .api-response-tab {
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--muted);
            border-radius: 8px;
            padding: 5px 12px;
            font-size: 0.78em;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
        }
        .api-response-tab:hover {
            color: var(--text);
        }
        .api-response-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }
        .api-code-block {
            position: sticky;
            top: calc(var(--topbar-h) + 12px);
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
        }
        .api-code-header {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
            background: var(--surface-2);
        }
        .api-code-lang {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: var(--muted);
        }
        .api-status-pill {
            font-size: 0.7rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 999px;
            font-family: 'Inter', monospace;
        }
        .api-status-pill.ok {
            background: color-mix(in srgb, var(--success) 16%, transparent);
            color: var(--success);
        }
        .api-status-pill.err {
            background: color-mix(in srgb, var(--danger) 16%, transparent);
            color: var(--danger);
        }
        .api-code-copy {
            margin-left: auto;
            background: none;
            border: none;
            color: var(--muted);
            cursor: pointer;
            padding: 2px 4px;
            border-radius: 4px;
            transition: color 0.2s;
        }
        .api-code-copy:hover {
            color: var(--primary-light);
        }
        .api-code-copy.copied {
            color: var(--success);
        }
        .api-response-body {
            padding: 14px;
            overflow-x: auto;
            margin: 0;
            max-height: 380px;
            overflow-y: auto;
        }
        .api-response-body code {
            font-family: 'Inter', monospace;
            font-size: 0.84em;
            font-weight: 500;
            color: var(--text);
            white-space: pre;
            line-height: 1.65;
        }
        .json-key { color: var(--primary-light); font-weight: 600; }
        .json-string { color: var(--success); }
        .json-number { color: var(--pending); }
        .json-bool { color: #ec4899; }
        .json-null { color: var(--muted); }

        /* Contact Us page */
        .contact-grid {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 18px;
        }
        .contact-card {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 14px 16px;
            text-decoration: none;
            color: var(--text);
            transition: background 0.2s, border-color 0.2s, transform 0.2s;
        }
        .contact-card:hover {
            background: var(--primary-dim);
            border-color: var(--primary);
            transform: translateX(2px);
            text-decoration: none;
            color: var(--text);
        }
        .contact-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1em;
            flex-shrink: 0;
        }
        .contact-info { flex: 1 1 auto; min-width: 0; }
        .contact-label {
            font-size: 0.72rem;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 2px;
        }
        .contact-value {
            font-size: 0.98rem;
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .contact-arrow {
            color: var(--muted);
            font-size: 0.85em;
            flex-shrink: 0;
        }
        .support-hours {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--muted);
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 10px 14px;
        }
        /* WhatsApp button */
        .whatsapp-button {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #1f9d5a;
            color: #fff !important;
            font-weight: 600;
            font-size: 1em;
            border: none;
            border-radius: var(--radius);
            padding: 12px 26px;
            margin-top: 18px;
            margin-bottom: 6px;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
        }
        .whatsapp-button i {
            font-size: 1.2em;
            transition: transform 0.2s;
        }
        .whatsapp-button:hover, .whatsapp-button:focus {
            background: #198249;
            color: #fff !important;
            text-decoration: none;
            transform: translateY(-1px);
            box-shadow: 0 6px 16px -4px rgba(31,157,90,0.4);
        }
        .whatsapp-button:hover i {
            transform: scale(1.1) rotate(-6deg);
        }
        .footer {
            grid-area: footer;
            text-align: center;
            color: var(--muted);
            font-size: clamp(0.78em, 2.2vw, 0.9em);
            padding: 16px 16px 14px 16px;
            background: transparent;
            margin-top: 0;
            z-index: 3;
            position: relative;
            word-break: break-word;
            border-top: 1px solid var(--border);
        }
        .reports-heading {
            margin: clamp(14px, 3vw, 18px) 0 10px clamp(14px, 3vw, 18px);
            color: var(--primary-light);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: clamp(1.1rem, 4vw, 1.4rem);
        }
        .reports-heading-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            padding-right: 18px;
        }
        .auto-refresh-toggle {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--muted);
            margin-bottom: 10px;
            flex-wrap: wrap;
        }
        .refresh-interval-select {
            height: 26px;
            padding: 0 6px;
            border-radius: 6px;
            border: 1px solid var(--border);
            background: var(--surface-2);
            color: var(--text);
            font-size: 0.76rem;
            outline: none;
            cursor: pointer;
        }
        .refresh-interval-select:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .refresh-countdown-label {
            font-size: 0.76rem;
            color: var(--primary-light);
            white-space: nowrap;
        }
        .switch {
            position: relative;
            display: inline-block;
            width: 36px;
            height: 20px;
            flex-shrink: 0;
        }
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .switch-slider {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background: var(--border);
            border-radius: 20px;
            transition: background 0.2s;
        }
        .switch-slider::before {
            content: '';
            position: absolute;
            height: 14px;
            width: 14px;
            left: 3px;
            bottom: 3px;
            background: #fff;
            border-radius: 50%;
            transition: transform 0.2s;
        }
        .switch input:checked + .switch-slider {
            background: var(--primary);
        }
        .switch input:checked + .switch-slider::before {
            transform: translateX(16px);
        }
        .last-refreshed-label {
            font-size: 0.76rem;
            color: var(--muted);
            white-space: nowrap;
        }
        .filters-toolbar {
            margin: 0 18px 18px 18px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 14px 16px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.04);
        }
        .filter-field {
            position: relative;
            display: flex;
            align-items: center;
        }
        .filter-field > i {
            position: absolute;
            left: 13px;
            color: var(--muted);
            font-size: 0.82em;
            pointer-events: none;
            transition: color 0.2s;
        }
        .filter-field:focus-within > i {
            color: var(--primary);
        }
        .icon-search { color: #635bff; }
        .icon-status { color: #10b981; }
        .icon-operator { color: #8b5cf6; }
        .icon-circle { color: #0ea5e9; }
        .icon-date { color: #f59e0b; }
        .icon-amount { color: #ec4899; }
        .filter-field-search {
            margin-bottom: 12px;
        }
        .filters-search-input {
            width: 100%;
            padding: 11px 14px 11px 36px;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 1em;
            outline: none;
            transition: border-color 0.2s;
        }
        .filters-search-input:focus {
            border-color: var(--primary);
        }
        .filters-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .filters-controls select {
            padding: 9px 12px 9px 32px;
            border-radius: 10px;
            border: 1.5px solid var(--border);
            background: var(--surface);
            color: var(--text);
            font-size: 0.9em;
            outline: none;
            width: 100%;
            white-space: nowrap;
            text-overflow: ellipsis;
            transition: border-color 0.2s;
        }
        .filters-controls select:focus {
            border-color: var(--primary);
        }
        .filters-controls .filter-field {
            min-width: 150px;
            flex: 1 1 150px;
            max-width: 200px;
        }
        .filters-controls .filter-field-circle {
            min-width: 190px;
            flex: 1.3 1 190px;
            max-width: 250px;
        }
        .amount-range {
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
            background: var(--surface);
            border: 1.5px solid var(--border);
            border-radius: 10px;
            padding: 0 8px 0 30px;
            flex: 1 1 190px;
            min-width: 180px;
            max-width: 220px;
            transition: border-color 0.2s;
        }
        .amount-range:focus-within {
            border-color: var(--primary);
        }
        .amount-range > i {
            position: absolute;
            left: 12px;
            color: #ec4899;
            font-size: 0.78em;
            pointer-events: none;
        }
        .amount-range:focus-within > i {
            color: var(--primary);
        }
        .amount-range input {
            border: none;
            background: transparent;
            color: var(--text);
            padding: 9px 4px;
            font-size: 0.9em;
            outline: none;
            width: auto;
            min-width: 0;
            flex: 1 1 0;
            text-align: center;
            -moz-appearance: textfield;
            appearance: textfield;
        }
        .amount-range input::-webkit-outer-spin-button,
        .amount-range input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        .amount-range-sep {
            color: var(--muted);
            font-size: 0.85em;
            flex: 0 0 auto;
        }
        .filters-controls .export-btn {
            margin-left: auto;
            flex-shrink: 0;
        }
        @media (max-width: 900px) {
            .modern-table th, .modern-table td { font-size: 0.92em; }
        }
        @media (max-width: 700px) {
            .modern-table { min-width: 1000px; }
            .filters-toolbar {
                margin-left: 12px;
                margin-right: 12px;
            }
            .filters-controls .filter-field,
            .amount-range {
                min-width: 0;
                max-width: none;
                flex: 1 1 47%;
            }
            .filters-controls .export-btn {
                margin-left: 0;
                flex: 1 1 100%;
                justify-content: center;
            }
        }
        @media (max-width: 480px) {
            .modern-table { min-width: 950px; }
            .modern-table th, .modern-table td { padding: 9px 4px; font-size: 0.85em; }
            .whatsapp-button { width: 100%; justify-content: center; }
        }
