/* Dr. Rahmonov ilovasi — umumiy uslublar (style.css)
   Har bir sahifaning CSS qoidalari body[data-page="..."] bilan ajratilgan,
   shuning uchun sahifalar bir-biriga ta'sir qilmaydi. */

/* ============================================================
   SAHIFA: index.html   (data-page="index")
   ============================================================ */
body[data-page="index"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="index"] {
            height: 100vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
            background-size: 400% 400%;
            animation: gradientBG__index 10s ease infinite;
            overflow: hidden;
            position: relative;
        }
@keyframes gradientBG__index {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
body[data-page="index"] /* --- SUZUVCHI PUFARCHALAR --- */
        .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="index"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.04);
            border-radius: 50%;
            animation: rise__index var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.04);
        }
@keyframes rise__index {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.3; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="index"] /* --- SPLASH SCREEN --- */
        #splash-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364);
            background-size: 400% 400%;
            animation: gradientBG__index 10s ease infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            text-align: center;
            color: white;
        }
body[data-page="index"] .loader-container {
            animation: fadeInUp__index 0.8s ease;
        }
@keyframes fadeInUp__index {
            from { opacity: 0; transform: translateY(30px) scale(0.9); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="index"] .logo-icon {
            font-size: 80px;
            margin-bottom: 16px;
            animation: logoPulse__index 2s ease-in-out infinite;
        }
@keyframes logoPulse__index {
            0%, 100% { transform: scale(1) rotate(-5deg); opacity: 1; }
            50% { transform: scale(1.1) rotate(5deg); opacity: 0.7; }
        }
body[data-page="index"] .loader-container h1 {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: 2px;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
body[data-page="index"] .loader-container p {
            opacity: 0.4;
            font-size: 13px;
            margin-top: 4px;
            font-weight: 300;
            -webkit-text-fill-color: rgba(255,255,255,0.4);
        }
body[data-page="index"] .loading__index-bar {
            width: 200px;
            height: 3px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            margin: 20px auto 0;
            position: relative;
            overflow: hidden;
        }
body[data-page="index"] .loading__index-bar::after {
            content: '';
            position: absolute;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #00d2ff, #3a7bd5);
            animation: loading__index 2s linear infinite;
            border-radius: 10px;
        }
@keyframes loading__index {
            0% { left: -100%; }
            100% { left: 100%; }
        }
body[data-page="index"] /* --- MAIN AUTH --- */
        #main-auth-container {
            display: none;
            width: 100%;
            height: 100%;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
            z-index: 10;
        }
body[data-page="index"] .form-box {
            width: 100%;
            max-width: 420px;
            padding: 40px 32px;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
            box-shadow: 0 30px 80px rgba(0,0,0,0.5);
            animation: formSlide__index 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }
@keyframes formSlide__index {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="index"] .form-box .form-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 8px;
        }
body[data-page="index"] .form-box h2 {
            font-size: 22px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 4px;
            letter-spacing: 1px;
        }
body[data-page="index"] .form-box .form-subtitle {
            font-size: 13px;
            color: rgba(255,255,255,0.3);
            margin-bottom: 28px;
            font-weight: 300;
        }
body[data-page="index"] .input-group {
            position: relative;
            margin-bottom: 20px;
            width: 100%;
        }
body[data-page="index"] .input-group input {
            width: 100%;
            padding: 16px 18px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
            outline: none;
            border-radius: 14px;
            color: #fff;
            font-size: 15px;
            transition: all 0.3s ease;
        }
body[data-page="index"] .input-group input:focus {
            border-color: rgba(0, 210, 255, 0.3);
            background: rgba(255, 255, 255, 0.06);
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.03);
        }
body[data-page="index"] .input-group input::placeholder {
            color: rgba(255, 255, 255, 0.2);
            font-weight: 300;
        }
body[data-page="index"] .input-group label {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.3);
            pointer-events: none;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 400;
        }
body[data-page="index"] .input-group input:focus ~ label, body[data-page="index"] .input-group input:not(:placeholder-shown) ~ label {
            top: -10px;
            left: 14px;
            font-size: 11px;
            color: #00d2ff;
            font-weight: 600;
            background: rgba(0, 210, 255, 0.05);
            padding: 0 8px;
            border-radius: 6px;
        }
body[data-page="index"] /* --- PAROL PROGRESS CHIZIQLARI --- */
        .password-progress-container {
            margin-top: -12px;
            margin-bottom: 16px;
            display: flex;
            gap: 6px;
            align-items: center;
        }
body[data-page="index"] .password-progress-line {
            flex: 1;
            height: 4px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 10px;
            overflow: hidden;
            transition: all 0.3s;
        }
body[data-page="index"] .password-progress-line .progress-fill {
            height: 100%;
            width: 0%;
            border-radius: 10px;
            transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="index"] .password-progress-line .progress-fill.weak { 
            width: 25%; 
            background: linear-gradient(90deg, #ff6b6b, #ff4b2b);
        }
body[data-page="index"] .password-progress-line .progress-fill.medium { 
            width: 50%; 
            background: linear-gradient(90deg, #ffd93d, #f59e0b);
        }
body[data-page="index"] .password-progress-line .progress-fill.strong { 
            width: 75%; 
            background: linear-gradient(90deg, #6bcb77, #22c55e);
        }
body[data-page="index"] .password-progress-line .progress-fill.very-strong { 
            width: 100%; 
            background: linear-gradient(90deg, #00ff9d, #00d2ff);
        }
body[data-page="index"] .password-progress-text {
            font-size: 11px;
            font-weight: 600;
            min-width: 45px;
            text-align: right;
            color: rgba(255,255,255,0.2);
            transition: all 0.3s;
        }
body[data-page="index"] .password-progress-text.weak { color: #ff6b6b; }
body[data-page="index"] .password-progress-text.medium { color: #ffd93d; }
body[data-page="index"] .password-progress-text.strong { color: #6bcb77; }
body[data-page="index"] .password-progress-text.very-strong { color: #00ff9d; }
body[data-page="index"] .password-hint {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
            text-align: left;
            margin-top: -10px;
            margin-bottom: 12px;
            padding-left: 4px;
            transition: all 0.3s;
            min-height: 18px;
        }
body[data-page="index"] .password-hint.valid {
            color: #00ff9d;
        }
body[data-page="index"] .password-hint.invalid {
            color: #ff6b6b;
        }
body[data-page="index"] .submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            border: none;
            border-radius: 14px;
            color: white;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            box-shadow: 0 4px 25px rgba(0, 210, 255, 0.2);
            margin-top: 4px;
            position: relative;
            overflow: hidden;
        }
body[data-page="index"] .submit-btn:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="index"] .submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="index"] .submit-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s;
            pointer-events: none;
        }
body[data-page="index"] .submit-btn:active::after {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
body[data-page="index"] .footer-text {
            margin-top: 18px;
            color: rgba(255, 255, 255, 0.3);
            font-size: 13px;
            font-weight: 400;
        }
body[data-page="index"] .footer-text span {
            color: #00d2ff;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
body[data-page="index"] .footer-text span:active {
            opacity: 0.5;
        }
body[data-page="index"] /* --- TOAST --- */
        .toast-container {
            position: fixed;
            top: 30px;
            right: 30px;
            z-index: 20000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 380px;
            width: 100%;
            pointer-events: none;
        }
body[data-page="index"] .toast-item {
            pointer-events: auto;
            padding: 16px 20px;
            border-radius: 16px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.05);
            box-shadow: 0 15px 40px rgba(0,0,0,0.4);
            display: flex;
            align-items: center;
            gap: 14px;
            animation: toastIn__index 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            transform: translateX(calc(100% + 30px));
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="index"] .toast-item.show {
            transform: translateX(0);
            opacity: 1;
        }
body[data-page="index"] .toast-item.hide {
            transform: translateX(calc(100% + 30px));
            opacity: 0;
        }
@keyframes toastIn__index {
            0% { transform: translateX(calc(100% + 30px)) scale(0.9); opacity: 0; }
            100% { transform: translateX(0) scale(1); opacity: 1; }
        }
body[data-page="index"] .toast-item .toast-icon {
            font-size: 24px;
            flex-shrink: 0;
        }
body[data-page="index"] .toast-item .toast-content {
            flex: 1;
        }
body[data-page="index"] .toast-item .toast-title {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 2px;
        }
body[data-page="index"] .toast-item .toast-message {
            font-size: 12px;
            font-weight: 400;
            color: rgba(255,255,255,0.6);
            line-height: 1.4;
        }
body[data-page="index"] .toast-item .toast-close {
            cursor: pointer;
            font-size: 16px;
            opacity: 0.2;
            transition: opacity 0.3s;
            padding: 4px;
            flex-shrink: 0;
        }
body[data-page="index"] .toast-item .toast-close:active {
            opacity: 0.6;
        }
body[data-page="index"] .toast-item.error {
            background: rgba(255, 75, 43, 0.10);
            border-color: rgba(255, 75, 43, 0.15);
        }
body[data-page="index"] .toast-item.error .toast-title {
            color: #ff6b6b;
        }
body[data-page="index"] .toast-item.success {
            background: rgba(0, 255, 157, 0.08);
            border-color: rgba(0, 255, 157, 0.10);
        }
body[data-page="index"] .toast-item.success .toast-title {
            color: #00ff9d;
        }
body[data-page="index"] .toast-item.info {
            background: rgba(0, 210, 255, 0.08);
            border-color: rgba(0, 210, 255, 0.10);
        }
body[data-page="index"] .toast-item.info .toast-title {
            color: #00d2ff;
        }
body[data-page="index"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            .form-box { padding: 32px 20px; }
            .form-box h2 { font-size: 20px; }
            .logo-icon { font-size: 60px; }
            .loader-container h1 { font-size: 22px; }
            .submit-btn { font-size: 15px; padding: 14px; }
            .input-group input { font-size: 14px; padding: 14px 16px; }
            .toast-container { top: 20px; right: 16px; max-width: calc(100% - 32px); }
            .toast-item { padding: 14px 16px; }
            .password-progress-container { gap: 4px; }
        }
@media (max-height: 700px) {
  body[data-page="index"] .form-box { padding: 24px 18px; }
  body[data-page="index"] .form-box .form-icon { font-size: 36px; margin-bottom: 4px; }
  body[data-page="index"] .form-box .form-subtitle { margin-bottom: 16px; font-size: 12px; }
  body[data-page="index"] .input-group { margin-bottom: 14px; }
  body[data-page="index"] .input-group input { padding: 12px 14px; font-size: 13px; }
  body[data-page="index"] .submit-btn { padding: 12px; font-size: 14px; }
  body[data-page="index"] .password-progress-container { margin-top: -8px; margin-bottom: 12px; }
}


/* ============================================================
   SAHIFA: home.html   (data-page="home")
   ============================================================ */
body[data-page="home"] * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
            font-family: 'Poppins', sans-serif; 
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="home"] { 
            background: linear-gradient(180deg, #005c97 0%, #363795 100%); 
            color: white; 
            overflow-x: hidden; 
            min-height: 100vh;
            position: relative;
        }
body[data-page="home"] /* --- SUV EFFEKTLARI --- */
        .water-overlay { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background: url('https://www.transparenttextures.com/patterns/cubes.png'); 
            opacity: 0.1; 
            pointer-events: none; 
            z-index: 1; 
        }
body[data-page="home"] .light-rays__home { 
            position: fixed; 
            top: -50%; 
            left: -50%; 
            width: 200%; 
            height: 200%; 
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12) 0%, transparent 50%); 
            animation: rays__home 10s ease-in-out infinite alternate; 
            z-index: 0; 
            pointer-events: none; 
        }
@keyframes rays__home { 
            from { transform: rotate(-5deg) scale(1); } 
            to { transform: rotate(5deg) scale(1.1); } 
        }
body[data-page="home"] .bubbles { 
            position: fixed; 
            bottom: -20px; 
            width: 100%; 
            height: 100%; 
            z-index: 0; 
            pointer-events: none; 
        }
body[data-page="home"] .bubble { 
            position: absolute; 
            bottom: -50px; 
            background: rgba(255, 255, 255, 0.12); 
            border-radius: 50%; 
            animation: rise__home var(--d) infinite ease-in; 
            box-shadow: inset 0 0 8px rgba(255,255,255,0.2); 
        }
@keyframes rise__home { 
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; } 
            20% { opacity: 0.6; } 
            100% { transform: translateY(-110vh) scale(1.8) rotate(720deg); opacity: 0; } 
        }
body[data-page="home"] /* --- HEADER --- */
        .header { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            padding: 12px 16px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            background: rgba(255, 255, 255, 0.08); 
            backdrop-filter: blur(20px); 
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000; 
            border-bottom: 1px solid rgba(255,255,255,0.08); 
        }
body[data-page="home"] .bell-container { 
            position: relative; 
            cursor: pointer;
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="home"] .bell-container:active {
            transform: scale(0.85) rotate(-15deg);
        }
body[data-page="home"] .bell-btn { 
            font-size: 24px; 
            animation: pulse-glow__home 2s infinite; 
            display: block;
        }
@keyframes pulse-glow__home { 
            0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3)); transform: scale(1); } 
            50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); transform: scale(1.05) rotate(5deg); } 
        }
body[data-page="home"] .notif-badge { 
            position: absolute; 
            top: 0; 
            right: 0; 
            background: linear-gradient(135deg, #ff4b2b, #ff416c); 
            color: white; 
            font-size: 10px; 
            font-weight: 800; 
            min-width: 20px; 
            height: 20px; 
            border-radius: 50%; 
            display: none; 
            align-items: center; 
            justify-content: center; 
            border: 2px solid rgba(255,255,255,0.3);
            animation: notifPop__home 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes notifPop__home {
            0% { transform: scale(0) rotate(-180deg); }
            60% { transform: scale(1.3) rotate(10deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
body[data-page="home"] .top-profile-container { 
            display: flex; 
            align-items: center; 
            gap: 10px; 
            background: rgba(255, 255, 255, 0.08); 
            padding: 6px 14px 6px 6px; 
            border-radius: 50px; 
            border: 1px solid rgba(255,255,255,0.08); 
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
body[data-page="home"] .top-profile-container:active {
            transform: scale(0.92);
        }
body[data-page="home"] .top-profile-container:active #top-initials {
            animation: avatarSpin__home 0.5s ease;
        }
@keyframes avatarSpin__home {
            0% { transform: rotate(0deg) scale(1); }
            50% { transform: rotate(180deg) scale(0.8); }
            100% { transform: rotate(360deg) scale(1); }
        }
body[data-page="home"] #top-name { 
            font-weight: 600; 
            font-size: 14px; 
            color: #fff;
            text-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
body[data-page="home"] #top-initials { 
            width: 34px; 
            height: 34px; 
            background: linear-gradient(135deg, #00d2ff, #0088cc); 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-weight: 800; 
            font-size: 14px;
            color: #fff; 
            box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
            transition: all 0.3s;
        }
body[data-page="home"] /* --- MAIN CONTENT --- */
        .main-content { 
            position: relative; 
            z-index: 10; 
            padding: 100px 16px 30px; 
            max-width: 500px; 
            margin: 0 auto; 
            text-align: center; 
        }
body[data-page="home"] .balance-card { 
            background: rgba(255, 255, 255, 0.06); 
            backdrop-filter: blur(15px); 
            -webkit-backdrop-filter: blur(15px);
            padding: 28px 20px; 
            border-radius: 30px; 
            margin-bottom: 25px; 
            text-align: left; 
            border: 1px solid rgba(255,255,255,0.08); 
            box-shadow: 0 10px 40px rgba(0,0,0,0.2); 
            transition: all 0.3s;
            animation: cardFloat__home 3s ease-in-out infinite;
        }
@keyframes cardFloat__home {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-5px); }
        }
body[data-page="home"] .balance-card h3 { 
            font-size: 11px; 
            text-transform: uppercase; 
            opacity: 0.6; 
            letter-spacing: 2px; 
            font-weight: 600;
        }
body[data-page="home"] #user-balance { 
            font-size: 32px; 
            font-weight: 900; 
            margin: 6px 0 15px;
            background: linear-gradient(135deg, #fff, #00d2ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: balanceGlow__home 2s ease-in-out infinite;
        }
@keyframes balanceGlow__home {
            0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.2)); }
            50% { filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4)); }
        }
body[data-page="home"] .btn-actions {
            display: flex;
            gap: 10px;
        }
body[data-page="home"] .btn-refill, body[data-page="home"] .btn-withdraw {
            flex: 1;
            padding: 12px 16px;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            color: #fff;
            border: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            overflow: hidden;
            text-align: center;
            display: inline-block;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="home"] .btn-refill {
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            box-shadow: 0 4px 20px rgba(0, 210, 255, 0.3);
        }
body[data-page="home"] .btn-withdraw {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
        }
body[data-page="home"] .btn-refill:active, body[data-page="home"] .btn-withdraw:active {
            transform: scale(0.92) translateY(2px);
            box-shadow: none;
        }
