/* =================================================================
   EXAMPREP PRO - DSSSB TGT COMPUTER SCIENCE DESIGN SYSTEM
   Standardized with Homepage & Test Series Design Tokens
   No hover jumping • Exact Homepage Tech Background • Clean Typography
   Path: public/dsssb/dsssb.css
   ================================================================= */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
    /* Brand Gradient & Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-subtle: rgba(99, 102, 241, 0.12);
    --primary-glow: rgba(99, 102, 241, 0.25);
    
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #3b82f6;
    --cyan: #06b6d4;

    /* OLED Dark Backgrounds (Matching Homepage & Test Series) */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-elevated: #18181b;
    --bg-card: #111113;
    --bg-card-hover: #16161a;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(99, 102, 241, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #ea580c);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #0891b2);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.55);
    --shadow-glow-sm: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Radii */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-full: 9999px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-sans);
    --font-mono: 'Fira Code', 'JetBrains Mono', Consolas, monospace;

    /* Layout */
    --navbar-height: 72px;
    --container-max: 1360px;
    --space-8: 2rem;

    /* Compatibility aliases */
    --bg-base: var(--bg-primary);
    --text-main: var(--text-primary);
    --border: var(--border-color);
}

/* ============================================
   2. RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 80px; /* Clearance for fixed navbar */
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #0a0a0b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 99999;
    transition: width 100ms ease-out;
}

/* ============================================
   3. BACKGROUND (EXACT HOMEPAGE & TEST SERIES TECH GRID)
   ============================================ */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        radial-gradient(ellipse at center, #0f0f12 0%, #0a0a0b 100%);
    background-size: 50px 50px, 50px 50px, 100% 100%;
}

/* ============================================
   4. NAVBAR (EXACT HOMEPAGE & TEST SERIES STRUCTURE)
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 500;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.logo:hover .logo-name {
    color: var(--primary-light);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 22px rgba(99, 102, 241, 0.55);
}

.logo-suffix {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.exam-pill-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
    letter-spacing: 0.5px;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.logo:hover .exam-pill-badge, .exam-pill-badge:hover {
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.15);
}

/* Nav Center Links */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.12);
}

.nav-link:hover i, .nav-link:hover span {
    color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.15);
    font-weight: 600;
}

.nav-link.active i, .nav-link.active span {
    color: var(--primary-light);
}

.nav-link i {
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

/* Nav Right Actions */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.46rem 1.15rem;
    background: var(--gradient-primary);
    border: 1px solid rgba(129, 140, 248, 0.4);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    text-decoration: none;
}

.nav-dashboard-btn i, .nav-dashboard-btn span {
    color: #ffffff !important;
}

.nav-dashboard-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    border-color: rgba(165, 180, 252, 0.7);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.nav-dashboard-btn.active {
    background: var(--gradient-primary);
    border-color: rgba(165, 180, 252, 0.6);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.nav-right .btn-dash-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.82rem;
    border-radius: var(--radius-full);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-right .btn-dash-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ffffff;
}

/* Navigation Auth Slot & Login Button */
.nav-auth-slot {
    display: flex;
    align-items: center;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.46rem 1.15rem;
    background: var(--gradient-primary);
    border: 1px solid rgba(165, 180, 252, 0.4);
    border-radius: var(--radius-full);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-login:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
    border-color: rgba(165, 180, 252, 0.7);
    color: #ffffff !important;
}

.btn-login i {
    font-size: 0.9rem;
    color: #ffffff !important;
}

/* =================================================================
   USER PROFILE & DROPDOWN (EXACT TEST SERIES MOCK TEST SYSTEM)
   ================================================================= */
.user-profile-container {
    position: relative;
}

.user-profile-btn, .user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-btn:hover, .user-pill:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.user-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    white-space: nowrap;
}

