@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        
        body { box-sizing: border-box; }
        
        button, a, .action-tile, [role="button"] {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        * { font-family: 'Inter', sans-serif; }
        html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
        
        .slide-in  { animation: slideIn  0.45s cubic-bezier(0.22,1,0.36,1) both; }
        .fade-in   { animation: fadeIn   0.4s ease-out both; }
        .scale-in  { animation: scaleIn  0.35s cubic-bezier(0.34,1.56,0.64,1) both; }
        .bounce-in { animation: bounceIn 0.55s cubic-bezier(0.34,1.56,0.64,1) both; }
        .slide-down{ animation: slideDown 0.4s cubic-bezier(0.22,1,0.36,1) both; }
        .slide-up  { animation: slideUp  0.4s cubic-bezier(0.22,1,0.36,1) both; }
        .float     { animation: float 3s ease-in-out infinite; }
        
        .page-enter {
            animation: pageEnter 0.3s cubic-bezier(0.22,1,0.36,1) both;
        }
        @keyframes pageEnter {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        
        .stagger-children > * {
            opacity: 0;
            animation: slideUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
        }
        .stagger-children > *:nth-child(1)  { animation-delay: 0.04s; }
        .stagger-children > *:nth-child(2)  { animation-delay: 0.09s; }
        .stagger-children > *:nth-child(3)  { animation-delay: 0.14s; }
        .stagger-children > *:nth-child(4)  { animation-delay: 0.19s; }
        .stagger-children > *:nth-child(5)  { animation-delay: 0.24s; }
        .stagger-children > *:nth-child(6)  { animation-delay: 0.29s; }
        .stagger-children > *:nth-child(7)  { animation-delay: 0.34s; }
        .stagger-children > *:nth-child(8)  { animation-delay: 0.39s; }
        
        .ripple-btn {
            position: relative;
            overflow: hidden;
            transform: translateZ(0);
        }
        .ripple-btn::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: rgba(255,255,255,0.35);
            transform: scale(0);
            width: 200%;
            padding-top: 200%;
            top: 50%; left: 50%;
            margin-top: -100%; margin-left: -100%;
            transition: transform 0.5s ease, opacity 0.8s ease;
            opacity: 0;
            pointer-events: none;
        }
        .ripple-btn:active::after {
            transform: scale(1);
            opacity: 0;
            transition: 0s;
        }
        
        .shimmer {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%);
            background-size: 400% 100%;
            animation: shimmer 1.4s ease infinite;
            border-radius: 8px;
        }
        @keyframes shimmer {
            0%   { background-position: 100% 50%; }
            100% { background-position: 0%   50%; }
        }
        
        .balance-value {
            display: inline-block;
            transition: all 0.6s cubic-bezier(0.34,1.56,0.64,1);
        }
        .balance-value.updating {
            transform: translateY(-4px) scale(1.04);
            color: #059669;
        }
        
        .quick-action-card {
            transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
                        box-shadow 0.2s ease,
                        border-color 0.15s ease;
        }
        .quick-action-card:hover  { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
        .quick-action-card:active { transform: scale(0.97); }
        
        .data-network-btn, .airtime-network-btn, .a2c-network-btn, .bet-card, .data-plan-btn {
            transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.18s ease;
        }
        .data-network-btn.selected, .airtime-network-btn.selected {
            box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
            border-color: #3b82f6;
            background-color: #eff6ff;
        }
        .a2c-network-btn.selected { box-shadow: 0 0 0 3px rgba(22,51,95,0.14); }
        .bet-card.selected { box-shadow: 0 0 0 3px rgba(5,150,105,0.18); }
        .data-plan-btn:not(:disabled):hover { border-color: #10b981; }
        .data-plan-btn.selected {
            border-color: #10b981;
            background-color: #ecfdf5;
            box-shadow: 0 0 0 3px rgba(16,185,129,0.16);
        }
        
        .plan-filter-tab {
            transition: all 0.18s cubic-bezier(0.34,1.56,0.64,1);
        }
        .plan-filter-tab:active { transform: scale(0.92); }
        
        @keyframes badgePop {
            0%   { transform: scale(0);   }
            60%  { transform: scale(1.3); }
            100% { transform: scale(1);   }
        }
        .badge-pop { animation: badgePop 0.35s cubic-bezier(0.34,1.56,0.64,1) both; }
        
        @keyframes checkDraw {
            from { stroke-dashoffset: 60; opacity: 0; }
            to   { stroke-dashoffset: 0;  opacity: 1; }
        }
        .check-draw {
            stroke-dasharray: 60;
            stroke-dashoffset: 60;
            animation: checkDraw 0.5s cubic-bezier(0.22,1,0.36,1) 0.2s both;
        }
        
        @keyframes receiptReveal {
            from { opacity: 0; transform: translateY(40px) scale(0.97); }
            to   { opacity: 1; transform: translateY(0)    scale(1); }
        }
        .receipt-reveal { animation: receiptReveal 0.45s cubic-bezier(0.22,1,0.36,1) both; }
        
        @keyframes pulseRing {
            0%   { transform: scale(1);    opacity: 0.6; }
            100% { transform: scale(1.8);  opacity: 0;   }
        }
        .pulse-ring {
            position: relative;
            display: inline-block;
        }
        .pulse-ring::before {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.25;
            animation: pulseRing 1.4s ease-out infinite;
        }
        
        @keyframes txnSlide {
            from { opacity: 0; transform: translateX(-12px); }
            to   { opacity: 1; transform: translateX(0); }
        }
        .txn-row { animation: txnSlide 0.32s cubic-bezier(0.22,1,0.36,1) both; }
        .txn-row:nth-child(1)  { animation-delay: 0.02s; }
        .txn-row:nth-child(2)  { animation-delay: 0.06s; }
        .txn-row:nth-child(3)  { animation-delay: 0.10s; }
        .txn-row:nth-child(4)  { animation-delay: 0.14s; }
        .txn-row:nth-child(5)  { animation-delay: 0.18s; }
        .txn-row:nth-child(6)  { animation-delay: 0.22s; }
        .txn-row:nth-child(7)  { animation-delay: 0.26s; }
        .txn-row:nth-child(8)  { animation-delay: 0.30s; }
        .txn-row:nth-child(n+9){ animation-delay: 0.32s; }
        
        .a2c-otp-digit, .pin-digit {
            transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1),
                        border-color 0.15s ease,
                        box-shadow 0.15s ease;
        }
        .a2c-otp-digit:focus, .pin-digit:focus {
            transform: scale(1.08);
            box-shadow: 0 0 0 3px rgba(234,179,8,0.25);
        }
        
        .airtime-discount-badge {
            animation: discountPop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
        }
        @keyframes discountPop {
            from { transform: scale(0) rotate(-12deg); opacity: 0; }
            to   { transform: scale(1) rotate(0deg);   opacity: 1; }
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateY(20px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeIn {
            from { opacity: 0; } to { opacity: 1; }
        }
        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.9); }
            to   { opacity: 1; transform: scale(1); }
        }
        @keyframes bounceIn {
            0%   { opacity: 0; transform: scale(0.3); }
            50%  { opacity: 1; transform: scale(1.05); }
            70%  { transform: scale(0.9); }
            100% { opacity: 1; transform: scale(1); }
        }
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-30px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to   { opacity: 1; transform: translateY(0); }
        }
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50%       { transform: translateY(-10px); }
        }

        .btn-hover { transition: all 0.3s ease; }
        .btn-hover:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(59,130,246,0.3); }

        .card-hover { transition: all 0.3s ease; }
        .card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }

        .wiggle-on-hover:hover { animation: wiggle 0.5s ease-in-out; }
        @keyframes wiggle {
            0%, 100% { transform: rotate(0deg); }
            25%  { transform: rotate(-3deg); }
            75%  { transform: rotate(3deg); }
        }
        
        .info-icon-pulse {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6, #2563eb);
            color: white;
            font-weight: 600;
            font-size: 14px;
            animation: infoPulse 2s ease-in-out infinite;
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        }
        
        @keyframes infoPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
            }
            50% {
                box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
            }
        }
        
        .page {
            display: none;
        }
        
        .page.active {
            display: block;
        }
        
        html, body {
            height: 100%;
            overflow: hidden;
        }
        #dashboardPage.active, #genericPage.active {
            display: flex;
            flex-direction: column;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
        }
        #dashboardPage.active > header.app-header,
        #genericPage.active > header.app-header {
            flex-shrink: 0;
        }
        #dashboardPage.active > main,
        #genericPage.active > #genericPageContent {
            flex: 1 1 auto;
            overflow-y: auto;
            min-height: 0;
            -webkit-overflow-scrolling: touch;
        }
        #loginPage.active, #welcomeNotificationPage.active {
            height: 100vh;
            height: 100dvh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .bottom-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 900;
            display: none; 
            background: #000000;
            border-top: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 -4px 16px rgba(15,23,42,0.25);
            padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        .bottom-nav.active {
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
        .bottom-nav-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            flex: 1 1 0;
            max-width: 110px;
            background: none;
            border: none;
            padding: 4px 2px;
            cursor: pointer;
            color: rgba(255,255,255,0.55);
            transition: color 0.2s ease, transform 0.15s ease;
        }
        .bottom-nav-tab:active { transform: scale(0.93); }
        .bottom-nav-icon { width: 24px; height: 24px; }
        .bottom-nav-label { font-size: 11px; font-weight: 500; }
        .bottom-nav-tab.active { color: #ffffff; }
        
        .bottom-nav-tab-hug,
        .bottom-nav-tab-hug.active {
            color: #ef4444;
        }
        
        .swiftie-fab-wrap {
            position: fixed;
            right: 16px;
            bottom: calc(76px + env(safe-area-inset-bottom, 0px));
            z-index: 901;
            display: none;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }
        .swiftie-fab-wrap.active { display: flex; }
        .swiftie-fab {
            width: 56px;
            height: 56px;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #16335f;
            color: #ffffff;
            border: none;
            box-shadow: 0 8px 20px rgba(15,23,42,0.35);
            cursor: pointer;
            transition: transform 0.15s ease;
        }
        .swiftie-fab:active { transform: scale(0.92); }
        .swiftie-fab svg { width: 26px; height: 26px; }
        .swiftie-fab-label {
            font-size: 10px;
            font-weight: 500;
            color: #ffffff;
            background: #16335f;
            padding: 3px 9px;
            border-radius: 9999px;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(15,23,42,0.3);
        }
        
        @keyframes shieldPulse {
            0%   { transform: scale(1);   opacity: 0.45; }
            100% { transform: scale(1.6); opacity: 0; }
        }
        .shield-alert-ring {
            position: absolute;
            inset: 6px;
            border-radius: 9999px;
            background: #E53935;
            animation: shieldPulse 1.1s ease-out infinite;
            pointer-events: none;
        }
        body.has-bottom-nav .page > main,
        body.has-bottom-nav #genericPageContent {
            padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
        }
        
        .network-btn.selected,
        .data-network-btn.selected,
        .airtime-network-btn.selected {
            border-color: #3b82f6;
            background-color: #eff6ff;
        }
        
        .data-plan-btn.selected {
            border-color: #10b981;
            background-color: #ecfdf5;
        }
        
        .notification-container {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 9999;
            pointer-events: none;
        }
        
        .notification-toast {
            min-width: 300px;
            max-width: 400px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            padding: 16px;
            margin-bottom: 12px;
            transform: translateX(-120%);
            transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            pointer-events: auto;
            border-left: 4px solid;
        }
        
        .notification-toast.show {
            transform: translateX(0);
        }
        
        .notification-toast.error {
            border-left-color: #dc2626;
            background: #fef2f2;
        }
        
        .notification-toast.success {
            border-left-color: #16a34a;
            background: #f0fdf4;
        }
        
        .notification-toast.warning {
            border-left-color: #ea580c;
            background: #fff7ed;
        }
        
        .notification-toast.info {
            border-left-color: #2563eb;
            background: #eff6ff;
        }
        
        .spinner-overlay {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: rgba(15, 23, 42, 0.35);
            backdrop-filter: blur(2px);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.25s ease, visibility 0.25s ease;
        }
        
        .spinner-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .spinner-content {
            text-align: center;
            background: rgba(255,255,255,0.98);
            padding: 28px 36px;
            border-radius: 20px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.08);
            transform: scale(0.85);
            opacity: 0;
            animation: spinnerPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
        }
        @keyframes spinnerPop {
            to { transform: scale(1); opacity: 1; }
        }
        .spinner-text {
            color: #374151;
            font-size: 14px;
            font-weight: 500;
            margin-top: 4px;
        }
        
        .spinner-ring {
            width: 44px;
            height: 44px;
            border: 4px solid rgba(59,130,246,0.15);
            border-top-color: #3b82f6;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 14px;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .platform-ios .spinner-overlay {
            background: rgba(15, 23, 42, 0.15);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
        }
        .platform-ios .spinner-content {
            background: rgba(255,255,255,0.85) !important;
            backdrop-filter: blur(30px) saturate(180%);
            -webkit-backdrop-filter: blur(30px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 24px;
            padding: 30px 40px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.18);
        }
        .platform-ios .spinner-ring {
            width: 34px;
            height: 34px;
            border: none;
            background: none;
            animation: none;
            position: relative;
            margin: 0 auto 16px;
        }
        .platform-ios .spinner-ring::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: conic-gradient(from 0deg, transparent 0%, transparent 65%, #007AFF 100%);
            -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
            animation: iosSpin 0.75s linear infinite;
        }
        @keyframes iosSpin {
            to { transform: rotate(360deg); }
        }
        .platform-ios .spinner-text {
            color: #1c1c1e;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: -0.1px;
        }
        
        .platform-android .spinner-content {
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.24);
        }
        .platform-android .spinner-ring {
            border-color: rgba(103,80,164,0.15);
            border-top-color: #6750A4;
        }
        .platform-android .spinner-text { color: #1c1b1f; }
        
        header.app-header {
            background: linear-gradient(135deg, #0f2447 0%, #16335f 100%) !important;
            border-bottom: none !important;
        }
        header.app-header h1,
        header.app-header span.text-gray-700,
        header.app-header #genericPageTitle {
            color: #ffffff !important;
        }
        header.app-header span.text-gray-400 {
            color: rgba(255,255,255,0.3) !important;
        }
        header.app-header button {
            color: rgba(255,255,255,0.85) !important;
        }
        header.app-header button:hover {
            color: #ffffff !important;
            background: rgba(255,255,255,0.08);
            border-radius: 10px;
        }
        header.app-header svg {
            stroke: currentColor;
        }
        header.app-header #notifBadge {
            border: 2px solid #16335f;
        }
        .platform-ios header.app-header {
            background: linear-gradient(135deg, rgba(15,36,71,0.82) 0%, rgba(22,51,95,0.82) 100%) !important;
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: none !important;
        }
        .platform-desktop header.app-header {
            background: linear-gradient(135deg, #0f2447 0%, #16335f 100%) !important;
            backdrop-filter: none !important;
        }
        
        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1000;
            max-height: 80vh;
            overflow-y: auto;
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }
        
        .bottom-sheet.active {
            transform: translateY(0);
        }
        
        .bottom-sheet-overlay {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
        }
        
        .bottom-sheet-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        header {
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .animate-bounce-in {
            animation: bounceInScale 0.5s ease-out;
        }

        @keyframes bounceInScale {
            0% {
                opacity: 0;
                transform: scale(0.3);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }
        
        .platform-ios header,
        .platform-ios .bottom-sheet,
        .platform-ios .spinner-overlay .spinner-content,
        .platform-ios .notification-toast {
            background: rgba(255,255,255,0.72) !important;
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255,255,255,0.4);
        }
        
        .platform-ios .bottom-nav {
            background: #000000 !important;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-top: 1px solid rgba(255,255,255,0.08);
        }
        .platform-ios header {
            box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 8px 32px rgba(0,0,0,0.04);
            padding-top: env(safe-area-inset-top, 0);
        }
        .platform-ios body {
            padding-bottom: env(safe-area-inset-bottom, 0);
        }
        .platform-ios .bg-white.rounded-xl,
        .platform-ios .bg-white.rounded-2xl,
        .platform-ios .quick-action-card {
            background: rgba(255,255,255,0.85) !important;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }
        .platform-ios button:active:not(:disabled) {
            opacity: 0.85;
        }
        .platform-ios .rounded-xl { border-radius: 18px; }
        .platform-ios .rounded-2xl { border-radius: 22px; }
        .platform-ios .page-enter {
            animation: iosPageEnter 0.42s cubic-bezier(0.32, 0.72, 0, 1) both;
        }
        @keyframes iosPageEnter {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .platform-ios .bottom-sheet {
            transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
            border-radius: 28px 28px 0 0;
        }
        .platform-ios .spinner-overlay {
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .platform-ios ::-webkit-scrollbar { display: none; }
        
        .platform-android header {
            box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08) !important;
        }
        .platform-android .bg-white.rounded-xl,
        .platform-android .bg-white.rounded-2xl,
        .platform-android .quick-action-card {
            border-radius: 12px !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
        }
        .platform-android button:active:not(:disabled) {
            opacity: 0.85;
        }
        .platform-android .quick-action-card:active {
            box-shadow: 0 4px 8px rgba(0,0,0,0.12);
        }
        .platform-android .bottom-nav {
            box-shadow: 0 -1px 8px rgba(0,0,0,0.15);
        }
        .platform-android .page-enter {
            animation: androidPageEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
        }
        @keyframes androidPageEnter {
            from { opacity: 0; }
            to   { opacity: 1; }
        }
        .platform-android body {
            padding-bottom: env(safe-area-inset-bottom, 0);
        }
        
        .platform-desktop button:not(:disabled):hover {
            filter: brightness(1.03);
        }
        .platform-desktop .quick-action-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.1);
        }
        .platform-desktop .bg-white.rounded-xl:hover,
        .platform-desktop .bg-white.rounded-2xl:hover {
            box-shadow: 0 4px 16px rgba(0,0,0,0.06);
        }
        .platform-desktop header {
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            background: rgba(255,255,255,0.92) !important;
        }
        .platform-desktop .max-w-md, .platform-desktop .max-w-2xl, .platform-desktop .max-w-4xl {
            max-width: min(100%, 640px);
        }
        .platform-desktop .max-w-3xl {
            max-width: min(92%, 1120px);
        }
        .platform-desktop button { cursor: pointer; }
        
        .balance-card {
            position: relative;
            border-radius: 22px;
            padding: 14px 18px 14px;
            overflow: hidden;
            background: linear-gradient(135deg, #0f2447 0%, #16335f 55%, #1e3a6e 100%);
            box-shadow: 0 20px 40px -12px rgba(15,36,71,0.45);
        }
        .balance-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%);
            pointer-events: none;
        }
        .balance-row-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            color: rgba(255,255,255,0.72);
            font-size: 13px;
            font-weight: 500;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
        }
        .balance-row-link:hover { color: #ffffff; }
        .balance-eye-btn {
            color: rgba(255,255,255,0.72);
            padding: 4px;
            border-radius: 8px;
            transition: color 0.2s ease, background 0.2s ease;
        }
        .balance-eye-btn:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
        .balance-eye-btn-lg { padding: 3px; border-radius: 10px; }
        .balance-eye-btn-lg svg { width: 20px; height: 20px; }
        .balance-row-link-lg { font-size: 15px; font-weight: 500; }
        .balance-figure-label { color: rgba(255,255,255,0.62); font-size: 12px; font-weight: 500; }
        .balance-figure-value { color: #ffffff; font-weight: 700; letter-spacing: -0.01em; }
        .balance-btn-primary {
            background: #ffffff;
            color: #16335f;
            font-weight: 600;
        }
        .balance-btn-primary:hover { background: #f1f5f9; }
        .balance-btn-secondary {
            background: rgba(255,255,255,0.14);
            color: #ffffff;
            border: 1px solid rgba(255,255,255,0.18);
            font-weight: 500;
        }
        .balance-btn-secondary:hover { background: rgba(255,255,255,0.22); }
        
        .stat-card {
            background: #f8fafc;
            border: 1px solid #eef1f5;
            border-radius: 20px;
        }
        .stat-divider { width: 1px; align-self: stretch; background: #e2e8f0; }

        .services-card {
            background: #f8fafc;
            border: 1px solid #eef1f5;
            border-radius: 20px;
            padding: 16px 8px;
        }
        html.dark .services-card { background: #131b2c; border-color: #263151; }
        
        .action-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 8px;
            cursor: pointer;
            border: none;
            background: none;
            padding: 0;
            text-decoration: none;
        }
        .action-tile-icon {
            position: relative;
            width: 64px;
            height: 64px;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #dbeafe;
            color: #16335f;
            transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
        }
        .action-tile-icon svg { width: 27px; height: 27px; }
        .action-tile-icon svg[stroke-width] { stroke-width: 1.85 !important; }
        .action-tile:hover .action-tile-icon { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,0.25); }
        .action-tile:active .action-tile-icon { transform: scale(0.93); }
        .action-tile-label {
            font-size: 12.5px;
            font-weight: 500;
            color: #374151;
            line-height: 1.25;
            
            max-width: 100%;
            white-space: nowrap;
        }
        .action-tile-more .action-tile-icon {
            background: #16335f;
            color: #ffffff;
        }
        .action-tile-more .action-tile-icon svg { width: 22px; height: 22px; }
        .action-tile-whatsapp .action-tile-icon {
            background: #25D366;
            color: #ffffff;
        }
        .action-tile-badge {
            position: absolute;
            top: -4px;
            right: -6px;
            background: #16a34a;
            color: #fff;
            font-size: 9px;
            font-weight: 600;
            padding: 2px 5px;
            border-radius: 8px;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        .action-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 24px 12px;
        }
        .action-grid-3 {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 24px 12px;
        }
        .action-tile { width: 100%; }
        .section-heading {
            font-size: 18px;
            font-weight: 600;
            color: #111827;
        }
        
        .platform-ios .balance-card { border-radius: 28px; }
        .platform-ios .stat-card { border-radius: 24px; background: rgba(248,250,252,0.9); backdrop-filter: blur(8px); }
        .platform-ios .action-tile-icon { border-radius: 18px; }
        .platform-android .balance-card { border-radius: 16px; box-shadow: 0 4px 14px rgba(15,23,42,0.28); }
        .platform-android .stat-card { border-radius: 14px; }
        .platform-android .action-tile-icon { border-radius: 16px; }
        
        .login-shell {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px 16px;
            background: radial-gradient(120% 100% at 15% 0%, #eef2fb 0%, #f4f6fb 45%, #eef1f6 100%);
            position: relative;
            overflow: hidden;
        }
        .login-orb {
            position: absolute;
            border-radius: 9999px;
            filter: blur(2px);
            opacity: 0.5;
        }
        .login-card {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 400px;
            background: rgba(255,255,255,0.92);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.6);
            border-radius: 28px;
            padding: 36px 30px 30px;
            box-shadow: 0 24px 60px -16px rgba(15,36,71,0.25);
        }
        .login-input {
            width: 100%;
            padding: 13px 44px 13px 44px;
            background: #f8fafc;
            border: 1.5px solid #e5e9f0;
            border-radius: 14px;
            color: #0f172a;
            transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        }
        .login-input:focus {
            outline: none;
            border-color: #16335f;
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(22,51,95,0.08);
        }
        .login-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
        .login-submit-btn {
            width: 100%;
            padding: 14px 16px;
            border-radius: 14px;
            font-weight: 600;
            color: #ffffff;
            background: linear-gradient(135deg, #0f2447 0%, #16335f 100%);
            box-shadow: 0 12px 24px -8px rgba(15,36,71,0.5);
            transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        }
        .login-submit-btn:hover { box-shadow: 0 16px 28px -8px rgba(15,36,71,0.55); }
        .login-submit-btn:active { transform: scale(0.98); }
        .platform-ios .login-card { border-radius: 32px; }
        .platform-ios .login-input { border-radius: 16px; }
        .platform-ios .login-submit-btn { border-radius: 16px; }
        .platform-android .login-card { border-radius: 18px; box-shadow: 0 8px 24px rgba(15,23,42,0.16); }
        .platform-android .login-input { border-radius: 10px; }
        .platform-android .login-submit-btn { border-radius: 10px; }
        
        .theme-switch {
            position: relative;
            width: 44px;
            height: 26px;
            border-radius: 9999px;
            background: #d1d5db;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: background 0.25s ease;
            flex-shrink: 0;
        }
        .theme-switch[aria-checked="true"] { background: #3b6bc7; }
        .theme-switch-thumb {
            position: absolute;
            top: 3px;
            left: 3px;
            width: 20px;
            height: 20px;
            border-radius: 9999px;
            background: #ffffff;
            box-shadow: 0 1px 3px rgba(0,0,0,0.25);
            transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
        }
        .theme-switch[aria-checked="true"] .theme-switch-thumb { transform: translateX(18px); }

        html.dark { color-scheme: dark; }
        html.dark body { background-color: #0a0f1a; color: #cbd5e3; }
        html.dark input, html.dark textarea, html.dark select {
            color: #f1f5fb;
        }

        html.dark .bg-white { background-color: #131b2c !important; }
        
        .icon-badge-blue   { background: #dbeafe; }
        .icon-badge-red    { background: #fee2e2; }
        .icon-badge-green  { background: #dcfce7; }
        .icon-badge-purple { background: #ede9fe; }
        .icon-badge-gray   { background: #f1f5f9; }
        .icon-badge-whatsapp { background: #e7f9ee; }
        .icon-badge-fg-blue   { color: #2563eb; }
        .icon-badge-fg-red    { color: #ef4444; }
        .icon-badge-fg-green  { color: #10b981; }
        .icon-badge-fg-purple { color: #7c3aed; }
        .icon-badge-fg-gray   { color: #64748b; }
        .icon-badge-fg-whatsapp { color: #25D366; }
        html.dark .icon-badge-blue   { background: #17314f !important; }
        html.dark .icon-badge-red    { background: #4a1b1f !important; }
        html.dark .icon-badge-green  { background: #144330 !important; }
        html.dark .icon-badge-purple { background: #2f2149 !important; }
        html.dark .icon-badge-gray   { background: #232e45 !important; }
        html.dark .icon-badge-whatsapp { background: #123626 !important; }
        html.dark .icon-badge-fg-blue   { color: #7ab2ff !important; }
        html.dark .icon-badge-fg-red    { color: #ff8080 !important; }
        html.dark .icon-badge-fg-green  { color: #4fd88a !important; }
        html.dark .icon-badge-fg-purple { color: #bd93fc !important; }
        html.dark .icon-badge-fg-gray   { color: #a7b3c8 !important; }
        html.dark .icon-badge-fg-whatsapp { color: #4ade80 !important; }

        html.dark.platform-ios .bg-white.rounded-xl,
        html.dark.platform-ios .bg-white.rounded-2xl {
            background: rgba(19,27,44,0.85) !important;
            border-color: rgba(255,255,255,0.06) !important;
        }
        
        html.dark .from-blue-50.to-indigo-50   { background: #142a4d !important; }
        html.dark .from-blue-50.to-indigo-100  { background: #142a4d !important; }
        html.dark .from-gray-50.to-slate-50    { background: #131b2c !important; }
        html.dark .from-green-50.to-emerald-50 { background: #103322 !important; }
        html.dark .from-purple-50.to-indigo-100 { background: #241a3a !important; }
        html.dark .from-purple-50.to-indigo-50  { background: #241a3a !important; }
        html.dark .from-yellow-50.to-amber-50  { background: #3a2a0d !important; }
        html.dark .bg-gray-50 { background-color: #0e1524 !important; }
        html.dark .bg-gray-100 { background-color: #1a2338 !important; }
        html.dark .bg-gray-200 { background-color: #232e45 !important; }
        html.dark .bg-gray-300 { background-color: #2c3854 !important; }
        html.dark .bg-gray-400 { background-color: #38445f !important; }
        html.dark .bg-gray-500 { background-color: #445068 !important; }
        html.dark .hover\:bg-gray-100:hover { background-color: #202b42 !important; }
        html.dark .hover\:bg-gray-200:hover { background-color: #29354e !important; }

        html.dark .text-gray-900 { color: #f1f5fb !important; }
        html.dark .text-gray-800 { color: #e4eaf3 !important; }
        html.dark .text-gray-700 { color: #cbd5e3 !important; }
        html.dark .text-gray-600 { color: #a7b3c8 !important; }
        html.dark .text-gray-500 { color: #8592a9 !important; }
        html.dark .text-gray-400 { color: #667089 !important; }
        html.dark .text-gray-300 { color: #4b5670 !important; }

        html.dark .border-gray-100 { border-color: #1f2a40 !important; }
        html.dark .border-gray-200 { border-color: #263151 !important; }
        html.dark .border-gray-300 { border-color: #334066 !important; }
        html.dark .divide-gray-100 > * + * { border-color: #1f2a40 !important; }
        html.dark .divide-gray-200 > * + * { border-color: #263151 !important; }

        html.dark .shadow-sm, html.dark .shadow, html.dark .shadow-md,
        html.dark .shadow-lg, html.dark .shadow-xl, html.dark .shadow-2xl {
            box-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
        }
        
        html.dark .bg-blue-50   { background-color: #142a4d !important; }
        html.dark .bg-blue-100  { background-color: #1a3660 !important; }
        html.dark .bg-blue-200  { background-color: #204378 !important; }
        html.dark .border-blue-200 { border-color: #2a4a80 !important; }
        html.dark .border-blue-300 { border-color: #345a95 !important; }
        html.dark .border-blue-400 { border-color: #4472b8 !important; }
        html.dark .border-blue-500 { border-color: #5a8ad6 !important; }
        html.dark .border-blue-600 { border-color: #6ea8fd !important; }
        html.dark .text-blue-500 { color: #7ab2ff !important; }
        html.dark .text-blue-600 { color: #6ea8fd !important; }
        html.dark .text-blue-700 { color: #9cc4ff !important; }
        
        html.dark .bg-green-50  { background-color: #103322 !important; }
        html.dark .bg-green-100 { background-color: #144330 !important; }
        html.dark .bg-green-200 { background-color: #18523c !important; }
        html.dark .border-green-200 { border-color: #205a3f !important; }
        html.dark .border-green-300 { border-color: #2a6c4b !important; }
        html.dark .border-green-500 { border-color: #3fa06c !important; }
        html.dark .border-green-600 { border-color: #4fd88a !important; }
        html.dark .text-green-600 { color: #4fd88a !important; }
        html.dark .text-green-700 { color: #7ee6ab !important; }
        html.dark .text-green-800 { color: #a3f2c6 !important; }
        
        html.dark .bg-emerald-50  { background-color: #0f3227 !important; }
        html.dark .bg-emerald-100 { background-color: #134233 !important; }
        html.dark .border-emerald-300 { border-color: #2a6c58 !important; }
        html.dark .border-emerald-500 { border-color: #3fa088 !important; }
        html.dark .border-emerald-600 { border-color: #46d1a5 !important; }
        html.dark .text-emerald-500 { color: #4fd8ae !important; }
        html.dark .text-emerald-600 { color: #46d1a5 !important; }
        html.dark .text-emerald-700 { color: #79e6c4 !important; }
        
        html.dark .bg-red-50  { background-color: #3a1518 !important; }
        html.dark .bg-red-100 { background-color: #4a1b1f !important; }
        html.dark .border-red-100 { border-color: #4a1b1f !important; }
        html.dark .border-red-200 { border-color: #5c2126 !important; }
        html.dark .border-red-400 { border-color: #b34f52 !important; }
        html.dark .text-red-400 { color: #ff8a8a !important; }
        html.dark .text-red-500 { color: #ff9b9b !important; }
        html.dark .text-red-600 { color: #ff8080 !important; }
        html.dark .text-red-700 { color: #ffabab !important; }
        html.dark .text-red-800 { color: #ffc5c5 !important; }
        
        html.dark .bg-yellow-50  { background-color: #3a2a0d !important; }
        html.dark .bg-yellow-100 { background-color: #4a3611 !important; }
        html.dark .border-yellow-200 { border-color: #5c4515 !important; }
        html.dark .border-yellow-300 { border-color: #70551a !important; }
        html.dark .border-yellow-400 { border-color: #9c7826 !important; }
        html.dark .border-yellow-500 { border-color: #cc9f33 !important; }
        html.dark .text-yellow-500 { color: #ffd873 !important; }
        html.dark .text-yellow-600 { color: #ffcc4d !important; }
        html.dark .text-yellow-700 { color: #ffdd8a !important; }
        html.dark .text-yellow-800 { color: #ffe8ab !important; }
        
        html.dark .bg-purple-50  { background-color: #241a3a !important; }
        html.dark .bg-purple-100 { background-color: #2f2149 !important; }
        html.dark .border-purple-200 { border-color: #3a2b58 !important; }
        html.dark .border-purple-300 { border-color: #48356c !important; }
        html.dark .border-purple-500 { border-color: #8262c4 !important; }
        html.dark .border-purple-600 { border-color: #bd93fc !important; }
        html.dark .text-purple-500 { color: #c9a4ff !important; }
        html.dark .text-purple-600 { color: #bd93fc !important; }
        html.dark .text-purple-700 { color: #d6bbff !important; }
        html.dark .text-purple-800 { color: #e5d1ff !important; }
        
        html.dark .bg-indigo-50  { background-color: #1c1f45 !important; }
        html.dark .bg-indigo-100 { background-color: #262a5a !important; }
        html.dark .bg-indigo-200 { background-color: #303570 !important; }
        html.dark .border-indigo-300 { border-color: #3d4380 !important; }
        html.dark .border-indigo-600 { border-color: #9aa4ff !important; }
        html.dark .text-indigo-600 { color: #9aa4ff !important; }
        html.dark .text-indigo-700 { color: #b6bdff !important; }
        
        html.dark .bg-pink-50  { background-color: #3a1530 !important; }
        html.dark .bg-pink-100 { background-color: #4a1c3d !important; }
        html.dark .border-pink-300 { border-color: #6b2c58 !important; }
        html.dark .border-pink-600 { border-color: #ff8fc4 !important; }
        html.dark .text-pink-600 { color: #ff8fc4 !important; }
        html.dark .text-pink-700 { color: #ffabd3 !important; }
        
        html.dark .bg-orange-600 { background-color: #c2580f !important; }
        html.dark .text-orange-400 { color: #ffb37a !important; }
        html.dark .text-orange-600 { color: #ffab6e !important; }
        
        html.dark .bg-slate-300 { background-color: #45536f !important; }

        html.dark .stat-card { background: #131b2c; border-color: #263151; }
        html.dark .action-tile-icon { background: #17314f !important; }
        html.dark .action-tile-icon svg { color: #9fc4f5 !important; }
        html.dark .action-tile-more .action-tile-icon { background: #3b6bc7 !important; }
        html.dark .action-tile-more .action-tile-icon svg { color: #ffffff !important; }
        html.dark .action-tile-label { color: #cbd5e3; }
        html.dark .section-heading { color: #f1f5fb; }

        html.dark header.app-header { background-color: #0a0f1a !important; border-color: #1f2a40 !important; }

        html.dark .login-shell { background: radial-gradient(120% 100% at 15% 0%, #14203a 0%, #0a0f1a 45%, #0a0f1a 100%); }
        html.dark .login-card { background: rgba(19,27,44,0.94); border-color: rgba(255,255,255,0.06); }
        
        html.dark .text-\[\#16335f\] { color: #7ab2ff !important; }
        html.dark .border-\[\#16335f\] { border-color: #7ab2ff !important; }
        html.dark .focus\:border-\[\#16335f\]:focus { border-color: #7ab2ff !important; }
        html.dark .focus\:ring-\[\#16335f\]:focus { --tw-ring-color: #7ab2ff !important; }

        html.dark .login-input { background: #0e1524; border-color: #263151; color: #f1f5fb; }
        html.dark .login-input:focus { background: #131b2c; border-color: #3b6bc7; }
        html.dark .login-input-icon { color: #667089; }

        html.dark input::placeholder, html.dark textarea::placeholder { color: #667089 !important; opacity: 1; }
        html.dark select { background-color: #0e1524 !important; color: #f1f5fb !important; }

body.nav-busy { pointer-events: none; }
.bottom-nav { position: fixed; }
.bottom-nav-indicator {
    position: absolute; top: 0; left: 0;
    width: 28px; height: 3px; border-radius: 0 0 4px 4px;
    background: #ffffff; opacity: 0;
    box-shadow: 0 2px 10px rgba(255,255,255,0.45);
    transition: transform 0.38s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
    pointer-events: none; will-change: transform;
}
.bottom-nav[data-active="pexvia-hug"] .bottom-nav-indicator {
    background: #ef4444; box-shadow: 0 2px 10px rgba(239,68,68,0.55);
}
.bottom-nav-icon { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bottom-nav-tab.active .bottom-nav-icon { animation: navIconPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bottom-nav-tab.active .bottom-nav-label { letter-spacing: 0.01em; }
@keyframes navIconPop {
    0%   { transform: translateY(2px) scale(0.82); }
    60%  { transform: translateY(-3px) scale(1.12); }
    100% { transform: translateY(0) scale(1); }
}
.bottom-nav-tab:focus-visible { outline: 2px solid rgba(255,255,255,0.7); outline-offset: 2px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
    .page-enter, .bottom-nav-indicator, .bottom-nav-icon,
    .bottom-nav-tab.active .bottom-nav-icon { animation: none !important; transition: none !important; }
}
.bottom-nav-tab, .bottom-nav-tab:hover { text-decoration: none; }

:root { --z: 1; }   
@media (hover: hover) and (pointer: fine) {
    :root { --z: 0.808; }  
}
html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    overflow: hidden; position: fixed;
    overscroll-behavior: none; touch-action: pan-x pan-y;
    -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
html body { min-height: 0; }
#app-container {
    width: 100%;
    
    height: 99.9vh; max-height: 99.9vh; min-height: 99.9vh;
    height: 99.9dvh; max-height: 99.9dvh; min-height: 99.9dvh;
    position: relative; overflow: hidden;
    -webkit-transform: translateZ(0); transform: translateZ(0);
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
#app-scale {
    position: relative;
    width: calc(100% / var(--z)); height: calc(100% / var(--z));
    -webkit-transform: scale(var(--z)); transform: scale(var(--z));
    -webkit-transform-origin: 0 0; transform-origin: 0 0;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
}

input, textarea, select { font-size: 16px !important; }

#dashboardPage.active, #genericPage.active,
#loginPage.active, #welcomeNotificationPage.active { height: calc(99.9vh / var(--z)); height: calc(99.9dvh / var(--z)); }
.login-shell { min-height: calc(99.9dvh / var(--z)); }
.bottom-sheet { max-height: calc(80dvh / var(--z)); }
html .min-h-screen { min-height: calc(99.9dvh / var(--z)); }
html body.min-h-screen { min-height: 0; }
html .max-h-\[90vh\] { max-height: calc(90dvh / var(--z)); }
html .min-h-\[60vh\] { min-height: calc(60dvh / var(--z)); }

:root { --brand: #16335f; --brand-soft: #eef3fb; --brand-ring: rgba(22,51,95,0.12); --line: #e2e8f0; }

input[type="text"], input[type="tel"], input[type="number"], input[type="email"],
input[type="password"], input[type="search"], select, textarea {
    border-color: var(--line); border-radius: 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-ring);
}
input::placeholder, textarea::placeholder { color: #94a3b8; }

.quick-amount-btn, .transfer-quick-amount, .bank-transfer-quick-amount, .bet-quick-chip, .a2c-quick-amount, .fund-chip {
    border-radius: 999px !important; background: #f1f5f9 !important; color: #334155 !important;
    font-weight: 500 !important; padding: 8px 14px !important; border: 1.5px solid #cbd5e1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.quick-amount-btn:hover, .transfer-quick-amount:hover, .bank-transfer-quick-amount:hover, .bet-quick-chip:hover, .a2c-quick-amount:hover, .fund-chip:hover {
    background: var(--brand-soft) !important; color: var(--brand) !important; border-color: #c9d6ea;
}

.data-network-btn, .airtime-network-btn, .a2c-network-btn, .a2c-mode-btn {
    border: 1.5px solid var(--line) !important; border-radius: 16px !important; background: #fff;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.data-network-btn:hover, .airtime-network-btn:hover, .a2c-network-btn:hover, .a2c-mode-btn:hover { border-color: #c2cfe3 !important; }
.data-network-btn.selected, .airtime-network-btn.selected, .a2c-network-btn.selected,
.a2c-mode-btn.selected, .a2c-network-btn.border-\[\#16335f\] {
    border-color: var(--brand) !important; background: var(--brand-soft) !important; box-shadow: 0 0 0 3px var(--brand-ring);
}

.rounded-xl.shadow-sm.border, .rounded-2xl.shadow-sm.border { border-radius: 16px; box-shadow: 0 1px 2px rgba(15,36,71,.05), 0 4px 14px rgba(15,36,71,.04); }

.loader-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(246,248,252,0.78);
    -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
    opacity: 0; visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}
.loader-overlay.active { opacity: 1; visibility: visible; }
.loader-card { display: flex; flex-direction: column; align-items: center; padding: 0 32px; text-align: center; }
.loader-mark { position: relative; width: 76px; height: 76px; }
.loader-logo {
    position: absolute; inset: 13px; width: 50px; height: 50px; border-radius: 15px; object-fit: cover;
    box-shadow: 0 6px 18px rgba(22,51,95,0.28);
    animation: loaderBreathe 1.8s ease-in-out infinite;
}
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: loaderSpin 1.3s linear infinite; }
.loader-track, .loader-arc { fill: none; stroke-width: 3; }
.loader-track { stroke: rgba(22,51,95,0.10); }
.loader-arc { stroke: #16335f; stroke-linecap: round; stroke-dasharray: 60 154; animation: loaderArc 1.6s ease-in-out infinite; }
.loader-text { margin-top: 18px; font-size: 13.5px; font-weight: 500; letter-spacing: .01em; color: #475569; max-width: 240px; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderArc { 0% { stroke-dasharray: 20 194; } 50% { stroke-dasharray: 100 114; } 100% { stroke-dasharray: 20 194; } }
@keyframes loaderBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
html.dark .loader-overlay { background: rgba(8,12,20,0.78); }
html.dark .loader-track { stroke: rgba(255,255,255,0.12); }
html.dark .loader-arc { stroke: #8fb0e6; }
html.dark .loader-text { color: #aab6c8; }
html.dark .loader-logo { box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
@media (prefers-reduced-motion: reduce) { .loader-logo { animation: none; } .loader-ring { animation-duration: 2.4s; } }

.sk {
    display: block; border-radius: 7px; background: rgba(255,255,255,0.13);
    background-image: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 70%);
    background-size: 220% 100%; background-repeat: no-repeat;
    animation: skSweep 1.4s ease-in-out infinite;
}
@keyframes skSweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

.a2c-otp-digit, .pin-digit {
    width: 100%; max-width: 52px; height: 58px; text-align: center; font-size: 22px; font-weight: 600;
    background: #f8fafc; border: 1.5px solid var(--line); border-radius: 14px; color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.a2c-otp-digit:focus, .pin-digit:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); outline: none; }
.a2c-otp-digit:not(:placeholder-shown), .a2c-otp-digit[value]:not([value=""]) { border-color: #9db3d4; }
html.dark .a2c-otp-digit, html.dark .pin-digit { background: #131b2c; color: #e5ecf6; }

.tap { transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.tap:active { transform: scale(0.975); }
.view-in      { animation: viewIn .34s cubic-bezier(.22,1,.36,1) both; }
.view-in-back { animation: viewInBack .34s cubic-bezier(.22,1,.36,1) both; }
@keyframes viewIn     { from { opacity: 0; transform: translateX(26px); }  to { opacity: 1; transform: none; } }
@keyframes viewInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.stagger > .stg, .stagger .stg, .stg { animation: riseIn .5s cubic-bezier(.22,1,.36,1) both; }
.stagger > .stg:nth-child(1) { animation-delay: .02s; } .stagger > .stg:nth-child(2) { animation-delay: .07s; }
.stagger > .stg:nth-child(3) { animation-delay: .12s; } .stagger > .stg:nth-child(4) { animation-delay: .17s; }
.stagger > .stg:nth-child(5) { animation-delay: .22s; } .stagger > .stg:nth-child(6) { animation-delay: .27s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sheet-root { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.sheet-root.open { pointer-events: auto; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10,20,40,.5); opacity: 0; transition: opacity .28s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet-root.open .sheet-bg { opacity: 1; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 22px 30px;
    transform: translateY(105%); transition: transform .36s cubic-bezier(.22,1,.36,1); box-shadow: 0 -12px 40px rgba(10,20,40,.18); }
.sheet-root.open .sheet-panel { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: #dbe2ec; margin: 0 auto 18px; }
html.dark .sheet-panel { background: #121a2a; }

.pin-cell { width: 54px; height: 62px; border-radius: 18px; background: #f1f5f9; border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.pin-cell.active { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-ring); }
.pin-cell.filled::after { content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); animation: pinPop .22s cubic-bezier(.34,1.56,.64,1); }
@keyframes pinPop { from { transform: scale(0); } to { transform: scale(1); } }
.shake { animation: shakeX .38s ease; }
@keyframes shakeX { 0%,100% { transform: none; } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

.done-badge { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; }
.done-ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(16,185,129,.16); animation: doneRing 1.6s ease-out infinite; }
.done-core { position: relative; width: 78px; height: 78px; border-radius: 50%; background: #10b981; display: flex; align-items: center; justify-content: center; animation: donePop .5s cubic-bezier(.34,1.56,.64,1) both; box-shadow: 0 10px 26px rgba(16,185,129,.35); }
.draw-check path { stroke-dasharray: 26; stroke-dashoffset: 26; animation: drawCheck .45s .28s ease forwards; }
@keyframes donePop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes doneRing { 0% { transform: scale(.82); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
#fundCopy.copied { background: #10b981; color: #fff; }
@media (prefers-reduced-motion: reduce) { .view-in, .view-in-back, .stg, .sheet-panel, .done-ring, .done-core, .pin-cell.filled::after { animation: none !important; transition: none !important; } }

html.dark { --brand-soft: #17243d; --brand-ring: rgba(122,178,255,0.22); --line: #263151; }
html.dark .bottom-sheet { background: #131b2c; box-shadow: 0 -4px 24px rgba(0,0,0,0.55); }
html.dark .data-network-btn, html.dark .airtime-network-btn,
html.dark .a2c-network-btn, html.dark .a2c-mode-btn { background: #131b2c; }
html.dark .data-network-btn:hover, html.dark .airtime-network-btn:hover,
html.dark .a2c-network-btn:hover, html.dark .a2c-mode-btn:hover { border-color: #3a4a72 !important; }
html.dark .data-network-btn.selected, html.dark .airtime-network-btn.selected,
html.dark .a2c-network-btn.selected, html.dark .a2c-mode-btn.selected,
html.dark .a2c-network-btn.border-\[\#16335f\] {
  border-color: #7ab2ff !important; background: #17243d !important; box-shadow: 0 0 0 3px rgba(122,178,255,0.22);
}
html.dark .bg-\[\#eef3fb\] { background-color: #17243d !important; }
html.dark .hover\:bg-\[\#eef3fb\]:hover { background-color: #1d2c49 !important; }
html.dark .bg-gray-200\/70 { background-color: rgba(35,46,69,0.7) !important; }
html.dark .border-gray-200\/70 { border-color: rgba(38,49,81,0.7) !important; }
html.dark .text-gray-300 { color: #6b7790 !important; }

html:not(.dark) .text-gray-400 { color: #7c8493; }
html:not(.dark) .text-gray-300 { color: #858d9b; }
html:not(.dark) .text-emerald-500, html:not(.dark) .icon-badge-fg-green { color: #059669 !important; }
html:not(.dark) .text-green-500 { color: #16a34a; }

:root { --line-strong: #cbd5e1; }
html.dark { --line-strong: #3a4a73; }

html .border-gray-100 { border-color: #dfe5ef; }
html .border-gray-200 { border-color: #cbd5e1; }
html .border-gray-300 { border-color: #b4c0d3; }

html :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not(.cs-input):not(.amount-input), select, textarea) {
    border: 1.5px solid var(--line-strong); background-color: #fff;
}
html.dark :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not(.cs-input):not(.amount-input), select, textarea) {
    background-color: #131b2c;
}

html :where(.bg-white.rounded-xl, .bg-white.rounded-2xl, .bg-white.rounded-3xl) { border: 1.5px solid var(--line); }

.data-network-btn, .airtime-network-btn, .a2c-network-btn, .a2c-mode-btn, .bet-card, .data-plan-btn {
    box-sizing: border-box; min-width: 0; transform: none !important; border: 1.5px solid var(--line-strong) !important;
}
.a2c-network-btn { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; min-height: 128px; }
.a2c-network-btn img { width: 100%; height: 100%; object-fit: contain; display: block; }
.a2c-network-btn:disabled, .a2c-network-btn[disabled] { opacity: .55; cursor: not-allowed; }

.ripple-btn:disabled, button[class*="disabled:bg-gray-"]:disabled {
    background: #dbe2ee !important; color: #5f6f8a !important; border: 1.5px solid #c3cddd; cursor: not-allowed; opacity: 1;
}
html.dark .ripple-btn:disabled, html.dark button[class*="disabled:bg-gray-"]:disabled { background: #1c2740 !important; color: #8393b0 !important; border-color: #2b3858; }

button:active, a:active, .quick-action-card:active, .action-tile:active, [class*="active:scale"]:active { transform: none !important; }

#fundChange { border: 1.5px solid #c9d6ea; }

html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select, [contenteditable="true"], .pxm-msg, .selectable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, picture, video { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

.\!py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.\!py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.\!py-3\.5 { padding-top: .875rem !important; padding-bottom: .875rem !important; }
.\!text-\[13px\] { font-size: 13px !important; }
.divide-x > :not([hidden]) ~ :not([hidden]) { border-left-width: 1px; border-right-width: 0; border-color: #f3f4f6; }
.gap-8 { gap: 2rem; }
.h-14 { height: 3.5rem; }
.mt-3\.5 { margin-top: .875rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.px-3\.5 { padding-left: .875rem; padding-right: .875rem; }
.text-\[12\.5px\] { font-size: 12.5px; }
.text-\[12px\] { font-size: 12px; }

.pex-pay { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 16px; background: #fff; border: 1.5px solid #cbd5e1; border-radius: 18px; text-align: left; cursor: pointer; font: inherit; color: #0f172a; -webkit-appearance: none; appearance: none; }
.pex-pay:active { background: #f8fafc; }
.pex-pay:disabled { opacity: .6; cursor: not-allowed; }
.pex-pay-ic, .pex-opt-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.pex-pay-ic svg, .pex-opt-ic svg { width: 22px; height: 22px; }
.pex-pay-tx, .pex-opt-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pex-pay-k { font-size: 12.5px; color: #64748b; line-height: 1.2; }
.pex-pay-v { font-size: 16px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pex-pay-act { flex: none; padding: 9px 16px; border: 1.5px solid #16335f; border-radius: 12px; color: #16335f; font-size: 14px; font-weight: 700; line-height: 1; }
.pex-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 12px 16px; margin: 0 0 10px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 18px; text-align: left; cursor: pointer; font: inherit; color: #0f172a; -webkit-appearance: none; appearance: none; }
.pex-opt:active { background: #f8fafc; }
.pex-opt.on { border-color: #16335f; background: #f3f7ff; }
.pex-opt.off { opacity: .55; }
.pex-opt-t { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.pex-opt-s { font-size: 13px; color: #64748b; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pex-opt-chk { flex: none; width: 22px; height: 22px; border-radius: 99px; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; }
.pex-opt.on .pex-opt-chk { background: #16335f; border-color: #16335f; }
.pex-opt.on .pex-opt-chk::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pex-link { display: block; text-align: center; padding: 12px; font-size: 14.5px; font-weight: 700; color: #16335f; }
.pxs-btn { min-height: 54px; }

.pex-inline-err { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 13px; line-height: 1.4; font-weight: 500; text-align: left; animation: pexErrIn .18s ease-out; }
@keyframes pexErrIn { from { opacity: 0; } to { opacity: 1; } }