body[data-page="home"] .btn-refill::before, body[data-page="home"] .btn-withdraw::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
body[data-page="home"] .btn-refill:hover::before, body[data-page="home"] .btn-withdraw:hover::before {
            left: 100%;
        }
body[data-page="home"] .btn-refill::after, body[data-page="home"] .btn-withdraw::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
            opacity: 0;
            transition: all 0.5s;
            pointer-events: none;
        }
body[data-page="home"] .btn-refill:active::after, body[data-page="home"] .btn-withdraw:active::after {
            opacity: 1;
            transform: scale(1.5);
        }
body[data-page="home"] /* --- MENU --- */
        .grid-menu { 
            display: grid; 
            grid-template-columns: repeat(2, 1fr); 
            gap: 14px; 
        }
body[data-page="home"] .menu-item { 
            background: rgba(255, 255, 255, 0.06); 
            border: 1px solid rgba(255, 255, 255, 0.06); 
            padding: 28px 12px; 
            border-radius: 25px; 
            cursor: pointer; 
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1); 
            backdrop-filter: blur(5px); 
            -webkit-backdrop-filter: blur(5px);
            position: relative;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
            outline: none;
        }
body[data-page="home"] .menu-item:active { 
            transform: scale(0.92) translateY(4px); 
            background: rgba(255, 255, 255, 0.12);
            box-shadow: none;
        }
body[data-page="home"] .menu-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
            transition: left 0.6s;
            pointer-events: none;
        }
body[data-page="home"] .menu-item:hover::before {
            left: 100%;
        }
body[data-page="home"] .menu-item::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s;
            pointer-events: none;
        }
body[data-page="home"] .menu-item:active::after {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
body[data-page="home"] .menu-item i { 
            font-size: 34px; 
            display: block; 
            margin-bottom: 8px; 
            font-style: normal;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="home"] .menu-item:active i {
            transform: scale(0.8) rotate(-10deg) translateY(-5px);
        }
body[data-page="home"] .menu-item span { 
            font-size: 14px; 
            font-weight: 600;
            display: inline-block;
            transition: all 0.3s;
        }
body[data-page="home"] .menu-item:active span {
            transform: scale(0.9);
        }
body[data-page="home"] /* Premium Box Animations */
        .premium-box { 
            background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728) !important; 
            border: none !important; 
            position: relative; 
            overflow: hidden; 
            box-shadow: 0 5px 30px rgba(184, 134, 11, 0.3) !important; 
            animation: premiumPulse__home 2s ease-in-out infinite;
        }
@keyframes premiumPulse__home {
            0%, 100% { box-shadow: 0 5px 30px rgba(184, 134, 11, 0.3); }
            50% { box-shadow: 0 5px 50px rgba(184, 134, 11, 0.6); transform: scale(1.02); }
        }
body[data-page="home"] .premium-box span, body[data-page="home"] .premium-box i { 
            color: #4a2f00 !important; 
            font-weight: 800 !important; 
        }
body[data-page="home"] .premium-box::after { 
            content: ''; 
            position: absolute; 
            top: -50%; 
            left: -150%; 
            width: 200%; 
            height: 200%; 
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent); 
            transform: rotate(45deg); 
            animation: shine__home 3s infinite; 
            pointer-events: none;
        }
@keyframes shine__home { 
            0% { left: -150%; } 
            100% { left: 150%; } 
        }
body[data-page="home"] .premium-box:active {
            transform: scale(0.92) !important;
            box-shadow: 0 2px 10px rgba(184, 134, 11, 0.2) !important;
        }
body[data-page="home"] .premium-box i {
            animation: premiumIconFloat__home 2s ease-in-out infinite;
        }
@keyframes premiumIconFloat__home {
            0%, 100% { transform: translateY(0) rotate(-5deg); }
            50% { transform: translateY(-8px) rotate(5deg); }
        }
body[data-page="home"] .premium-time-info { 
            display: block; 
            font-size: 11px; 
            opacity: 0.8; 
            margin-top: 4px; 
            font-weight: 600; 
            text-transform: none; 
            letter-spacing: 0.3px; 
            color: #4a2f00 !important; 
            animation: timeBlink__home 1s ease-in-out infinite;
        }
@keyframes timeBlink__home {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 0.4; }
        }
body[data-page="home"] /* --- MODALLAR --- */
        .modal { 
            display: none; 
            position: fixed; 
            inset: 0; 
            background: rgba(0,0,0,0.8); 
            align-items: center; 
            justify-content: center; 
            z-index: 2000; 
            backdrop-filter: blur(20px); 
            -webkit-backdrop-filter: blur(20px);
            animation: modalFade__home 0.3s ease;
        }
@keyframes modalFade__home {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
body[data-page="home"] .modal-content { 
            background: linear-gradient(145deg, #021d33 0%, #014371 100%); 
            padding: 30px 24px; 
            border-radius: 40px; 
            width: 90%; 
            max-width: 380px; 
            text-align: center; 
            border: 1px solid rgba(255,255,255,0.08); 
            position: relative; 
            box-shadow: 0 30px 80px rgba(0,0,0,0.5);
            animation: modalSlide__home 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes modalSlide__home {
            from { transform: translateY(30px) scale(0.9) rotate(-5deg); opacity: 0; }
            to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
        }
body[data-page="home"] .profile-avatar-big { 
            width: 80px; 
            height: 80px; 
            background: linear-gradient(135deg, #00d2ff, #0088cc); 
            border-radius: 50%; 
            margin: -70px auto 15px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-size: 32px; 
            font-weight: 800; 
            border: 4px solid rgba(255,255,255,0.1); 
            box-shadow: 0 8px 30px rgba(0,210,255,0.3);
            animation: avatarPulse__home 3s ease-in-out infinite;
        }
@keyframes avatarPulse__home {
            0%, 100% { box-shadow: 0 8px 30px rgba(0,210,255,0.3); transform: scale(1); }
            50% { box-shadow: 0 8px 50px rgba(0,210,255,0.6); transform: scale(1.05); }
        }
body[data-page="home"] #user-id-display { 
            background: rgba(255, 215, 0, 0.08); 
            color: #ffd700; 
            padding: 6px 18px; 
            border-radius: 12px; 
            font-weight: 700; 
            display: inline-block; 
            margin-bottom: 20px; 
            border: 1px solid rgba(255, 215, 0, 0.15);
            font-size: 13px;
            font-family: monospace;
            letter-spacing: 0.5px;
        }
body[data-page="home"] #input-name { 
            width: 100%; 
            padding: 16px; 
            background: rgba(255,255,255,0.05); 
            border: 1px solid rgba(255,255,255,0.06); 
            border-radius: 16px; 
            color: white; 
            margin-bottom: 20px; 
            text-align: center; 
            font-weight: 600; 
            outline: none; 
            font-size: 16px;
            transition: all 0.3s;
        }
body[data-page="home"] #input-name:focus {
            border-color: #00d2ff;
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.05);
            transform: scale(1.02);
        }
body[data-page="home"] #input-name::placeholder {
            color: rgba(255,255,255,0.3);
        }
body[data-page="home"] .btn-main { 
            width: 100%; 
            padding: 16px; 
            background: linear-gradient(135deg, #00d2ff, #0088cc); 
            border: none; 
            border-radius: 16px; 
            color: #fff; 
            font-weight: 700; 
            font-size: 15px;
            cursor: pointer; 
            margin-bottom: 10px; 
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            outline: none;
            position: relative;
            overflow: hidden;
        }
body[data-page="home"] .btn-main:active { 
            transform: scale(0.95) translateY(2px); 
            box-shadow: none;
        }
body[data-page="home"] .btn-main::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
body[data-page="home"] .btn-main:hover::before {
            left: 100%;
        }
body[data-page="home"] .btn-main::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s;
            pointer-events: none;
        }
body[data-page="home"] .btn-main:active::after {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
body[data-page="home"] .btn-exit-no { 
            background: rgba(255,255,255,0.08); 
            color: white; 
            border: 1px solid rgba(255,255,255,0.06);
        }
body[data-page="home"] .btn-exit-yes { 
            background: linear-gradient(135deg, #ff4b2b, #dc2626); 
            color: white;
            box-shadow: 0 4px 20px rgba(255, 75, 43, 0.3);
            animation: exitBtnPulse__home 2s ease-in-out infinite;
        }
@keyframes exitBtnPulse__home {
            0%, 100% { box-shadow: 0 4px 20px rgba(255, 75, 43, 0.3); }
            50% { box-shadow: 0 4px 40px rgba(255, 75, 43, 0.6); }
        }
body[data-page="home"] .btn-exit-yes:active {
            box-shadow: none;
            transform: scale(0.95) translateY(2px);
        }
body[data-page="home"] .modal-close { 
            margin-top: 12px; 
            cursor: pointer; 
            font-size: 12px; 
            opacity: 0.4; 
            text-transform: uppercase; 
            letter-spacing: 2px; 
            font-weight: 600;
            transition: all 0.3s;
        }
body[data-page="home"] .modal-close:active {
            opacity: 0.8;
            transform: scale(0.9);
        }
body[data-page="home"] /* --- TOAST --- */
        #toast { 
            position: fixed; 
            bottom: -100px; 
            left: 50%; 
            transform: translateX(-50%); 
            background: rgba(255,255,255,0.95); 
            color: #005c97; 
            padding: 16px 28px; 
            border-radius: 50px; 
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            z-index: 3000; 
            font-weight: 700; 
            box-shadow: 0 10px 40px rgba(0,0,0,0.3); 
            text-align: center; 
            width: max-content; 
            max-width: 90%; 
            backdrop-filter: blur(10px);
            font-size: 14px;
            border: 1px solid rgba(255,255,255,0.1);
            animation: toastSlide__home 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes toastSlide__home {
            0% { transform: translateX(-50%) translateY(20px) scale(0.9); opacity: 0; }
            100% { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
        }
body[data-page="home"] #toast.show { 
            bottom: 40px; 
        }
body[data-page="home"] /* Chiqish modal oynasi uchun icon animatsiyasi */
        .exit-icon-anim {
            font-size: 50px;
            display: block;
            margin-bottom: 12px;
            animation: exitIcon__home 2s ease-in-out infinite;
        }
@keyframes exitIcon__home {
            0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
            50% { transform: translateY(-12px) rotate(12deg) scale(1.1); }
        }
body[data-page="home"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            #user-balance { font-size: 26px; }
            .menu-item { padding: 22px 10px; }
            .menu-item i { font-size: 28px; }
            .menu-item span { font-size: 13px; }
            .balance-card { padding: 22px 16px; }
            #top-name { font-size: 12px; }
            #top-initials { width: 30px; height: 30px; font-size: 12px; }
            .exit-icon-anim { font-size: 40px; }
        }
@media (max-height: 700px) {
  body[data-page="home"] .main-content { padding-top: 80px; }
  body[data-page="home"] .balance-card { padding: 18px 16px; margin-bottom: 16px; }
  body[data-page="home"] #user-balance { font-size: 24px; }
  body[data-page="home"] .grid-menu { gap: 10px; }
  body[data-page="home"] .menu-item { padding: 16px 10px; }
  body[data-page="home"] .menu-item i { font-size: 24px; }
}


/* ============================================================
   SAHIFA: quiz.html   (data-page="quiz")
   ============================================================ */
body[data-page="quiz"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="quiz"] {
            background: linear-gradient(180deg, #005c97 0%, #363795 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding: 16px;
        }
body[data-page="quiz"] .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.06;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="quiz"] .light-rays__quiz {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 50%);
            animation: rays__quiz 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__quiz {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="quiz"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="quiz"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 50%;
            animation: rise__quiz var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.08);
        }
@keyframes rise__quiz {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.4; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="quiz"] .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 12px 18px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.04);
            position: sticky;
            top: 0;
            z-index: 1000;
            margin-bottom: 20px;
            animation: slideDown__quiz 0.6s ease-out;
            display: none;
        }
@keyframes slideDown__quiz {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="quiz"] .top-bar .left-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }
body[data-page="quiz"] .top-bar .exit-btn {
            background: rgba(255, 75, 43, 0.08);
            color: #ff6b6b;
            border: 1px solid rgba(255, 75, 43, 0.12);
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 700;
            font-size: 12px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="quiz"] .top-bar .exit-btn:active {
            transform: scale(0.92);
        }
body[data-page="quiz"] .top-bar .timer {
            color: #00d2ff;
            font-size: 18px;
            font-weight: 800;
            font-family: monospace;
            letter-spacing: 1px;
            background: rgba(0, 210, 255, 0.06);
            padding: 4px 16px;
            border-radius: 12px;
            border: 1px solid rgba(0, 210, 255, 0.06);
            transition: all 0.5s ease;
        }
body[data-page="quiz"] .top-bar .timer.warning {
            color: #ffd93d;
            border-color: rgba(255, 217, 61, 0.2);
            background: rgba(255, 217, 61, 0.06);
            animation: timerPulse__quiz 1s ease-in-out infinite;
        }
body[data-page="quiz"] .top-bar .timer.danger {
            color: #ff4b2b;
            border-color: rgba(255, 75, 43, 0.2);
            background: rgba(255, 75, 43, 0.06);
            animation: timerPulse__quiz 0.5s ease-in-out infinite;
        }
@keyframes timerPulse__quiz {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
body[data-page="quiz"] .top-bar .progress-text {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            font-weight: 400;
        }
body[data-page="quiz"] .container {
            max-width: 500px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }
body[data-page="quiz"] #selection-box {
            animation: fadeUp__quiz 0.6s ease-out;
        }
@keyframes fadeUp__quiz {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="quiz"] #selection-box .title-section {
            text-align: center;
            margin-bottom: 20px;
        }
body[data-page="quiz"] #selection-box .title-section h2 {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
body[data-page="quiz"] #selection-box .title-section p {
            font-size: 13px;
            color: rgba(255,255,255,0.3);
            margin-top: 4px;
        }
body[data-page="quiz"] #selection-box .subjects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
body[data-page="quiz"] .sub-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.06);
            padding: 16px 12px;
            border-radius: 16px;
            cursor: pointer;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="quiz"] .sub-card:active {
            transform: scale(0.95);
        }
body[data-page="quiz"] .sub-card.selected {
            border-color: #00d2ff;
            background: rgba(0, 210, 255, 0.06);
            color: #00d2ff;
            font-weight: 600;
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.03);
        }
body[data-page="quiz"] .sub-card .block-label {
            position: absolute;
            top: -8px;
            right: -5px;
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            color: #fff;
            font-size: 9px;
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 800;
            display: none;
            box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
        }
body[data-page="quiz"] .sub-card.selected .block-label {
            display: block;
            animation: badgePop__quiz 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes badgePop__quiz {
            0% { transform: scale(0) rotate(-20deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
body[data-page="quiz"] .sub-card .sub-emoji {
            font-size: 20px;
            display: block;
            margin-bottom: 4px;
        }
body[data-page="quiz"] .block-info {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 16px;
            padding: 14px 16px;
            margin-top: 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
body[data-page="quiz"] .block-info-item {
            text-align: center;
            padding: 10px 8px;
            border-radius: 12px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.03);
        }
body[data-page="quiz"] .block-info-item .block-number {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="quiz"] .block-info-item .block-number.block1 {
            color: #ffd700;
        }
body[data-page="quiz"] .block-info-item .block-number.block2 {
            color: #00d2ff;
        }
body[data-page="quiz"] .block-info-item .block-details {
            font-size: 11px;
            color: rgba(255,255,255,0.4);
            margin-top: 2px;
        }
body[data-page="quiz"] .block-info-item .block-details span {
            display: inline-block;
            margin: 0 4px;
        }
body[data-page="quiz"] .block-info-item .block-details .highlight {
            color: rgba(255,255,255,0.7);
            font-weight: 600;
        }
body[data-page="quiz"] .btn-main {
            width: 100%;
            padding: 16px;
            border-radius: 16px;
            border: none;
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            color: #fff;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 16px;
            box-shadow: 0 4px 25px rgba(0, 210, 255, 0.15);
        }
body[data-page="quiz"] .btn-main:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="quiz"] .btn-main:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="quiz"] .btn-main .btn-icon {
            margin-right: 8px;
        }
body[data-page="quiz"] #subject-dashboard {
            display: none;
            animation: fadeUp__quiz 0.5s ease-out;
        }
body[data-page="quiz"] #subject-dashboard .dash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
body[data-page="quiz"] #subject-dashboard .dash-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: rgba(255,255,255,0.8);
        }
body[data-page="quiz"] #subject-dashboard .dash-header span {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="quiz"] .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
body[data-page="quiz"] .subject-status-card {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(255,255,255,0.04);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            animation: slideUp__quiz 0.4s ease-out both;
        }
