@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* PeakBoost Premium Colors */
        --bg-deep: #05070a;
            --bg-glow: #0a111c;
                --surface: linear-gradient(145deg, #101520, #080b11);
                    --brand-blue: #38b6ff;
                        --brand-blue-hover: #5ec4ff;
                            --brand-red: #ff2a2a;
                                --text-main: #ffffff;
                                    --text-muted: #8492a6;
                                        --border-light: rgba(56, 182, 255, 0.15);
                                            --shadow-blue: rgba(56, 182, 255, 0.25);
                                                
                                                    /* Legacy variables for compatibility */
                                                        --success: #34d399;
                                                            --danger: #ff2a2a;
                                                                --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                                                                    --nav-height: 68px;
                                                                        --safe-bottom: env(safe-area-inset-bottom, 20px);
                                                                            --safe-top: env(safe-area-inset-top, 0px);
                                                                            }

                                                                            *, *::before, *::after {
                                                                                box-sizing: border-box;
                                                                                    margin: 0;
                                                                                        padding: 0;
                                                                                            -webkit-tap-highlight-color: transparent;
                                                                                            }

                                                                                            html { font-size: 16px; }

                                                                                            body {
                                                                                                background-color: var(--bg-deep);
                                                                                                    background-image: radial-gradient(circle at 50% 0%, var(--bg-glow) 0%, transparent 70%);
                                                                                                        color: var(--text-main);
                                                                                                            font-family: 'Inter', sans-serif;
                                                                                                                padding-bottom: 90px;
                                                                                                                    min-height: 100vh;
                                                                                                                        overflow-x: hidden;
                                                                                                                            display: flex;
                                                                                                                                flex-direction: column;
                                                                                                                                }

                                                                                                                                #app { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 1; }
                                                                                                                                .hidden { display: none !important; }

                                                                                                                                h1, h2, h3, .brand-title, .btn, .section-title { font-family: 'Rajdhani', sans-serif; }

                                                                                                                                /* Screens Routing */
                                                                                                                                .screen { display: none; flex-direction: column; width: 100%; max-width: 500px; margin: 0 auto; flex: 1; overflow-y: auto; }
                                                                                                                                .screen.active { display: flex; animation: fadeIn 0.3s ease forwards; }
                                                                                                                                @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

                                                                                                                                /* Headers & Containers */
                                                                                                                                .container { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
                                                                                                                                .header { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative; }
                                                                                                                                .header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100px; height: 1px; background: var(--brand-blue); box-shadow: 0 0 10px var(--brand-blue); }
                                                                                                                                .screen-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
                                                                                                                                .screen-header h1 { font-size: 22px; color: var(--brand-blue); text-transform: uppercase; letter-spacing: 1px; }

                                                                                                                                .logo-placeholder { width: 54px; height: 54px; border-radius: 12px; border: 1px solid var(--border-light); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), 0 0 15px var(--shadow-blue); object-fit: cover; }
                                                                                                                                .brand-title { font-size: 26px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; background: linear-gradient(to right, #fff, #a0abc0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
                                                                                                                                .brand-title span { background: linear-gradient(to right, var(--brand-blue), #00e5ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

                                                                                                                                /* Cards & Badges */
                                                                                                                                .card { background: var(--surface); border: 1px solid var(--border-light); border-radius: 12px; box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2); margin-bottom: 14px; padding: 18px; position: relative; overflow: hidden; }
                                                                                                                                .badge-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
                                                                                                                                .badge { font-size: 0.65rem; padding: 4px 10px; border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Rajdhani', sans-serif; }
                                                                                                                                .badge-gold { background: rgba(56, 182, 255, 0.15); color: var(--brand-blue); border: 1px solid rgba(56, 182, 255, 0.3); }
                                                                                                                                .badge-gray { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }
                                                                                                                                .badge-danger { background: rgba(255, 42, 42, 0.15); color: var(--brand-red); border: 1px solid rgba(255, 42, 42, 0.3); }

                                                                                                                                /* Typography & Elements */
                                                                                                                                p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
                                                                                                                                .price-tag { font-size: 1.25rem; font-weight: 700; color: #fff; font-family: 'Rajdhani', sans-serif; }
                                                                                                                                .avatar-circle { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, rgba(56, 182, 255, 0.1), rgba(0,0,0,0.5)); border: 2px solid var(--brand-blue); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: var(--brand-blue); margin-bottom: 16px; box-shadow: 0 0 20px var(--shadow-blue); }

                                                                                                                                /* Inputs */
                                                                                                                                .input-field { background: rgba(10, 15, 24, 0.6); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-main); padding: 16px; font-size: 15px; border-radius: 6px; outline: none; transition: all 0.3s ease; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); width: 100%; margin-bottom: 14px;}
                                                                                                                                .input-field:focus { border-color: var(--brand-blue); box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 0 12px var(--shadow-blue); background: rgba(10, 15, 24, 0.9); }

                                                                                                                                /* Buttons */
                                                                                                                                .btn { background: var(--surface); color: var(--text-main); border: 1px solid var(--border-light); padding: 14px 20px; font-size: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; border-radius: 6px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; }
                                                                                                                                .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent); transition: left 0.5s ease; }
                                                                                                                                .btn:hover::before { left: 100%; }
                                                                                                                                .btn:active { transform: translateY(2px); }
                                                                                                                                .btn-primary { background: linear-gradient(135deg, #0f4c75, #1b263b); border: 1px solid var(--brand-blue); color: #fff; box-shadow: 0 4px 15px rgba(56, 182, 255, 0.15), inset 0 0 10px rgba(56, 182, 255, 0.2); }
                                                                                                                                .btn-primary:active { box-shadow: 0 2px 8px rgba(56, 182, 255, 0.1), inset 0 0 20px rgba(56, 182, 255, 0.4); }
                                                                                                                                .btn-danger { border-color: var(--brand-red); color: var(--brand-red); box-shadow: 0 4px 15px rgba(255, 42, 42, 0.1); }
                                                                                                                                .btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.15); }
                                                                                                                                .btn-ghost:active { color: var(--text-main); background: rgba(255,255,255,0.08); }

                                                                                                                                /* Toolbar */
                                                                                                                                .toolbar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(5, 7, 10, 0.85); backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, 0.05); display: none; justify-content: space-around; padding: 12px 0 calc(12px + var(--safe-bottom)) 0; z-index: 50; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); }
                                                                                                                                .toolbar.active { display: flex; }
                                                                                                                                .tab { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; width: 33%; position: relative; }
                                                                                                                                .tab svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
                                                                                                                                .tab span { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
                                                                                                                                .tab.active { color: var(--brand-blue); }
                                                                                                                                .tab.active svg { transform: translateY(-4px); filter: drop-shadow(0 0 8px var(--shadow-blue)); }
                                                                                                                                .tab::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--brand-blue); opacity: 0; transition: opacity 0.3s ease; box-shadow: 0 0 8px var(--brand-blue); }
                                                                                                                                .tab.active::after { opacity: 1; }

                                                                                                                                /* Stats Grid */
                                                                                                                                .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
                                                                                                                                .stat-box { background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
                                                                                                                                .stat-box .stat-val { font-size: 1.5rem; font-weight: 700; font-family: 'Rajdhani', sans-serif; color: var(--text-main); margin-bottom: 4px; }
                                                                                                                                .stat-box .stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

                                                                                                                                /* PIN Screen */
                                                                                                                                .pin-container { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; text-align: center; }
                                                                                                                                .pin-dots { display: flex; gap: 18px; margin-bottom: 48px; }
                                                                                                                                .pin-dots .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); background: transparent; transition: var(--transition); }
                                                                                                                                .pin-dots .dot.filled { background: var(--brand-blue); border-color: var(--brand-blue); box-shadow: 0 0 12px var(--shadow-blue); }
                                                                                                                                .pin-dots.error { animation: shake 0.4s both; }
                                                                                                                                .numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
                                                                                                                                .num-btn { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.05); color: var(--text-main); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; transition: all 0.2s; }
                                                                                                                                .num-btn:active { background: rgba(56, 182, 255, 0.2); transform: scale(0.9); border-color: var(--brand-blue); }
                                                                                                                                @keyframes shake { 10%, 90% { transform: translate3d(-2px,0,0); } 20%, 80% { transform: translate3d(4px,0,0); } 30%, 50%, 70% { transform: translate3d(-6px,0,0); } 40%, 60% { transform: translate3d(6px,0,0); } }

                                                                                                                                /* Loaders & States */
                                                                                                                                .loader { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--brand-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
                                                                                                                                @keyframes spin { to { transform: rotate(360deg); } }
                                                                                                                                .empty-state { padding: 60px 20px; text-align: center; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; }
                                                                                                                                .empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; stroke-width: 1.5; stroke: var(--brand-blue); }

                                                                                                                                /* Modals */
                                                                                                                                .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 3, 5, 0.85); backdrop-filter: blur(8px); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 24px; opacity: 0; transition: opacity 0.3s ease; }
                                                                                                                                .modal-overlay.active { display: flex; opacity: 1; }
                                                                                                                                .modal-content { background: linear-gradient(145deg, #101520, #080b11); width: 100%; max-width: 340px; padding: 28px; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 182, 255, 0.1); display: flex; flex-direction: column; gap: 20px; transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; }
                                                                                                                                .modal-overlay.active .modal-content { transform: translateY(0); }
                                                                                                                                .modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; line-height: 1; transition: color 0.2s; }
                                                                                                                                .modal-close:hover { color: var(--brand-red); }
                                                                                                                                .modal-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 22px; color: #fff; padding-right: 20px;}

                                                                                                                                /* Toasts */
                                                                                                                                .toast-container { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
                                                                                                                                .toast { background: rgba(10, 15, 24, 0.95); backdrop-filter: blur(10px); border: 1px solid var(--border-light); border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.6); transform: translateY(-100px); opacity: 0; transition: var(--transition); pointer-events: auto; }
                                                                                                                                .toast.show { transform: translateY(0); opacity: 1; }
                                                                                                                                .toast.success { border-left: 4px solid var(--success); }
                                                                                                                                .toast.error { border-left: 4px solid var(--brand-red); }
                                                                                                                                