.dropdown-icon {
    font-size: 0.7rem;
    color: var(--primary-light, #818cf8);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.user-profile-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(99, 102, 241, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}

.dropdown-item i {
    width: 18px;
    color: var(--primary-light, #818cf8);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #ffffff;
}

.dropdown-item.logout-btn {
    color: #f87171;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-item.logout-btn i {
    color: #f87171;
}

.dropdown-item.logout-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ffffff;
}

/* ============================================
   5. BUTTONS (NO HOVER TRANSLATE JUMPING)
   ============================================ */
.btn-primary, .btn-gateway-primary, .btn-dash-primary, .btn-start-test, .btn-attempt-live, .btn-next-byte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: background 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover, .btn-gateway-primary:hover, .btn-dash-primary:hover, .btn-start-test:hover, .btn-attempt-live:hover, .btn-next-byte:hover {
    background: linear-gradient(135deg, #6d70f7, #9366f8);
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    color: #ffffff;
}

.btn-secondary, .btn-outline, .btn-gateway-secondary, .btn-dash-secondary, .btn-test-info, .btn-copy-byte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-md);
    transition: background 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover, .btn-outline:hover, .btn-gateway-secondary:hover, .btn-dash-secondary:hover, .btn-test-info:hover, .btn-copy-byte:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    color: #ffffff;
}

.btn-danger-outline {
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #f87171 !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

/* ============================================
   6. CARDS & BENTO BOXES (STABLE, NO HOVER LIFT)
   ============================================ */
.card, .card-box, .gateway-card, .byte-card, .cat-card, .stat-card, .test-card, .dash-hero-card, .dash-chart-card, .vault-stat-item, .history-card, .domain-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover, .card-box:hover, .gateway-card:hover, .byte-card:hover, .cat-card:hover, .stat-card:hover, .test-card:hover, .dash-hero-card:hover, .dash-chart-card:hover, .vault-stat-item:hover, .history-card:hover, .domain-tile:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    /* Explicitly NO translateY or jumping */
    transform: none !important;
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero-section {
    padding: 36px 0 28px 0;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    margin-bottom: 0.85rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.8rem;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 820px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* =================================================================
   LIVE SUNDAY MEGA MOCK BANNER STRIP (HIGH-VISIBILITY ALL-INDIA CBT)
   ================================================================= */
.live-mock-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #141722 0%, #0d1017 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.65rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.live-mock-strip:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.live-mock-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.live-event-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #94a3b8;
}

.live-beacon {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: beaconPulse 1.8s infinite;
}

@keyframes beaconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(1.35); }
}

.live-mock-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.live-trophy-icon {
    font-size: 1.2rem;
    color: #f59e0b;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}

.live-mock-title {
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.01em;
}

.live-free-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.live-mock-pills-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.live-mock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 9px;
    border-radius: var(--radius-full);
}

.live-mock-pill i {
    font-size: 0.68rem;
    color: var(--primary-light, #818cf8);
}

.live-mock-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.live-countdown-label {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #94a3b8;
    text-transform: uppercase;
}

.live-countdown-clock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: 12px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 4px 6px 3px;
}

.countdown-num {
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.countdown-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1px;
}

.countdown-sep {
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 8px;
}

.live-mock-right {
    display: flex;
    align-items: center;
}

.btn-attempt-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.72rem 1.5rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(253, 224, 71, 0.4);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
    transition: background 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-attempt-live:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.6);
    color: #0f172a !important;
    transform: none !important;
}

@media (max-width: 820px) {
    .live-mock-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .live-mock-center {
        align-items: flex-start;
    }
    .live-mock-right {
        width: 100%;
    }
    .btn-attempt-live {
        width: 100%;
    }
}

/* Active Sunday Exam Window */
.live-mock-strip.is-live-now {
    border-color: rgba(239, 68, 68, 0.55);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(99, 102, 241, 0.12) 50%, rgba(18, 18, 23, 0.9) 100%), var(--bg-card);
    box-shadow: 0 4px 30px rgba(239, 68, 68, 0.25);
}

.live-mock-strip.is-live-now .live-beacon {
    background: #ef4444;
    box-shadow: 0 0 14px #ef4444;
}

.live-mock-strip.is-live-now .btn-attempt-live {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 22px rgba(16, 185, 129, 0.45);
}

/* Sunday Shake Attention Motion */
@keyframes sundayAttentionShake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

.live-mock-strip.shake-attention {
    animation: sundayAttentionShake 0.75s ease-in-out 3;
}

.countdown-timer-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fde047;
    margin-left: 4px;
}

/* Candidate Stats Pills */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hero-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-stat-badge b {
    color: #ffffff;
}

/* ============================================
   8. ALL TESTS GATEWAY & BENTO CATEGORIES
   ============================================ */
.tests-gateway-section {
    padding: 16px 0 24px 0;
}

.gateway-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.gateway-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.65rem;
}

.gateway-desc {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 860px;
    margin-bottom: 1.25rem;
}

.gateway-features {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.feat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feat-pill i {
    color: var(--primary-light);
}

.gateway-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 4 Category Quick Launch Cards */
.gateway-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .gateway-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .gateway-categories-grid {
        grid-template-columns: 1fr;
    }
}

.cat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.cat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.cat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
}

.cat-daily { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45); }
.cat-full { background: var(--gradient-primary); box-shadow: var(--shadow-glow-sm); }
.cat-pyq { background: var(--gradient-warning); box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }
.cat-subj { background: var(--gradient-cyan); box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); }
.cat-booster { background: var(--gradient-success); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
.cat-custom { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 0 15px rgba(139, 92, 246, 0.35); }

.cat-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.cat-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.cat-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.cat-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
}

.cat-card:hover .cat-link {
    color: #ffffff;
}