@keyframes slideUp__quiz {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="quiz"] .subject-status-card:nth-child(1) { animation-delay: 0.05s; }
body[data-page="quiz"] .subject-status-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page="quiz"] .subject-status-card:nth-child(3) { animation-delay: 0.15s; }
body[data-page="quiz"] .subject-status-card:nth-child(4) { animation-delay: 0.2s; }
body[data-page="quiz"] .subject-status-card:nth-child(5) { animation-delay: 0.25s; }
body[data-page="quiz"] .subject-status-card:active {
            transform: scale(0.97);
        }
body[data-page="quiz"] .subject-status-card.completed {
            opacity: 0.5;
            border-color: rgba(0, 255, 157, 0.1);
            pointer-events: none;
        }
body[data-page="quiz"] .subject-status-card .subject-name {
            font-size: 14px;
            font-weight: 600;
            color: #f8fafc;
        }
body[data-page="quiz"] .subject-status-card .subject-meta {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="quiz"] .status-badge {
            padding: 4px 14px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="quiz"] .badge-wait {
            background: rgba(255,255,255,0.04);
            color: rgba(255,255,255,0.3);
            border: 1px solid rgba(255,255,255,0.04);
        }
body[data-page="quiz"] .badge-done {
            background: rgba(0, 255, 157, 0.08);
            color: #00ff9d;
            border: 1px solid rgba(0, 255, 157, 0.06);
        }
body[data-page="quiz"] #quiz-box {
            display: none;
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 24px 20px;
            border-radius: 24px;
            border: 1px solid rgba(255,255,255,0.04);
            animation: fadeUp__quiz 0.4s ease-out;
        }
body[data-page="quiz"] #quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
body[data-page="quiz"] #quiz-header #current-subject-name {
            font-size: 13px;
            font-weight: 600;
            color: #00d2ff;
        }
body[data-page="quiz"] #quiz-header #q-counter {
            font-size: 12px;
            color: rgba(255,255,255,0.2);
            font-weight: 400;
        }
body[data-page="quiz"] #q-text {
            font-size: 17px;
            font-weight: 500;
            margin-bottom: 20px;
            min-height: 60px;
            line-height: 1.6;
            color: #f8fafc;
        }
body[data-page="quiz"] .option {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            padding: 14px 16px;
            border-radius: 14px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            font-size: 14px;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="quiz"] .option:active {
            transform: scale(0.97);
        }
body[data-page="quiz"] .option.selected {
            background: rgba(0, 210, 255, 0.08);
            color: #00d2ff;
            border-color: rgba(0, 210, 255, 0.15);
            font-weight: 600;
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.03);
        }
body[data-page="quiz"] .option .opt-letter {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            border-radius: 8px;
            background: rgba(255,255,255,0.04);
            margin-right: 10px;
            font-weight: 700;
            font-size: 12px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="quiz"] .option.selected .opt-letter {
            background: rgba(0, 210, 255, 0.12);
            color: #00d2ff;
        }
body[data-page="quiz"] #next-btn {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
            border: none;
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            color: #fff;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 8px;
            box-shadow: 0 4px 20px rgba(0, 210, 255, 0.1);
        }
body[data-page="quiz"] #next-btn:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="quiz"] #next-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="quiz"] #custom-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            animation: modalFade__quiz 0.3s ease;
        }
@keyframes modalFade__quiz {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
body[data-page="quiz"] .modal-content {
            background: linear-gradient(145deg, #021d33 0%, #014371 100%);
            padding: 30px 24px;
            border-radius: 30px;
            text-align: center;
            width: 85%;
            max-width: 360px;
            border: 1px solid rgba(255,255,255,0.06);
            box-shadow: 0 30px 80px rgba(0,0,0,0.5);
            animation: modalSlide__quiz 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes modalSlide__quiz {
            from { transform: translateY(30px) scale(0.9) rotate(-3deg); opacity: 0; }
            to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
        }
body[data-page="quiz"] .modal-content .modal-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 10px;
        }
body[data-page="quiz"] .modal-content h3 {
            color: #ff6b6b;
            font-size: 20px;
            font-weight: 700;
        }
body[data-page="quiz"] .modal-content p {
            margin-top: 8px;
            font-size: 14px;
            opacity: 0.6;
        }
body[data-page="quiz"] .modal-btns {
            display: flex;
            gap: 10px;
            margin-top: 22px;
        }
body[data-page="quiz"] .btn-confirm {
            flex: 1;
            padding: 14px;
            background: linear-gradient(135deg, #ff4b2b, #dc2626);
            border: none;
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="quiz"] .btn-confirm:active {
            transform: scale(0.95);
        }
body[data-page="quiz"] .btn-cancel {
            flex: 1;
            padding: 14px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="quiz"] .btn-cancel:active {
            transform: scale(0.95);
        }
@media (max-width: 480px) {
  body[data-page="quiz"] { padding: 12px; }
  body[data-page="quiz"] #selection-box .subjects-grid { gap: 10px; }
  body[data-page="quiz"] .sub-card { padding: 14px 10px; font-size: 12px; }
  body[data-page="quiz"] #quiz-box { padding: 18px 16px; }
  body[data-page="quiz"] #q-text { font-size: 15px; }
  body[data-page="quiz"] .option { font-size: 13px; padding: 12px 14px; }
  body[data-page="quiz"] .top-bar .timer { font-size: 16px; padding: 2px 12px; }
  body[data-page="quiz"] #selection-box .title-section h2 { font-size: 20px; }
  body[data-page="quiz"] .block-info { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  body[data-page="quiz"] .block-info-item { padding: 8px 6px; }
  body[data-page="quiz"] .block-info-item .block-number { font-size: 10px; }
  body[data-page="quiz"] .block-info-item .block-details { font-size: 10px; }
}
@media (max-height: 700px) {
  body[data-page="quiz"] #selection-box .title-section { margin-bottom: 12px; }
  body[data-page="quiz"] #selection-box .title-section h2 { font-size: 20px; }
  body[data-page="quiz"] .sub-card { padding: 10px 8px; font-size: 11px; }
  body[data-page="quiz"] .sub-card .sub-emoji { font-size: 16px; }
  body[data-page="quiz"] #quiz-box { padding: 14px 12px; }
  body[data-page="quiz"] #q-text { font-size: 14px; min-height: 40px; margin-bottom: 12px; }
  body[data-page="quiz"] .option { padding: 10px 12px; margin-bottom: 6px; font-size: 12px; }
  body[data-page="quiz"] .btn-main { padding: 12px; font-size: 13px; }
  body[data-page="quiz"] .block-info { padding: 10px; margin-top: 12px; }
  body[data-page="quiz"] .block-info-item { padding: 6px 4px; }
}


/* ============================================================
   SAHIFA: premium-main.html   (data-page="premium-main")
   ============================================================ */
body[data-page="premium-main"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="premium-main"] {
            background: linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 40%, #2d1b4e 70%, #0a0a1a 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding: 16px;
        }
body[data-page="premium-main"] /* --- PREMIUM FON EFFEKTLARI --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.03;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="premium-main"] .light-rays__premium-main {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
            animation: rays__premium-main 15s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__premium-main {
            0% { transform: rotate(-5deg) scale(1); opacity: 0.5; }
            50% { transform: rotate(0deg) scale(1.1); opacity: 1; }
            100% { transform: rotate(5deg) scale(1); opacity: 0.5; }
        }
body[data-page="premium-main"] /* Premium yulduzlar */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
body[data-page="premium-main"] .star {
            position: absolute;
            border-radius: 50%;
            animation: twinkle__premium-main var(--d) ease-in-out infinite alternate;
        }
body[data-page="premium-main"] .star.small { width: 1.5px; height: 1.5px; background: rgba(255, 215, 0, 0.2); }
body[data-page="premium-main"] .star.medium { width: 2.5px; height: 2.5px; background: rgba(255, 215, 0, 0.3); }
body[data-page="premium-main"] .star.large { width: 4px; height: 4px; background: rgba(255, 215, 0, 0.4); box-shadow: 0 0 10px rgba(255, 215, 0, 0.1); }
@keyframes twinkle__premium-main {
            0% { opacity: 0.2; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1.2); }
        }
body[data-page="premium-main"] /* Suv pufakchalari (premium) */
        .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="premium-main"] .bubble {
            position: absolute;
            bottom: -50px;
            border-radius: 50%;
            animation: rise__premium-main var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.03);
        }
body[data-page="premium-main"] .bubble.gold {
            background: rgba(255, 215, 0, 0.03);
            border: 1px solid rgba(255, 215, 0, 0.02);
        }
body[data-page="premium-main"] .bubble.white {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.01);
        }
@keyframes rise__premium-main {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.4; }
            100% { transform: translateY(-110vh) scale(1.8) rotate(720deg); opacity: 0; }
        }
body[data-page="premium-main"] /* --- TOP BAR (PREMIUM) --- */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 215, 0, 0.03);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            padding: 12px 18px;
            border-radius: 24px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            position: sticky;
            top: 0;
            z-index: 1000;
            margin-bottom: 20px;
            animation: slideDown__premium-main 0.8s cubic-bezier(0.22, 1, 0.36, 1);
            display: none;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
@keyframes slideDown__premium-main {
            from { transform: translateY(-40px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="premium-main"] .top-bar .left-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }
body[data-page="premium-main"] .top-bar .exit-btn {
            background: rgba(255, 75, 43, 0.06);
            color: #ff6b6b;
            border: 1px solid rgba(255, 75, 43, 0.08);
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 700;
            font-size: 12px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-main"] .top-bar .exit-btn:active {
            transform: scale(0.92);
        }
body[data-page="premium-main"] .top-bar .premium-badge {
            font-size: 10px;
            font-weight: 700;
            color: #ffd700;
            background: rgba(255, 215, 0, 0.06);
            padding: 4px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            animation: badgeGlow__premium-main 2s ease-in-out infinite;
        }
@keyframes badgeGlow__premium-main {
            0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.05); }
            50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.15); }
        }
body[data-page="premium-main"] .top-bar .timer {
            color: #ffd700;
            font-size: 20px;
            font-weight: 800;
            font-family: 'Courier New', monospace;
            letter-spacing: 2px;
            background: rgba(255, 215, 0, 0.04);
            padding: 4px 18px;
            border-radius: 14px;
            border: 1px solid rgba(255, 215, 0, 0.04);
            transition: all 0.5s ease;
            min-width: 70px;
            text-align: center;
        }
body[data-page="premium-main"] .top-bar .timer.warning {
            color: #ffd93d;
            border-color: rgba(255, 217, 61, 0.15);
            background: rgba(255, 217, 61, 0.04);
            animation: timerPulse__premium-main 1s ease-in-out infinite;
        }
body[data-page="premium-main"] .top-bar .timer.danger {
            color: #ff4b2b;
            border-color: rgba(255, 75, 43, 0.15);
            background: rgba(255, 75, 43, 0.04);
            animation: timerPulse__premium-main 0.5s ease-in-out infinite;
        }
@keyframes timerPulse__premium-main {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
body[data-page="premium-main"] .top-bar .progress-text {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
            font-weight: 400;
            background: rgba(255,255,255,0.02);
            padding: 2px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.02);
        }
body[data-page="premium-main"] /* --- CONTAINER --- */
        .container {
            max-width: 500px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }
body[data-page="premium-main"] /* --- SELECTION BOX (PREMIUM) --- */
        #selection-box {
            animation: fadeUp__premium-main 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        }
@keyframes fadeUp__premium-main {
            from { opacity: 0; transform: translateY(30px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="premium-main"] #selection-box .title-section {
            text-align: center;
            margin-bottom: 24px;
        }
body[data-page="premium-main"] #selection-box .title-section .premium-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 6px;
            animation: iconFloat__premium-main 3s ease-in-out infinite;
        }
@keyframes iconFloat__premium-main {
            0%, 100% { transform: translateY(0) rotate(-5deg); }
            50% { transform: translateY(-8px) rotate(5deg); }
        }
body[data-page="premium-main"] #selection-box .title-section h2 {
            font-size: 26px;
            font-weight: 900;
            background: linear-gradient(135deg, #ffd700, #f59e0b, #ffd700);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: goldShine__premium-main 3s ease-in-out infinite;
            letter-spacing: 1px;
        }
@keyframes goldShine__premium-main {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
body[data-page="premium-main"] #selection-box .title-section .premium-tag {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            color: #ffd700;
            background: rgba(255, 215, 0, 0.04);
            padding: 3px 18px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.04);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 4px;
        }
body[data-page="premium-main"] #selection-box .title-section p {
            font-size: 13px;
            color: rgba(255,255,255,0.2);
            margin-top: 6px;
            font-weight: 300;
        }
body[data-page="premium-main"] #selection-box .subjects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
body[data-page="premium-main"] .sub-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.04);
            padding: 18px 12px;
            border-radius: 18px;
            cursor: pointer;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-main"] .sub-card:active {
            transform: scale(0.95);
        }
body[data-page="premium-main"] .sub-card .sub-emoji {
            font-size: 24px;
            display: block;
            margin-bottom: 4px;
            transition: transform 0.3s;
        }
body[data-page="premium-main"] .sub-card.selected .sub-emoji {
            transform: scale(1.1);
        }
body[data-page="premium-main"] .sub-card .sub-name {
            display: block;
            font-size: 13px;
            font-weight: 500;
            transition: color 0.3s;
        }
body[data-page="premium-main"] .sub-card .sub-type {
            font-size: 9px;
            color: rgba(255,255,255,0.15);
            display: block;
            margin-top: 2px;
            font-weight: 300;
        }
body[data-page="premium-main"] .sub-card.selected {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.04);
            box-shadow: 0 0 40px rgba(255, 215, 0, 0.03);
            transform: translateY(-2px);
        }
body[data-page="premium-main"] .sub-card.selected .sub-name {
            color: #ffd700;
            font-weight: 700;
        }
body[data-page="premium-main"] .sub-card .block-label {
            position: absolute;
            top: -8px;
            right: -5px;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-size: 9px;
            padding: 2px 10px;
            border-radius: 8px;
            font-weight: 800;
            display: none;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        }
body[data-page="premium-main"] .sub-card.selected .block-label {
            display: block;
            animation: badgePop__premium-main 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes badgePop__premium-main {
            0% { transform: scale(0) rotate(-30deg); }
            60% { transform: scale(1.2) rotate(10deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
body[data-page="premium-main"] /* --- BLOK MA'LUMOTI (PREMIUM) --- */
        .block-info {
            background: rgba(255, 215, 0, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.04);
            border-radius: 18px;
            padding: 16px 18px;
            margin-top: 18px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            animation: fadeUp__premium-main 0.6s ease-out 0.2s both;
        }
body[data-page="premium-main"] .block-info-item {
            text-align: center;
            padding: 12px 8px;
            border-radius: 14px;
            background: rgba(255, 215, 0, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.02);
            transition: all 0.3s;
        }
body[data-page="premium-main"] .block-info-item:hover {
            background: rgba(255, 215, 0, 0.03);
            transform: translateY(-2px);
        }
body[data-page="premium-main"] .block-info-item .block-number {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="premium-main"] .block-info-item .block-number.block1 {
            color: #ffd700;
        }
body[data-page="premium-main"] .block-info-item .block-number.block2 {
            color: #f59e0b;
        }
body[data-page="premium-main"] .block-info-item .block-details {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            margin-top: 4px;
        }
body[data-page="premium-main"] .block-info-item .block-details span {
            display: inline-block;
            margin: 0 3px;
        }
body[data-page="premium-main"] .block-info-item .block-details .highlight {
            color: rgba(255, 215, 0, 0.5);
            font-weight: 700;
        }
body[data-page="premium-main"] .btn-main {
            width: 100%;
            padding: 18px;
            border-radius: 18px;
            border: none;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-weight: 800;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 18px;
            box-shadow: 0 4px 30px rgba(255, 215, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
body[data-page="premium-main"] .btn-main::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 60%);
            opacity: 0;
            transition: opacity 0.6s;
            pointer-events: none;
        }
body[data-page="premium-main"] .btn-main:active::after {
            opacity: 1;
        }
body[data-page="premium-main"] .btn-main:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="premium-main"] .btn-main:disabled {
            opacity: 0.2;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="premium-main"] .btn-main .btn-icon {
            margin-right: 8px;
            display: inline-block;
            animation: none;
        }
body[data-page="premium-main"] .btn-main:not(:disabled) .btn-icon {
            animation: iconBounce__premium-main 2s ease-in-out infinite;
        }
@keyframes iconBounce__premium-main {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(4px); }
        }
body[data-page="premium-main"] /* --- DASHBOARD (PREMIUM) --- */
        #subject-dashboard {
            display: none;
            animation: fadeUp__premium-main 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="premium-main"] #subject-dashboard .dash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
        }
body[data-page="premium-main"] #subject-dashboard .dash-header h3 {
            font-size: 18px;
            font-weight: 800;
            color: #ffd700;
        }
