:root { 
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --text-main: #111827;
    --text-muted: #4B5563;
    --border: #F3F4F6;
    --border-dark: #E5E7EB;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --nav-inactive: #9CA3AF;
    --drawer-width: 280px;
    --header-height: 60px;
    --footer-height: 64px;
}

/* Premium Dark Theme Variables Tokens */
[data-theme="dark"] {
    --bg-color: #0F172A;
    --card-bg: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;
    --border-dark: #475569;
    --nav-inactive: #64748B;
}

/* Premium Reset & App Framework Performance Tweaks */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: fixed; 
    top: 0;
    bottom: 0;
    background-color: #0F172A; 
    transition: background-color 0.3s ease;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

input, p.correct-ans, p.user-ans, .review-item h5, .note-info h4 {
    user-select: auto; 
}

/* Device Shell Container Constraints */
#app-frame { 
    width: 100%; 
    max-width: 480px; 
    height: 100%; 
    max-height: 100%;
    background-color: var(--bg-color); 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    transition: background-color 0.3s ease;
}

/* Premium Native Navigation Drawer (Side Menu) */
.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer {
    position: absolute;
    top: 0;
    left: calc(-1 * var(--drawer-width));
    width: var(--drawer-width);
    height: 100%;
    background: var(--card-bg);
    z-index: 1600;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.side-drawer.open {
    transform: translateX(var(--drawer-width));
}

.drawer-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 32px 20px 20px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-avatar { font-size: 48px; color: rgba(255, 255, 255, 0.9); }
.drawer-user-info h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.drawer-user-info p { font-size: 12px; color: rgba(255, 255, 255, 0.7); font-weight: 500; margin-top: 2px; }

.drawer-menu { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.drawer-item {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    justify-content: flex-start;
    gap: 16px;
    transition: all 0.2s ease;
}
.drawer-item .material-icons { font-size: 22px; color: var(--text-muted); transition: color 0.2s ease; }
.drawer-item:active { background: var(--border); }
.drawer-item.active { background: #EEF2FF; color: var(--primary); }
[data-theme="dark"] .drawer-item.active { background: rgba(79, 70, 229, 0.15); color: #818CF8; }
.drawer-item.active .material-icons { color: inherit; }

.drawer-divider { height: 1px; background: var(--border); margin: 8px 16px; }
.logout-item { color: var(--danger); }
.logout-item .material-icons { color: var(--danger); }
[data-theme="dark"] .logout-item { color: #F87171; }
[data-theme="dark"] .logout-item .material-icons { color: #F87171; }

/* Premium SPA Screen Components Engine */
.screen { 
    display: none; 
    flex: 1; 
    width: 100%;
    min-height: 0; 
    flex-direction: column; 
    opacity: 0; 
    will-change: transform, opacity; 
    animation: slideUpFade 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
}
.screen.active { display: flex; }

@keyframes slideUpFade { 
    from { opacity: 0; transform: translateY(8px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* UPGRADED SCREEN CONTENT LOGIC (90px Bottom Padding Built-in) */
.screen-content, .leaderboard-container, .test-content { 
    flex: 1; 
    overflow-y: auto; 
    min-height: 0; 
    padding: 20px 16px 90px 16px; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
}
/* NATIVE APP FEEL: Hide Scrollbars completely */
.screen-content::-webkit-scrollbar, 
.leaderboard-container::-webkit-scrollbar, 
.test-content::-webkit-scrollbar,
.drawer-menu::-webkit-scrollbar { 
    display: none; /* Safely hides the scrollbar */
    width: 0px; 
    background: transparent;
}

/* Firefox ke liye hide karne ka logic */
.screen-content, .leaderboard-container, .test-content, .drawer-menu {
    scrollbar-width: none; 
}

.center-content { display: flex; flex-direction: column; justify-content: center; }

/* Dynamic Native Shell Component Layouts */
.app-header { 
    background: var(--card-bg); 
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-dark); 
    z-index: 10;
}
.header-left, .header-right { display: flex; align-items: center; gap: 4px; }
.app-header h3 { font-size: 17px; font-weight: 750; color: var(--text-main); letter-spacing: -0.3px; }
.test-header-left { display: flex; align-items: center; gap: 8px; }
.full-lock-header { border-bottom: 2px solid var(--border-dark); }

/* Native Content Scaffolding Layout */
.shell-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
}
.tab-view {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    min-height: 0;
}
.tab-view.active { display: flex; }

/* Form Field Styling Core */
.login-logo-area { text-align: center; margin-bottom: 16px; margin-top: 110px; }
/* ========================================== */
/* 🌟 PREMIUM IMAGE LOGO STYLING              */
/* ========================================== */
.app-logo-image {
    width: 80px; /* Ekdum perfect size */
    height: 80px;
    object-fit: contain;
    border-radius: 18px; /* Apple/iOS style smooth corners */
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hover/Touch karne par thoda sa pop hoga */
.app-logo-image:active {
    transform: scale(0.95);
}

[data-theme="dark"] .app-logo-image {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Dark mode ki shadow */
}
#login-title { font-size: 22px; font-weight: 800; text-align: center; color: var(--text-main); margin-bottom: 24px; letter-spacing: -0.5px; }

.input-wrapper { position: relative; width: 100%; margin-bottom: 14px; }
.input-wrapper input { 
    width: 100%; 
    padding: 15px 16px 15px 44px; 
    border: 1.5px solid var(--border-dark); 
    border-radius: 14px; 
    font-size: 15px; 
    outline: none; 
    transition: all 0.2s ease; 
    background: var(--card-bg); 
    color: var(--text-main);
}
.input-wrapper input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 20px; }

/* Dynamic Multi-State Action Buttons */
button { 
    border: none; 
    border-radius: 14px; 
    font-size: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
}
.btn-primary { background: var(--primary); color: white; padding: 15px; width: 100%; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2); }
.btn-primary:active { background: var(--primary-hover); transform: scale(0.98); }

.btn-secondary { background: var(--border-dark); color: var(--text-main); padding: 14px; width: 100%; }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:disabled { opacity: 0.4; pointer-events: none; }

.btn-icon-nav { background: transparent; color: var(--text-main); padding: 8px; border-radius: 50%; }
.btn-icon-nav:active { background: var(--border); }
.btn-icon { background: transparent; color: var(--text-muted); padding: 8px; border-radius: 50%; }
.btn-icon:active { background: var(--border); color: var(--danger); }
.close-btn { color: var(--primary); }
.btn-inline-icon { font-size: 16px; }

/* TAB 1: Premium Dashboard Components UI */
.welcome-section { margin-bottom: 20px; }
.welcome-section h3 { font-size: 20px; font-weight: 800; color: var(--text-main); letter-spacing: -0.4px; }
.welcome-section p { font-size: 13px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }

.hero-banner-carousel {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 18px;
    padding: 18px;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.3);
}
.banner-slide { display: flex; align-items: flex-start; gap: 14px; }
.banner-icon { font-size: 28px; background: rgba(255, 255, 255, 0.2); padding: 8px; border-radius: 12px; }
.banner-text h4 { font-size: 15px; font-weight: 700; }
.banner-text p { font-size: 12px; color: rgba(255, 255, 255, 0.85); margin-top: 4px; line-height: 1.4; font-weight: 500; }

.section-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin: 12px 0 14px 2px; letter-spacing: 1px; }

/* Grid Dashboard System Layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.grid-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.grid-card:active { transform: scale(0.97); }
.grid-card.active-card { border-color: var(--primary); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.05); }

.grid-icon-box { padding: 8px; border-radius: 10px; display: inline-flex; justify-content: center; align-items: center; }
.grid-icon-box .material-icons { font-size: 20px; }
.primary-box { background: #EEF2FF; color: var(--primary); }
.success-box { background: #ECFDF5; color: var(--success); }
.warning-box { background: #FFFBEB; color: var(--warning); }
.danger-box { background: #FEF2F2; color: var(--danger); }

[data-theme="dark"] .primary-box { background: rgba(79, 70, 229, 0.15); color: #818CF8; }
[data-theme="dark"] .success-box { background: rgba(16, 185, 129, 0.15); color: #34D399; }
[data-theme="dark"] .warning-box { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
[data-theme="dark"] .danger-box { background: rgba(239, 110, 110, 0.15); color: #F87171; }

.grid-card h4 { font-size: 14px; font-weight: 750; color: var(--text-main); }
.grid-card p { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Dynamic List Cards Structure */
.test-card { 
    background: var(--card-bg); 
    padding: 16px; 
    border-radius: 16px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
    border: 1.5px solid var(--border); 
}
.test-info h4 { color: var(--text-main); font-size: 14px; font-weight: 750; margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.test-info p { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.test-action-btn { width: auto; padding: 8px 16px; border-radius: 10px; font-size: 13px; }

.badge { background: var(--border); padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.new-badge { background: #FEF2F2; color: var(--danger); padding: 2px 6px; border-radius: 6px; font-size: 9px; font-weight: 800; border: 1px solid rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .new-badge { background: rgba(239, 68, 68, 0.15); color: #F87171; }

/* TAB 2: Historical Results Content UI */
.tab-header-block { margin-bottom: 16px; padding-left: 2px; }
.tab-header-block h3 { font-size: 18px; font-weight: 800; color: var(--text-main); }
.tab-header-block p { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.past-results-container { display: flex; flex-direction: column; gap: 10px; }

/* TAB 3: Student Profile Tier UI */
.profile-card-premium {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.profile-big-avatar { font-size: 56px; color: var(--primary); margin-bottom: 8px; }
#profile-student-name { font-size: 16px; font-weight: 800; color: var(--text-main); }
.badge-premium { display: inline-block; background: #EEF2FF; color: var(--primary); padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-top: 6px; border: 1px solid rgba(79, 70, 229, 0.1); }
[data-theme="dark"] .badge-premium { background: rgba(79, 70, 229, 0.15); color: #818CF8; }

.profile-details-list { background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.profile-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.profile-detail-item:last-child { border-bottom: none; }
.profile-detail-item .material-icons { font-size: 20px; color: var(--text-muted); }
.detail-text { flex: 1; }
.detail-text label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.detail-text p { font-size: 13px; font-weight: 600; color: var(--text-main); margin-top: 2px; }
.actionable-item { cursor: pointer; }
.actionable-item:active { background: var(--border); }
.toggle-arrow-icon { color: var(--border-dark) !important; font-size: 18px !important; }
.logout-item-row .detail-text p { color: var(--danger); }

/* TAB 4: Core Live Testing Panel Layout Engine */
.timer-wrapper { display: flex; align-items: center; gap: 4px; background: #FEF2F2; padding: 6px 12px; border-radius: 20px; transition: background-color 0.3s ease; }
[data-theme="dark"] .timer-wrapper { background: rgba(239, 68, 68, 0.1); }
.timer-icon { font-size: 16px; color: var(--danger); }
.timer-badge { color: var(--danger); font-size: 13px; font-weight: 700; font-family: monospace; letter-spacing: 0.5px; }

.app-footer { background: var(--card-bg); padding: 14px 16px; display: flex; justify-content: space-between; border-top: 1px solid var(--border-dark); }
#question-text { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 20px; line-height: 1.5; }
.option-btn { 
    display: block; 
    width: 100%; 
    text-align: left; 
    background: var(--card-bg); 
    border: 1.5px solid var(--border-dark); 
    padding: 15px; 
    margin-bottom: 10px; 
    border-radius: 14px; 
    font-size: 14px; 
    color: var(--text-main); 
    font-weight: 600;
}
.option-btn:active { transform: scale(0.99); }
.option-btn.selected { border-color: var(--primary); background: #EEF2FF; color: var(--primary); }
[data-theme="dark"] .option-btn.selected { background: rgba(79, 70, 229, 0.15); border-color: #818CF8; color: #818CF8; }

/* Analytics Score Performance Engine UI */
.analytics-card { background: var(--card-bg); border-radius: 20px; padding: 20px; text-align: center; margin-bottom: 20px; border: 1.5px solid var(--border); }
.premium-results-card { background: linear-gradient(145deg, var(--card-bg) 0%, var(--bg-color) 100%); border: 2px solid var(--border-dark); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.1); }
.highlight-score { display: block; font-size: 38px; font-weight: 900; margin-top: 6px; line-height: 1.1; }
.accuracy-badge { display: inline-block; background: var(--primary); color: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; margin-top: 14px; }

/* Individual Question Review Feedback Modules */
.review-item { background: var(--card-bg); border-radius: 16px; padding: 16px; margin-bottom: 12px; border: 1.5px solid var(--border); border-left: 5px solid var(--border-dark); }
.review-item.correct { border-left-color: var(--success); background: linear-gradient(90deg, rgba(16, 185, 129, 0.04) 0%, var(--card-bg) 15%); }
.review-item.incorrect { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(239, 68, 68, 0.04) 0%, var(--card-bg) 15%); }
.review-item h5 { font-size: 14px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; }
.review-item p { font-size: 13px; margin-top: 4px; font-weight: 600; }
.user-ans { font-weight: 700; }
.correct-ans { color: var(--success); font-weight: 700; }
.error { color: var(--danger); font-size: 13px; text-align: center; margin-bottom: 10px; height: 18px; font-weight: 700; }

/* Loader Components Structure Overlay */
.loader-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 2500; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.wave-container { display: flex; justify-content: center; align-items: center; gap: 4px; height: 28px; margin-bottom: 14px; }
.wave-bar { width: 4px; height: 100%; background: var(--primary); border-radius: 4px; animation: waveMotion 1s ease-in-out infinite; }
.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }
@keyframes waveMotion { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); background: #818CF8; } }
#loader-text { color: white; font-weight: 700; font-size: 14px; letter-spacing: 0.3px; }

/* System Native Modular Dialog Modal Popups */
.popup-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 3000; display: flex; justify-content: center; align-items: center; padding: 16px; }
.popup-card { background: var(--card-bg); border-radius: 20px; padding: 20px; width: 100%; max-width: 300px; text-align: center; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3); animation: popupScaleIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popupScaleIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-icon-wrapper { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; background: #EEF2FF; color: var(--primary); }
.popup-icon-wrapper.success { background: #ECFDF5; color: var(--success); }
.popup-icon-wrapper.danger { background: #FEF2F2; color: var(--danger); }
.popup-icon-wrapper.warning { background: #FFFBEB; color: var(--warning); }
.popup-icon-wrapper .material-icons { font-size: 24px; }
.popup-card h4 { font-size: 16px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; letter-spacing: -0.3px; }
.popup-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 18px; font-weight: 600; }
.popup-actions { display: flex; gap: 8px; }
.popup-actions button { flex: 1; padding: 10px; border-radius: 10px; font-size: 13px; }


/* ========================================== */
/* 🏆 PREMIUM LEADERBOARD UI EXTENSION        */
/* ========================================== */

/* 1. Container ki side padding hata di taaki card ko failne ki jagah mile */
.leaderboard-container { 
    padding: 10px 0px; /* Pehle yahan 15px tha, jisko 0px kar diya */
    margin: 0 -5px;    /* Thoda aur edge-to-edge stretch karne ke liye */
    overflow-y: auto; 
    height: 100%; 
    padding-bottom: 80px; 
}

/* 2. Card ko 100% width lene ke liye bol diya */
.lb-card { 
    display: flex; 
    align-items: center; 
    width: 100%; /* ✅ NAYA: Full width capture karega */
    background: var(--card-bg); 
    padding: 15px; 
    border-radius: 16px; 
    margin-bottom: 12px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.04); 
    border: 1px solid var(--border); 
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}


.lb-card:active { transform: scale(0.98); }

.lb-rank { 
    width: 50px; 
    font-size: 28px; 
    font-weight: 900; 
    text-align: center; 
}
.normal-rank { font-size: 18px; color: var(--text-muted); }

.lb-details { flex-grow: 1; padding-left: 10px; }
.lb-details h4 { 
    margin: 0; 
    font-size: 16px; 
    color: var(--text-main); 
    font-weight: 750;
    display: flex; 
    align-items: center; 
    gap: 5px; 
}
.lb-details p { 
    margin: 4px 0 0; 
    font-size: 12px; 
    font-weight: 600;
    color: var(--text-muted); 
    display: flex; 
    align-items: center; 
    gap: 3px; 
}
.lb-details p .material-icons { font-size: 14px; }

.lb-score { 
    text-align: right; 
    background: var(--bg-color); 
    padding: 8px 12px; 
    border-radius: 12px; 
    border: 1px solid var(--border);
}
.lb-score h2 { 
    margin: 0; 
    font-size: 18px; 
    font-weight: 800;
    color: var(--primary); 
}
.lb-score h2 span { font-size: 12px; color: var(--nav-inactive); }
.lb-score p { 
    margin: 0; 
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--text-muted); 
    letter-spacing: 0.5px;
}

/* 🥇 Winners Themes (Adapts to Dark/Light dynamically) */
.lb-card-gold { 
    background: linear-gradient(135deg, #FFFBED 0%, #FFF5D1 100%); 
    border: 1.5px solid #FCD34D; 
}
.lb-card-gold .lb-score { background: #FDE68A; border-color: #FCD34D; }
.lb-card-gold h4 { color: #B45309; }
.star-icon { font-size: 18px; color: #F59E0B; }

.lb-card-silver { 
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%); 
    border: 1.5px solid #D1D5DB; 
}
.lb-card-silver h4 { color: #374151; }
.lb-card-silver .lb-score { background: #E5E7EB; border-color: #D1D5DB; }

.lb-card-bronze { 
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); 
    border: 1.5px solid #FBCFE8; 
}
.lb-card-bronze h4 { color: #92400E; }
.lb-card-bronze .lb-score { background: #FDE68A; border-color: #FBCFE8; }

[data-theme="dark"] .lb-card-gold { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%); 
    border-color: #D97706; 
}
[data-theme="dark"] .lb-card-gold .lb-score { background: rgba(217, 119, 6, 0.3); border-color: #D97706; }
[data-theme="dark"] .lb-card-gold h4 { color: #FDE68A; }

[data-theme="dark"] .lb-card-silver { 
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(107, 114, 128, 0.2) 100%); 
    border-color: #6B7280; 
}
[data-theme="dark"] .lb-card-silver .lb-score { background: rgba(107, 114, 128, 0.3); border-color: #6B7280; }
[data-theme="dark"] .lb-card-silver h4 { color: #F3F4F6; }

[data-theme="dark"] .lb-card-bronze { 
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.15) 100%); 
    border-color: #B45309; 
}
[data-theme="dark"] .lb-card-bronze .lb-score { background: rgba(180, 83, 9, 0.3); border-color: #B45309; }
[data-theme="dark"] .lb-card-bronze h4 { color: #FDE68A; }


/* ========================================== */
/* 🎯 THE DYNAMIC BHIM UPI STYLE CURVED NAV   */
/* ========================================== */

.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: var(--card-bg) !important;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    border: none;
    padding: 0;
}

[data-theme='dark'] .app-bottom-nav {
    background: #1E293B !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.nav-tab-btn {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    z-index: 1;
}

.nav-tab-btn .material-icons {
    font-size: 24px;
    color: var(--nav-inactive);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    padding: 12px;
    background: transparent;
    border: 6px solid transparent;
    z-index: 2;
    transform: translateY(-6px);
}

.nav-tab-btn .tab-label {
    font-size: 11px;
    font-weight: 750;
    color: var(--nav-inactive);
    position: absolute;
    bottom: 8px;
    transition: all 0.3s ease;
}

/* ========================================== */
/* 🔥 THE MAGIC: ACTIVE STATE (MOVING NOTCH)  */
/* ========================================== */
.nav-tab-btn.active .material-icons {
    transform: translateY(-32px);
    background: var(--primary);
    color: #fff !important;
    border: 6px solid var(--bg-color); 
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

[data-theme='dark'] .nav-tab-btn.active .material-icons {
    border-color: #0F172A; 
}

.nav-tab-btn.active .tab-label {
    color: var(--primary);
    transform: translateY(-2px);
}


/* ========================================== */
/* 🎯 PREMIUM QUESTION PALETTE (JUMP UI)      */
/* ========================================== */
.question-palette-wrapper {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 4px 15px; 
    position: sticky;
    top: 0; 
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.question-palette {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; 
    scroll-behavior: smooth;
    padding: 12px 4px; 
    align-items: center;
}

.question-palette::-webkit-scrollbar {
    display: none; 
}

.q-bubble {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--bg-color);
    color: var(--text-muted);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-bubble.answered {
    background: var(--success);
    color: white;
    border-color: var(--success);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.q-bubble.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--card-bg);
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.2);
}

.q-bubble.answered.active {
    background: var(--success);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}



/* ========================================== */
/* 📱 SIDE DRAWER PREMIUM UPDATES             */
/* ========================================== */

/* WhatsApp Item Color */
.whatsapp-item {
    color: #25D366 !important; 
    font-weight: 700;
}
/* Original SVG alignment (Replaces material-icons CSS) */
.whatsapp-svg-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}


.whatsapp-item:active .whatsapp-svg-icon {
    transform: scale(0.95);
}



/* Dark mode mein WhatsApp button ka look */
[data-theme="dark"] .whatsapp-item {
    background: rgba(37, 211, 102, 0.1);
}
/* App Version Text ko bilkul Bottom Center mein push karne ka logic */
.drawer-version-info {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 20px 10px 10px;
    margin-top: auto; /* ✅ THE MAGIC: Yeh isko automatically bottom mein dhakel dega */
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}




/* ========================================== */
/* 🌟 LOGIN SCREEN TRUST STATS UI             */
/* ========================================== */
.trust-stats-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.trust-stat-box {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
}

[data-theme="dark"] .trust-stat-box {
    background: rgba(30, 41, 59, 0.5); /* Dark mode mein aur premium transparent look */
}

.trust-stat-box:active {
    transform: scale(0.95);
}

.trust-stat-box .material-icons {
    font-size: 20px;
    margin-bottom: 6px;
    background: rgba(79, 70, 229, 0.1); /* Primary icon background */
    padding: 8px;
    border-radius: 10px;
}

/* Alag alag icons ke liye alag pastel background */
.trust-stat-box:nth-child(2) .material-icons { background: rgba(16, 185, 129, 0.1); }
.trust-stat-box:nth-child(3) .material-icons { background: rgba(245, 158, 11, 0.1); }

.trust-stat-box h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.trust-stat-box p {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}



/* ========================================== */
/* 🛡️ LOGIN SCREEN TRUST FOOTER               */
/* ========================================== */
.login-trust-footer {
    margin-top: 35px;
    text-align: center;
    width: 100%;
}

.privacy-promise {
    color: var(--success);
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
}

.privacy-promise .material-icons {
    font-size: 14px;
}

.made-with-love {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.legal-links a {
    color: var(--nav-inactive);
    font-size: 10px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--primary);
}



/* ========================================== */
/* 🎓 PREMIUM TEST CARD (FIXED DIMENSIONS)    */
/* ========================================== */
.premium-test-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    width: 100%;
    /* Fixed Layout: Card ki height ekdum uniform rahegi */
    min-height: 220px; 
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-test-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.ptc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ptc-subject {
    background: rgba(79, 70, 229, 0.1); /* Primary color ka light shade */
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ptc-subject.live-subject { 
    background: rgba(239, 68, 68, 0.1); /* Live test ke liye Red shade */
    color: var(--danger); 
}

.ptc-class {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-color);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.ptc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 1.3;
}

.ptc-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1; /* Button ko hamesha bottom par push karega */
    margin-bottom: 16px;
}

.ptc-details p {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.ptc-details p strong { 
    color: var(--text-main); 
    font-weight: 700; 
    margin-right: 2px; 
}
.ptc-details .material-icons { 
    font-size: 16px; 
    color: var(--nav-inactive); 
    transform: translateY(1px); 
}

.ptc-timings {
    display: flex;
    justify-content: space-between;
    background: var(--bg-color);
    padding: 10px;
    border-radius: 12px;
    margin-top: 6px;
    border: 1px solid var(--border);
}

.time-block { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.time-block .material-icons { 
    font-size: 20px; 
}
.time-block small { 
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--text-muted); 
}
.time-block b { 
    font-size: 11px; 
    color: var(--text-main); 
    display: block; 
    margin-top: 2px;
}

.ptc-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.ptc-footer .btn-primary { 
    width: 100%; 
}


/* ========================================== */
/* 🌟 PREMIUM CATEGORY BANNER UI              */
/* ========================================== */
.category-banner-card {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px; /* Banner aur pehle card ke beech ka gap */
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner image ko screen ke hisaab se perfectly fit karega */
.category-banner-img {
    width: 100%;
    height: auto;
    max-height: 180px; /* Jyaada lamba hokar screen na bhare */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Dark mode mein thodi deep shadow */
[data-theme="dark"] .category-banner-card {
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}


/* ========================================== */
/* 🌟 PREMIUM AUTO IMAGE SLIDER UI (NO CROP)  */
/* ========================================== */
.premium-image-slider {
    position: relative;
    width: 100%;
    height: auto; /* 🎯 NAYA FIX: Fixed height hata di, ab height image ke hisaab se adjust hogi */
    border-radius: 18px; 
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    background: var(--card-bg); 
    border: 1.5px solid var(--border);
}

.slider-track {
    display: flex;
    width: 100%;
    align-items: center; /* 🎯 NAYA FIX: Images hamesha vertically center mein rahengi */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.slide-img {
    flex: 0 0 100%; /* 🎯 NAYA FIX: Har image theek screen jitni jagah legi */
    width: 100%;
    height: auto; /* 🎯 NAYA FIX: Image apni natural shape retain karegi */
    object-fit: contain; /* 🎯 NAYA MAGIC FIX: Image ab kabhi cut/crop nahi hogi, poori dikhegi */
    display: block;
}

/* Dots aur dark mode ki design waise hi rahegi */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    width: 16px; 
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

[data-theme="dark"] .premium-image-slider {
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
    border-color: var(--border-dark);
}


/* ========================================== */
/* 🌟 VIP PREMIUM GRID CARD UI (GOLD LOOK)    */
/* ========================================== */
.premium-glow-card {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border: 1.5px solid #FCD34D;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
    position: relative;
    overflow: hidden; /* Shine effect ko card ke andar rakhne ke liye */
}

/* Card dabne par smooth animation */
.premium-glow-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

/* 🔥 THE MAGIC: Chamakti hui Shine Animation */
.premium-glow-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: goldShine 3.5s infinite;
}

@keyframes goldShine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Premium Icon Box Gold Theme */
.premium-box {
    background: rgba(245, 158, 11, 0.2);
    color: #D97706;
}

/* 🌙 Dark Mode Support for Premium Card */
[data-theme="dark"] .premium-glow-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: #D97706;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.2);
}
[data-theme="dark"] .premium-box {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}
[data-theme="dark"] .premium-glow-card::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
}



/* ========================================== */
/* 💎 PREMIUM PACKAGE DETAILS SCREEN UI       */
/* ========================================== */
.premium-pkg-banner {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1.5px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.pkg-banner-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    object-fit: cover;
}
.pkg-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #EF4444;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.pkg-header-info { margin-bottom: 24px; }
.pkg-header-info h2 { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; }

/* Pricing Row with Gold Theme */
.pkg-price-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    background: #FEFCE8; 
    border: 1.5px solid #FEF08A; 
    padding: 12px 16px; 
    border-radius: 14px; 
}
[data-theme="dark"] .pkg-price-row { background: rgba(250, 204, 21, 0.1); border-color: rgba(250, 204, 21, 0.2); }

.price-block { display: flex; align-items: baseline; gap: 8px; }
.current-price { font-size: 24px; font-weight: 900; color: #16A34A; }
.deleted-price { font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; } /* Real price cut */

/* Offer Badge with rotating Star */
.offer-badge { display: flex; align-items: center; gap: 4px; background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: white; padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.offer-badge .star-icon { font-size: 14px; animation: spinGlow 3s linear infinite; }

/* Stats Grid */
.pkg-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-item { display: flex; align-items: center; gap: 12px; background: var(--card-bg); border: 1.5px solid var(--border); padding: 12px; border-radius: 14px; }
.stat-item .material-icons { font-size: 22px; color: var(--primary); background: rgba(79, 70, 229, 0.1); padding: 8px; border-radius: 10px; }
.stat-text label { display: block; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 2px; }
.stat-text p { font-size: 13px; font-weight: 700; color: var(--text-main); }

/* Bottom Action Area */
.pkg-bottom-actions { 
    position: absolute; /* Navigation shell ke upar fix rahega */
    bottom: 0; left: 0; width: 100%; 
    padding: 16px; background: var(--card-bg); 
    display: flex; gap: 12px; 
    border-top: 1px solid var(--border-dark); 
    z-index: 100; 
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05); 
}
[data-theme="dark"] .pkg-bottom-actions { box-shadow: 0 -4px 15px rgba(0,0,0,0.3); }

.buy-btn-glow { background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4); }
.buy-btn-glow:active { background: #059669; }




/* ========================================== */
/* 🌟 PREMIUM BUNDLE CARD (ULTRA-REFINED UI)  */
/* ========================================== */
.bundle-premium-card {
    border-radius: 16px; /* Pehle 20px tha, isko thoda sleek kiya */
    padding: 16px; /* Pehle 20px tha, isko compact kiya */
    margin-bottom: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bundle-premium-card:active { 
    transform: scale(0.98); 
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.bpc-header, .bpc-title, .bpc-stats-grid, .bpc-price-row, .bpc-actions {
    position: relative; 
    z-index: 2; /* Shine ke upar rakhne ke liye */
}

.bpc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bpc-tags { display: flex; gap: 6px; align-items: center; }
.bpc-subject { background: rgba(245, 158, 11, 0.12); color: #D97706; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(245, 158, 11, 0.2); }
.bpc-class { font-size: 10px; font-weight: 750; color: var(--text-muted); background: var(--bg-color); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); }
.bpc-offer-badge { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(135deg, #2D0082 0%, #F00068 100%); color: white; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2); }

.bpc-title { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 12px; line-height: 1.3; text-align: center; font-family: Helvetica; text-transform: uppercase; }

/* Stats Grid ko aur compact aur clean kiya */
.bpc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 14px; background: var(--bg-color); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.bpc-stat { display: flex; align-items: center; gap: 8px; }
.bpc-stat .primary-icon { color: var(--primary); font-size: 16px; background: rgba(79, 70, 229, 0.1); padding: 8px; border-radius: 6px; }
.bpc-stat .success-icon { color: var(--success); font-size: 16px; background: rgba(16, 185, 129, 0.1); padding: 8px; border-radius: 6px; }
.bpc-stat small { display: block; font-size: 9px; font-weight: 750; color: var(--text-muted); text-transform: uppercase; margin-bottom: 1px; }
.bpc-stat p { font-size: 12px; font-weight: 800; color: var(--text-main); }

.bpc-price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 0 2px; }
.bpc-price-info { display: flex; align-items: baseline; gap: 6px; }
.bpc-old-price { font-size: 12px; font-weight: 600; color: var(--text-muted); text-decoration: line-through; }
.bpc-new-price { font-size: 20px; /* Thoda sleek kiya */ font-weight: 900; color: #10B981; }
.bpc-discount-tag { font-size: 9px; font-weight: 800; color: #D97706; background: #FEF3C7; padding: 3px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Buttons ko resize aur reposition kiya perfect ratio mein */
.bpc-actions { display: flex; gap: 8px; }
.bpc-about-btn { flex: 0.7; /* Isko secondary focus diya */ padding: 10px; background: var(--bg-color); color: var(--text-main); border: 1.5px solid var(--border-dark); font-size: 12px; font-weight: 700; border-radius: 10px; }
.bpc-buy-btn { flex: 1.3; /* Buy now ko main focus banaya */ padding: 10px; background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25); color: white; border: none; font-size: 13px; font-weight: 750; border-radius: 10px; }
.bpc-open-btn { flex: 1.3; padding: 10px; background: linear-gradient(135deg, #10B981 0%, #059669 100%); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25); color: white; border: none; font-size: 13px; font-weight: 750; border-radius: 10px; }

[data-theme="dark"] .bpc-discount-tag { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
[data-theme="dark"] .bpc-subject { background: rgba(245, 158, 11, 0.15); color: #FCD34D; }
[data-theme="dark"] .bpc-class { background: var(--card-bg); border-color: var(--border-dark); }
[data-theme="dark"] .bpc-stats-grid { background: var(--card-bg); }
[data-theme="dark"] .bpc-about-btn { background: var(--card-bg); border-color: var(--border-dark); }



/* ⚡ Premium Smooth Transition Animation for Navigating Tabs */
.tab-view.active {
    display: flex;
    animation: tabSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* ==========================================
   💎 PREMIUM WELCOME AD POPUP (PURE IMAGE)
   ========================================== */
.ad-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Darker background for better image focus */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeInAd 0.4s ease forwards;
}

.ad-popup-card-clean {
    position: relative;
    width: 85%; 
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
    animation: popUpAd 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.ad-gif-full-image {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Slight smooth curve for premium feel */
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Deep shadow */
    display: block;
}

.ad-close-btn {
    position: absolute;
    top: -15px; 
    right: -15px;
    background: var(--card-bg, #ffffff);
    color: var(--text-main, #111);
    border: none;
    border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: transform 0.2s, background 0.3s;
}

.ad-close-btn:hover { 
    background: var(--danger, #ef4444); 
    color: white;
    transform: scale(1.1);
}

@keyframes fadeInAd { to { opacity: 1; } }
@keyframes popUpAd { to { transform: scale(1); } }




/* ========================================== */
/* 🌟 PREMIUM GIF PROMO UI (Ad-Blocker Safe)  */
/* ========================================== */
.login-premium-promo-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1.5px solid #FCD34D;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
}

.login-premium-promo-wrapper:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.login-premium-promo-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: goldShine 3.5s infinite;
    pointer-events: none;
    z-index: 5;
}

.login-premium-promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .login-premium-promo-wrapper {
    border-color: #D97706;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.25);
}