/* ============================================
   9. SPLIT LEADERBOARD & DAILY CS CHALLENGE
   ============================================ */
.bottom-grid-section {
    padding: 16px 0 20px 0;
}

.split-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .split-grid-row {
        grid-template-columns: 1fr;
    }
}

.card-box {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.card-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-box-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.live-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.leaderboard-subtabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.lb-subtab {
    flex: 1;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.lb-subtab.active {
    background: var(--gradient-primary);
    color: #ffffff;
}

/* Leaderboard Table */
.lb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
}

.lb-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.lb-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.lb-table tr:hover td {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.pinned-user-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
}

/* Question of the Day Window & Add Question Button */
.btn-add-qotd {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
    transition: all 0.2s ease;
}

.btn-add-qotd:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.55);
    transform: translateY(-1px);
}

.qotd-nav-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 2px 6px;
}

.btn-qotd-arrow {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 3px 6px;
    font-size: 0.72rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.btn-qotd-arrow:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.qotd-index-badge {
    display: none !important;
}

/* High-Yield Byte - Enlarged Add Concept Button */
.btn-add-byte {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.38);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-add-byte:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 6px 22px rgba(234, 88, 12, 0.55);
    transform: translateY(-2px);
}

.btn-add-byte:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.35);
}

.btn-add-byte i {
    font-size: 0.85rem;
}

/* =================================================================
   QUESTION OF THE DAY AI IMPORT MODAL (PREMIUM REDESIGN)
   ================================================================= */
.qotd-modal-container {
    max-width: 580px !important;
    text-align: left;
    border-radius: 20px !important;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0e1526 0%, #080c16 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 40px rgba(234, 88, 12, 0.12) !important;
    padding: 24px !important;
}

.qotd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.qotd-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qotd-modal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25) 0%, rgba(234, 88, 12, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
    flex-shrink: 0;
}

.qotd-modal-badge-row {
    margin-bottom: 3px;
}

.qotd-workflow-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fb923c;
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.3);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.qotd-modal-heading {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.qotd-modal-subheading {
    font-size: 0.78rem;
    color: #94a3b8;
    margin: 3px 0 0 0;
}

.qotd-step-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.qotd-step-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.qotd-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.qotd-step-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qotd-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qotd-step-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.qotd-step-desc {
    font-size: 0.79rem;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.qotd-code-terminal {
    background: #040711;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.qotd-terminal-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.qotd-terminal-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-block;
}

.qotd-terminal-dots span:nth-child(1) { background: #ef4444; opacity: 0.8; }
.qotd-terminal-dots span:nth-child(2) { background: #eab308; opacity: 0.8; }
.qotd-terminal-dots span:nth-child(3) { background: #22c55e; opacity: 0.8; }

.qotd-prompt-code {
    max-height: 88px;
    overflow-y: auto;
    padding: 10px 12px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    line-height: 1.5;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-word;
}

.qotd-prompt-code::-webkit-scrollbar {
    width: 5px;
}

.qotd-prompt-code::-webkit-scrollbar-track {
    background: #040711;
}

.qotd-prompt-code::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.35);
    border-radius: 3px;
}

.btn-copy-prompt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: 1px solid rgba(99, 102, 241, 0.45);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}

.btn-copy-prompt:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
}

.btn-copy-prompt.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-paste-clip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-paste-clip:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.qotd-textarea-wrap {
    margin-top: 6px;
}

.qotd-json-textarea {
    width: 100%;
    min-height: 115px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #040711;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-family: var(--font-mono);
    font-size: 0.81rem;
    line-height: 1.45;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}

.qotd-json-textarea:focus {
    border-color: #6366f1;
    background: #050914;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.qotd-ai-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.qotd-model-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: 5px;
}

.qotd-model-pill i {
    color: #10b981;
    font-size: 0.6rem;
}

.qotd-json-status {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.qotd-json-status.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.qotd-json-status.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

.qotd-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    align-items: center;
}

.btn-save-qotd-main {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.45);
    transition: all 0.2s ease;
}

.btn-save-qotd-main:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.55);
}