body[data-page="premium-main"] #subject-dashboard .dash-header span {
            font-size: 11px;
            color: rgba(255,255,255,0.15);
            background: rgba(255,215,0,0.02);
            padding: 2px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255,215,0,0.02);
        }
body[data-page="premium-main"] .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
body[data-page="premium-main"] .subject-status-card {
            background: rgba(255, 215, 0, 0.02);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(255, 215, 0, 0.03);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            animation: slideUp__premium-main 0.5s ease-out both;
        }
@keyframes slideUp__premium-main {
            from { opacity: 0; transform: translateY(15px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="premium-main"] .subject-status-card:nth-child(1) { animation-delay: 0.05s; }
body[data-page="premium-main"] .subject-status-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page="premium-main"] .subject-status-card:nth-child(3) { animation-delay: 0.15s; }
body[data-page="premium-main"] .subject-status-card:nth-child(4) { animation-delay: 0.2s; }
body[data-page="premium-main"] .subject-status-card:nth-child(5) { animation-delay: 0.25s; }
body[data-page="premium-main"] .subject-status-card:active {
            transform: scale(0.97);
        }
body[data-page="premium-main"] .subject-status-card.completed {
            opacity: 0.4;
            border-color: rgba(0, 255, 157, 0.05);
            pointer-events: none;
        }
body[data-page="premium-main"] .subject-status-card .subject-name {
            font-size: 14px;
            font-weight: 600;
            color: #f8fafc;
        }
body[data-page="premium-main"] .subject-status-card .subject-meta {
            font-size: 11px;
            color: rgba(255,255,255,0.15);
        }
body[data-page="premium-main"] .status-badge {
            padding: 4px 14px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s;
        }
body[data-page="premium-main"] .badge-wait {
            background: rgba(255, 215, 0, 0.03);
            color: rgba(255, 215, 0, 0.2);
            border: 1px solid rgba(255, 215, 0, 0.02);
        }
body[data-page="premium-main"] .badge-done {
            background: rgba(0, 255, 157, 0.06);
            color: #00ff9d;
            border: 1px solid rgba(0, 255, 157, 0.03);
        }
body[data-page="premium-main"] /* --- QUIZ BOX (PREMIUM) --- */
        #quiz-box {
            display: none;
            background: rgba(255, 215, 0, 0.02);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 24px 20px;
            border-radius: 24px;
            border: 1px solid rgba(255, 215, 0, 0.03);
            animation: fadeUp__premium-main 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }
body[data-page="premium-main"] #quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 215, 0, 0.03);
        }
body[data-page="premium-main"] #quiz-header #current-subject-name {
            font-size: 13px;
            font-weight: 600;
            color: #ffd700;
        }
body[data-page="premium-main"] #quiz-header #q-counter {
            font-size: 12px;
            color: rgba(255,255,255,0.15);
            font-weight: 400;
            background: rgba(255,215,0,0.02);
            padding: 2px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,215,0,0.02);
        }
body[data-page="premium-main"] #q-text {
            font-size: 17px;
            font-weight: 500;
            margin-bottom: 20px;
            min-height: 60px;
            line-height: 1.7;
            color: #f8fafc;
        }
body[data-page="premium-main"] .option {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.03);
            padding: 14px 16px;
            border-radius: 14px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            font-size: 14px;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-main"] .option:active {
            transform: scale(0.97);
        }
body[data-page="premium-main"] .option.selected {
            background: rgba(255, 215, 0, 0.06);
            color: #ffd700;
            border-color: rgba(255, 215, 0, 0.1);
            font-weight: 600;
            box-shadow: 0 0 40px rgba(255, 215, 0, 0.02);
            transform: translateX(4px);
        }
body[data-page="premium-main"] .option .opt-letter {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            border-radius: 8px;
            background: rgba(255, 215, 0, 0.03);
            margin-right: 10px;
            font-weight: 700;
            font-size: 12px;
            color: rgba(255, 215, 0, 0.15);
            transition: all 0.3s;
        }
body[data-page="premium-main"] .option.selected .opt-letter {
            background: rgba(255, 215, 0, 0.08);
            color: #ffd700;
        }
body[data-page="premium-main"] #next-btn {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
            border: none;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 8px;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.05);
        }
body[data-page="premium-main"] #next-btn:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="premium-main"] #next-btn:disabled {
            opacity: 0.2;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="premium-main"] /* --- MODAL (PREMIUM) --- */
        #custom-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            animation: modalFade__premium-main 0.4s ease;
        }
@keyframes modalFade__premium-main {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
body[data-page="premium-main"] .modal-content {
            background: linear-gradient(145deg, #0a0a1a 0%, #1a0a2e 100%);
            padding: 32px 24px;
            border-radius: 32px;
            text-align: center;
            width: 85%;
            max-width: 360px;
            border: 1px solid rgba(255, 215, 0, 0.04);
            box-shadow: 0 40px 100px rgba(0,0,0,0.5);
            animation: modalSlide__premium-main 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes modalSlide__premium-main {
            from { transform: translateY(40px) scale(0.9) rotate(-5deg); opacity: 0; }
            to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
        }
body[data-page="premium-main"] .modal-content .modal-icon {
            font-size: 52px;
            display: block;
            margin-bottom: 10px;
            animation: iconShake__premium-main 2s ease-in-out infinite;
        }
@keyframes iconShake__premium-main {
            0%, 100% { transform: rotate(-5deg); }
            50% { transform: rotate(5deg); }
        }
body[data-page="premium-main"] .modal-content h3 {
            color: #ffd700;
            font-size: 22px;
            font-weight: 800;
        }
body[data-page="premium-main"] .modal-content p {
            margin-top: 8px;
            font-size: 14px;
            opacity: 0.4;
            font-weight: 300;
        }
body[data-page="premium-main"] .modal-btns {
            display: flex;
            gap: 10px;
            margin-top: 24px;
        }
body[data-page="premium-main"] .btn-confirm {
            flex: 1;
            padding: 14px;
            background: linear-gradient(135deg, #ff4b2b, #dc2626);
            border: none;
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="premium-main"] .btn-confirm:active {
            transform: scale(0.95);
        }
body[data-page="premium-main"] .btn-cancel {
            flex: 1;
            padding: 14px;
            background: rgba(255, 215, 0, 0.03);
            border: 1px solid rgba(255, 215, 0, 0.03);
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="premium-main"] .btn-cancel:active {
            transform: scale(0.95);
        }
body[data-page="premium-main"] /* --- TOAST (PREMIUM) --- */
        .toast-container {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 20000;
            width: 90%;
            max-width: 400px;
            pointer-events: none;
        }
body[data-page="premium-main"] .toast-item {
            pointer-events: auto;
            padding: 14px 20px;
            border-radius: 16px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 215, 0, 0.04);
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: toastIn__premium-main 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform: translateY(calc(100% + 30px));
            opacity: 0;
            transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
            background: rgba(10, 10, 26, 0.9);
        }
body[data-page="premium-main"] .toast-item.show {
            transform: translateY(0);
            opacity: 1;
        }
body[data-page="premium-main"] .toast-item.hide {
            transform: translateY(calc(100% + 30px));
            opacity: 0;
        }
@keyframes toastIn__premium-main {
            0% { transform: translateY(calc(100% + 30px)) scale(0.9); opacity: 0; }
            100% { transform: translateY(0) scale(1); opacity: 1; }
        }
body[data-page="premium-main"] .toast-item .toast-icon {
            font-size: 22px;
            flex-shrink: 0;
        }
body[data-page="premium-main"] .toast-item .toast-content {
            flex: 1;
        }
body[data-page="premium-main"] .toast-item .toast-title {
            font-size: 13px;
            font-weight: 700;
            color: #fff;
            margin-bottom: 2px;
        }
body[data-page="premium-main"] .toast-item .toast-message {
            font-size: 12px;
            font-weight: 400;
            color: rgba(255,255,255,0.4);
            line-height: 1.4;
        }
body[data-page="premium-main"] .toast-item .toast-close {
            cursor: pointer;
            font-size: 16px;
            opacity: 0.2;
            transition: opacity 0.3s;
            padding: 4px;
            flex-shrink: 0;
        }
body[data-page="premium-main"] .toast-item .toast-close:active {
            opacity: 0.6;
        }
body[data-page="premium-main"] .toast-item.error .toast-title { color: #ff6b6b; }
body[data-page="premium-main"] .toast-item.success .toast-title { color: #00ff9d; }
body[data-page="premium-main"] .toast-item.info .toast-title { color: #ffd700; }
body[data-page="premium-main"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            body { padding: 12px; }
            #selection-box .subjects-grid { gap: 10px; }
            .sub-card { padding: 14px 10px; }
            .sub-card .sub-emoji { font-size: 20px; }
            .sub-card .sub-name { font-size: 12px; }
            #quiz-box { padding: 18px 16px; }
            #q-text { font-size: 15px; }
            .option { font-size: 13px; padding: 12px 14px; }
            .top-bar .timer { font-size: 17px; padding: 2px 12px; }
            #selection-box .title-section h2 { font-size: 22px; }
            .block-info { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
            .block-info-item { padding: 8px 6px; }
            .block-info-item .block-number { font-size: 10px; }
            .block-info-item .block-details { font-size: 10px; }
            .modal-content { padding: 24px 18px; }
            .modal-content h3 { font-size: 19px; }
        }
@media (max-height: 700px) {
  body[data-page="premium-main"] #selection-box .title-section { margin-bottom: 14px; }
  body[data-page="premium-main"] #selection-box .title-section h2 { font-size: 20px; }
  body[data-page="premium-main"] #selection-box .title-section .premium-icon { font-size: 36px; }
  body[data-page="premium-main"] .sub-card { padding: 10px 8px; }
  body[data-page="premium-main"] .sub-card .sub-emoji { font-size: 18px; }
  body[data-page="premium-main"] #quiz-box { padding: 14px 12px; }
  body[data-page="premium-main"] #q-text { font-size: 14px; min-height: 36px; margin-bottom: 12px; }
  body[data-page="premium-main"] .option { padding: 10px 12px; margin-bottom: 6px; font-size: 12px; }
  body[data-page="premium-main"] .btn-main { padding: 12px; font-size: 13px; }
  body[data-page="premium-main"] .block-info { padding: 10px; margin-top: 12px; }
  body[data-page="premium-main"] .block-info-item { padding: 6px 4px; }
  body[data-page="premium-main"] .top-bar { padding: 8px 14px; }
  body[data-page="premium-main"] .top-bar .timer { font-size: 16px; padding: 2px 10px; }
}


/* ============================================================
   SAHIFA: premium-quiz.html   (data-page="premium-quiz")
   ============================================================ */
body[data-page="premium-quiz"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="premium-quiz"] {
            background: linear-gradient(180deg, #1a0a2e 0%, #2d1b4e 40%, #1a0a2e 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding: 16px;
        }
body[data-page="premium-quiz"] /* --- FON EFFEKTLARI (PREMIUM USLUBIDA) --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.04;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="premium-quiz"] .light-rays__premium-quiz {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
            animation: rays__premium-quiz 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__premium-quiz {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="premium-quiz"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="premium-quiz"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 215, 0, 0.04);
            border-radius: 50%;
            animation: rise__premium-quiz var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255, 215, 0, 0.04);
        }
@keyframes rise__premium-quiz {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.3; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="premium-quiz"] /* Premium yulduzlar */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            overflow: hidden;
        }
body[data-page="premium-quiz"] .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(255, 215, 0, 0.3);
            border-radius: 50%;
            animation: twinkle__premium-quiz var(--d) ease-in-out infinite alternate;
        }
@keyframes twinkle__premium-quiz {
            0% { opacity: 0.2; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1.2); }
        }
body[data-page="premium-quiz"] /* --- TOP BAR (PREMIUM) --- */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 215, 0, 0.04);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 12px 18px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
            margin-bottom: 20px;
            animation: slideDown__premium-quiz 0.6s ease-out;
            display: none;
        }
@keyframes slideDown__premium-quiz {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="premium-quiz"] .top-bar .left-section {
            display: flex;
            align-items: center;
            gap: 12px;
        }
body[data-page="premium-quiz"] .top-bar .exit-btn {
            background: rgba(255, 75, 43, 0.08);
            color: #ff6b6b;
            border: 1px solid rgba(255, 75, 43, 0.12);
            padding: 8px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 700;
            font-size: 12px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-quiz"] .top-bar .exit-btn:active {
            transform: scale(0.92);
        }
body[data-page="premium-quiz"] .top-bar .timer {
            color: #ffd700;
            font-size: 18px;
            font-weight: 800;
            font-family: monospace;
            letter-spacing: 1px;
            background: rgba(255, 215, 0, 0.06);
            padding: 4px 16px;
            border-radius: 12px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            transition: all 0.5s ease;
        }
body[data-page="premium-quiz"] .top-bar .timer.warning {
            color: #ffd93d;
            border-color: rgba(255, 217, 61, 0.2);
            background: rgba(255, 217, 61, 0.06);
            animation: timerPulse__premium-quiz 1s ease-in-out infinite;
        }
body[data-page="premium-quiz"] .top-bar .timer.danger {
            color: #ff4b2b;
            border-color: rgba(255, 75, 43, 0.2);
            background: rgba(255, 75, 43, 0.06);
            animation: timerPulse__premium-quiz 0.5s ease-in-out infinite;
        }
@keyframes timerPulse__premium-quiz {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
body[data-page="premium-quiz"] .top-bar .premium-badge {
            font-size: 10px;
            font-weight: 700;
            color: #ffd700;
            background: rgba(255, 215, 0, 0.06);
            padding: 2px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
body[data-page="premium-quiz"] .top-bar .progress-text {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            font-weight: 400;
        }
body[data-page="premium-quiz"] /* --- CONTAINER --- */
        .container {
            max-width: 500px;
            margin: 0 auto;
            position: relative;
            z-index: 10;
        }
body[data-page="premium-quiz"] /* --- SELECTION BOX (PREMIUM) --- */
        #selection-box {
            animation: fadeUp__premium-quiz 0.6s ease-out;
        }
@keyframes fadeUp__premium-quiz {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="premium-quiz"] #selection-box .title-section {
            text-align: center;
            margin-bottom: 20px;
        }
body[data-page="premium-quiz"] #selection-box .title-section h2 {
            font-size: 24px;
            font-weight: 800;
            background: linear-gradient(135deg, #ffd700, #f59e0b, #ffd700);
            background-size: 200% 200%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: goldShine__premium-quiz 3s ease-in-out infinite;
        }
@keyframes goldShine__premium-quiz {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }
body[data-page="premium-quiz"] #selection-box .title-section .premium-tag {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            color: #ffd700;
            background: rgba(255, 215, 0, 0.06);
            padding: 2px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 4px;
        }
body[data-page="premium-quiz"] #selection-box .title-section p {
            font-size: 13px;
            color: rgba(255,255,255,0.3);
            margin-top: 4px;
        }
body[data-page="premium-quiz"] #selection-box .subjects-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }
body[data-page="premium-quiz"] .sub-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 215, 0, 0.06);
            padding: 16px 12px;
            border-radius: 16px;
            cursor: pointer;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-quiz"] .sub-card:active {
            transform: scale(0.95);
        }
body[data-page="premium-quiz"] .sub-card.selected {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.06);
            color: #ffd700;
            font-weight: 600;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.03);
        }
body[data-page="premium-quiz"] .sub-card .block-label {
            position: absolute;
            top: -8px;
            right: -5px;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-size: 9px;
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 800;
            display: none;
            box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
        }
body[data-page="premium-quiz"] .sub-card.selected .block-label {
            display: block;
            animation: badgePop__premium-quiz 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes badgePop__premium-quiz {
            0% { transform: scale(0) rotate(-20deg); }
            100% { transform: scale(1) rotate(0deg); }
        }
body[data-page="premium-quiz"] .sub-card .sub-emoji {
            font-size: 20px;
            display: block;
            margin-bottom: 4px;
        }
body[data-page="premium-quiz"] /* --- BLOK MA'LUMOTI (PREMIUM) --- */
        .block-info {
            background: rgba(255, 215, 0, 0.03);
            border: 1px solid rgba(255, 215, 0, 0.06);
            border-radius: 16px;
            padding: 14px 16px;
            margin-top: 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
body[data-page="premium-quiz"] .block-info-item {
            text-align: center;
            padding: 10px 8px;
            border-radius: 12px;
            background: rgba(255, 215, 0, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.04);
        }
body[data-page="premium-quiz"] .block-info-item .block-number {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="premium-quiz"] .block-info-item .block-number.block1 {
            color: #ffd700;
        }
body[data-page="premium-quiz"] .block-info-item .block-number.block2 {
            color: #f59e0b;
        }
body[data-page="premium-quiz"] .block-info-item .block-details {
            font-size: 11px;
            color: rgba(255,255,255,0.4);
            margin-top: 2px;
        }
body[data-page="premium-quiz"] .block-info-item .block-details span {
            display: inline-block;
            margin: 0 4px;
        }
body[data-page="premium-quiz"] .block-info-item .block-details .highlight {
            color: rgba(255, 215, 0, 0.7);
            font-weight: 600;
        }
body[data-page="premium-quiz"] .btn-main {
            width: 100%;
            padding: 16px;
            border-radius: 16px;
            border: none;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 16px;
            box-shadow: 0 4px 25px rgba(255, 215, 0, 0.15);
        }
body[data-page="premium-quiz"] .btn-main:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="premium-quiz"] .btn-main:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="premium-quiz"] .btn-main .btn-icon {
            margin-right: 8px;
        }
body[data-page="premium-quiz"] /* --- DASHBOARD (PREMIUM) --- */
        #subject-dashboard {
            display: none;
            animation: fadeUp__premium-quiz 0.5s ease-out;
        }
body[data-page="premium-quiz"] #subject-dashboard .dash-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
body[data-page="premium-quiz"] #subject-dashboard .dash-header h3 {
            font-size: 18px;
            font-weight: 700;
            color: #ffd700;
        }
body[data-page="premium-quiz"] #subject-dashboard .dash-header span {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="premium-quiz"] .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
body[data-page="premium-quiz"] .subject-status-card {
            background: rgba(255, 215, 0, 0.02);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            padding: 16px 18px;
            border-radius: 18px;
            border: 1px solid rgba(255, 215, 0, 0.04);
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            animation: slideUp__premium-quiz 0.4s ease-out both;
        }
@keyframes slideUp__premium-quiz {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="premium-quiz"] .subject-status-card:nth-child(1) { animation-delay: 0.05s; }
body[data-page="premium-quiz"] .subject-status-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page="premium-quiz"] .subject-status-card:nth-child(3) { animation-delay: 0.15s; }
body[data-page="premium-quiz"] .subject-status-card:nth-child(4) { animation-delay: 0.2s; }
body[data-page="premium-quiz"] .subject-status-card:nth-child(5) { animation-delay: 0.25s; }
body[data-page="premium-quiz"] .subject-status-card:active {
            transform: scale(0.97);
        }
body[data-page="premium-quiz"] .subject-status-card.completed {
            opacity: 0.5;
            border-color: rgba(0, 255, 157, 0.1);
            pointer-events: none;
        }
body[data-page="premium-quiz"] .subject-status-card .subject-name {
            font-size: 14px;
            font-weight: 600;
            color: #f8fafc;
        }
body[data-page="premium-quiz"] .subject-status-card .subject-meta {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="premium-quiz"] .status-badge {
            padding: 4px 14px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="premium-quiz"] .badge-wait {
            background: rgba(255, 215, 0, 0.04);
            color: rgba(255, 215, 0, 0.3);
            border: 1px solid rgba(255, 215, 0, 0.04);
        }
body[data-page="premium-quiz"] .badge-done {
            background: rgba(0, 255, 157, 0.08);
            color: #00ff9d;
            border: 1px solid rgba(0, 255, 157, 0.06);
        }
body[data-page="premium-quiz"] /* --- QUIZ BOX (PREMIUM) --- */
        #quiz-box {
            display: none;
            background: rgba(255, 215, 0, 0.02);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 24px 20px;
            border-radius: 24px;
            border: 1px solid rgba(255, 215, 0, 0.04);
            animation: fadeUp__premium-quiz 0.4s ease-out;
        }
body[data-page="premium-quiz"] #quiz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 215, 0, 0.04);
        }
body[data-page="premium-quiz"] #quiz-header #current-subject-name {
            font-size: 13px;
            font-weight: 600;
            color: #ffd700;
        }
body[data-page="premium-quiz"] #quiz-header #q-counter {
            font-size: 12px;
            color: rgba(255,255,255,0.2);
            font-weight: 400;
        }
body[data-page="premium-quiz"] #q-text {
            font-size: 17px;
            font-weight: 500;
            margin-bottom: 20px;
            min-height: 60px;
            line-height: 1.6;
            color: #f8fafc;
        }
body[data-page="premium-quiz"] .option {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 215, 0, 0.04);
            padding: 14px 16px;
            border-radius: 14px;
            cursor: pointer;
            margin-bottom: 10px;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            font-size: 14px;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="premium-quiz"] .option:active {
            transform: scale(0.97);
        }
body[data-page="premium-quiz"] .option.selected {
            background: rgba(255, 215, 0, 0.08);
            color: #ffd700;
            border-color: rgba(255, 215, 0, 0.15);
            font-weight: 600;
            box-shadow: 0 0 30px rgba(255, 215, 0, 0.03);
        }
body[data-page="premium-quiz"] .option .opt-letter {
            display: inline-block;
            width: 28px;
            height: 28px;
            line-height: 28px;
            text-align: center;
            border-radius: 8px;
            background: rgba(255, 215, 0, 0.04);
            margin-right: 10px;
            font-weight: 700;
            font-size: 12px;
            color: rgba(255, 215, 0, 0.2);
        }
body[data-page="premium-quiz"] .option.selected .opt-letter {
            background: rgba(255, 215, 0, 0.12);
            color: #ffd700;
        }
body[data-page="premium-quiz"] #next-btn {
            width: 100%;
            padding: 16px;
            border-radius: 14px;
            border: none;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #000;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            margin-top: 8px;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
        }
body[data-page="premium-quiz"] #next-btn:active {
            transform: scale(0.96);
            box-shadow: none;
        }
body[data-page="premium-quiz"] #next-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="premium-quiz"] /* --- MODAL (PREMIUM) --- */
        #custom-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            animation: modalFade__premium-quiz 0.3s ease;
        }