.btn-cancel-qotd {
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-qotd:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.terminal-file-tab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.terminal-prompt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.code-container {
    background: #060910;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.code-container pre {
    margin: 0;
}

/* Syntax Highlighting */
.code-keyword { color: #818cf8; font-weight: 600; }
.code-func { color: #38bdf8; }
.code-num { color: #f59e0b; }
.code-comment { color: #71717a; font-style: italic; }

.options-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .options-list {
        grid-template-columns: 1fr;
    }
}

/* Option Button */
.opt-btn, .challenge-opt-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 11px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    width: 100%;
    cursor: pointer;
}

.opt-btn .opt-poll-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.opt-btn .opt-text {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.opt-btn .opt-poll-stat {
    position: relative;
    z-index: 1;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.opt-btn:hover, .challenge-opt-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.opt-btn.correct, .challenge-opt-btn.correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
    font-weight: 700;
}

.opt-btn.correct .opt-poll-bar {
    background: rgba(16, 185, 129, 0.22);
}

.opt-btn.correct .opt-poll-stat {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.15);
}

.opt-btn.wrong, .challenge-opt-btn.wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
    font-weight: 700;
}

.opt-btn.wrong .opt-poll-bar {
    background: rgba(239, 68, 68, 0.22);
}

.opt-btn.wrong .opt-poll-stat {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.15);
}

.challenge-result {
    padding: 16px 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-top: 14px;
}

.qotd-result-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.challenge-result #terminalPeerStat {
    font-size: 0.88rem;
    flex: 1;
    min-width: 220px;
}

.qotd-exp-action-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qotd-exp-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
}

.qotd-exp-timer-pill b {
    color: #f59e0b;
}

.btn-toggle-qotd-exp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-qotd-exp:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.28);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-toggle-qotd-exp.collapsed {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.45);
    animation: qotdPulseGlow 2.2s infinite ease-in-out;
}

@keyframes qotdPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1); }
}

.qotd-exp-container {
    color: #cbd5e1;
}

.qotd-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.65;
}

.qotd-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 5px;
    flex-shrink: 0;
    margin-top: 2px;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

.qotd-distractor-section {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.65;
}

.qotd-distractor-title {
    color: #f87171;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qotd-takeaway-box {
    margin-top: 12px;
    padding: 11px 15px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #fef3c7;
}

.qotd-takeaway-header {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

/* ============================================
   10. HIGH-YIELD REVISION BYTE SECTION
   ============================================ */
.byte-section {
    padding: 0 0 50px 0;
}

.byte-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.byte-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1.5rem;
}

.byte-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.byte-header-left .byte-topic-title {
    margin-bottom: 0;
}

.byte-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.byte-tag-nav-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.byte-header-right .byte-meta-wrap {
    margin-top: -6px;
    margin-bottom: 2px;
}

.byte-header-right .btn-next-byte {
    padding: 0.52rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .byte-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .byte-header-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

.byte-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.byte-meta-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.byte-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    transition: all 0.25s ease;
}

.byte-counter {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.byte-topic-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.byte-content-box {
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    font-size: 0.94rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Bullet Row Structure */
.byte-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0.95rem;
}
.byte-row:last-child {
    margin-bottom: 0;
}

.byte-row-icon {
    flex-shrink: 0;
    margin-top: 6px;
    font-size: 0.8rem;
}

.byte-row-text {
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #cbd5e1;
}

/* Color-Coded Semantic Highlights for Quick Visual Learning */
.byte-term {
    color: #ffffff;
    font-weight: 700;
    margin-right: 4px;
}

.byte-pill-cyan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.byte-pill-emerald {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.byte-pill-purple {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #c084fc;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 1px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.byte-pill-amber {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 1px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.byte-pill-rose {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1px 8px;
    border-radius: 5px;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.byte-num-gold {
    color: #fde047;
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 0.95em;
    background: rgba(253, 224, 71, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(253, 224, 71, 0.2);
}

.byte-formula-box {
    display: inline-block;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
    margin: 2px 0;
}

/* Dedicated DSSSB Trap Box for Pitfalls */
.byte-trap-box {
    margin-top: 14px;
    padding: 11px 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.09) 0%, rgba(245, 158, 11, 0.07) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    color: #fecdd3;
    font-size: 0.89rem;
    line-height: 1.65;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.byte-trap-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.35);
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 1px;
}

.byte-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   11. TEST VAULT & TEST CARDS
   ============================================ */
.vault-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.vault-breadcrumb a {
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.vault-breadcrumb a:hover {
    color: #ffffff;
}

.vault-stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .vault-stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .vault-stats-banner {
        grid-template-columns: 1fr;
    }
}

.vault-stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vault-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.vault-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.vault-stat-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.tests-section {
    padding: 20px 0 60px 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
}

.tabs-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-full);
    flex-wrap: wrap;
}

.tab-btn, .test-filter-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn:hover, .test-filter-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active, .test-filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
}

/* Daily Tests Filter Tab Button - Deep Warm Orange Accent */
.test-filter-btn[data-filter="daily"],
.test-filter-daily-btn {
    border: 1px solid #4d2614 !important;
    color: #e2e8f0 !important;
    background: #261610 !important;
    transition: all 0.2s ease !important;
}

.test-filter-btn[data-filter="daily"] i,
.test-filter-daily-btn i {
    color: #ffffff !important;
}

.test-filter-btn[data-filter="daily"]:hover,
.test-filter-daily-btn:hover {
    border-color: #f97316 !important;
    background: rgba(249, 115, 22, 0.20) !important;
    color: #ffffff !important;
}