@keyframes modalFade__premium-quiz {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
body[data-page="premium-quiz"] .modal-content {
            background: linear-gradient(145deg, #1a0a2e 0%, #2d1b4e 100%);
            padding: 30px 24px;
            border-radius: 30px;
            text-align: center;
            width: 85%;
            max-width: 360px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            box-shadow: 0 30px 80px rgba(0,0,0,0.5);
            animation: modalSlide__premium-quiz 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes modalSlide__premium-quiz {
            from { transform: translateY(30px) scale(0.9) rotate(-3deg); opacity: 0; }
            to { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
        }
body[data-page="premium-quiz"] .modal-content .modal-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 10px;
        }
body[data-page="premium-quiz"] .modal-content h3 {
            color: #ffd700;
            font-size: 20px;
            font-weight: 700;
        }
body[data-page="premium-quiz"] .modal-content p {
            margin-top: 8px;
            font-size: 14px;
            opacity: 0.6;
        }
body[data-page="premium-quiz"] .modal-btns {
            display: flex;
            gap: 10px;
            margin-top: 22px;
        }
body[data-page="premium-quiz"] .btn-confirm {
            flex: 1;
            padding: 14px;
            background: linear-gradient(135deg, #ff4b2b, #dc2626);
            border: none;
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="premium-quiz"] .btn-confirm:active {
            transform: scale(0.95);
        }
body[data-page="premium-quiz"] .btn-cancel {
            flex: 1;
            padding: 14px;
            background: rgba(255, 215, 0, 0.04);
            border: 1px solid rgba(255, 215, 0, 0.04);
            border-radius: 14px;
            color: white;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
            font-size: 14px;
        }
body[data-page="premium-quiz"] .btn-cancel:active {
            transform: scale(0.95);
        }
body[data-page="premium-quiz"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            body { padding: 12px; }
            #selection-box .subjects-grid { gap: 10px; }
            .sub-card { padding: 14px 10px; font-size: 12px; }
            #quiz-box { padding: 18px 16px; }
            #q-text { font-size: 15px; }
            .option { font-size: 13px; padding: 12px 14px; }
            .top-bar .timer { font-size: 16px; padding: 2px 12px; }
            #selection-box .title-section h2 { font-size: 20px; }
            .block-info { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
            .block-info-item { padding: 8px 6px; }
            .block-info-item .block-number { font-size: 10px; }
            .block-info-item .block-details { font-size: 10px; }
        }
@media (max-height: 700px) {
  body[data-page="premium-quiz"] #selection-box .title-section { margin-bottom: 12px; }
  body[data-page="premium-quiz"] #selection-box .title-section h2 { font-size: 20px; }
  body[data-page="premium-quiz"] .sub-card { padding: 10px 8px; font-size: 11px; }
  body[data-page="premium-quiz"] .sub-card .sub-emoji { font-size: 16px; }
  body[data-page="premium-quiz"] #quiz-box { padding: 14px 12px; }
  body[data-page="premium-quiz"] #q-text { font-size: 14px; min-height: 40px; margin-bottom: 12px; }
  body[data-page="premium-quiz"] .option { padding: 10px 12px; margin-bottom: 6px; font-size: 12px; }
  body[data-page="premium-quiz"] .btn-main { padding: 12px; font-size: 13px; }
  body[data-page="premium-quiz"] .block-info { padding: 10px; margin-top: 12px; }
  body[data-page="premium-quiz"] .block-info-item { padding: 6px 4px; }
}


/* ============================================================
   SAHIFA: result.html   (data-page="result")
   ============================================================ */
body[data-page="result"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
body[data-page="result"] {
            background: #0a1620;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background-image: radial-gradient(ellipse at 50% 0%, #1a3a4a 0%, #0a1620 70%);
        }
body[data-page="result"] .result-container {
            width: 100%;
            max-width: 460px;
            background: linear-gradient(145deg, #1e2e3a, #15222b);
            padding: 32px 24px 28px;
            border-radius: 36px;
            border: 1px solid rgba(255, 215, 0, 0.25);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 215, 0, 0.03);
            text-align: center;
            position: relative;
            overflow: hidden;
            animation: containerFadeIn__result 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
            transform: scale(0.96);
            opacity: 0;
        }
@keyframes containerFadeIn__result {
            0% {
                transform: scale(0.92) translateY(30px);
                opacity: 0;
            }
            100% {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }
body[data-page="result"] .result-container::before {
            content: '';
            position: absolute;
            top: -60%;
            right: -30%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
body[data-page="result"] .result-container::after {
            content: '';
            position: absolute;
            bottom: -40%;
            left: -20%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(0, 200, 255, 0.03) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
body[data-page="result"] .badge-premium {
            display: inline-block;
            background: linear-gradient(135deg, #ffd700, #f5a623);
            color: #0a1620;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 8px;
            position: relative;
            z-index: 1;
            animation: badgePulse__result 2s infinite ease-in-out;
        }
@keyframes badgePulse__result {
            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
            }
            50% {
                box-shadow: 0 0 20px 6px rgba(255, 215, 0, 0.15);
            }
        }
body[data-page="result"] .badge-free {
            display: inline-block;
            background: rgba(255, 255, 255, 0.08);
            color: #aaa;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 8px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            position: relative;
            z-index: 1;
        }
body[data-page="result"] .result-title {
            font-size: 15px;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 2px;
            text-transform: uppercase;
            margin-bottom: 4px;
            position: relative;
            z-index: 1;
        }
body[data-page="result"] .score-big {
            font-size: 68px;
            font-weight: 700;
            color: #ffd700;
            line-height: 1;
            margin: 6px 0 2px;
            text-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
            position: relative;
            z-index: 1;
            animation: scoreGlow__result 3s infinite alternate;
        }
@keyframes scoreGlow__result {
            0% {
                text-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
            }
            100% {
                text-shadow: 0 0 50px rgba(255, 215, 0, 0.25), 0 0 80px rgba(255, 215, 0, 0.05);
            }
        }
body[data-page="result"] .max-score {
            font-size: 14px;
            opacity: 0.4;
            font-weight: 300;
            letter-spacing: 0.5px;
            position: relative;
            z-index: 1;
            margin-bottom: 18px;
        }
body[data-page="result"] .stats-wrapper {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 20px;
            padding: 6px;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.03);
            position: relative;
            z-index: 1;
            margin: 10px 0 16px;
            overflow: hidden;
        }
body[data-page="result"] .stats-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 16px;
            overflow: hidden;
        }
body[data-page="result"] .stats-table th {
            padding: 14px 16px;
            text-align: left;
            font-size: 11px;
            font-weight: 600;
            color: #ffd700;
            background: rgba(255, 215, 0, 0.04);
            text-transform: uppercase;
            letter-spacing: 1.2px;
            border-bottom: 1px solid rgba(255, 215, 0, 0.06);
        }
body[data-page="result"] .stats-table td {
            padding: 14px 16px;
            text-align: left;
            font-size: 14px;
            font-weight: 400;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            color: rgba(255, 255, 255, 0.85);
        }
body[data-page="result"] .stats-table tr:last-child td {
            border-bottom: none;
        }
body[data-page="result"] .stats-table tr {
            transition: background 0.2s;
        }
body[data-page="result"] .stats-table tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }
body[data-page="result"] .correct-val {
            color: #4ade80;
            font-weight: 600;
            font-size: 14px;
        }
body[data-page="result"] .ball-val {
            color: #fff;
            font-weight: 600;
            font-size: 14px;
            text-align: right;
        }
body[data-page="result"] .stats-table td:last-child {
            text-align: right;
        }
body[data-page="result"] .btn-home {
            display: block;
            width: 100%;
            padding: 18px;
            margin-top: 16px;
            background: linear-gradient(135deg, #ffd700, #f5a623);
            color: #0a1620;
            text-decoration: none;
            border-radius: 18px;
            font-weight: 700;
            font-size: 16px;
            letter-spacing: 0.5px;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            text-align: center;
            border: none;
            cursor: pointer;
            position: relative;
            z-index: 2;
            box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
            opacity: 0.5;
            pointer-events: none;
            transform: translateY(4px);
        }
body[data-page="result"] .btn-home.active {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
            animation: btnGlow__result 2s infinite alternate;
        }
@keyframes btnGlow__result {
            0% {
                box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
            }
            100% {
                box-shadow: 0 4px 40px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.1);
            }
        }
body[data-page="result"] .btn-home:active {
            transform: scale(0.97) !important;
        }
body[data-page="result"] .btn-home.disabled {
            opacity: 0.35;
            pointer-events: none;
            transform: translateY(4px);
            box-shadow: none;
        }
body[data-page="result"] .sync-status {
            display: block;
            font-size: 11px;
            margin-top: 14px;
            letter-spacing: 0.5px;
            font-weight: 300;
            position: relative;
            z-index: 1;
            min-height: 20px;
            transition: all 0.3s;
        }
body[data-page="result"] .sync-status.success {
            color: #4ade80;
        }
body[data-page="result"] .sync-status.error {
            color: #f87171;
        }
body[data-page="result"] .sync-status.info {
            color: #60a5fa;
        }
body[data-page="result"] .sync-status.muted {
            color: rgba(255, 255, 255, 0.25);
        }
body[data-page="result"] .spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-top: 2px solid #ffd700;
            border-radius: 50%;
            animation: spin__result 0.9s linear infinite;
            vertical-align: middle;
            margin-right: 8px;
        }
@keyframes spin__result {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
body[data-page="result"] .no-copy {
            -webkit-user-select: none;
            user-select: none;
            -webkit-touch-callout: none;
        }
@media (max-width: 480px) {
  body[data-page="result"] .result-container {
                padding: 24px 16px 20px;
                border-radius: 28px;
            }
  body[data-page="result"] .score-big {
                font-size: 54px;
            }
  body[data-page="result"] .stats-table th, body[data-page="result"] .stats-table td {
                padding: 12px 12px;
                font-size: 13px;
            }
  body[data-page="result"] .btn-home {
                padding: 16px;
                font-size: 15px;
            }
}
@media (max-width: 380px) {
  body[data-page="result"] .score-big {
                font-size: 44px;
            }
  body[data-page="result"] .stats-table th, body[data-page="result"] .stats-table td {
                padding: 10px 10px;
                font-size: 12px;
            }
}
body[data-page="result"] .confetti-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 999;
            overflow: hidden;
        }
body[data-page="result"] .confetti {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 2px;
            animation: confettiFall__result linear forwards;
        }
@keyframes confettiFall__result {
            0% {
                transform: translateY(-20px) rotate(0deg) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateY(110vh) rotate(720deg) scale(0.3);
                opacity: 0;
            }
        }
body[data-page="result"] .badge-free-test {
            display: inline-block;
            background: rgba(0, 210, 255, 0.15);
            color: #00d2ff;
            padding: 6px 18px;
            border-radius: 30px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 8px;
            border: 1px solid rgba(0, 210, 255, 0.1);
            position: relative;
            z-index: 1;
        }


/* ============================================================
   SAHIFA: results-history.html   (data-page="results-history")
   ============================================================ */
body[data-page="results-history"] * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body[data-page="results-history"] { background: #0f2027; color: white; padding: 20px; }
body[data-page="results-history"] .header { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
body[data-page="results-history"] .back-link { color: #00d2ff; text-decoration: none; font-size: 20px; }
body[data-page="results-history"] .history-card { 
            background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 15px; border-radius: 20px; margin-bottom: 15px;
            display: flex; justify-content: space-between; align-items: center;
        }
body[data-page="results-history"] .score-badge { background: #00d2ff; color: #000; padding: 5px 12px; border-radius: 10px; font-weight: 700; }
body[data-page="results-history"] .date-text { font-size: 11px; opacity: 0.5; display: block; }


/* ============================================================
   SAHIFA: leaderboard.html   (data-page="leaderboard")
   ============================================================ */
body[data-page="leaderboard"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="leaderboard"] {
            background: linear-gradient(180deg, #005c97 0%, #363795 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding: 20px 16px 30px;
        }
body[data-page="leaderboard"] /* --- FON EFFEKTLARI --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.06;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="leaderboard"] .light-rays__leaderboard {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 50%);
            animation: rays__leaderboard 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__leaderboard {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="leaderboard"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="leaderboard"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 50%;
            animation: rise__leaderboard var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.08);
        }
@keyframes rise__leaderboard {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.4; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="leaderboard"] /* --- HEADER --- */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.04);
            position: relative;
            z-index: 10;
            animation: slideDown__leaderboard 0.6s ease-out;
        }
@keyframes slideDown__leaderboard {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="leaderboard"] .back-btn {
            font-size: 18px;
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.04);
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            cursor: pointer;
        }
body[data-page="leaderboard"] .back-btn:active {
            transform: scale(0.85);
        }
body[data-page="leaderboard"] .header-title {
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body[data-page="leaderboard"] .header-title span {
            font-size: 20px;
            -webkit-text-fill-color: initial;
            color: #ffd700;
        }
body[data-page="leaderboard"] .header-stats {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            font-weight: 400;
            background: rgba(255,255,255,0.03);
            padding: 4px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.03);
        }
body[data-page="leaderboard"] /* --- PODIUM --- */
        .podium {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 12px;
            margin: 30px 0 25px 0;
            position: relative;
            z-index: 10;
            animation: fadeUp__leaderboard 0.8s ease-out;
        }
@keyframes fadeUp__leaderboard {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="leaderboard"] .podium-user {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 30%;
            position: relative;
            animation: podiumSlide__leaderboard 0.6s ease-out both;
        }
body[data-page="leaderboard"] .podium-user:nth-child(1) { animation-delay: 0.1s; }
body[data-page="leaderboard"] .podium-user:nth-child(2) { animation-delay: 0.2s; }
body[data-page="leaderboard"] .podium-user:nth-child(3) { animation-delay: 0.3s; }
@keyframes podiumSlide__leaderboard {
            from { opacity: 0; transform: translateY(40px) scale(0.8); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="leaderboard"] .podium-user .crown {
            font-size: 22px;
            margin-bottom: 4px;
            animation: crownFloat__leaderboard 2.5s ease-in-out infinite;
        }
@keyframes crownFloat__leaderboard {
            0%, 100% { transform: translateY(0) rotate(-5deg); }
            50% { transform: translateY(-8px) rotate(5deg); }
        }
body[data-page="leaderboard"] .podium-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 26px;
            position: relative;
            box-shadow: 0 8px 30px rgba(0,0,0,0.3);
            margin-bottom: 8px;
            border: 3px solid rgba(255,255,255,0.1);
            transition: all 0.3s;
        }
body[data-page="leaderboard"] .podium-avatar .rank-badge {
            position: absolute;
            bottom: -4px;
            right: -4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #1e293b;
            border: 2px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 700;
            color: #fff;
        }
body[data-page="leaderboard"] .podium-name {
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            line-height: 1.3;
            color: #fff;
        }
body[data-page="leaderboard"] .podium-name span {
            display: inline-block;
        }
body[data-page="leaderboard"] .podium-id {
            font-size: 9px;
            color: rgba(255,255,255,0.3);
            margin-top: 2px;
            font-family: monospace;
            letter-spacing: 0.5px;
            background: rgba(255,255,255,0.03);
            padding: 2px 10px;
            border-radius: 10px;
        }
body[data-page="leaderboard"] .podium-pts {
            font-size: 12px;
            font-weight: 700;
            color: #38bdf8;
            margin-top: 2px;
            background: rgba(56, 189, 248, 0.06);
            padding: 2px 14px;
            border-radius: 12px;
            border: 1px solid rgba(56, 189, 248, 0.06);
        }
body[data-page="leaderboard"] .podium-glow {
            position: absolute;
            bottom: -10px;
            width: 80%;
            height: 20px;
            background: radial-gradient(ellipse, rgba(255,215,0,0.1), transparent 70%);
            border-radius: 50%;
            filter: blur(10px);
            pointer-events: none;
        }
body[data-page="leaderboard"] /* --- LEADER LIST --- */
        .leader-list {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: 6px;
            border: 1px solid rgba(255,255,255,0.03);
            position: relative;
            z-index: 10;
            animation: fadeUp__leaderboard 0.8s ease-out 0.3s both;
        }
body[data-page="leaderboard"] .leader-row {
            display: flex;
            align-items: center;
            padding: 14px 14px;
            border-radius: 18px;
            border-bottom: 1px solid rgba(255,255,255,0.02);
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            cursor: pointer;
            animation: rowSlide__leaderboard 0.5s ease-out both;
        }
body[data-page="leaderboard"] .leader-row:last-child {
            border-bottom: none;
        }
body[data-page="leaderboard"] .leader-row:active {
            transform: scale(0.97);
            background: rgba(255,255,255,0.02);
        }
@keyframes rowSlide__leaderboard {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }
body[data-page="leaderboard"] .leader-row:nth-child(1) { animation-delay: 0.35s; }
body[data-page="leaderboard"] .leader-row:nth-child(2) { animation-delay: 0.4s; }
body[data-page="leaderboard"] .leader-row:nth-child(3) { animation-delay: 0.45s; }
body[data-page="leaderboard"] .leader-row:nth-child(4) { animation-delay: 0.5s; }
body[data-page="leaderboard"] .leader-row:nth-child(5) { animation-delay: 0.55s; }
body[data-page="leaderboard"] .leader-row:nth-child(6) { animation-delay: 0.6s; }
body[data-page="leaderboard"] .leader-row:nth-child(7) { animation-delay: 0.65s; }
body[data-page="leaderboard"] .leader-row:nth-child(8) { animation-delay: 0.7s; }
body[data-page="leaderboard"] .leader-row:nth-child(9) { animation-delay: 0.75s; }
body[data-page="leaderboard"] .leader-row:nth-child(10) { animation-delay: 0.8s; }
body[data-page="leaderboard"] .rank {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            color: #94a3b8;
            border-radius: 50%;
            background: rgba(255,255,255,0.02);
            margin-right: 12px;
            flex-shrink: 0;
            transition: all 0.3s;
        }
body[data-page="leaderboard"] .rank.top-10 {
            color: #ffd700;
            background: rgba(255, 215, 0, 0.06);
            border: 1px solid rgba(255, 215, 0, 0.06);
        }
body[data-page="leaderboard"] .user-info {
            flex-grow: 1;
            min-width: 0;
        }
body[data-page="leaderboard"] .user-info .name {
            font-size: 14px;
            font-weight: 600;
            color: #fff;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
body[data-page="leaderboard"] .user-info .id-badge {
            font-size: 10px;
            color: rgba(255,255,255,0.2);
            font-family: monospace;
            letter-spacing: 0.5px;
            background: rgba(255,255,255,0.02);
            padding: 1px 10px;
            border-radius: 8px;
        }
body[data-page="leaderboard"] .pts {
            font-weight: 700;
            font-size: 14px;
            color: #38bdf8;
            flex-shrink: 0;
            margin-left: 8px;
            background: rgba(56, 189, 248, 0.04);
            padding: 4px 14px;
            border-radius: 12px;
            border: 1px solid rgba(56, 189, 248, 0.03);
        }
body[data-page="leaderboard"] .pts.gold {
            color: #ffd700;
            background: rgba(255, 215, 0, 0.04);
            border-color: rgba(255, 215, 0, 0.04);
        }
body[data-page="leaderboard"] /* --- EMPTY STATE --- */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: rgba(255,255,255,0.3);
        }
body[data-page="leaderboard"] .empty-state .empty-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 12px;
        }
body[data-page="leaderboard"] .empty-state h3 {
            font-size: 18px;
            font-weight: 600;
            color: rgba(255,255,255,0.4);
        }
body[data-page="leaderboard"] .empty-state p {
            font-size: 13px;
            color: rgba(255,255,255,0.15);
            margin-top: 4px;
        }
body[data-page="leaderboard"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            body { padding: 12px 10px 20px; }
            .header { padding: 10px 14px; }
            .header-title { font-size: 16px; }
            .podium-avatar { width: 60px; height: 60px; font-size: 20px; }
            .podium { gap: 8px; }
            .podium-user { width: 28%; }
            .podium-name { font-size: 11px; }
            .leader-row { padding: 12px 12px; }
            .user-info .name { font-size: 13px; }
            .pts { font-size: 12px; padding: 3px 12px; }
            .rank { width: 32px; height: 32px; font-size: 12px; margin-right: 10px; }
        }
@media (max-width: 380px) {
  body[data-page="leaderboard"] .podium-avatar { width: 50px; height: 50px; font-size: 16px; }
  body[data-page="leaderboard"] .podium-name { font-size: 10px; }
  body[data-page="leaderboard"] .podium-pts { font-size: 10px; padding: 1px 10px; }
}


/* ============================================================
   SAHIFA: statistics.html   (data-page="statistics")
   ============================================================ */
body[data-page="statistics"] @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800;900&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
            -webkit-user-select: none;
        }
body[data-page="statistics"] {
            background: #0a0b12;
            color: #ffffff;
            font-family: 'Inter', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            overflow-x: hidden;
            position: relative;
            margin: 0;
        }
body[data-page="statistics"]::before {
            content: '';
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(ellipse at 30% 20%, rgba(0, 210, 255, 0.03), transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(106, 13, 173, 0.03), transparent 50%);
            animation: bgFloat__statistics 20s ease-in-out infinite;
            z-index: 0;
            pointer-events: none;
        }
@keyframes bgFloat__statistics {
            0%,
            100% {
                transform: translate(0, 0) rotate(0deg);
            }
            33% {
                transform: translate(30px, -20px) rotate(5deg);
            }
            66% {
                transform: translate(-20px, 30px) rotate(-5deg);
            }
        }
body[data-page="statistics"] .container {
            width: 100%;
            max-width: 480px;
            position: relative;
            z-index: 1;
            animation: containerFade__statistics 0.8s cubic-bezier(0.22, 1, 0.36, 1);
            padding-bottom: 10px;
        }
@keyframes containerFade__statistics {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.96);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
body[data-page="statistics"] /* Header - Admin uslubida */
        .header-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding: 16px 20px;
            background: #14222d;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.15);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
            animation: slideInDown__statistics 0.6s ease-out;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
        }
@keyframes slideInDown__statistics {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
body[data-page="statistics"] .user-profile {
            display: flex;
            align-items: center;
            gap: 14px;
        }
body[data-page="statistics"] .avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            color: #0a0b12;
            box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
            animation: avatarPulse__statistics 3s ease-in-out infinite;
            flex-shrink: 0;
            border: 2px solid rgba(255, 215, 0, 0.3);
            transition: transform 0.2s;
        }
@keyframes avatarPulse__statistics {
            0%,
            100% {
                box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
            }
            50% {
                box-shadow: 0 8px 40px rgba(255, 215, 0, 0.45);
            }
        }
body[data-page="statistics"] .user-details h4 {
            font-size: 16px;
            font-weight: 700;
            color: #f0f2f8;
            margin-bottom: 2px;
            letter-spacing: -0.2px;
        }
body[data-page="statistics"] .user-details .user-id {
            font-size: 12px;
            color: #ffd700;
            font-weight: 600;
            letter-spacing: 0.5px;
            background: rgba(255, 215, 0, 0.08);
            padding: 2px 12px;
            border-radius: 20px;
            display: inline-block;
            border: 1px solid rgba(255, 215, 0, 0.15);
            font-family: 'SF Mono', 'Inter', monospace;
        }
body[data-page="statistics"] .user-details .user-role {
            font-size: 10px;
            color: #00d2ff;
            font-weight: 600;
            background: rgba(0, 210, 255, 0.08);
            padding: 2px 12px;
            border-radius: 20px;
            display: inline-block;
            margin-top: 3px;
            border: 1px solid rgba(0, 210, 255, 0.1);
        }
body[data-page="statistics"] .exit-btn {
            background: rgba(255, 62, 62, 0.08);
            color: #ff6b6b;
            border: 1px solid rgba(255, 62, 62, 0.15);
            padding: 10px 16px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 6px;
            outline: none;
            box-shadow: none;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="statistics"] .exit-btn:active {
            transform: scale(0.94);
            background: rgba(255, 62, 62, 0.18);
            box-shadow: none;
            outline: none;
        }
body[data-page="statistics"] /* Main Card */
        .main-card {
            background: linear-gradient(145deg, #151a26, #0e121c);
            padding: 32px 24px 28px;
            border-radius: 32px;
            text-align: center;
            margin-bottom: 28px;
            border: 1px solid rgba(255, 215, 0, 0.06);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            position: relative;
            overflow: hidden;
        }
body[data-page="statistics"] .main-card::before {
            content: '';
            position: absolute;
            top: -100%;
            left: -100%;
            width: 300%;
            height: 300%;
            background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03), transparent 60%);
            animation: rotateGlow__statistics 30s linear infinite;
            pointer-events: none;
        }
@keyframes rotateGlow__statistics {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
body[data-page="statistics"] .main-card .glow-line {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #ffd700, #f59e0b, transparent);
            animation: glowLine__statistics 3s ease-in-out infinite;
        }
@keyframes glowLine__statistics {
            0%,
            100% {
                opacity: 0.3;
                transform: scaleX(0.8);
            }
            50% {
                opacity: 1;
                transform: scaleX(1);
            }
        }
body[data-page="statistics"] .card-icon {
            font-size: 44px;
            display: block;
            margin-bottom: 6px;
            position: relative;
            z-index: 1;
            animation: iconFloat__statistics 4s ease-in-out infinite;
        }
@keyframes iconFloat__statistics {
            0%,
            100% {
                transform: translateY(0) rotate(-5deg);
            }
            50% {
                transform: translateY(-8px) rotate(5deg);
            }
        }
body[data-page="statistics"] .card-label {
            font-size: 12px;
            color: #6b728e;
            text-transform: uppercase;
            letter-spacing: 3px;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }
body[data-page="statistics"] .card-value {
            font-size: 56px;
            font-weight: 900;
            background: linear-gradient(135deg, #ffffff, #ffd700);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 6px 0 12px;
            position: relative;
            z-index: 1;
            line-height: 1.1;
        }
body[data-page="statistics"] .card-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            position: relative;
            z-index: 1;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }
body[data-page="statistics"] .stat-item {
            text-align: center;
        }
body[data-page="statistics"] .stat-item .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: #f0f2f8;
        }
body[data-page="statistics"] .stat-item .stat-label {
            font-size: 10px;
            color: #6b728e;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 400;
            margin-top: 2px;
        }
body[data-page="statistics"] .trend-badge {
            font-size: 13px;
            padding: 6px 18px;
            border-radius: 50px;
            font-weight: 700;
            display: inline-block;
            position: relative;
            z-index: 1;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s ease;
        }
body[data-page="statistics"] .up {
            color: #00ff9d;
            background: rgba(0, 255, 157, 0.08);
            border: 1px solid rgba(0, 255, 157, 0.15);
        }
body[data-page="statistics"] .down {
            color: #ff6b6b;
            background: rgba(255, 62, 62, 0.08);
            border: 1px solid rgba(255, 62, 62, 0.15);
        }
body[data-page="statistics"] /* Section Title */
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding: 0 4px;
        }
body[data-page="statistics"] .section-title h3 {
            font-size: 18px;
            font-weight: 700;
            color: #f0f2f8;
            letter-spacing: -0.3px;
        }
body[data-page="statistics"] .section-title span {
            font-size: 12px;
            color: #6b728e;
            font-weight: 400;
            background: rgba(255, 215, 0, 0.05);
            padding: 4px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255, 215, 0, 0.1);
        }
body[data-page="statistics"] /* Subject Cards */
        .subject-card {
            background: linear-gradient(145deg, #151a26, #0e121c);
            padding: 16px 20px;
            border-radius: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            border: 1px solid rgba(255, 255, 255, 0.04);
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            animation: slideUp__statistics 0.5s ease-out both;
            cursor: default;
            position: relative;
            overflow: hidden;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="statistics"] .subject-card:active {
            transform: scale(0.98);
            border-color: rgba(255, 215, 0, 0.1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
            transition: transform 0.1s;
        }
body[data-page="statistics"] .subject-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.02), transparent);
            transform: translateX(-100%);
            transition: transform 0.6s;
            pointer-events: none;
        }