.test-filter-btn[data-filter="daily"].active,
.test-filter-daily-btn.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45) !important;
}

.search-input-wrap {
    position: relative;
    min-width: 260px;
}

.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input-wrap input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
}

.search-input-wrap input:focus {
    border-color: var(--primary);
}

.btn-add-daily-test {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-add-daily-test:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    border-color: rgba(249, 115, 22, 0.85);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.55);
    transform: translateY(-1px);
}

.btn-add-daily-test:active {
    transform: translateY(0);
}

.btn-add-daily-test i {
    font-size: 0.82rem;
}

.active-pillar-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: #ffffff;
}

.btn-clear-pillar {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .tests-grid {
        grid-template-columns: 1fr;
    }
}

.test-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.test-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 8px;
}

.test-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.test-badge.full { background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.35); color: #a5b4fc; }
.test-badge.pyq { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.35); color: #fde047; }
.test-badge.subject { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.35); color: #7dd3fc; }
.test-badge.booster { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.35); color: #6ee7b7; }

.test-diff {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.test-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.card-sections-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.section-chip {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.chip-part-a {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.chip-part-b {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.test-topics-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.topic-pill {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.test-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.test-meta-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.test-meta-item i {
    color: var(--primary-light);
}

.test-lock-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.test-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.test-stats-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   12. UNIFIED MODALS & CANDIDATE PROFILE
   ============================================ */
.modal-overlay, .dsssb-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(6, 8, 14, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.active, 
.dsssb-modal-overlay.active, 
.modal-overlay[style*="display: flex"], 
.dsssb-modal-overlay[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Eliminate pseudo-elements that could stack on top of or blur modal contents */
.modal-backdrop, 
.modal-overlay::before, 
.dsssb-modal-overlay::before,
.modal-overlay::after,
.dsssb-modal-overlay::after {
    display: none !important;
    content: none !important;
}

/* Base styling for all modal windows to guarantee crisp rendering & high stacking */
#profileModal .modal.modal-lg,
#profileModal .modal-container,
#profileModal .modal,
.dsssb-modal-box,
.inst-modal-box,
.sunday-locked-card {
    position: relative !important;
    z-index: 10 !important;
    background: #11141c !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 30px rgba(99, 102, 241, 0.2) !important;
    color: var(--text-primary) !important;
    max-width: 620px;
    width: 94%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#profileModal.active .modal,
#profileModal.active .modal-container,
.dsssb-modal-overlay.active .dsssb-modal-box,
.dsssb-modal-overlay[style*="display: flex"] .dsssb-modal-box {
    transform: scale(1) translateY(0) !important;
}

/* Generic DSSSB Modal Box (Syllabus & 20-Q Lock Modals) */
.dsssb-modal-box .modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #141722;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.dsssb-modal-box .modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dsssb-modal-box .btn-close-modal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.dsssb-modal-box .btn-close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.dsssb-modal-box .modal-body-content {
    padding: 24px 26px;
    overflow-y: auto;
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.65;
}

.dsssb-modal-box .modal-body-content p {
    margin-bottom: 12px;
}

.dsssb-modal-box .modal-body-content h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 14px;
    margin-bottom: 8px;
}

.dsssb-modal-box .modal-body-content ul {
    margin-left: 20px;
    margin-bottom: 14px;
}

.dsssb-modal-box .modal-body-content li {
    margin-bottom: 8px;
}

/* =================================================================
   EXACT TEST SERIES MOCK TEST USER PROFILE MODAL SYSTEM
   ================================================================= */
#profileModal .modal.modal-lg,
#profileModal .modal-container,
#profileModal .modal {
    max-width: 620px !important;
    width: 92% !important;
    max-height: 88vh !important;
    padding: 0 !important;
    border-radius: 22px !important;
    background: #11141c !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10 !important;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#profileModal.active .modal,
#profileModal.active .modal-container {
    transform: scale(1) translateY(0) !important;
}

#profileModal .profile-modal-header,
#profileModal .modal-profile-header,
#profileModal .modal-header {
    flex: 0 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 26px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #11141c !important;
    position: static !important;
    z-index: 5 !important;
}

#profileModal .profile-modal-header h3,
#profileModal .modal-profile-header h3 {
    margin: 0 !important;
    font-family: var(--font-heading) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #ffffff !important;
}

#profileModal .profile-modal-header h3 i,
#profileModal .modal-profile-header h3 i {
    color: #818cf8 !important;
    font-size: 1.35rem !important;
}

#profileModal .modal-close-btn {
    position: static !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.2rem !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    transform: none !important;
}

#profileModal .modal-close-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

#profileModal .profile-modal-body,
#profileModal .modal-profile-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 24px 28px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent !important;
}

#profileModal .profile-modal-body::-webkit-scrollbar {
    width: 6px;
}
#profileModal .profile-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
#profileModal .profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

#profileModal .profile-avatar-section {
    text-align: center !important;
    padding: 24px 20px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    margin: 0 !important;
}

#profileModal .avatar-container,
#profileModal .avatar-wrapper {
    position: relative !important;
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 12px !important;
}

#profileModal .profile-avatar-large,
#profileModal .profile-avatar {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    background: var(--gradient-primary, linear-gradient(135deg, #6366f1, #8b5cf6)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35) !important;
    border: 3px solid rgba(255, 255, 255, 0.12) !important;
    position: relative !important;
    overflow: hidden !important;
}

#profileModal .profile-avatar-large img,
#profileModal .profile-avatar img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#profileModal .remove-avatar-btn,
#profileModal .avatar-remove-btn {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    border: 2px solid #11141c !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    transition: transform 0.2s ease !important;
}

#profileModal .remove-avatar-btn:hover,
#profileModal .avatar-remove-btn:hover {
    transform: scale(1.15) !important;
}

#profileModal .avatar-hint {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

#profileModal .btn-upload-avatar,
#profileModal #uploadAvatarBtn {
    height: 40px !important;
    padding: 0 16px !important;
    background: rgba(99, 102, 241, 0.12) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 10px !important;
    color: #c7d2fe !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

#profileModal .btn-upload-avatar:hover,
#profileModal #uploadAvatarBtn:hover {
    background: rgba(99, 102, 241, 0.22) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
}

#profileModal .upload-note {
    font-size: 0.78rem !important;
    color: #64748b !important;
    margin-top: 6px !important;
}

#profileModal .avatar-color-picker {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#profileModal .picker-title {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    margin-bottom: 8px !important;
}

#profileModal .color-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    margin-top: 10px !important;
}

#profileModal .color-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    padding: 2px !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#profileModal .color-btn div {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
}

#profileModal .color-btn:hover {
    transform: scale(1.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

#profileModal .color-btn.active {
    border-color: #6366f1 !important;
    transform: scale(1.15) !important;
}

#profileModal .profile-info-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#profileModal .profile-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

#profileModal .profile-field label {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

#profileModal .profile-field label i {
    color: #818cf8 !important;
    font-size: 0.95rem !important;
    width: 16px !important;
}

#profileModal .profile-field input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    font-size: 0.95rem !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

#profileModal .profile-field input:focus {
    outline: none !important;
    border-color: #6366f1 !important;
    background: rgba(15, 23, 42, 0.85) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
}

#profileModal .profile-field input:disabled {
    cursor: default !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    opacity: 0.9 !important;
}

#profileModal .field-note {
    font-size: 0.8rem !important;
    color: #ef4444 !important;
    margin-top: 4px !important;
    font-weight: 500 !important;
    display: block !important;
}

#profileModal .profile-stats-section {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    padding: 18px 20px !important;
    margin: 0 !important;
}

#profileModal .profile-stats-section h4 {
    font-family: var(--font-heading) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #f8fafc !important;
}

#profileModal .profile-stats-section h4 i {
    color: #818cf8 !important;
}

#profileModal .profile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
}

#profileModal .profile-stat-item {
    text-align: center !important;
    padding: 12px 6px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

#profileModal .profile-stat-item:hover {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(99, 102, 241, 0.06) !important;
    transform: translateY(-2px) !important;
}

#profileModal .profile-stat-value {
    font-family: var(--font-heading) !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #818cf8 !important;
}

#profileModal .profile-stat-label {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    letter-spacing: 0.4px !important;
}

#profileModal .profile-modal-footer,
#profileModal .modal-profile-footer {
    flex: 0 0 auto !important;
    padding: 16px 26px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #11141c !important;
    position: static !important;
}

#profileModal .footer-buttons,
#profileModal .footer-actions {
    display: flex;
    gap: 12px !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

#profileModal .footer-buttons[style*="display: none"],
#profileModal #editModeButtons[style*="display: none"],
#profileModal #viewModeButtons[style*="display: none"] {
    display: none !important;
}

#profileModal .footer-buttons .btn {
    height: 42px !important;
    padding: 0 22px !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

#profileModal .footer-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

#profileModal .footer-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#profileModal .footer-buttons .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35) !important;
}

#profileModal .footer-buttons .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

/* Save / Status Message */
.save-message {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    transition: opacity 0.3s ease;
}
.save-message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.save-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

@media (max-width: 580px) {
    #profileModal .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    #profileModal .profile-modal-body {
        padding: 18px !important;
    }
}

/* Syllabus Table inside Modal */
.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 14px 0;
}

.syllabus-table th, .syllabus-table td {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.syllabus-table th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 700;
}