body[data-page="statistics"] .subject-card:hover::after {
            transform: translateX(100%);
        }
@keyframes slideUp__statistics {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
body[data-page="statistics"] .subject-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
            min-width: 0;
        }
body[data-page="statistics"] .subject-icon {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
body[data-page="statistics"] .subject-info {
            flex: 1;
            min-width: 0;
        }
body[data-page="statistics"] .subject-info h4 {
            font-size: 15px;
            font-weight: 700;
            color: #f0f2f8;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
body[data-page="statistics"] .subject-info .subject-meta {
            font-size: 11px;
            color: #6b728e;
            font-weight: 400;
        }
body[data-page="statistics"] .subject-right {
            text-align: right;
            flex-shrink: 0;
            margin-left: 12px;
        }
body[data-page="statistics"] .subject-score {
            font-size: 22px;
            font-weight: 800;
            line-height: 1;
        }
body[data-page="statistics"] .subject-diff {
            font-size: 12px;
            font-weight: 600;
            margin-top: 3px;
        }
body[data-page="statistics"] /* Progress Bar */
        .progress-bar-wrap {
            width: 100%;
            height: 4px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            margin-top: 6px;
            overflow: hidden;
        }
body[data-page="statistics"] .progress-bar-fill {
            height: 100%;
            border-radius: 10px;
            transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
            width: 0%;
        }
body[data-page="statistics"] /* Empty state */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: #6b728e;
        }
body[data-page="statistics"] .empty-state .empty-icon {
            font-size: 48px;
            margin-bottom: 12px;
            display: block;
        }
body[data-page="statistics"] .empty-state p {
            font-size: 14px;
            font-weight: 300;
            line-height: 1.6;
        }
body[data-page="statistics"] .id-badge-box {
            display: inline-block;
            background: rgba(255, 215, 0, 0.05);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.3);
            padding: 4px 12px;
            border-radius: 8px;
            font-family: 'SF Mono', 'Inter', monospace;
            font-weight: bold;
            font-size: 13px;
            letter-spacing: 1px;
            box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
        }
body[data-page="statistics"] /* Responsive */
        @media (max-width: 480px) {
            .card-value {
                font-size: 44px;
            }
            .subject-card {
                padding: 14px 16px;
            }
            .subject-score {
                font-size: 18px;
            }
            .avatar {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            .user-details h4 {
                font-size: 14px;
            }
            .card-stats {
                gap: 20px;
            }
            .stat-item .stat-value {
                font-size: 16px;
            }
            .header-bar {
                padding: 12px 16px;
            }
            .id-badge-box {
                font-size: 11px;
                padding: 3px 10px;
            }
            .exit-btn {
                padding: 8px 14px;
                font-size: 11px;
            }
        }
@media (max-height: 700px) {
  body[data-page="statistics"] .main-card {
                padding: 20px;
                margin-bottom: 20px;
            }
  body[data-page="statistics"] .card-value {
                font-size: 38px;
            }
  body[data-page="statistics"] .card-icon {
                font-size: 32px;
            }
}
body[data-page="statistics"] /* Scrollbar */
        ::-webkit-scrollbar {
            width: 0;
            height: 0;
        }
body[data-page="statistics"] /* No selection */
        ::selection {
            background: transparent;
        }


/* ============================================================
   SAHIFA: payments.html   (data-page="payments")
   ============================================================ */
body[data-page="payments"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="payments"] {
            background: linear-gradient(180deg, #005c97 0%, #363795 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding: 20px 16px 30px;
        }
body[data-page="payments"] /* --- FON EFFEKTLARI --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.06;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="payments"] .light-rays__payments {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, transparent 50%);
            animation: rays__payments 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__payments {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="payments"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="payments"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 50%;
            animation: rise__payments var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.08);
        }
@keyframes rise__payments {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.4; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="payments"] /* --- HEADER --- */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.04);
            position: relative;
            z-index: 10;
            animation: slideDown__payments 0.6s ease-out;
        }
@keyframes slideDown__payments {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="payments"] .back-btn {
            text-decoration: none;
            font-size: 18px;
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.04);
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            cursor: pointer;
        }
body[data-page="payments"] .back-btn:active {
            transform: scale(0.85);
        }
body[data-page="payments"] .header-title {
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 8px;
        }
body[data-page="payments"] .header-title span {
            font-size: 20px;
            -webkit-text-fill-color: initial;
            color: #ffd700;
        }
body[data-page="payments"] .header-stats {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            font-weight: 400;
            background: rgba(255,255,255,0.03);
            padding: 4px 12px;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.03);
        }
body[data-page="payments"] /* --- BANK MONITOR --- */
        .bank-monitor {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            padding: 20px 20px 18px;
            margin-bottom: 25px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
            z-index: 10;
            animation: fadeUp__payments 0.6s ease-out 0.1s both;
        }
@keyframes fadeUp__payments {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
body[data-page="payments"] .bank-monitor::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(0, 210, 255, 0.06) 0%, transparent 70%);
            pointer-events: none;
        }
body[data-page="payments"] .bank-monitor::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 150px;
            height: 150px;
            background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 70%);
            pointer-events: none;
        }
body[data-page="payments"] .monitor-title {
            font-size: 11px;
            opacity: 0.4;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
            position: relative;
            z-index: 1;
        }
body[data-page="payments"] .grid-balances {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 14px;
            border-top: 1px solid rgba(255,255,255,0.04);
            padding-top: 14px;
            position: relative;
            z-index: 1;
        }
body[data-page="payments"] .balance-box {
            background: rgba(255,255,255,0.02);
            border-radius: 14px;
            padding: 12px 14px;
            border: 1px solid rgba(255,255,255,0.02);
            transition: all 0.3s;
        }
body[data-page="payments"] .balance-box label {
            font-size: 10px;
            opacity: 0.4;
            display: block;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }
body[data-page="payments"] .balance-box span {
            font-size: 18px;
            font-weight: 800;
            margin-top: 4px;
            display: block;
        }
body[data-page="payments"] .in-color { color: #00ff9d; }
body[data-page="payments"] .out-color { color: #ff6b6b; }
body[data-page="payments"] /* --- SECTION TITLE --- */
        .section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            padding: 0 4px;
            position: relative;
            z-index: 10;
            animation: fadeUp__payments 0.6s ease-out 0.2s both;
        }
body[data-page="payments"] .section-title h3 {
            font-size: 16px;
            font-weight: 700;
            color: rgba(255,255,255,0.8);
        }
body[data-page="payments"] .section-title span {
            font-size: 11px;
            color: rgba(255,255,255,0.2);
            font-weight: 400;
        }
body[data-page="payments"] /* --- PAYMENT ITEMS --- */
        #pay-list {
            position: relative;
            z-index: 10;
        }
body[data-page="payments"] .pay-item {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            padding: 14px 16px;
            border-radius: 18px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid rgba(255,255,255,0.03);
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            animation: slideUp__payments 0.5s ease-out both;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            cursor: pointer;
        }
body[data-page="payments"] .pay-item:active {
            transform: scale(0.98);
        }
@keyframes slideUp__payments {
            from { opacity: 0; transform: translateY(15px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
body[data-page="payments"] .pay-item:nth-child(1) { animation-delay: 0.25s; }
body[data-page="payments"] .pay-item:nth-child(2) { animation-delay: 0.3s; }
body[data-page="payments"] .pay-item:nth-child(3) { animation-delay: 0.35s; }
body[data-page="payments"] .pay-item:nth-child(4) { animation-delay: 0.4s; }
body[data-page="payments"] .pay-item:nth-child(5) { animation-delay: 0.45s; }
body[data-page="payments"] .pay-item:nth-child(6) { animation-delay: 0.5s; }
body[data-page="payments"] .pay-item:nth-child(7) { animation-delay: 0.55s; }
body[data-page="payments"] .pay-item:nth-child(8) { animation-delay: 0.6s; }
body[data-page="payments"] .pay-item:nth-child(9) { animation-delay: 0.65s; }
body[data-page="payments"] .pay-item:nth-child(10) { animation-delay: 0.7s; }
body[data-page="payments"] .pay-item:hover {
            border-color: rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.04);
        }
body[data-page="payments"] .item-left {
            display: flex;
            align-items: center;
            gap: 14px;
            flex: 1;
            min-width: 0;
        }
body[data-page="payments"] .icon-box {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            transition: all 0.3s;
        }
body[data-page="payments"] .icon-in {
            background: rgba(0, 255, 157, 0.08);
            color: #00ff9d;
            border: 1px solid rgba(0, 255, 157, 0.06);
        }
body[data-page="payments"] .icon-out {
            background: rgba(255, 107, 107, 0.08);
            color: #ff6b6b;
            border: 1px solid rgba(255, 107, 107, 0.06);
        }
body[data-page="payments"] .details {
            flex: 1;
            min-width: 0;
        }
body[data-page="payments"] .details strong {
            font-size: 14px;
            font-weight: 600;
            color: #f8fafc;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
body[data-page="payments"] .details .date-label {
            font-size: 10px;
            opacity: 0.3;
            margin-top: 2px;
            display: block;
            font-weight: 400;
        }
body[data-page="payments"] .status-text {
            font-size: 9px;
            font-weight: 700;
            padding: 2px 10px;
            border-radius: 6px;
            display: inline-block;
            margin-top: 3px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
body[data-page="payments"] .st-kutilmoqda {
            background: rgba(245, 158, 11, 0.10);
            color: #f59e0b;
            border: 1px solid rgba(245, 158, 11, 0.06);
        }
body[data-page="payments"] .st-tasdiqlandi {
            background: rgba(0, 255, 157, 0.08);
            color: #00ff9d;
            border: 1px solid rgba(0, 255, 157, 0.06);
        }
body[data-page="payments"] .st-rad {
            background: rgba(255, 107, 107, 0.08);
            color: #ff6b6b;
            border: 1px solid rgba(255, 107, 107, 0.06);
        }
body[data-page="payments"] .item-right {
            text-align: right;
            flex-shrink: 0;
            margin-left: 12px;
        }
body[data-page="payments"] .item-right .amount {
            font-size: 15px;
            font-weight: 800;
            display: block;
        }
body[data-page="payments"] .item-right .amount-label {
            font-size: 9px;
            opacity: 0.2;
            font-weight: 400;
        }
body[data-page="payments"] /* --- LOADER --- */
        #loader {
            text-align: center;
            padding: 50px 20px;
            color: rgba(255,255,255,0.2);
            font-size: 14px;
            font-weight: 400;
        }
body[data-page="payments"] #loader .loader-icon {
            font-size: 32px;
            display: block;
            margin-bottom: 10px;
            animation: loaderSpin__payments 1.5s linear infinite;
        }
@keyframes loaderSpin__payments {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
body[data-page="payments"] /* --- EMPTY STATE --- */
        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: rgba(255,255,255,0.2);
        }
body[data-page="payments"] .empty-state .empty-icon {
            font-size: 44px;
            display: block;
            margin-bottom: 12px;
            opacity: 0.4;
        }
body[data-page="payments"] .empty-state h4 {
            font-size: 16px;
            font-weight: 600;
            color: rgba(255,255,255,0.3);
        }
body[data-page="payments"] .empty-state p {
            font-size: 13px;
            color: rgba(255,255,255,0.1);
            margin-top: 4px;
        }
body[data-page="payments"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            body { padding: 12px 10px 20px; }
            .header { padding: 10px 14px; }
            .header-title { font-size: 16px; }
            .bank-monitor { padding: 16px; }
            .balance-box span { font-size: 16px; }
            .grid-balances { gap: 10px; }
            .pay-item { padding: 12px 14px; }
            .details strong { font-size: 13px; }
            .item-right .amount { font-size: 14px; }
            .icon-box { width: 38px; height: 38px; font-size: 16px; }
        }
@media (max-height: 700px) {
  body[data-page="payments"] .bank-monitor { padding: 14px; margin-bottom: 16px; }
  body[data-page="payments"] .grid-balances { margin-top: 10px; padding-top: 10px; }
  body[data-page="payments"] .balance-box { padding: 8px 12px; }
  body[data-page="payments"] .balance-box span { font-size: 15px; }
}


/* ============================================================
   SAHIFA: billing.html   (data-page="billing")
   ============================================================ */
body[data-page="billing"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="billing"] {
            background: linear-gradient(180deg, #005c97 0%, #363795 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }
body[data-page="billing"] /* --- FON EFFEKTLARI --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.08;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="billing"] .light-rays__billing {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 50%);
            animation: rays__billing 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__billing {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="billing"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="billing"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            animation: rise__billing var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.1);
        }
@keyframes rise__billing {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.5; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="billing"] /* --- HEADER --- */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 14px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            animation: slideDown__billing 0.6s ease-out;
        }
@keyframes slideDown__billing {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="billing"] .btn-back {
            background: rgba(255,255,255,0.06);
            color: white;
            border: 1px solid rgba(255,255,255,0.08);
            padding: 10px 18px;
            border-radius: 50px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            align-items: center;
            gap: 6px;
            -webkit-tap-highlight-color: transparent;
        }
body[data-page="billing"] .btn-back:active {
            transform: scale(0.92);
        }
body[data-page="billing"] .top-info {
            text-align: right;
        }
body[data-page="billing"] .user-name {
            font-size: 14px;
            font-weight: 700;
            color: #ffd700;
            text-shadow: 0 1px 3px rgba(0,0,0,0.2);
        }
body[data-page="billing"] .balance-box {
            font-size: 13px;
            font-weight: 600;
            color: #00ff9d;
            background: rgba(0, 255, 157, 0.08);
            padding: 3px 14px;
            border-radius: 20px;
            border: 1px solid rgba(0, 255, 157, 0.1);
            display: inline-block;
            margin-top: 2px;
            animation: balancePulse__billing 2s ease-in-out infinite;
        }
@keyframes balancePulse__billing {
            0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 157, 0.05); }
            50% { box-shadow: 0 0 25px rgba(0, 255, 157, 0.15); }
        }
body[data-page="billing"] /* --- MAIN CONTENT --- */
        .main-content {
            position: relative;
            z-index: 10;
            padding: 100px 16px 30px;
            max-width: 420px;
            margin: 0 auto;
        }
body[data-page="billing"] .card-payment {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            padding: 30px 24px;
            border-radius: 30px;
            border: 1px solid rgba(255,255,255,0.06);
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            animation: cardSlide__billing 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }
@keyframes cardSlide__billing {
            from { transform: translateY(30px) scale(0.95); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }
body[data-page="billing"] .payment-title {
            text-align: center;
            margin-bottom: 25px;
        }
body[data-page="billing"] .payment-title h2 {
            font-size: 22px;
            font-weight: 800;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
body[data-page="billing"] .payment-title p {
            font-size: 13px;
            color: rgba(255,255,255,0.5);
            margin-top: 4px;
        }
body[data-page="billing"] /* --- KARTA --- */
        .card-box {
            background: linear-gradient(145deg, #1a2a33, #0f1a22);
            padding: 20px;
            border-radius: 20px;
            border: 1px solid rgba(0, 210, 255, 0.15);
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            overflow: hidden;
            margin-bottom: 10px;
        }
body[data-page="billing"] .card-box::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 30% 30%, rgba(0, 210, 255, 0.03), transparent 60%);
            animation: cardShine__billing 4s ease-in-out infinite;
        }
@keyframes cardShine__billing {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(180deg); }
        }
body[data-page="billing"] .card-box:active {
            transform: scale(0.97);
        }
body[data-page="billing"] .card-box .card-owner {
            font-size: 12px;
            color: rgba(255,255,255,0.4);
            margin-bottom: 4px;
            font-weight: 400;
            position: relative;
            z-index: 1;
        }
body[data-page="billing"] .card-box .card-num {
            font-size: 19px;
            font-weight: 800;
            color: #00d2ff;
            letter-spacing: 2px;
            font-family: monospace;
            position: relative;
            z-index: 1;
        }
body[data-page="billing"] .card-box .card-icon {
            font-size: 14px;
            position: relative;
            z-index: 1;
            margin-top: 8px;
            display: flex;
            gap: 8px;
            align-items: center;
        }
body[data-page="billing"] .card-box .card-icon span {
            font-size: 11px;
            color: rgba(255,255,255,0.3);
            font-weight: 400;
        }
body[data-page="billing"] .copy-indicator {
            text-align: center;
            font-size: 12px;
            color: #00ff9d;
            font-weight: 600;
            padding: 8px;
            border-radius: 10px;
            background: rgba(0, 255, 157, 0.05);
            border: 1px solid rgba(0, 255, 157, 0.08);
            margin-bottom: 20px;
            display: none;
            animation: copyPop__billing 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
@keyframes copyPop__billing {
            0% { transform: scale(0.8); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }
body[data-page="billing"] .copy-indicator.show {
            display: block;
        }
body[data-page="billing"] /* --- INPUTS --- */
        .input-group {
            margin-bottom: 16px;
        }
body[data-page="billing"] .input-group label {
            display: block;
            font-size: 12px;
            font-weight: 600;
            color: rgba(255,255,255,0.5);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }
body[data-page="billing"] .input-box {
            width: 100%;
            padding: 16px;
            border-radius: 16px;
            border: 1px solid rgba(255,255,255,0.06);
            background: rgba(255,255,255,0.04);
            color: white;
            font-size: 18px;
            font-weight: 600;
            text-align: center;
            outline: none;
            transition: all 0.3s;
            box-sizing: border-box;
        }
body[data-page="billing"] .input-box:focus {
            border-color: #00d2ff;
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.05);
            background: rgba(255,255,255,0.06);
        }
body[data-page="billing"] .input-box::placeholder {
            color: rgba(255,255,255,0.2);
            font-weight: 400;
        }
body[data-page="billing"] /* --- FILE UPLOAD --- */
        .file-upload-area {
            border: 2px dashed rgba(255,255,255,0.08);
            border-radius: 16px;
            padding: 25px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 16px;
        }
body[data-page="billing"] .file-upload-area:active {
            transform: scale(0.97);
        }
body[data-page="billing"] .file-upload-area .upload-icon {
            font-size: 32px;
            display: block;
            margin-bottom: 6px;
        }
body[data-page="billing"] .file-upload-area .upload-text {
            font-size: 14px;
            color: rgba(255,255,255,0.4);
            font-weight: 400;
        }
body[data-page="billing"] .file-upload-area .upload-text strong {
            color: #00d2ff;
        }
body[data-page="billing"] .file-upload-area.has-file {
            border-color: #00ff9d;
            background: rgba(0, 255, 157, 0.03);
        }
body[data-page="billing"] #preview {
            width: 100%;
            max-height: 200px;
            border-radius: 12px;
            margin-top: 12px;
            object-fit: contain;
            display: none;
            animation: previewFade__billing 0.4s ease;
        }
@keyframes previewFade__billing {
            from { opacity: 0; transform: scale(0.9); }
            to { opacity: 1; transform: scale(1); }
        }
body[data-page="billing"] #preview.show {
            display: block;
        }