.syllabus-table td {
    color: var(--text-secondary);
}

/* =================================================================
   INTERACTIVE 35-SUBJECT SYLLABUS EXPLORER MODAL
   ================================================================= */
.dsssb-modal-box.syllabus-modal-box {
    max-width: 880px !important;
    width: 95% !important;
    max-height: 90vh !important;
}

.syl-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #141722;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.syl-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.syl-title-main {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.syl-title-sub {
    font-size: 0.76rem;
    color: #94a3b8;
}

.syl-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #0f121a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.syl-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.syl-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.syl-tab-btn.active {
    background: #6366f1;
    border-color: #4f46e5;
    color: #ffffff;
}

.syl-search-toolbar {
    padding: 14px 24px 10px 24px;
    background: #11141c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.syl-search-box {
    position: relative;
    width: 100%;
}

.syl-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

.syl-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: #181b26;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s ease;
}

.syl-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.syl-cat-pills-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.syl-cat-pill {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transition: all 0.15s ease;
}

.syl-cat-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

.syl-cat-pill.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #818cf8;
}

.syl-cards-scroll-body {
    padding: 18px 24px 28px 24px;
    overflow-y: auto;
    flex: 1;
}

.syl-status-summary {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.syl-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .syl-grid {
        grid-template-columns: 1fr;
    }
    .dsssb-modal-box.syllabus-modal-box {
        width: 100% !important;
        height: 100% !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
}

.syl-card {
    background: #161922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.syl-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.syl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.syl-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.syl-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.syl-topics-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.syl-topic-chip {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #1c202d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    line-height: 1.35;
}

.syl-topic-chip.highlight {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #ffffff;
    font-weight: 600;
}

.syl-empty-state {
    text-align: center;
    padding: 40px 16px;
    color: #64748b;
    font-size: 0.92rem;
    grid-column: span 2;
}

/* Toast */
.dash-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.dash-toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* Footer */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer a {
    color: var(--text-secondary);
    margin: 0 8px;
}

.footer a:hover {
    color: var(--primary-light);
}

/* =================================================================
   14. DAILY TESTS CARD STYLING (DISTINCT ACCENT HIGHLIGHT)
   ================================================================= */
.test-card.daily-test-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid #492313;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.test-card.daily-test-card:hover {
    border-color: #f97316;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(234, 88, 12, 0.25);
    transform: translateY(-2px);
}

.test-badge.daily-badge {
    background: #261610;
    border: 1px solid #4d2614;
    color: #fb923c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.daily-pulse-dot {
    width: 7px;
    height: 7px;
    background: #fb923c;
    border-radius: 50%;
    box-shadow: 0 0 8px #fb923c;
    animation: dailyPulse 2s infinite ease-in-out;
}

@keyframes dailyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.test-card.daily-test-card .btn-start-test {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.45);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.2s ease;
}

.test-card.daily-test-card .btn-start-test:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
}

/* =================================================================
   15. SUNDAY LOCKED MODAL CARD (BEAUTIFUL EVENT SCHEDULE BOX)
   ================================================================= */
.sunday-locked-card {
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(245, 158, 11, 0.15) !important;
}

.sunday-locked-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.sunday-locked-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.sunday-locked-title-wrap {
    flex: 1;
    margin-left: 14px;
}

.sunday-event-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #fde047;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.sunday-locked-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.sunday-locked-lead {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.modal-countdown-block {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.modal-countdown-head {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.modal-countdown-digits {
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fde047;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.4);
    margin-bottom: 4px;
}

.modal-countdown-sub {
    font-size: 0.74rem;
    color: #94a3b8;
}

.sunday-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.sunday-spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sunday-spec-item i {
    font-size: 1.1rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.sunday-spec-item b {
    display: block;
    font-size: 0.84rem;
    color: #ffffff;
}

.sunday-spec-item span {
    font-size: 0.72rem;
    color: #94a3b8;
}

.sunday-locked-callout {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sunday-locked-callout i {
    color: var(--primary-light);
    margin-top: 2px;
}

.sunday-locked-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =================================================================
   16. AUTHENTIC TEST INSTRUCTIONS MODAL (TCS iON MOCK STYLE)
   ================================================================= */
.inst-modal-box {
    max-width: 820px !important;
    width: 95% !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #11141c !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.95), 0 0 30px rgba(99, 102, 241, 0.2) !important;
}

.inst-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #0f1219;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.inst-title-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.inst-title-block i {
    color: var(--primary-light);
    font-size: 1.1rem;
}

.inst-title-main {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.inst-lang-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.inst-lang-select {
    background: #1e222d;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
}

.inst-metrics-ribbon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(99, 102, 241, 0.08);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 22px;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 650px) {
    .inst-metrics-ribbon {
        grid-template-columns: repeat(2, 1fr);
    }
}

.inst-metric-cell {
    display: flex;
    flex-direction: column;
}

.inst-metric-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inst-metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.inst-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.inst-tab-link {
    padding: 10px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.inst-tab-link:hover {
    color: #ffffff;
}

.inst-tab-link.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
}

.inst-scroll-content {
    padding: 18px 24px;
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #cbd5e1;
}

.inst-sec-heading {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    margin: 14px 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.palette-status-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 16px 0;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.palette-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.palette-badge {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.palette-badge.grey {
    background: #475569;
    color: #ffffff;
    border: 1px solid #64748b;
}

.palette-badge.red {
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #f87171;
}

.palette-badge.green {
    background: #10b981;
    color: #ffffff;
    border: 1px solid #34d399;
}

.palette-badge.purple {
    background: #8b5cf6;
    color: #ffffff;
    border: 1px solid #a78bfa;
}

.palette-badge.purple-dot {
    background: #8b5cf6;
    color: #ffffff;
    border: 1px solid #a78bfa;
    position: relative;
}

.palette-badge.purple-dot::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.inst-rule-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin: 12px 0;
    font-size: 0.84rem;
}

.inst-rule-card b {
    color: #fde047;
}

.inst-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.inst-sec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.inst-sec-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
}

.inst-sec-pill {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 800;
    color: #fde047;
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.inst-sec-right {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.inst-footer-bar {
    padding: 14px 24px;
    background: #0f1219;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.inst-agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    cursor: pointer;
}

.inst-agree-label input {
    cursor: pointer;
    accent-color: var(--primary);
}

@media (max-width: 992px) {
    .nav-center {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    .exam-pill-badge {
        display: none;
    }
    .nav-dashboard-btn span {
        display: none;
    }
    .nav-dashboard-btn {
        padding: 0.45rem 0.6rem;
    }
    .user-pill .user-name {
        display: none;
    }
    .user-pill {
        padding: 4px;
    }
}

/* =================================================================
   DSSSB REVISION VAULT, DOMAIN DRILLS & SOCIAL CHALLENGE STYLES
   ================================================================= */
.btn-domain-drill {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(79, 70, 229, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-domain-drill:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
    border-color: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.revision-vault-section {
    margin-top: 36px;
    position: relative;
}

.revision-vault-scroll-wrap {
    position: relative;
    width: 100%;
}

.revision-vault-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 16px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.revision-vault-grid::-webkit-scrollbar {
    height: 7px;
}

.revision-vault-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.revision-vault-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.revision-vault-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

.rev-scroll-nav-btns {
    display: flex;
    gap: 6px;
}

.btn-rev-scroll {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.btn-rev-scroll:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    border-color: #6366f1;
    transform: scale(1.05);
}

.rev-q-card {
    background: var(--bg-card, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 420px;
    min-width: 420px;
    max-width: 460px;
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

@media (max-width: 640px) {
    .rev-q-card {
        flex: 0 0 88vw;
        min-width: 88vw;
        max-width: 88vw;
    }
}

.rev-q-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rev-q-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rev-q-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.rev-q-del-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s;
}

.rev-q-del-btn:hover {
    color: #ef4444;
}

.rev-q-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main, #f1f5f9);
    line-height: 1.45;
}

.rev-opt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rev-opt-item {
    font-size: 0.84rem;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #cbd5e1);
    transition: all 0.2s ease;
}

.rev-opt-item.is-correct {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 600;
}

.btn-rev-toggle-sol {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    transition: all 0.2s ease;
}

.btn-rev-toggle-sol:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #ffffff;
    border-color: #6366f1;
}

.rev-sol-box {
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: 3px solid #6366f1;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.btn-share-telegram:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* =================================================================
   ACTIVE MOCK RECOVERY STRIP / BANNER
   ================================================================= */
.active-mock-recovery-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 14px 20px;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #151822 0%, #11141c 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: amrSlideDown 0.35s ease-out;
    z-index: 20;
}

@keyframes amrSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amr-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.amr-beacon-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amr-beacon-icon {
    font-size: 1.05rem;
    color: #94a3b8;
}

.amr-pulse-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: amrPulse 1.8s infinite;
}

@keyframes amrPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.amr-info {
    min-width: 0;
    flex: 1;
}

.amr-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.amr-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amr-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.amr-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 3px;
}

.amr-meta strong {
    color: #f8fafc;
    font-family: var(--font-heading, monospace);
    font-weight: 700;
}

.amr-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.amr-btn-discard {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amr-btn-discard:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.amr-btn-resume {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}

.amr-btn-resume:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    filter: brightness(1.08);
}

@media (max-width: 768px) {
    .active-mock-recovery-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .amr-actions {
        justify-content: flex-end;
    }
    .amr-btn-resume {
        flex: 1;
        justify-content: center;
    }
}