body[data-page="billing"] /* --- BUTTONS --- */
        .btn {
            width: 100%;
            padding: 16px;
            border: none;
            border-radius: 16px;
            font-weight: 700;
            font-size: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            -webkit-tap-highlight-color: transparent;
            position: relative;
            overflow: hidden;
        }
body[data-page="billing"] .btn:active {
            transform: scale(0.95) translateY(2px);
        }
body[data-page="billing"] .btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.6s;
            pointer-events: none;
        }
body[data-page="billing"] .btn:active::after {
            width: 300px;
            height: 300px;
            opacity: 0;
        }
body[data-page="billing"] .btn-send {
            background: linear-gradient(135deg, #00d2ff, #0088cc);
            color: #fff;
            box-shadow: 0 4px 30px rgba(0, 210, 255, 0.3);
            margin-top: 6px;
        }
body[data-page="billing"] .btn-send:active {
            box-shadow: none;
        }
body[data-page="billing"] .btn-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }
body[data-page="billing"] .btn-file-select {
            background: rgba(255,255,255,0.04);
            color: white;
            border: 1px solid rgba(255,255,255,0.06);
            margin-top: 4px;
        }
body[data-page="billing"] /* --- TOAST --- */
        #toast {
            position: fixed;
            bottom: -100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255,255,255,0.95);
            color: #005c97;
            padding: 16px 28px;
            border-radius: 50px;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 3000;
            font-weight: 700;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
            text-align: center;
            width: max-content;
            max-width: 90%;
            backdrop-filter: blur(10px);
            font-size: 14px;
            border: 1px solid rgba(255,255,255,0.1);
        }
body[data-page="billing"] #toast.show {
            bottom: 40px;
        }
body[data-page="billing"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            .card-payment { padding: 24px 18px; }
            .card-box .card-num { font-size: 16px; }
            .input-box { font-size: 16px; padding: 14px; }
            .payment-title h2 { font-size: 19px; }
        }


/* ============================================================
   SAHIFA: withdraw.html   (data-page="withdraw")
   ============================================================ */
body[data-page="withdraw"] * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; -webkit-tap-highlight-color: transparent; }
body[data-page="withdraw"] { 
            background: linear-gradient(180deg, #005c97 0%, #363795 100%); 
            color: white; 
            overflow-x: hidden; 
            min-height: 100vh;
            position: relative;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
body[data-page="withdraw"] .water-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/cubes.png'); opacity: 0.1; pointer-events: none; z-index: 1; }
body[data-page="withdraw"] .light-rays { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 50%); z-index: 0; pointer-events: none; }
body[data-page="withdraw"] .header { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 20px; display: flex; align-items: center; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); }
body[data-page="withdraw"] .btn-back { background: rgba(255,255,255,0.15); border: none; padding: 8px 15px; border-radius: 12px; color: white; font-weight: 600; cursor: pointer; font-size: 14px; transition: 0.2s; }
body[data-page="withdraw"] .main-content { position: relative; z-index: 10; padding: 100px 20px 30px; max-width: 600px; margin: 0 auto; text-align: center; }
body[data-page="withdraw"] .withdraw-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(15px); padding: 30px 25px; border-radius: 30px; margin-bottom: 20px; text-align: left; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
body[data-page="withdraw"] .balance-display { font-size: 24px; font-weight: 800; color: #00d2ff; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
body[data-page="withdraw"] .input-group { margin-bottom: 18px; }
body[data-page="withdraw"] .input-group label { display: block; font-size: 11px; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; font-weight: 700; color: #00d2ff; }
body[data-page="withdraw"] .input-group input, body[data-page="withdraw"] .input-group select { width: 100%; padding: 15px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; color: white; font-weight: 600; outline: none; font-size: 16px; }
body[data-page="withdraw"] .input-error { border-color: #ff416c !important; color: #ff416c !important; }
body[data-page="withdraw"] .btn-submit { width: 100%; padding: 16px; background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%); border: none; border-radius: 16px; color: #fff; font-weight: 800; cursor: pointer; font-size: 15px; box-shadow: 0 5px 20px rgba(255,75,43,0.4); }
body[data-page="withdraw"] .channel-card { background: linear-gradient(135deg, rgba(0,136,204,0.15) 0%, rgba(0,210,255,0.05) 100%); border: 1px solid rgba(0,136,204,0.3); padding: 20px; border-radius: 25px; text-align: center; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; }
body[data-page="withdraw"] #toast { visibility: hidden; min-width: 250px; background-color: #fff; color: #005c97; text-align: center; border-radius: 50px; padding: 16px; position: fixed; z-index: 3000; left: 50%; bottom: 30px; transform: translateX(-50%); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
body[data-page="withdraw"] #toast.show { visibility: visible; animation: fadein__withdraw 0.5s, fadeout__withdraw 0.5s 2.5s; }
@keyframes fadein__withdraw { from {bottom: 0; opacity: 0;} to {bottom: 40px; opacity: 1;} }
@keyframes fadeout__withdraw { from {bottom: 40px; opacity: 1;} to {bottom: 0; opacity: 0;} }


/* ============================================================
   SAHIFA: messages.html   (data-page="messages")
   ============================================================ */
body[data-page="messages"] * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            -webkit-tap-highlight-color: transparent;
            -webkit-touch-callout: none;
            user-select: none;
        }
body[data-page="messages"] {
            background: linear-gradient(180deg, #005c97 0%, #363795 100%);
            color: white;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
            padding-top: 80px;
        }
body[data-page="messages"] /* --- FON EFFEKTLARI --- */
        .water-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://www.transparenttextures.com/patterns/cubes.png');
            opacity: 0.08;
            pointer-events: none;
            z-index: 0;
        }
body[data-page="messages"] .light-rays__messages {
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08) 0%, transparent 50%);
            animation: rays__messages 10s ease-in-out infinite alternate;
            z-index: 0;
            pointer-events: none;
        }
@keyframes rays__messages {
            from { transform: rotate(-3deg) scale(1); }
            to { transform: rotate(3deg) scale(1.05); }
        }
body[data-page="messages"] .bubbles {
            position: fixed;
            bottom: -20px;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }
body[data-page="messages"] .bubble {
            position: absolute;
            bottom: -50px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 50%;
            animation: rise__messages var(--d) infinite ease-in;
            box-shadow: inset 0 0 8px rgba(255,255,255,0.1);
        }
@keyframes rise__messages {
            0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
            20% { opacity: 0.5; }
            100% { transform: translateY(-110vh) scale(1.6) rotate(720deg); opacity: 0; }
        }
body[data-page="messages"] /* --- HEADER --- */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 1000;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            animation: slideDown__messages 0.6s ease-out;
        }
@keyframes slideDown__messages {
            from { transform: translateY(-30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
body[data-page="messages"] .back-btn {
            cursor: pointer;
            font-size: 20px;
            color: white;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.04);
            text-decoration: none;
        }
body[data-page="messages"] .back-btn:active {
            transform: scale(0.85);
        }
body[data-page="messages"] .header-title {
            font-size: 18px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
body[data-page="messages"] .header-icon {
            font-size: 20px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,215,0,0.06);
            border-radius: 50%;
            border: 1px solid rgba(255,215,0,0.06);
        }
body[data-page="messages"] /* --- MAIN --- */
        .container {
            position: relative;
            z-index: 10;
            padding: 16px;
            max-width: 500px;
            margin: 0 auto;
        }
body[data-page="messages"] /* --- MESSAGE CARD --- */
        .message-card {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 18px 20px;
            margin-bottom: 14px;
            border: 1px solid rgba(255,255,255,0.04);
            animation: slideUp__messages 0.5s ease-out forwards;
            transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            position: relative;
            overflow: hidden;
        }
body[data-page="messages"] .message-card:active {
            transform: scale(0.98);
        }
body[data-page="messages"] .message-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            border-radius: 0 10px 10px 0;
        }
body[data-page="messages"] .message-card.private::before {
            background: linear-gradient(180deg, #00d2ff, #0088cc);
        }
body[data-page="messages"] .message-card.public::before {
            background: linear-gradient(180deg, #ffd700, #f59e0b);
        }
@keyframes slideUp__messages {
            from {
                opacity: 0;
                transform: translateY(25px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
body[data-page="messages"] .message-card:nth-child(1) { animation-delay: 0.05s; }
body[data-page="messages"] .message-card:nth-child(2) { animation-delay: 0.1s; }
body[data-page="messages"] .message-card:nth-child(3) { animation-delay: 0.15s; }
body[data-page="messages"] .message-card:nth-child(4) { animation-delay: 0.2s; }
body[data-page="messages"] .message-card:nth-child(5) { animation-delay: 0.25s; }
body[data-page="messages"] .message-card:nth-child(6) { animation-delay: 0.3s; }
body[data-page="messages"] .message-card:nth-child(7) { animation-delay: 0.35s; }
body[data-page="messages"] .message-card:nth-child(8) { animation-delay: 0.4s; }
body[data-page="messages"] .message-card:nth-child(9) { animation-delay: 0.45s; }
body[data-page="messages"] .message-card:nth-child(10) { animation-delay: 0.5s; }
body[data-page="messages"] .msg-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 8px;
        }
body[data-page="messages"] .msg-badge {
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            padding: 4px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            letter-spacing: 0.5px;
        }
body[data-page="messages"] .badge-private {
            background: rgba(0, 210, 255, 0.12);
            color: #00d2ff;
            border: 1px solid rgba(0, 210, 255, 0.08);
        }
body[data-page="messages"] .badge-public {
            background: rgba(255, 215, 0, 0.12);
            color: #ffd700;
            border: 1px solid rgba(255, 215, 0, 0.08);
        }
body[data-page="messages"] .msg-title {
            font-weight: 700;
            font-size: 16px;
            color: #fff;
            margin-bottom: 4px;
        }
body[data-page="messages"] .msg-body {
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.7;
            white-space: pre-wrap;
            word-break: break-word;
        }
body[data-page="messages"] .msg-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.03);
        }
body[data-page="messages"] .msg-time {
            font-size: 11px;
            opacity: 0.35;
            font-weight: 400;
        }
body[data-page="messages"] .msg-read {
            font-size: 10px;
            opacity: 0.2;
            font-weight: 400;
            display: flex;
            align-items: center;
            gap: 4px;
        }
body[data-page="messages"] /* --- EMPTY STATE --- */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }
body[data-page="messages"] .empty-state .empty-icon {
            font-size: 56px;
            display: block;
            margin-bottom: 16px;
            animation: floatEmpty__messages 3s ease-in-out infinite;
        }
@keyframes floatEmpty__messages {
            0%, 100% { transform: translateY(0) rotate(-5deg); }
            50% { transform: translateY(-10px) rotate(5deg); }
        }
body[data-page="messages"] .empty-state h3 {
            font-size: 20px;
            font-weight: 700;
            color: rgba(255,255,255,0.4);
        }
body[data-page="messages"] .empty-state p {
            font-size: 14px;
            color: rgba(255,255,255,0.2);
            margin-top: 4px;
        }
body[data-page="messages"] /* --- LOADING --- */
        .loading-skeleton {
            background: rgba(255,255,255,0.03);
            border-radius: 20px;
            padding: 18px 20px;
            margin-bottom: 14px;
            border: 1px solid rgba(255,255,255,0.02);
            animation: shimmer__messages 1.5s infinite;
        }
@keyframes shimmer__messages {
            0% { background: rgba(255,255,255,0.02); }
            50% { background: rgba(255,255,255,0.06); }
            100% { background: rgba(255,255,255,0.02); }
        }
body[data-page="messages"] .loading-skeleton .skeleton-line {
            height: 14px;
            background: rgba(255,255,255,0.04);
            border-radius: 10px;
            margin-bottom: 8px;
        }
body[data-page="messages"] .loading-skeleton .skeleton-line:last-child {
            width: 60%;
            margin-bottom: 0;
        }
body[data-page="messages"] .loading-skeleton .skeleton-line.short {
            width: 30%;
        }
body[data-page="messages"] /* --- ERROR --- */
        .error-msg {
            text-align: center;
            padding: 30px 20px;
            color: #ff6b6b;
            background: rgba(255, 75, 43, 0.06);
            border-radius: 20px;
            border: 1px solid rgba(255, 75, 43, 0.08);
        }
body[data-page="messages"] .error-msg .error-icon {
            font-size: 40px;
            display: block;
            margin-bottom: 10px;
        }
body[data-page="messages"] /* --- RESPONSIVE --- */
        @media (max-width: 480px) {
            body { padding-top: 70px; }
            .message-card { padding: 15px 16px; }
            .msg-title { font-size: 15px; }
            .msg-body { font-size: 13px; }
            .header-title { font-size: 16px; }
            .empty-state .empty-icon { font-size: 44px; }
        }


/* ============================================================
   SAHIFA: ilova.html   (data-page="ilova")
   ============================================================ */
:root {
            --primary: #6366f1;
            --secondary: #a855f7;
            --bg: #0f172a;
            --card-bg: #1e293b;
            --text: #f8fafc;
        }
body[data-page="ilova"] {
            font-family: 'Segoe UI', sans-serif;
            background-color: var(--bg);
            color: var(--text);
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            /* Brauzer menyusini bloklash */
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
body[data-page="ilova"] /* Chiqish tugmasi */
        .exit-btn {
            position: absolute;
            top: 20px;
            left: 20px;
            padding: 8px 16px;
            background: #271010;
            color: #ef4444;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 600;
            border: 1px solid #7f1d1d;
            transition: transform 0.2s;
            cursor: pointer;
        }
body[data-page="ilova"] .exit-btn:active {
            transform: scale(0.9);
            background: #450a0a;
        }
body[data-page="ilova"] .container {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
            text-align: center;
            max-width: 450px;
            width: 90%;
            border: 1px solid #334155;
            margin-top: 80px;
        }
body[data-page="ilova"] h1 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
body[data-page="ilova"] .features {
            text-align: left;
            margin: 20px 0;
            list-style: none;
            padding: 0;
        }
body[data-page="ilova"] .features li {
            margin-bottom: 12px;
            padding-left: 30px;
            position: relative;
        }
body[data-page="ilova"] .features li::before {
            content: '✅';
            position: absolute;
            left: 0;
        }
body[data-page="ilova"] /* Ilova uslubidagi animatsiyali tugma */
        .cta-button {
            display: inline-block;
            margin-top: 20px;
            padding: 15px 30px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            text-decoration: none;
            border-radius: 12px;
            font-weight: bold;
            animation: pulse__ilova 2s infinite;
            transition: transform 0.1s;
        }
@keyframes pulse__ilova {
            0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
            70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
            100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
        }
body[data-page="ilova"] .cta-button:active {
            transform: scale(0.95);
        }
body[data-page="ilova"] .footer-note {
            margin-top: 25px;
            font-size: 0.9rem;
            color: #94a3b8;
            font-style: italic;
        }
