.news-footer-text .footer-heart {
    display: inline-block;
    margin-right: 6px;
    color: #fff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.65),
        0 0 18px rgba(255, 107, 107, 0.35);
    animation: footerHeartBounce 1.25s ease-in-out infinite;
    transform-origin: center;
}

@keyframes footerHeartBounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.95; }
    50%      { transform: translateY(-5px) scale(1.08); opacity: 1; }
}
/* ============================================================ */
/* THE ASPIRANT NEWS - COMPLETE STYLESHEET */
/* Version: 4.3.0 - TTS Icon-Only + Save Feature + Test Layout Fixed */
/* Last Updated: 22 January 2026 */
/* ============================================================ */

/* === SPLASH SCREEN - GLASSMORPHISM === */
:root {
    --primary-glow: rgba(255, 255, 255, 0.8);
    --accent-color: #d32f2f;
    --accent-glow: rgba(211, 47, 47, 0.8);
}

/* ============================================================ */
/* GEN-Z STYLE (ONLY FOR 2 NEW CARDS) */
/* Does NOT change the rest of app */
/* ============================================================ */

.genz-guide-card,
.genz-wrap-card {
    background: #0b0b12 !important;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

.genz-guide-card::before,
.genz-wrap-card::before {
    content: "";
    position: absolute;
    inset: -80px;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,212,255,0.18), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255,0,122,0.14), transparent 55%),
        radial-gradient(circle at 50% 70%, rgba(112,0,255,0.12), transparent 60%);
    filter: blur(10px);
    pointer-events: none;
}

.genz-guide-card > *,
.genz-wrap-card > * {
    position: relative;
    z-index: 1;
}

.genz-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.genz-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.75rem;
    color: #0b0b12;
    background: #00D4FF;
    box-shadow: 0 0 18px rgba(0,212,255,0.25);
    text-transform: uppercase;
}
.genz-pill.gold {
    background: #FFD700;
    box-shadow: 0 0 18px rgba(255,215,0,0.22);
}

.genz-date {
    font-size: 0.85rem;
    opacity: 0.8;
    white-space: nowrap;
}

.genz-card-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.genz-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.genz-step {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.genz-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
}
.genz-step-icon.cyan { box-shadow: 0 0 18px rgba(0,212,255,0.28); }
.genz-step-icon.pink { box-shadow: 0 0 18px rgba(255,0,122,0.28); }
.genz-step-icon.purple { box-shadow: 0 0 18px rgba(112,0,255,0.28); }
.genz-step-icon.green { box-shadow: 0 0 18px rgba(0,255,157,0.22); }

.genz-step-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}
.genz-step-desc {
    opacity: 0.82;
    margin-top: 2px;
    font-size: 0.95rem;
    line-height: 1.25rem;
}

.genz-understand-row {
    margin: 12px 0 4px;
    display: flex;
    justify-content: center;
}
.genz-understand-btn {
    width: 100%;
    border: none;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    color: #000;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s ease;
}
.genz-understand-btn:hover {
    background: #00ff9d;
    box-shadow: 0 0 22px rgba(0,255,157,0.4);
    transform: translateY(-1px);
}

.genz-wrap-sub {
    opacity: 0.85;
    line-height: 1.35rem;
    margin-bottom: 12px;
}

.genz-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0 14px;
}
.genz-stat {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}
.genz-stat.wide {
    grid-column: 1 / -1;
}
.genz-stat-label {
    font-size: 0.72rem;
    opacity: 0.75;
    font-weight: 900;
    letter-spacing: 0.14em;
}
.genz-stat-value {
    margin-top: 6px;
    font-size: 1.55rem;
    font-weight: 900;
}
.genz-stat-value.cyan { color: #00D4FF; }
.genz-stat-value.pink { color: #FF007A; }

.genz-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.genz-cta {
    flex: 1;
    border: none;
    padding: 12px 14px;
    border-radius: 16px;
    background: #fff;
    color: #000;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s ease;
}
.genz-cta:hover {
    background: #00ff9d;
    box-shadow: 0 0 22px rgba(0,255,157,0.4);
    transform: translateY(-1px);
}
.genz-cta.ghost {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}
.genz-cta.ghost:hover {
    background: rgba(255,255,255,0.14);
    box-shadow: none;
}

/* Popup wrapper for the wrap-up card */
.genz-wrap-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    padding: 16px;
}
.genz-wrap-popup-overlay.active { display: flex; }
.genz-wrap-popup {
    width: min(560px, 96vw);
}

/* Premium overlay single button */
.premium-understand-next-btn {
    width: 100%;
    border: none;
    padding: 14px 14px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(135deg, #00D4FF, #7000FF);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,212,255,0.25), 0 0 18px rgba(112,0,255,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.premium-understand-next-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(0,212,255,0.35), 0 0 22px rgba(112,0,255,0.25);
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020205; /* Deep black background */
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Moving colorful blobs behind the glass card */
.bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: moveBlobs 20s infinite alternate ease-in-out;
}

.blob-1 { 
    width: 500px; 
    height: 500px; 
    background: var(--accent-color); 
    top: -10%; 
    left: -10%; 
}

.blob-2 { 
    width: 600px; 
    height: 600px; 
    background: #764ba2; 
    bottom: -10%; 
    right: -10%; 
    animation-delay: -7s; 
}

@keyframes moveBlobs {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(120px, 80px) scale(1.3); }
}

/* The Frosted Glass Card */
.glass-splash-card {
    position: relative;
    z-index: 10;
    width: 85%;
    max-width: 350px;
    padding: 60px 30px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(35px) saturate(200%);
    -webkit-backdrop-filter: blur(35px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    font-family: 'Inter', -apple-system, sans-serif;
}

.splash-slogan-top {
    font-size: 0.75rem;
    color: #ff5252;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 12px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(211, 47, 47, 0.6);
}

.splash-app-name {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 25px 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.splash-tagline-bottom {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 15px;
    font-weight: 300;
}

/* Modern loading indicator */
.splash-loader {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 15px #fff; }
}

/* State for hiding the splash screen */
#splash-screen.hide {
    opacity: 0;
    pointer-events: none;
}

/* Prevent scrolling during splash screen */
body.splash-active,
html.splash-active {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* === GLOBAL STYLES === */
:root {
    /* Existing variables - KEEP ALL */
    --primary: #d32f2f;
    --accent: #1976d2;
    --dark: #121212;
    --light: #f4f6f8;
    --success: #4caf50;
    --warning: #ff9800;
    --header-height: 60px;
    --nav-height: 70px;

    /* ⭐ CRED Premium Colors */
    --cred-dark: #0a0a0a;
    --cred-dark-card: #1a1a1a;
    --cred-dark-lighter: #2a2a2a;
    
    /* Purple Accent (Main) */
    --cred-purple: #8B5CF6;
    --cred-purple-light: #A78BFA;
    --cred-purple-dark: #6D28D9;
    --cred-purple-glow: rgba(139, 92, 246, 0.4);
    
    /* Additional Accents */
    --cred-blue: #3B82F6;
    --cred-green: #10B981;
    --cred-gold: #F59E0B;
    --cred-orange: #ff9800;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(139, 92, 246, 0.3);
    
    /* Text Colors */
    --cred-text: #F9FAFB;
    --cred-text-secondary: #9CA3AF;
    --cred-text-tertiary: #6B7280;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-purple: 0 8px 32px rgba(139, 92, 246, 0.2);
    --shadow-purple-lg: 0 12px 40px rgba(139, 92, 246, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--light);
    color: #333;
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scrolling */
    transition: background 0.3s ease;
    position: relative;
    min-height: 100vh;
}

/* ⭐ FIX: Test Tab Layout - Remove top gap */
body.test-tab-active .main-container {
    padding-top: 60px !important;
    padding-bottom: 70px !important;
}

#test-container {
    margin-top: 0 !important;
    padding-top: 10px !important;
}


/* === HEADER === */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.brand-slogan {
    font-size: 0.7rem;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-icon {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.calendar-icon:hover {
    transform: scale(1.1);
}

#date-picker {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#lang-selector {
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
}

#lang-selector option {
    background: #333;
    color: white;
}

/* Header Login/Account Buttons */
.header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 0;
}

.header-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

.header-btn i {
    margin: 0;
}

/* Install App Button (Header) */
.install-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

.install-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

/* === MAIN CONTAINER === */
.main-container {
    padding-top: var(--header-height);
    padding-bottom: var(--nav-height);
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
}

.feed-container {
    padding: 15px 10px;
}

/* === DATE DIVIDER === */
.date-divider {
    text-align: center;
    margin: 25px 0 15px 0;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* === FLASH CARD (BASE) === */
.flash-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* ============================================================ */
/* Today's Briefing Card (PWA list style) */
/* ============================================================ */
.briefing-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

/* ============================================================ */
/* DAILY GUIDE CARD (shown only first 5 days) */
/* Matches user's provided Gen-Z sample */
/* ============================================================ */
.daily-guide-card {
    background: #0b0b12;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.daily-guide-card::before {
    content: "";
    position: absolute;
    inset: -90px;
    background:
        radial-gradient(circle at 18% 15%, rgba(0,212,255,0.22), transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(255,0,122,0.18), transparent 55%),
        radial-gradient(circle at 45% 85%, rgba(112,0,255,0.16), transparent 60%),
        radial-gradient(circle at 70% 75%, rgba(0,255,157,0.10), transparent 60%);
    filter: blur(10px);
    pointer-events: none;
}

.daily-guide-card > * {
    position: relative;
    z-index: 1;
}

.daily-guide-card .guide-card {
    font-family: 'Inter', 'Roboto', sans-serif;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 0 80px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    animation: dailyGuideEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: #fff;
}

.daily-guide-card.daily-guide-started .guide-card {
    border-color: rgba(0,212,255,0.28);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06),
        0 0 60px rgba(0,212,255,0.10),
        0 0 80px rgba(255,0,122,0.08);
}

@keyframes dailyGuideEntrance {
    from { opacity: 0; transform: scale(0.92) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.daily-guide-card .streak-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    color: #ff9d00;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 157, 0, 0.3);
    margin-bottom: 14px;
    letter-spacing: 0.06em;
}

.daily-guide-card .dot-glow {
    width: 6px;
    height: 6px;
    background: #ff9d00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff9d00;
    animation: dailyGuidePulse 1.5s infinite;
}

@keyframes dailyGuidePulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.daily-guide-card .guide-header {
    margin-bottom: 18px;
}

.daily-guide-card .guide-title {
    font-weight: 900;
    font-size: 2rem;
    margin: 0 0 6px 0;
    letter-spacing: -0.03em;
    line-height: 1;
}

.daily-guide-card .guide-subtitle {
    margin: 0;
    color: rgba(255,255,255,0.70);
    font-weight: 600;
}

.daily-guide-card .step-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 26px;
    opacity: 0;
    transform: translateX(-20px);
    animation: dailyGuideStepFade 0.5s forwards;
}

@keyframes dailyGuideStepFade {
    to { opacity: 1; transform: translateX(0); }
}

.daily-guide-card .step-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, #ff007a, #7000ff, #00d4ff);
    opacity: 0.3;
}

.daily-guide-card .step-item:last-child::before { display: none; }

.daily-guide-card .step-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.daily-guide-card .step-item:hover .step-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 30px currentColor;
}

.daily-guide-card .step-icon.pink { background: #FF007A; }
.daily-guide-card .step-icon.purple { background: #7000FF; }
.daily-guide-card .step-icon.cyan { background: #00D4FF; }
.daily-guide-card .step-icon.gold { background: #FFD700; }

.daily-guide-card .step-title {
    font-weight: 900;
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 2px 0;
}

.daily-guide-card .step-desc {
    margin: 0;
    color: rgba(255,255,255,0.70);
    font-weight: 600;
    font-size: 0.95rem;
}

.daily-guide-card .btn-start {
    background: #fff;
    color: #000;
    padding: 18px;
    border-radius: 24px;
    font-weight: 900;
    font-size: 1.05rem;
    width: 100%;
    margin-top: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: none;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
}

.daily-guide-card .btn-start:hover {
    transform: scale(1.02);
    background: #00ff9d;
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.4);
}

.daily-guide-card .btn-arrow {
    font-size: 1.3rem;
    line-height: 1;
}

/* Briefing header card */
.briefing-header-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    text-align: center;
}

.briefing-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.briefing-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f7;
    border: 1px solid #ededed;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}

.briefing-date-pill i { color: #d32f2f; }

.briefing-header-title {
    margin-top: 4px;
    font-size: 1.55rem;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.02em;
}

.briefing-swipe-hint {
    margin-top: 8px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d32f2f;
    text-shadow: 0 0 14px rgba(211,47,47,0.25);
    animation: briefingHintSlide 1.6s ease-in-out infinite;
}

@keyframes briefingHintSlide {
    0%, 100% { transform: translateX(8px); opacity: 0.85; }
    50%      { transform: translateX(-8px); opacity: 1; }
}

.briefing-header-sub {
    margin-top: 8px;
    color: #666;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Briefing list rows */
.briefing-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.briefing-row {
    --tone: #d32f2f;
    --tone-bg: rgba(211,47,47,0.10);
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--tone);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    padding: 12px 12px 10px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.briefing-row.tone-red    { --tone:#d32f2f; --tone-bg: rgba(211,47,47,0.10); }
.briefing-row.tone-blue   { --tone:#2563EB; --tone-bg: rgba(37,99,235,0.10); }
.briefing-row.tone-orange { --tone:#F97316; --tone-bg: rgba(249,115,22,0.10); }
.briefing-row.tone-green  { --tone:#16A34A; --tone-bg: rgba(22,163,74,0.10); }

.briefing-row:active {
    transform: scale(0.995);
    box-shadow: 0 0 0 3px var(--tone-bg), 0 10px 22px rgba(0,0,0,0.08);
}

.briefing-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.briefing-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--tone-bg);
    border: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
}

.briefing-tag {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--tone-bg);
    border: 1px solid rgba(0,0,0,0.08);
    color: #111;
    max-width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.briefing-row-spacer { flex: 1; }

.briefing-start-chip {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--tone-bg);
    border: 1px solid rgba(0,0,0,0.10);
    color: #111;
    box-shadow: 0 0 18px var(--tone-bg);
    position: relative;
    overflow: hidden;
}

/* START chip glow: left -> right sweep */
.briefing-start-chip::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    width: 55%;
    left: -60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
    transform: skewX(-18deg);
    animation: briefingStartSheen 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes briefingStartSheen {
    0%   { left: -60%; opacity: 0; }
    10%  { opacity: 1; }
    60%  { left: 120%; opacity: 0.25; }
    100% { left: 120%; opacity: 0; }
}

.briefing-row-title {
    font-weight: 800;
    color: #111;
    line-height: 1.3;
    margin: 2px 2px 10px;
    font-size: 0.98rem;
}

.briefing-row-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.briefing-likes {
    font-weight: 900;
    color: var(--tone);
    font-size: 0.9rem;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.briefing-read-btn {
    background: var(--tone);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    min-width: 78px;
    text-align: center;
    transition: filter 0.15s ease, transform 0.15s ease;
}

.briefing-read-btn:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}
.briefing-jump-highlight {
    outline: 2px solid rgba(0,212,255,0.7);
    box-shadow: 0 0 24px rgba(0,212,255,0.25);
}

.flash-card:active {
    transform: scale(0.98);
}
/* === HEADLINES CARD === */
.headline-card {
    border-left: 5px solid #2c3e50;
}

.hl-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 15px;
}

.hl-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-header small {
    opacity: 0.9;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date badge inside meta row */
.news-date {
    font-weight: 600;
    opacity: 0.9;
}

.hl-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hl-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    transition: background 0.2s;
}

.hl-item:last-child {
    border-bottom: none;
}

.hl-item:active {
    background: #f8f9fa;
}

.hl-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
    min-width: 30px;
}

.hl-content {
    flex: 1;
}

.hl-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.hl-gs {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.hl-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.hl-tag.fire {
    background: #ffebee;
    color: #d32f2f;
}

.hl-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: 4px;
}

.hl-sub {
    font-size: 0.8rem;
    color: #888;
}

/* === MORNING BRIEF CARD (PWA style) - aspirant_learning === */
.card-learning {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible;
}

.learn-date-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 10px 0;
}

.learn-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(211, 47, 47, 0.35);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #111;
    box-shadow:
        0 0 0 2px rgba(211, 47, 47, 0.08),
        0 10px 24px rgba(0,0,0,0.06),
        0 0 18px rgba(211, 47, 47, 0.22);
    animation: learnDateGlow 1.8s ease-in-out infinite;
}

.learn-date-pill i {
    color: #d32f2f;
}

@keyframes learnDateGlow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(211,47,47,0.08), 0 10px 24px rgba(0,0,0,0.06), 0 0 16px rgba(211,47,47,0.20); }
    50%      { box-shadow: 0 0 0 2px rgba(211,47,47,0.10), 0 12px 26px rgba(0,0,0,0.07), 0 0 24px rgba(211,47,47,0.30); }
}

.learn-card {
    background: #fff;
    border: 3px solid #d32f2f;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.learn-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.learn-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #d32f2f;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.learn-sun {
    font-size: 1.4rem;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.18));
}

.learn-kicker {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #d32f2f;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.learn-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111;
    line-height: 1.2;
}

.learn-body {
    background: #f4f5f7;
    border-radius: 12px;
    padding: 14px 14px 12px;
    border-left: 4px solid #d32f2f;
}

.learn-body p {
    margin: 0 0 10px 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #222;
}

.learn-body p:last-child { margin-bottom: 0; }

.learn-cta {
    margin-top: 14px;
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Shimmer reflection RIGHT -> LEFT */
.learn-cta::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    width: 42%;
    right: -50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-18deg);
    animation: learnSheenRTL 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes learnSheenRTL {
    0%   { right: -55%; opacity: 0; }
    10%  { opacity: 1; }
    60%  { right: 110%; opacity: 0.2; }
    100% { right: 110%; opacity: 0; }
}

.learn-cta:active { transform: scale(0.99); }

/* ============================================================ */
/* ⭐ NEWS CARD - FIXED STRUCTURE */
/* ============================================================ */

.news-card {
    padding: 20px 15px;
    position: relative;
}

/* ⭐ NEW: News Header Row (Meta + Actions in one row) */
.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0 12px;
}

/* Actions box (home/save/share/bell) */
.news-actions-box {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: #e5e7eb;
    border: 1px solid #cbd5e1;
}

/* Full-width category bar */
.news-category-bar {
    width: 100%;
    margin: 6px 0 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.25);
    border: 1px solid rgba(255,255,255,0.2);
}
.news-category-text {
    flex: 1;
}
.news-urgency-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Why in News + Quick Facts blocks on free card */
.news-why-box {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 10px;
    margin: 12px 0;
    border-left: 3px solid #1976d2;
}
.news-why-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.76rem;
    color: #1565c0;
    font-weight: 900;
    text-transform: uppercase;
}
.news-upsc-badge {
    background: #1565c0;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}
.news-why-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.quick-facts-card {
    background: #eef3ef;
    border: 1px solid #d4ddd5;
    border-radius: 10px;
    margin: 12px 0;
    padding: 10px 12px;
}
.quick-facts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.quick-facts-title {
    color: #14532d;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}
.quick-facts-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.quick-facts-chip {
    background: #f0f7ff;
    border: 1px solid #c9d8f4;
    color: #334155;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}
.quick-facts-list {
    margin: 0;
    padding-left: 18px;
}
.quick-facts-list li {
    color: #263238;
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 3px 0;
}

/* News Meta (legacy / fallback) */
.news-meta {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    letter-spacing: 0.5px;
    flex: 1;
}

/* Home button - same style as Save, navigates to Today's Briefing */
.home-button {
    position: static !important;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    flex-shrink: 0;
}
.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}
.home-button:active { transform: scale(0.98); }

/* ⭐ NEW: News Actions Container - Flex Row for TTS + Save */
.news-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ============================================================ */
/* ⭐ TTS BUTTON - ICON-ONLY CIRCULAR (FIXED) */
/* ============================================================ */
/* ⭐ REMOVED: Old .tts-icon and .tts-text styles (not needed anymore) */

/* ============================================================ */
/* ⭐ SAVE BUTTON - ICON-ONLY CIRCULAR */
/* ============================================================ */

.save-button {
    position: static !important; /* Not absolute */
    background: linear-gradient(135deg, var(--cred-orange) 0%, #f57c00 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%; /* Circular */
    width: 40px; /* Fixed height as per requirement */
    height: 40px; /* Fixed height as per requirement */
    font-size: 0.9rem; /* Reduced font size */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    flex-shrink: 0;
}

.save-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.save-button:active {
    transform: translateY(0);
}

/* Saved state - Green gradient */
.save-button.saved {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.save-button.saved:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Icon colors */
.save-button .fas,
.save-button .far {
    color: white;
}

/* TASK iii: Share Button - Same style as Save Button */
.share-button {
    position: static !important;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Notification bell button */
.notify-button {
    position: static !important;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: none;
    padding: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.notify-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
.notify-button:active { transform: scale(0.95); }
.notify-button.active {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}
.notify-button.active i {
    animation: bellRing 1.2s ease-in-out infinite;
}

@keyframes bellRing {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg); }
    20% { transform: rotate(10deg); }
    30% { transform: rotate(-6deg); }
    40% { transform: rotate(6deg); }
    50% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@media (max-width: 640px) {
    .news-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .news-actions-box {
        width: 100%;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .news-header-row {
        width: 100%;
    }
    .news-actions-box {
        width: 100%;
        justify-content: space-between;
    }
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.share-button:active {
    transform: scale(0.95);
}

/* TTS Controls (Speed) */
.tts-controls {
    position: absolute;
    bottom: 75px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 11;
}

.tts-controls.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.tts-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tts-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tts-controls button.active {
    background: var(--cred-purple);
    border-color: var(--cred-purple);
}

/* News Title */
.news-title {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* News Summary */
.news-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-likes-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    margin: 12px 0 4px 0;
}

/* News Footer */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Premium Flip Card */
.premium-flip-card {
    perspective: 1200px;
    overflow: visible;
}

.premium-flip-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    transform-origin: bottom;
}

.premium-flip-card.premium-flipped .premium-flip-inner {
    transform: rotateX(180deg);
    transform-origin: bottom;
}

.premium-face {
    backface-visibility: hidden;
}

.premium-back {
    position: absolute;
    inset: 0;
    transform: rotateX(180deg);
    background: #0b0b0b;
    color: #d4af37;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 18px 15px;
    overflow: hidden;
    -webkit-box-reflect: below 8px linear-gradient(transparent, rgba(0,0,0,0.4));
}

.premium-back::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    height: 30px;
    background: linear-gradient(180deg, rgba(212,175,55,0.25), transparent);
    opacity: 0.6;
}

.premium-open-row,
.premium-close-row {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.premium-open-btn,
.premium-close-btn {
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.6);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Premium CTA + Panel */
.premium-cta-row {
    display: flex;
    justify-content: center;
    margin: 12px 0 4px 0;
}

.premium-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #ffffff;
    border: 1px solid rgba(211, 47, 47, 0.6);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
    animation: pulseCTA 2s infinite;
}

@keyframes pulseCTA {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ============================================================ */
/* Premium FOMO Card (non-premium users) */
/* ============================================================ */
.premium-teaser-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 28px -14px rgba(0,0,0,0.18);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-teaser-card:active {
    transform: scale(0.995);
}

.premium-teaser-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.premium-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(220,38,38,0.22);
}

.premium-teaser-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
}

.premium-teaser-heart {
    color: #ec4899;
    animation: premiumTeaserHeart 1.4s ease-in-out infinite;
}

@keyframes premiumTeaserHeart {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.14); opacity: 1; }
}

.premium-teaser-title {
    color: #111827;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
}

.premium-teaser-accent {
    color: #dc2626;
}

.premium-teaser-desc {
    color: #374151;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 12px;
}

.premium-teaser-features {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.premium-teaser-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #374151;
}

.premium-teaser-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(34,197,94,0.35);
}

.premium-teaser-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(34,197,94,0.55);
    filter: blur(4px);
    opacity: 0.8;
    animation: premiumDotPulse 1.6s infinite;
}

.premium-teaser-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(34,197,94,0.55);
    animation: premiumDotPing 1.6s infinite;
}

@keyframes premiumDotPulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

@keyframes premiumDotPing {
    0% { transform: scale(1); opacity: 0.35; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

.premium-teaser-cta {
    width: 100%;
    border: none;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color: #fff;
    font-weight: 900;
    padding: 16px 14px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(220,38,38,0.24);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.premium-teaser-cta:active { transform: scale(0.99); }

.premium-teaser-cta-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.premium-teaser-card:hover .premium-teaser-cta-sheen {
    transform: translateX(120%);
}

.premium-teaser-cta-text {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-teaser-cta-arrow {
    transition: transform 0.2s ease;
}

.premium-teaser-card:hover .premium-teaser-cta-arrow {
    transform: translateX(4px);
}

/* ============================================================ */
/* Premium teaser modal (bottom sheet) */
/* ============================================================ */
.premium-teaser-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.premium-teaser-overlay.active { display: flex; }

.premium-teaser-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
}

.premium-teaser-sheet {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 16px 16px 22px;
    box-shadow: 0 -14px 50px rgba(0,0,0,0.25);
    animation: premiumSheetUp 0.25s ease-out;
}

@keyframes premiumSheetUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.premium-teaser-handle {
    width: 46px;
    height: 6px;
    background: #d1d5db;
    border-radius: 999px;
    margin: 4px auto 10px;
}

.premium-teaser-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}

.premium-teaser-sheet-head {
    text-align: center;
    padding: 6px 8px 12px;
}

.premium-teaser-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.premium-teaser-proofbox {
    margin-top: 12px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.premium-teaser-proofbox .pb-ic { font-size: 1.7rem; }
.premium-teaser-proofbox .pb-h { font-weight: 900; color:#111827; }
.premium-teaser-proofbox .pb-p { margin-top: 4px; color:#6b7280; font-weight: 700; font-style: italic; }

.premium-teaser-final {
    margin-top: 14px;
    width: 100%;
    border: none;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    color:#fff;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 18px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(220,38,38,0.22);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.premium-teaser-final-sheen {
    position:absolute;
    inset:0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: translateX(-120%);
    animation: premiumFinalSheen 2.4s infinite;
}

@keyframes premiumFinalSheen {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

.premium-teaser-final-text { position: relative; z-index: 1; }
.premium-teaser-fineprint { text-align:center; margin-top: 10px; color:#6b7280; font-weight: 800; }

.premium-teaser-alt {
    display:flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.premium-teaser-alt button {
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    color:#111827;
}

.premium-teaser-alt button:active { transform: scale(0.99); }

/* Premium Overlay */
.premium-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    color: #111111;
    display: none;
    flex-direction: column;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.premium-overlay.active {
    display: flex;
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: none;
}

.premium-overlay-header {
    height: 60px;
    background: #d32f2f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
}

.premium-overlay-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-overlay-title {
    font-size: 1rem;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.premium-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.premium-header-actions .premium-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Home and Share: whitish like save button (not full red) */
.premium-header-actions .premium-icon-btn.premium-header-home {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}
.premium-header-actions .premium-icon-btn.premium-header-share {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.25);
}
.premium-header-actions .premium-icon-btn.premium-header-home:hover,
.premium-header-actions .premium-icon-btn.premium-header-share:hover {
    filter: brightness(1.05);
    transform: scale(1.08);
}

/* Save in overlay header: keep orange like main feed save button */
.premium-header-actions .premium-icon-btn.save-button {
    background: linear-gradient(135deg, var(--cred-orange, #ff9800) 0%, #f57c00 100%);
    color: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.premium-header-actions .premium-icon-btn.save-button:hover {
    filter: brightness(1.05);
    transform: scale(1.08);
}

.premium-overlay-body {
    padding: 20px 15px 80px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    /* allow vertical scroll, let JS handle horizontal swipes */
    touch-action: pan-y;
    /* Prevent scroll conflicts and bouncing */
    overflow-anchor: none;
    overscroll-behavior: contain;
    scroll-behavior: auto !important;
}

/* Premium sections: compact + soft mixed colors */
.premium-overlay-body .premium-section {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.premium-overlay-body .premium-section:hover {
    transform: translateY(-1px);
}
/* Desktop: disable hover transform completely */
@media (min-width: 900px) {
    .premium-overlay-body .premium-section:hover {
        transform: none !important;
    }
}

/* Why in News - soft blue/lavender mix */
.premium-overlay-body .premium-section-why {
    background: linear-gradient(135deg, rgba(232, 234, 246, 0.95) 0%, rgba(227, 242, 253, 0.95) 100%);
    border-color: rgba(100, 121, 246, 0.2);
}

/* Deep Analysis (Answer) - soft rose/cream */
.premium-overlay-body .premium-section-deep {
    background: linear-gradient(135deg, rgba(255, 241, 242, 0.95) 0%, rgba(255, 250, 240, 0.95) 100%);
    border-color: rgba(211, 47, 47, 0.12);
    contain: content;
}

/* Mains PUQ - soft amber */
.premium-overlay-body .premium-section-puq {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95) 0%, rgba(254, 243, 199, 0.95) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

/* Mains PYQ - soft green */
.premium-overlay-body .premium-section-pyq {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.95) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

/* Case Study - soft teal */
.premium-overlay-body .premium-section-case {
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(204, 251, 241, 0.95) 100%);
    border-color: rgba(20, 184, 166, 0.2);
}

/* Vocab Word - soft pink/lavender */
.premium-overlay-body .premium-section-vocab {
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.95) 0%, rgba(250, 240, 255, 0.95) 100%);
    border-color: rgba(219, 39, 119, 0.2);
}

.premium-overlay-body .premium-text-short {
    font-size: 0.92rem;
    line-height: 1.6;
}

.premium-overlay-body .premium-meta {
    background: rgba(211, 47, 47, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.premium-overlay-body .premium-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.4;
}

.premium-overlay-body .premium-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-overlay-body .premium-section-why .premium-label { color: #4338ca; }
.premium-overlay-body .premium-section-deep .premium-label { color: #b91c1c; }
.premium-overlay-body .premium-section-puq .premium-label { color: #b45309; }
.premium-overlay-body .premium-section-pyq .premium-label { color: #15803d; }
.premium-overlay-body .premium-section-case .premium-label { color: #0f766e; }
.premium-overlay-body .premium-section-vocab .premium-label { color: #be185d; }

.premium-overlay-body .premium-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    text-align: justify;
}

.premium-directive {
    background: rgba(211, 47, 47, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
}

/* TASK ix: Premium Overlay Footer Navigation */
.premium-overlay-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #d32f2f;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* Desktop: navigation buttons removed, use keyboard only */
.premium-overlay-nav.desktop-only {
    display: none !important;
}
.premium-overlay.desktop-overlay .premium-overlay-footer {
    display: none !important;
}
.premium-overlay.desktop-overlay .premium-understand-next-btn {
    display: none !important;
}

/* Desktop: no hover, no transitions, flat backgrounds - lighter on low-end desktops */
.premium-overlay.desktop-overlay,
.premium-overlay.desktop-overlay * {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section:hover,
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section *:hover,
.premium-overlay.desktop-overlay .premium-section:hover,
.premium-overlay.desktop-overlay .premium-section *:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(211, 47, 47, 0.15) !important;
    transition: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-why {
    background: #eef2f7;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-deep {
    background: #fff5f5;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-puq {
    background: #fffbeb;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-pyq {
    background: #f0fdf4;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-case {
    background: #f0fdfa;
}
.premium-overlay.desktop-overlay .premium-overlay-body .premium-section-vocab {
    background: #fdf2f8;
}
.premium-overlay.desktop-overlay .premium-overlay-nav.desktop-only:hover {
    transform: none;
}

.footer-nav-btn {
    flex: 1;
    padding: 12px 16px;
    background: rgba(211, 47, 47, 0.1);
    border: 2px solid #d32f2f;
    border-radius: 10px;
    color: #d32f2f;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin: 0 4px;
}

.footer-nav-btn:hover {
    background: #d32f2f;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-home-btn {
    background: #d32f2f;
    color: #ffffff;
}

.footer-home-btn:hover {
    background: #b71c1c;
}

/* Swipe Preview for Deep Analysis - Premium Overlay */
.swipe-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.98) 0%, rgba(244, 67, 54, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    color: #ffffff;
    padding: 18px 28px;
    border-radius: 24px;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    max-width: 80%;
    z-index: 10001;
    pointer-events: none;
    box-shadow: 0 16px 48px rgba(211, 47, 47, 0.5),
                0 8px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.premium-overlay .premium-meta {
    color: #d32f2f;
}

.premium-overlay .premium-title {
    color: #111111;
}

/* Override existing premium styles with glassmorphism */
.premium-overlay .premium-label {
    color: #d32f2f;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-overlay .premium-text {
    color: #333333;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.premium-overlay .premium-icon-btn {
    border-color: rgba(211, 47, 47, 0.6);
    color: #d32f2f;
}

/* Premium Paywall */
.premium-paywall {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.premium-paywall.active {
    display: flex;
}

.premium-paywall-card {
    background: #ffffff;
    color: #0f172a;
    border-radius: 14px;
    padding: 24px 20px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.premium-paywall-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.premium-paywall-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e40af;
    margin: 10px 0 16px 0;
}

.premium-paywall-actions {
    display: flex;
    gap: 10px;
}

.paywall-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.paywall-btn.cancel {
    background: #f1f5f9;
    color: #334155;
}

.paywall-btn.continue {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: white;
}

.premium-back-header {
    margin-bottom: 12px;
}

.premium-meta {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #e3c77b;
    margin-bottom: 6px;
}

.premium-title {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    color: #f7e7a6;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

/* Regular premium sections (not in overlay) */
.premium-section {
    margin: 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
}

.premium-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #d4af37;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.premium-directive {
    background: rgba(212, 175, 55, 0.15);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
}

.premium-text {
    color: #e8dcc4;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Override for overlay - glassmorphism takes precedence */
/* Override for overlay - glassmorphism removed for performance stability */
.premium-overlay .premium-section {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid rgba(211, 47, 47, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: none;
    transition: none;
}

.premium-overlay .premium-section:hover {
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.15);
    transform: translateY(-2px);
}
/* Desktop: disable all hover effects on premium sections */
@media (min-width: 900px) {
    .premium-overlay .premium-section:hover {
        border-color: rgba(211, 47, 47, 0.15) !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

.premium-overlay .premium-label {
    font-size: 1rem;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: normal;
}

.premium-overlay .premium-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
    text-align: justify;
}

.premium-overlay .premium-directive {
    background: rgba(211, 47, 47, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 8px;
    color: #d32f2f;
}

/* Directive line below mains_puq in same box (two lines) */
.premium-overlay-body .premium-directive-line {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: #555;
    font-weight: 700;
}

/* One row: heart (like) + feedback box */
.premium-action-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: stretch;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* Feedback trigger - same line as Like; click to open feedback card */
.premium-feedback-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.98) 100%);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}
.premium-feedback-trigger-btn:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(219, 234, 254, 1) 0%, rgba(191, 219, 254, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.premium-feedback-trigger-btn i { font-size: 1.1rem; }
.premium-feedback-trigger-btn.premium-feedback-trigger-active {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(219, 234, 254, 1) 0%, rgba(191, 219, 254, 1) 100%);
}

.premium-like-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(211, 47, 47, 0.35);
    background: #fff;
    color: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 1.35rem;
}
.premium-like-btn .far { color: #999; }
.premium-like-btn:hover {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
    transform: scale(1.05);
}
.premium-like-btn.liked {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #d32f2f;
    color: #d32f2f;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5), 0 0 40px rgba(211, 47, 47, 0.25);
}
.premium-like-btn.liked .fas { color: #d32f2f; }
.premium-like-btn.liked:hover {
    box-shadow: 0 0 24px rgba(211, 47, 47, 0.6), 0 0 48px rgba(211, 47, 47, 0.3);
}

/* Feedback card - in-app Positive/Negative + optional text, saved to MySQL; hidden until Feedback clicked */
.premium-feedback-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.premium-feedback-card.premium-feedback-card-hidden {
    display: none;
}
.premium-feedback-question {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    font-size: 1rem;
}
.premium-feedback-sentiment-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.premium-feedback-sentiment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.premium-feedback-positive {
    background: #fff;
    border-color: #d1d5db;
    color: #4b5563;
}
.premium-feedback-positive:hover {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
}
.premium-feedback-positive.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.premium-feedback-positive.active i { color: #fff; }
.premium-feedback-negative {
    background: #fff;
    border-color: #d1d5db;
    color: #4b5563;
}
.premium-feedback-negative:hover {
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.08);
}
.premium-feedback-negative.active {
    background: #374151;
    border-color: #374151;
    color: #fff;
}
.premium-feedback-negative.active i { color: #fff; }
.premium-feedback-textarea {
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.premium-feedback-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}
.premium-feedback-textarea::placeholder {
    color: #9ca3af;
}
.premium-feedback-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.premium-feedback-submit-btn:hover:not(:disabled) {
    background: #152a47;
    transform: translateY(-1px);
}
.premium-feedback-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}
.premium-feedback-card.premium-feedback-submitted .premium-feedback-question {
    color: #16a34a;
}

/* Legacy: Feedback box - opens Google Form link (kept for reference) */
.premium-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 12px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(219, 234, 254, 0.98) 100%);
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}
.premium-feedback-btn:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(219, 234, 254, 1) 0%, rgba(191, 219, 254, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}
.premium-feedback-btn i { font-size: 1.1rem; }

.premium-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.premium-action-buttons {
    display: flex;
    gap: 10px;
}

.premium-icon-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.likes-count {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn {
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.share-btn:active {
    color: var(--primary);
}

/* === PREMIUM LOCK === */
.premium-lock {
    position: relative;
    background: #fff8e1;
    border: 2px dashed #ffd54f;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.locked-content {
    filter: blur(3px);
    user-select: none;
    opacity: 0.4;
    margin-bottom: 15px;
}

.unlock-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-unlock {
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-unlock:active {
    transform: scale(0.95);
}
/* === BOTTOM NAVIGATION === */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 8px 15px;
    transition: all 0.2s;
    position: relative;
    border: none;
    background: none;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
    position: relative;
}

/* News Badge - Like Facebook/WhatsApp notification badge */
.news-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fff;
    color: #1F2937;
    font-size: 11px;
    font-weight: 900;
    min-width: 24px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 6px;
    border: 2px solid #10B981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    z-index: 1001;
    line-height: 1;
    animation: badgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

.news-badge .badge-count {
    font-size: 11px;
    font-weight: 900;
    color: #1F2937;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Ensure badge is visible on dark mode */
body.dark-mode .news-badge {
    border-color: #1F2937;
}

/* === TRIAL POPUP === */
.trial-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.trial-popup-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.trial-popup {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.popup-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 10px;
}

.popup-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.popup-features {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--success);
    font-size: 1.1rem;
}

.phone-input-group {
    margin-bottom: 20px;
}

.phone-input-group label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
}

.phone-prefix {
    color: #666;
    font-weight: 500;
    margin-right: 8px;
}

.phone-input-wrapper input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex: 1;
    font-weight: 500;
}

.btn-start-trial {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #c62828 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    transition: transform 0.2s;
}

.btn-start-trial:active {
    transform: scale(0.98);
}

.login-two-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}
.btn-login-primary {
    width: 100%;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
    transition: transform 0.2s;
}
.btn-login-primary:active { transform: scale(0.98); }
.btn-start-trial-secondary {
    width: 100%;
    background: #fff;
    color: #c62828;
    border: 2px solid #c62828;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn-start-trial-secondary:hover { background: #ffebee; }
.btn-start-trial-secondary:active { transform: scale(0.98); }

.popup-footer {
    text-align: center;
    margin-top: 15px;
}

.btn-maybe-later {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.popup-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #999;
}

.popup-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* === NOTIFICATION PERMISSION POPUP === */
.notification-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 2100;
    display: none;
    animation: slideUpNotif 0.3s;
}

.notification-popup.active {
    display: block;
}

@keyframes slideUpNotif {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.notif-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 15px;
}

.notif-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 10px;
}

.notif-message {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* === TELEGRAM/WHATSAPP CHANNEL SELECTION POPUP === */
.channel-selection-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.channel-selection-popup.active {
    display: flex;
}

.channel-selection-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.channel-selection-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: channelPopupSlide 0.3s ease-out;
}

@keyframes channelPopupSlide {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.channel-selection-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.channel-selection-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.channel-selection-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.channel-selection-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.channel-selection-body {
    padding: 25px;
}

.channel-selection-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.channel-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.channel-option-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.channel-option-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.channel-option-btn.telegram-btn:hover {
    border-color: #0088cc;
    background: #f0f9ff;
}

.channel-option-btn.whatsapp-btn:hover {
    border-color: #25D366;
    background: #f0fff4;
}

.channel-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.telegram-btn .channel-icon {
    background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
    color: white;
}

.whatsapp-btn .channel-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.channel-info {
    flex: 1;
}

.channel-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}

.channel-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.channel-option-btn i.fa-chevron-right {
    color: #999;
    font-size: 0.9rem;
}

/* Dark Mode Support */
body.dark-mode .channel-selection-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .channel-selection-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .channel-selection-subtitle {
    color: #ccc;
}

body.dark-mode .channel-option-btn {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .channel-option-btn:hover {
    background: #333;
    border-color: #667eea;
}

body.dark-mode .channel-option-btn.telegram-btn:hover {
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

body.dark-mode .channel-option-btn.whatsapp-btn:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

body.dark-mode .channel-name {
    color: #fff;
}

body.dark-mode .channel-desc {
    color: #aaa;
}

body.dark-mode .channel-option-btn i.fa-chevron-right {
    color: #888;
}

.notif-buttons {
    display: flex;
    gap: 10px;
}

.btn-notif {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-notif:active {
    transform: scale(0.95);
}

.btn-notif.allow {
    background: var(--success);
    color: white;
}

.btn-notif.later {
    background: #f0f0f0;
    color: #666;
}

/* === LOADING SPINNER === */
.loading-screen {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #777;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === PHASE 2 NEW STYLES === */

/* WhatsApp Support Button */
.whatsapp-support-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    margin: 15px 0;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
}

.whatsapp-support-btn:active {
    transform: scale(0.98);
}

/* Install App Card (Profile) */
.install-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.install-icon {
    font-size: 2.5rem;
}

.install-now-btn {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.install-now-btn:active {
    transform: scale(0.95);
}

/* ============================================================ */
/* ⭐ CRED PREMIUM PAYMENT PLANS - LUXURY DESIGN */
/* ============================================================ */

/* Plans Container - Dark Background - Fixed Height - Ultra Compact - NO SCROLL */
.cred-plans-container {
    background: linear-gradient(180deg, 
        var(--cred-dark) 0%, 
        var(--cred-dark-card) 50%, 
        var(--cred-dark) 100%
    );
    min-height: calc(100vh - 130px);
    padding: 16px 14px;
    font-family: 'Inter', 'Roboto', sans-serif;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Plans Header - Ultra Compact - Minimal */
.cred-plans-header {
    text-align: center;
    margin-bottom: 14px;
    flex-shrink: 0;
    padding: 0;
}

.cred-plans-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--cred-text);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cred-plans-subtitle {
    font-size: 0.85rem;
    color: var(--cred-text-secondary);
    font-weight: 400;
    line-height: 1.2;
}

/* Main Plan Card - Glass Morphism - Ultra Compact - NO SCROLL */
.cred-plan-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-purple);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cred-plan-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--shadow-purple-lg);
    background: var(--glass-bg-hover);
}

/* Plan Header - Ultra Compact - Minimal */
.cred-plan-header {
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.cred-plan-icon {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.cred-plan-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--cred-text);
    margin-bottom: 3px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Price Display - Animated - Compact */
.cred-price-display {
    background: linear-gradient(135deg, 
        var(--cred-purple-dark) 0%, 
        var(--cred-purple) 100%
    );
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px var(--cred-purple-glow);
    transition: all 0.4s ease;
}

.cred-price-display.addon-active {
    background: linear-gradient(135deg, 
        #059669 0%, 
        #10B981 100%
    );
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.cred-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.cred-price-currency {
    font-size: 2rem;
    font-weight: 700;
    vertical-align: super;
}

.cred-price-period {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Plan Selector */
.plan-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.plan-option {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--cred-text);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-option.active {
    background: linear-gradient(135deg, var(--cred-purple), var(--cred-purple-dark));
    border-color: var(--cred-purple);
    color: white;
    box-shadow: 0 4px 12px var(--cred-purple-glow);
}

/* Features List - Glass Cards - Ultra Compact - Minimal */
.cred-features-list {
    margin-bottom: 6px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    max-height: 200px;
}

.cred-feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.cred-feature-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.cred-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(5px);
}

.cred-feature-icon {
    font-size: 1.3rem;
    color: var(--cred-purple-light);
}

.cred-feature-text {
    font-size: 0.7rem;
    color: var(--cred-text);
    font-weight: 500;
    line-height: 1.3;
}

/* Add-on Section - Premium Card - Ultra Compact - Minimal */
.cred-addon-card {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(109, 40, 217, 0.1) 100%
    );
    border: 2px solid var(--cred-purple);
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.cred-addon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--cred-purple) 0%, 
        var(--cred-gold) 50%, 
        var(--cred-purple) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.cred-addon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.cred-addon-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--cred-text);
    margin-bottom: 6px;
}

.cred-addon-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cred-purple-light);
    margin-bottom: 10px;
}

.cred-addon-features {
    margin-bottom: 12px;
}

.cred-addon-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--cred-text-secondary);
}

.cred-addon-feature-icon {
    color: var(--cred-purple-light);
    font-size: 1.1rem;
}
/* Toggle Switch - Premium Design */
.cred-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
}

.cred-toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cred-text);
}

.cred-toggle-switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.cred-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cred-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cred-toggle-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cred-toggle-switch input:checked + .cred-toggle-slider {
    background: linear-gradient(135deg, var(--cred-purple), var(--cred-purple-dark));
    box-shadow: 0 0 20px var(--cred-purple-glow);
}

.cred-toggle-switch input:checked + .cred-toggle-slider::before {
    transform: translateX(28px);
}

/* Total & CTA Section - Compact */
.cred-total-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 15px;
    text-align: center;
}

.cred-total-label {
    font-size: 0.9rem;
    color: var(--cred-text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cred-total-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--cred-text);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Subscribe Button - CRED Style - Ultra Compact - Minimal */
.cred-subscribe-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--cred-purple) 0%, var(--cred-purple-dark) 100%);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 8px 24px var(--cred-purple-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cred-subscribe-btn i {
    font-size: 0.9rem;
}

.cred-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cred-subscribe-btn:hover::before {
    width: 400px;
    height: 400px;
}

.cred-subscribe-btn:active {
    transform: scale(0.98);
}

/* Trust Badges - Ultra Compact - Hide to save space */
.cred-trust-badges {
    display: none; /* Hide to save space */
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    flex-shrink: 0;
}

.cred-trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--cred-text-secondary);
}

.cred-trust-icon {
    color: var(--cred-green);
    font-size: 1rem;
}

/* ============================================================ */
/* ⭐ EXPIRY REMINDER SYSTEM */
/* ============================================================ */

.expiry-reminder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.expiry-reminder-overlay.active {
    opacity: 1;
}

.expiry-reminder-content {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.expiry-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.expiry-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.expiry-reminder-content.emotional {
    border: 3px solid #ff6b6b;
}

.expiry-reminder-content.urgent {
    border: 3px solid #ff0000;
    animation: pulse-urgent 1s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.reminder-header {
    text-align: center;
    margin-bottom: 20px;
}

.reminder-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #222;
}

.days-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.reminder-message {
    background: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #ffca28;
}

.reminder-message p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.reminder-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-renew-now {
    width: 100%;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(211,47,47,0.4);
    transition: transform 0.2s;
}

.btn-renew-now:active {
    transform: scale(0.98);
}

.btn-remind-later {
    width: 100%;
    background: transparent;
    border: 2px solid #ddd;
    color: #666;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remind-later:active {
    background: #f5f5f5;
}

/* ============================================================ */
/* FAQ OVERLAY (Profile → Help & Support → FAQs) */
/* ============================================================ */

/* FAQ sits below app header so main header is always visible */
.faq-overlay {
    position: fixed;
    top: var(--header-height, 60px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3500;
    background: #f1f5f9;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #0f172a;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: column;
}

.faq-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scrollable area: takes remaining height and scrolls */
.faq-overlay-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 5rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Minimal top bar: close + title only (no duplicate app header) */
.faq-header {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.faq-header-top .faq-title-mini {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.faq-brand,
.faq-brand-icon,
.faq-subtitle {
    display: none !important;
}

.faq-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.faq-close-btn:hover,
.faq-close-btn:active {
    background: #e2e8f0;
    color: #0f172a;
}

.faq-search-wrap {
    position: relative;
    margin-bottom: 0.75rem;
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search-input::placeholder {
    color: #94a3b8;
}

.faq-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.faq-cats {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.faq-cats::-webkit-scrollbar {
    display: none;
}

.faq-cat-btn {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-cat-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.faq-cat-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.faq-priority-wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 1.5rem;
}

.faq-priority-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font: inherit;
    color: #475569;
}

.faq-priority-toggle:hover {
    border-color: #cbd5e1;
}

.faq-priority-toggle.faq-priority-active {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.3);
    color: #9a3412;
}

.faq-priority-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-priority-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.faq-priority-toggle.faq-priority-active .faq-priority-icon {
    background: #f97316;
    color: #fff;
}

.faq-priority-label {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    line-height: 1.2;
}

.faq-priority-desc {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0.25rem 0 0 0;
}

.faq-priority-toggle .faq-priority-slider {
    width: 3rem;
    height: 1.5rem;
    border-radius: 9999px;
    background: #cbd5e1;
    position: relative;
    transition: background 0.2s;
}

.faq-priority-toggle.faq-priority-active .faq-priority-slider {
    background: #f97316;
}

.faq-priority-toggle .faq-priority-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.faq-priority-toggle.faq-priority-active .faq-priority-slider::after {
    transform: translateX(1.5rem);
}

.faq-main {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1rem;
    margin-top: 1.5rem;
}

.faq-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.faq-section-label {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin: 0;
}

.faq-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item-card:hover {
    border-color: #e2e8f0;
}

.faq-item-card.faq-item-open {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}

.faq-item-card.faq-item-has-priority {
    border-left: 4px solid #f97316;
}

.faq-item-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.15s;
}

.faq-item-btn:active {
    background: #f8fafc;
}

.faq-item-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.faq-item-cat {
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.faq-item-priority {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.5625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.faq-item-priority i {
    font-size: 0.5rem;
}

.faq-item-q {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: #0f172a;
    transition: color 0.2s;
}

.faq-item-open .faq-item-q {
    color: #1d4ed8;
}

.faq-item-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.faq-item-open .faq-item-icon {
    background: #2563eb;
    color: #fff;
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.faq-item-body {
    padding: 0 1.25rem 1.5rem;
    border-top: 1px solid #f8fafc;
    padding-top: 1rem;
}

.faq-item-a {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
}

.faq-item-a .faq-highlight {
    background: #fef08a;
    color: #0f172a;
    border-radius: 2px;
    padding: 0 2px;
}

.faq-item-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.faq-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #f1f5f9;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.faq-share-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.faq-empty {
    padding: 4rem 1.5rem;
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 1.5rem;
}

.faq-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.faq-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.faq-empty p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1.5rem 0;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

.faq-reset-btn {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.faq-reset-btn:hover {
    text-decoration: underline;
}

.faq-tip {
    max-width: 42rem;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 1.5rem;
    color: #fff;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.2);
}

.faq-tip h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-tip p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.faq-tip-highlight {
    color: #fdba74;
    font-style: italic;
}

.faq-footer {
    max-width: 42rem;
    margin: 2rem auto 0;
    padding: 2rem 1rem;
    text-align: center;
}

.faq-footer-brand {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #cbd5e1;
    margin: 0 0 0.5rem 0;
}

.faq-footer-tagline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0 0 1rem 0;
}

.faq-footer-links {
    font-size: 0.75rem;
    color: #94a3b8;
}

.faq-footer-links a {
    color: inherit;
    text-decoration: none;
}

.faq-footer-links a:hover {
    color: #2563eb;
}

.faq-scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #2563eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.5rem);
    transition: all 0.3s;
}

.faq-scroll-top.faq-scroll-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq-scroll-top:hover {
    background: #eff6ff;
}

.faq-priority-toggle .faq-priority-slider::after {
    transform: translateX(2px);
}

/* ============================================================ */
/* PREMIUM DEEP ANALYSIS - LUXURY DESIGN */
/* ============================================================ */

.premium-analysis-container {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    contain: content;
}

.premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    color: white;
}

.premium-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-header-title h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.premium-badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Section Cards */
.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #4caf50;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: none;
}

.analysis-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: none;
}

/* analysis-card hover effects cause main thread freeze — disable completely */
.analysis-card,
.analysis-card * {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
}
.analysis-card:hover,
.analysis-card:hover *,
.intro-card:hover,
.body-card:hover,
.conclusion-card:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.premium-analysis-container,
.premium-analysis-container * {
    transition: none !important;
    animation: none !important;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
}

.card-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Introduction Card */
.intro-card {
    border-left-color: #d32f2f;
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
}

.intro-card .card-icon {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.intro-card .card-title {
    color: #c62828;
}

/* Conclusion Card */
.conclusion-card {
    border-left-color: #d32f2f;
    background: linear-gradient(135deg, #fff 0%, #ffebee 100%);
}

.conclusion-card .card-icon {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.conclusion-card .card-title {
    color: #c62828;
}

/* Body Cards */
.body-card {
    border-left-color: #1976d2;
}

.body-card .card-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.body-card .card-title {
    color: #0d47a1;
}

/* Card Content */
.card-content {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #424242;
}

.card-content p {
    margin: 12px 0;
    text-align: justify;
}

/* Premium Bullet Points */
.premium-bullets {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.premium-bullets li {
    padding: 14px 0 14px 40px;
    position: relative;
    line-height: 1.8;
    border-bottom: 1px dashed #e0e0e0;
    transition: all 0.2s ease;
}

.premium-bullets li:last-child {
    border-bottom: none;
}

.premium-bullets li:hover {
    background: #f5f5f5;
    padding-left: 45px;
}

.premium-bullets li::before {
    content: '◆';
    position: absolute;
    left: 12px;
    top: 14px;
    color: #4caf50;
    font-size: 1.3em;
    font-weight: bold;
}

/* Opinion Cards */
.opinion-card {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-left: 4px solid #9c27b0;
    padding: 14px;
    border-radius: 8px;
    margin: 10px 0;
}

.opinion-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #7b1fa2;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.opinion-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a148c;
}

/* Ethics Questions */
.ethics-questions {
    margin: 12px 0;
}

.ethics-question {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border-left: 4px solid #e91e63;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
    color: #880e4f;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Essay Framework */
.essay-framework {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.essay-part {
    background: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 3px solid #4caf50;
}

.essay-part-title {
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.essay-part-content {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

/* Data Box */
.data-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.data-item {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1565c0;
    margin-bottom: 4px;
}

.data-label {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mains Questions */
.mains-question {
    background: white;
    border: 2px dashed #4caf50;
    padding: 14px;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
    color: #2e7d32;
    line-height: 1.6;
}

.mains-question::before {
    content: 'Q. ';
    font-weight: 800;
    font-style: normal;
    color: #1b5e20;
}

/* GS Tags */
.gs-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #ef5350;
    margin: 4px;
}

.exam-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e1f5fe, #b3e5fc);
    color: #01579b;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid #0277bd;
    margin: 4px;
}

/* Highlight Terms */
.highlight-term {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #f57f17;
    border: 1px solid #fbc02d;
}

/* Statistics Highlight */
.stat-highlight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    color: #0d47a1;
    border: 2px solid #2196f3;
}

/* Link Tags */
.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.link-tag {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #4caf50;
}

.link-tag::before {
    content: '🔗 ';
}
/* Responsive Analysis */
@media (max-width: 600px) {
    .premium-analysis-container {
        padding: 12px;
    }
    .analysis-card {
        padding: 16px;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .data-box {
        grid-template-columns: repeat(2, 1fr);
    }
    .learning-grid {
        column-count: 1;
    }
}

/* Animations Analysis */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-card {
    animation: fadeInUp 0.5s ease-out;
}

.analysis-card:nth-child(2) { animation-delay: 0.1s; }
.analysis-card:nth-child(3) { animation-delay: 0.2s; }
.analysis-card:nth-child(4) { animation-delay: 0.3s; }
.analysis-card:nth-child(5) { animation-delay: 0.4s; }
.analysis-card:nth-child(6) { animation-delay: 0.5s; }

/* ============================================================ */
/* ⭐ TEST TAB - CRED DARK DESIGN (FIXED) */
/* ============================================================ */
/**
 * ============================================================
 * FIX #5: TEST TAB BLANK SCREEN - COMPLETE FIX
 * ============================================================
 * Issue: Conflicting CSS causing blank screen
 * Solution: Clean CSS with proper overflow handling
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════════
   FIX TEST TAB CSS - REPLACE IN styles.css
   ═══════════════════════════════════════════════════════════ */

/* REMOVE ALL OLD test-container CSS AND REPLACE WITH THIS: */

/* Test Container - FIXED VERSION */
.test-container {
    background-color: #f8f9fa;
    height: calc(100vh - 130px);
    padding: 15px 10px;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #222;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

#test-container {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: var(--nav-height);
    height: auto;
    z-index: 1200;
}

#test-container {
    display: none;
}

body.test-tab-active #test-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ─── Scholarship & Test Dashboard ───────────────────────────────────── */
.test-dashboard {
    padding-bottom: 24px;
}

.scholarship-card {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.scholarship-card-active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #059669 100%);
    color: #fff;
}

.scholarship-card-active .scholarship-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.scholarship-card-active .scholarship-price { font-size: 1.5rem; font-weight: 800; }
.scholarship-card-active .scholarship-price small { font-size: 0.75rem; opacity: 0.9; }
.scholarship-card-active .scholarship-card-sub { font-size: 0.9rem; opacity: 0.95; margin-bottom: 14px; }

.scholarship-code-container {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.scholarship-code-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 0.9rem; }
.status-badge.pending { background: #fef08a; color: #854d0e; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; }
.scholarship-code-value { font-family: 'Courier New', monospace; font-size: 1.2rem; font-weight: 800; margin: 8px 0; letter-spacing: 0.05em; }
.scholarship-copy-btn {
    background: rgba(255,255,255,0.9);
    color: #16a34a;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.scholarship-copy-btn:hover { background: #fff; transform: scale(1.02); }
.scholarship-copy-btn.copied { background: #dcfce7; }
.scholarship-code-hint, .scholarship-code-valid { font-size: 0.8rem; margin-top: 8px; opacity: 0.95; }

.scholarship-rule-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.scholarship-rule-box {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
}

.scholarship-rule-box.met { background: rgba(255,255,255,0.25); }
.scholarship-rule-box i { display: block; margin-bottom: 4px; font-size: 1.2rem; }
.scholarship-rule-box strong { font-size: 1.1rem; }
.scholarship-rule-box small { display: block; margin-top: 2px; opacity: 0.9; }

.scholarship-progress-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 10px; }
.scholarship-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px;
}
.scholarship-progress-fill { height: 100%; background: #fff; border-radius: 999px; transition: width 0.5s ease; }

.scholarship-payment-btn, .scholarship-payment-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    color: #16a34a;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
}
.scholarship-payment-btn:hover { background: #f0fdf4; transform: translateY(-1px); }

.scholarship-card-inactive {
    background: #fff;
    border: 2px solid #ef4444;
    color: #1f2937;
}

.scholarship-card-inactive .scholarship-card-title { font-weight: 800; font-size: 1.1rem; color: #b91c1c; margin-bottom: 8px; }
.scholarship-card-inactive .scholarship-card-sub { font-size: 0.9rem; color: #374151; margin-bottom: 12px; }
.scholarship-card-inactive .scholarship-rule-box { background: #fef2f2; border-radius: 10px; padding: 10px; color: #991b1b; }
.scholarship-card-inactive .scholarship-rule-box.met { background: #dcfce7; color: #166534; }

/* Quick stats */
.test-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.test-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.test-stat-icon { font-size: 1.4rem; margin-bottom: 4px; }
.test-stat-value { font-size: 1.25rem; font-weight: 800; color: #1f2937; }
.test-stat-label { font-size: 0.75rem; color: #6b7280; margin-top: 2px; }

/* Today's Test CTA */
.test-today-cta {
    margin-bottom: 16px;
}

.test-today-cta-inner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.test-today-cta-inner .test-today-icon { font-size: 2rem; }
.test-today-cta-inner strong { font-size: 1.1rem; margin-bottom: 4px; }
.test-today-start-btn {
    margin-top: 8px;
    padding: 14px 28px;
    background: #fff;
    color: #dc2626;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.test-today-start-btn:hover { transform: scale(1.03); }
/* Glowing effect for Start Test button */
.test-today-start-btn-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(239, 68, 68, 0.4);
    animation: testStartGlow 2s ease-in-out infinite;
}
@keyframes testStartGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 28px rgba(255, 255, 255, 0.8), 0 0 50px rgba(239, 68, 68, 0.5); }
}

/* Date-wise test list */
.test-date-list-wrap {
    padding-bottom: 24px;
}
.test-date-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #ef4444;
}
.test-date-list-back {
    background: #f3f4f6;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    color: #374151;
}
.test-date-list-back:hover { background: #e5e7eb; }
.test-date-list-title { font-weight: 800; font-size: 1.1rem; color: #1f2937; }
.test-date-list { display: flex; flex-direction: column; gap: 10px; }
.test-date-list-loading, .test-date-list-empty { padding: 20px; text-align: center; color: #6b7280; margin: 0; }
.test-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.test-date-label { font-weight: 700; font-size: 0.95rem; color: #1f2937; }
.test-date-actions { display: flex; align-items: center; gap: 10px; }
.test-date-submitted {
    padding: 8px 14px;
    background: #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
}
.test-date-take-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}
.test-date-take-btn:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.test-date-review-btn {
    padding: 8px 16px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}
.test-date-review-btn:hover { background: #374151; }

/* Chart & Recent */
.test-chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.test-chart-header { font-weight: 800; font-size: 1rem; margin-bottom: 12px; color: #1f2937; }
#test-performance-chart { max-height: 200px; }

.test-recent-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
}

.test-recent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 800; color: #1f2937; }
.test-recent-avg { font-weight: 800; color: #ef4444; font-size: 0.95rem; }
.test-recent-list { display: flex; flex-direction: column; gap: 8px; }
.test-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid #d1d5db;
}

.test-recent-item.passed { border-left-color: #22c55e; }
.test-recent-item.failed { border-left-color: #ef4444; }
.test-recent-icon { font-weight: 800; width: 24px; text-align: center; }
.test-recent-item.passed .test-recent-icon { color: #22c55e; }
.test-recent-item.failed .test-recent-icon { color: #ef4444; }
.test-recent-date { font-weight: 700; font-size: 0.9rem; }
.test-recent-label { font-size: 0.8rem; color: #6b7280; flex: 1; }
.test-recent-score { font-weight: 800; }
.test-recent-item.passed .test-recent-score { color: #22c55e; }
.test-recent-item.failed .test-recent-score { color: #ef4444; }
.test-recent-empty { color: #6b7280; font-size: 0.9rem; margin: 0; padding: 12px 0; }

/* Test flow (questions) */
.test-flow-wrap { padding-bottom: 80px; }
.test-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 2px solid #ef4444;
    font-weight: 800;
    font-size: 0.95rem;
}

.test-flow-date { padding: 8px 16px; background: #fef2f2; font-size: 0.85rem; color: #991b1b; }

/* Language toggle – prominent pill buttons */
.test-flow-lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 16px 16px;
    padding: 8px;
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 2px 8px rgba(0,0,0,0.06);
}
.test-lang-btn {
    flex: 1;
    max-width: 160px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
}
.test-lang-btn:hover {
    color: #334155;
    background: rgba(255,255,255,0.8);
    border-color: #cbd5e1;
}
.test-lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #b91c1c;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}
.test-lang-btn.active:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

.test-instructions-box {
    margin: 14px 16px;
    padding: 14px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #374151;
}

.test-instructions-box ul { margin: 8px 0 0 18px; padding: 0; }

.test-question-card {
    margin: 14px 16px;
    padding: 18px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.test-question-card .test-question-number { font-size: 0.85rem; color: #6b7280; margin-bottom: 8px; }
.test-question-card .test-question-text { font-size: 1rem; line-height: 1.5; color: #1f2937; margin-bottom: 16px; font-weight: 600; }

.test-options { display: flex; flex-direction: column; gap: 10px; }
.test-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-option:hover { background: #f3f4f6; }
.test-option.selected { border-color: #ef4444; background: #fef2f2; }
.test-option input[type="radio"] { margin-top: 3px; accent-color: #ef4444; }
.test-option span { flex: 1; font-size: 0.95rem; color: #374151; }

.test-nav-buttons { display: flex; gap: 10px; margin-top: 16px; }
.test-prev-btn, .test-next-btn {
    padding: 10px 18px;
    background: #f3f4f6;
    color: #1f2937;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.test-next-btn { background: #ef4444; color: #fff; }
.test-next-btn:hover { background: #dc2626; }

.test-flow-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #fff;
    border-top: 2px solid #ef4444;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

.test-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.test-submit-btn:hover:not(.disabled) { transform: scale(1.02); }
.test-submit-btn.disabled { background: #d1d5db; cursor: not-allowed; box-shadow: none; }

/* Test results */
.test-results-wrap { padding: 16px; padding-bottom: 24px; }
.test-results-score-card {
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.test-results-score-card.passed { background: linear-gradient(135deg, #22c55e, #16a34a); }
.test-results-score-card.failed { background: linear-gradient(135deg, #ef4444, #dc2626); }
.test-results-score-card h2 { margin: 0 0 4px 0; font-size: 1.2rem; }
.test-results-date { font-size: 0.85rem; opacity: 0.95; margin-bottom: 12px; }
.test-results-score-value { font-size: 2.5rem; font-weight: 900; margin: 8px 0; }
.test-results-score-label { font-size: 1rem; margin-bottom: 12px; opacity: 0.95; }
.test-results-message { font-size: 0.95rem; font-weight: 700; padding: 10px; background: rgba(255,255,255,0.2); border-radius: 10px; }

.test-results-review-section { margin-top: 20px; }
.test-results-review-section h3 { font-size: 1rem; margin-bottom: 12px; color: #1f2937; }
.test-review-item {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 4px solid #d1d5db;
}

.test-review-item.correct { background: #dcfce7; border-left-color: #22c55e; }
.test-review-item.wrong { background: #fef2f2; border-left-color: #ef4444; }
.test-review-q { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: #374151; line-height: 1.45; word-wrap: break-word; }
.test-review-ans, .test-review-correct { font-size: 0.9rem; color: #4b5563; margin-bottom: 4px; }
.test-review-explanation { margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 8px; font-size: 0.9rem; color: #475569; line-height: 1.5; }
.test-results-no-review { padding: 16px; text-align: center; color: #6b7280; margin: 0; }

.test-results-locked {
    margin-top: 20px;
    padding: 18px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    text-align: center;
}

.test-results-locked p { margin: 0 0 10px 0; color: #374151; }
.test-results-cta-btn {
    margin-top: 12px;
    padding: 14px 24px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}
.test-results-cta-btn:hover { background: #dc2626; }

.test-results-share-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: center;
}

.test-results-share-label {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 10px 0;
}

.test-results-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.test-results-share-btn:hover { opacity: 0.95; }

.test-results-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.test-results-back-btn {
    padding: 14px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
}
.test-results-news-btn {
    padding: 14px;
    background: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Test Heading */
.test-heading {
    font-size: 1.3rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Test Tabs Header - 50/50 Mobile Fit */
.test-tabs-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.test-tab-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    color: #8B5CF6;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-tab-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-color: #8B5CF6;
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.test-tab-btn:active {
    transform: scale(0.98);
}

/* Test Content Panels */
.test-content-panel {
    display: none;
}

.test-content-panel.active {
    display: block;
}

/* Test Type Grid */
.test-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* Test Type Cards */
.test-type-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #8B5CF6;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.test-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
    border-color: #A78BFA;
}

/* Test Type Title */
.test-type-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Custom HTML Box */
.custom-html-box {
    background: #0f0f0f;
    border-radius: 12px;
    padding: 15px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Test Type Button */
.test-type-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

.test-type-btn:hover {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.test-type-btn:active {
    transform: scale(0.98);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .test-container {
        height: calc(100vh - 120px);
        padding: 15px 10px;
    }
    
    .test-heading {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .test-tabs-header {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .test-tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .test-type-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .test-type-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .custom-html-box {
        padding: 12px;
        min-height: 100px;
    }
    
    .prelims-question-text {
        font-size: 1rem;
    }
    
    .prelims-option-btn {
        padding: 12px;
    }
    
    .prelims-nav-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .prelims-submit-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* PRELIMS Results Mobile */
    .prelims-results-summary {
        padding: 20px 15px;
    }
    
    .prelims-score-number {
        font-size: 2.5rem;
    }
    
    .prelims-stats-grid {
        gap: 10px;
    }
    
    .prelims-stat-item {
        padding: 12px 8px;
    }
    
    .prelims-stat-value {
        font-size: 1.5rem;
    }
    
    .prelims-review-question {
        padding: 15px 12px;
    }
    
    /* MAINS Mobile */
    .mains-quota-display {
        padding: 15px 12px;
    }
    
    .mains-quota-stats {
        gap: 10px;
    }
    
    .mains-quota-item {
        padding: 12px 8px;
    }
    
    .mains-quota-value {
        font-size: 1.5rem;
    }
    
    .mains-form-card {
        padding: 15px 12px;
    }
    
    .mains-form-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .mains-form-group {
        margin-bottom: 15px;
    }
    
    .mains-textarea {
        min-height: 150px;
        font-size: 0.9rem;
    }
    
    .mains-image-preview-container {
        grid-template-columns: 1fr;
    }
    
    .mains-submit-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Ensure no conflicts */
#test-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Test tab active state */
body.test-tab-active {
    overflow-x: hidden;
    overflow-y: auto; /* Allow scrolling in test tab */
}

body.test-tab-active .test-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.test-tab-active #feed-container {
    display: none !important;
}



/* ============================================================ */
/* ⭐ SWIPEABLE CARDS - HORIZONTAL (Instagram Style) */
/* ============================================================ */

#feed-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.swiper-container {
    width: 100%;
    height: calc(var(--app-vh, 1vh) * 100 - 130px);
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    width: 100%;
    max-width: 600px;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important;
    -webkit-overflow-scrolling: touch;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* iOS Safari stability: avoid nested momentum layers + expensive transitions */
body.ios .swiper-slide {
    -webkit-overflow-scrolling: auto;
    transition: none;
}

body.ios .swipe-indicator {
    backdrop-filter: none;
}

.swiper-card-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 8px 10px;
}

.swiper-card-wrapper > *:first-child {
    margin-top: 0 !important;
}

.swiper-slide .flash-card {
    margin-bottom: 12px;
}

.swiper-slide .date-divider {
    margin-top: 0;
    margin-bottom: 12px;
}

/* Swipe Indicator */
.swipe-indicator {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    animation: fadeInBounce 1s ease-out, pulseGlow 2s infinite;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.swipe-indicator-icon {
    font-size: 1.3rem;
    animation: slideLeft 1.5s ease-in-out infinite;
}

.swipe-indicator-text {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.swiper-container.swiped .swipe-indicator {
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(211, 47, 47, 0.6);
    }
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: 10px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.5;
    margin: 0 4px !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* Scrollbar */
.swiper-slide::-webkit-scrollbar {
    width: 4px;
}

.swiper-slide::-webkit-scrollbar-track {
    background: transparent;
}

.swiper-slide::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.swiper-slide::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================================ */
/* ⭐ IOS INSTALL INSTRUCTIONS POPUP */
/* ============================================================ */

.ios-install-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}

.ios-install-popup.active {
    display: flex;
}

.ios-install-content {
    background: white;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s;
}

.ios-install-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ios-install-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.ios-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.ios-close-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.ios-install-steps {
    padding: 25px 20px;
}

.install-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.install-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

.step-text strong {
    color: #007AFF;
    font-weight: 600;
}

.ios-install-note {
    background: #f0f9ff;
    border-left: 4px solid #007AFF;
    padding: 15px;
    margin: 0 20px 20px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.ios-install-close {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.ios-install-close:active {
    transform: scale(0.98);
}

/* ============================================================ */
/* ⭐ IAS TAB - 281-DAY JOURNEY */
/* ============================================================ */
/**
 * ============================================================
 * FIX #3: IAS JOURNEY - CHAMPAGNE GOLD DESIGN
 * ============================================================
 * Design: Black background with champagne gold accents
 * Style: Luxury, premium feel
 * ============================================================
 */

/* ═══════════════════════════════════════════════════════════
   CHAMPAGNE GOLD IAS JOURNEY - ADD TO styles.css
   ═══════════════════════════════════════════════════════════ */

/* IAS Journey Container - Glassmorphism Red-White Theme */
.ias-journey-container {
    padding: 20px 15px;
    background: linear-gradient(135deg, #ffebee 0%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
}

/* Glass Card Base Style - Red-White Theme */
.ias-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.ias-glass-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.15);
    transform: translateY(-2px);
}

/* Journey Header Card - Glassmorphism */
.ias-journey-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(211, 47, 47, 0.2);
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1);
}

.ias-journey-title {
    text-align: center;
    margin-bottom: 20px;
}

.ias-journey-title h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ias-journey-subtitle {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

/* Stats Grid - Blue Theme Boxes */
.ias-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ias-stat-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.ias-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.2);
    border-color: rgba(211, 47, 47, 0.4);
    background: rgba(255, 255, 255, 0.85);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Progress Bar - Red Theme */
.ias-progress-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-percentage {
    font-size: 1.3rem;
    font-weight: 800;
    color: #d32f2f;
}

.progress-bar-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(211, 47, 47, 0.2);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f 0%, #f44336 50%, #d32f2f 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(211, 47, 47, 0.4);
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Day Cards - Glassmorphism Red-White Theme */
.ias-day-cards {
    padding: 0;
    background: transparent;
}

.ias-day-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1);
}

.ias-day-card:hover {
    border-color: rgba(211, 47, 47, 0.4);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.15);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.85);
}

.ias-day-card.active {
    border-color: rgba(211, 47, 47, 0.5);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.2);
}

.ias-day-card.locked {
    opacity: 0.6;
    border-color: rgba(211, 47, 47, 0.1);
}

.ias-day-card.completed {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
}

.day-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #d32f2f;
}

/* ═══════════════════════════════════════════════════════════ */
/* NEW IAS TAB SECTIONS - GLASSMORPHISM RED-WHITE THEME */
/* ═══════════════════════════════════════════════════════════ */

/* Section Header */
.section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(211, 47, 47, 0.2);
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 0;
}

.section-header.saved-library-header h3 {
    width: 100%;
    text-align: center;
}

/* Section 1: Today's Focus */
.todays-focus-content {
    text-align: center;
}

.focus-day-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.focus-subject {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.subject-emoji {
    font-size: 1.5rem;
}

.subject-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d32f2f;
}

.focus-book {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.focus-chapters {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
    white-space: pre-line;
}

.focus-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.focus-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-complete {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-complete.completed,
.btn-complete:disabled {
    background: #e0e0e0;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
    opacity: 0.9;
}

.btn-video {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.btn-video:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #DC2626 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.btn-video:active {
    transform: scale(0.98);
}

/* Section 2: Your Progress */
.progress-content {
    text-align: center;
}

.progress-percentage-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 15px 0;
}

.progress-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Target box spans 2 columns in mobile view */
.progress-stat-item:last-child {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .progress-stat-item:last-child {
        grid-column: span 1;
    }
}

.progress-stat-item.progress-target {
    grid-column: span 2;
    justify-content: center;
}

.progress-stat-item.progress-target .stat-info {
    text-align: center;
}

@media (min-width: 768px) {
    .progress-stat-item.progress-target {
        grid-column: span 1;
    }
}

.progress-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    flex: 1;
    text-align: left;
}

.stat-value-small {
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
}

.stat-label-small {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section 3: Week Schedule */
.week-schedule-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(211, 47, 47, 0.15);
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    font-weight: 700;
    color: #d32f2f;
    min-width: 120px;
}

.schedule-status {
    font-size: 1rem;
}

.schedule-topic {
    color: #333;
    flex: 1;
    min-width: 0;
    white-space: pre-line;
    line-height: 1.35;
}

.week-day-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.week-day-item.today {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.3);
}

.week-day-item.past {
    opacity: 0.7;
}

.week-day-icon {
    font-size: 1.5rem;
}

.week-day-info {
    flex: 1;
}

.week-day-number {
    font-weight: 700;
    color: #d32f2f;
    font-size: 1rem;
}

.week-day-label {
    font-size: 0.85rem;
    color: #666;
}

.week-day-subject {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d32f2f;
    margin-top: 4px;
}

.week-day-chapters {
    font-size: 0.8rem;
    color: #888;
    margin-top: 2px;
}

.view-calendar-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 10px;
    color: #d32f2f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-calendar-btn:hover {
    background: rgba(211, 47, 47, 0.2);
    transform: translateY(-2px);
}


/* Section 6: Interview Group */
.interview-group-content {
    text-align: center;
}

.telegram-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}


/* Test Performance - Mains Breakdown */
.mains-breakdown-section {
    margin-bottom: 20px;
}

.mains-paper-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mains-paper-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.1);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.paper-name {
    font-weight: 700;
    color: #d32f2f;
    font-size: 1rem;
}

.paper-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.paper-score, .paper-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.paper-label {
    font-size: 0.9rem;
    color: #666;
}

.paper-value {
    font-weight: 700;
    color: #d32f2f;
    font-size: 1rem;
}

/* Prelims History Section */
.prelims-history-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prelims-history-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.prelims-history-item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateY(-2px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-item-number {
    font-weight: 700;
    color: #d32f2f;
    font-size: 1rem;
}

.history-item-date {
    font-size: 0.85rem;
    color: #666;
}

.history-item-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.history-stat {
    display: flex;
    gap: 5px;
    align-items: center;
}

.history-stat .stat-label {
    font-size: 0.85rem;
    color: #666;
}

.history-stat .stat-value {
    font-weight: 700;
    color: #d32f2f;
    font-size: 0.95rem;
}

.history-stat .stat-value.correct {
    color: #4caf50;
}

.history-stat .stat-value.wrong {
    color: #f44336;
}

.history-review-btn {
    width: 100%;
    padding: 10px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 8px;
    color: #d32f2f;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-review-btn:hover {
    background: rgba(211, 47, 47, 0.2);
    transform: translateY(-1px);
}

.view-all-history-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Prelims History - Single Card Design */
.prelims-history-card {
    position: relative;
}

.prelims-summary-outside {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prelims-summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.summary-stat-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.summary-stat-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.summary-stat-item.highlight {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.3);
}

.summary-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 5px;
}

.summary-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}



.prelims-empty-state {
    text-align: center;
    padding: 30px 20px;
}

.prelims-empty-state p {
    color: #666;
    margin-bottom: 15px;
}

.prelims-take-test-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prelims-take-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}


.btn-start {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 165, 245, 0.4);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 165, 245, 0.6);
}

.btn-complete {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.btn-unlock {
    background: #666;
    color: #ccc;
    cursor: not-allowed;
}

/* Remove "Coming Soon" Section */
.full-journey-preview {
    display: none !important; /* HIDE COMPLETELY */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ias-journey-header {
        padding: 20px 15px;
        margin: -15px -15px 0 -15px;
    }
    
    .ias-journey-title h2 {
        font-size: 1.4rem;
    }
    
    .ias-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .ias-stat-box {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .ias-day-cards {
        padding: 15px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ias-day-card {
    animation: fadeInUp 0.5s ease-out;
}

.ias-day-card:nth-child(1) { animation-delay: 0.1s; }
.ias-day-card:nth-child(2) { animation-delay: 0.2s; }
.ias-day-card:nth-child(3) { animation-delay: 0.3s; }
.ias-day-card:nth-child(4) { animation-delay: 0.4s; }
.ias-day-card:nth-child(5) { animation-delay: 0.5s; }


/* ============================================================ */
/* ⭐ PREMIUM POLISH - PHASE 2 ENHANCEMENTS */
/* ============================================================ */

/* 1. LOADING SKELETON SCREENS */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    border-radius: 12px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 85%;
}

/* 2. SMOOTH PAGE TRANSITIONS */
.page-enter {
    opacity: 0;
    transform: translateY(20px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.page-exit {
    opacity: 1;
}

.page-exit-active {
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

/* 3. BUTTON MICRO-INTERACTIONS */
button, .btn, .nav-item, .select-plan-btn, .btn-start-trial {
    position: relative;
    overflow: hidden;
}

button:not(:disabled):hover,
.btn:hover,
.select-plan-btn:hover,
.btn-start-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

button:not(:disabled):active,
.btn:active,
.select-plan-btn:active,
.btn-start-trial:active {
    transform: translateY(0) scale(0.98);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 4. SUCCESS CELEBRATION ANIMATIONS */
.success-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.success-icon-bounce {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.confetti-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f44336;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* 5. EMPTY STATES */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 20px;
}

.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.empty-state-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Support WhatsApp Button */
.support-whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.support-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4) !important;
}

.support-whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 6. ERROR HANDLING */
.error-message {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 16px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.error-icon { 
    font-size: 1.5rem; 
    color: #ff9800; 
    flex-shrink: 0; 
}

.error-content h4 { 
    margin: 0 0 8px 0; 
    color: #e65100; 
    font-size: 1rem; 
}

.error-content p { 
    margin: 0 0 12px 0; 
    color: #666; 
    line-height: 1.5; 
    font-size: 0.9rem; 
}

.error-actions { 
    display: flex; 
    gap: 10px; 
}

.btn-retry {
    background: #ff9800;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-retry:hover { 
    background: #f57c00; 
    transform: translateY(-1px); 
}

.btn-support {
    background: transparent;
    border: 2px solid #ff9800;
    color: #ff9800;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-support:hover { 
    background: #ff9800; 
    color: white; 
}

/* 7. CARD HOVER EFFECTS */
.flash-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card:hover .news-title {
    color: var(--primary);
    transition: color 0.2s;
}

/* 8. LOADING STATES */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.loading-spinner-modern {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-text {
    margin-top: 20px;
    color: #666;
    font-weight: 600;
    animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 9. PROGRESS INDICATORS */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #ff6b6b);
    transition: width 0.3s ease;
    animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(211, 47, 47, 0.5); }
    50% { box-shadow: 0 0 20px rgba(211, 47, 47, 0.8); }
}

/* 10. TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #323232;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: toast-in 0.3s ease-out;
    max-width: 90%;
}

.toast.success { background: #4caf50; }
.toast.error { background: #f44336; }
.toast.warning { background: #ff9800; }

@keyframes toast-in {
    from { transform: translateX(-50%) translateY(100px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* 11. FOCUS STATES */
button:focus-visible,
input:focus-visible,
select:focus-visible,
.nav-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* 12. SMOOTH SCROLLING */
html { scroll-behavior: smooth; }

/* 13. ENTRANCE ANIMATIONS */
.card-fade-in { animation: cardFadeIn 0.4s ease-out forwards; }

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-fade-in:nth-child(1) { animation-delay: 0.05s; }
.card-fade-in:nth-child(2) { animation-delay: 0.1s; }
.card-fade-in:nth-child(3) { animation-delay: 0.15s; }
.card-fade-in:nth-child(4) { animation-delay: 0.2s; }
.card-fade-in:nth-child(5) { animation-delay: 0.25s; }

/* 14. PAYMENT SUCCESS CONFETTI */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.payment-success-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    animation: checkmarkBounce 0.6s 0.3s backwards;
}

@keyframes checkmarkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-checkmark i { font-size: 3rem; color: white; }

/* ============================================================ */
/* ⭐ SAVE NEWS FEATURE - COMPLETE STYLES */
/* ============================================================ */

/* Saved News Section */
.saved-news-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    min-height: calc(100vh - 130px);
    padding: 15px 10px;
}

.saved-news-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saved-category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-category-card:hover {
    border-color: #4caf50;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.saved-category-card:active {
    transform: translateX(3px);
}

.category-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
}

.category-count {
    font-size: 0.85rem;
    color: #666;
}

/* Saved Article Item */
.saved-article-item {
    transition: opacity 0.3s ease;
}

.saved-article-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.saved-article-item button:active {
    transform: translateY(0);
}

/* ============================================================ */
/* ⭐ SAVED ARTICLE READER */
/* ============================================================ */

.saved-article-reader {
    min-height: calc(100vh - 130px);
    background: white;
    padding-bottom: 20px;
}

.reader-header {
    position: sticky;
    top: 60px;
    background: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reader-back-btn,
.reader-audio-btn {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #333;
    transition: all 0.2s;
}

.reader-audio-btn {
    display: none !important;
}

.reader-back-btn:hover,
.reader-audio-btn:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.reader-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.reader-content {
    padding: 20px 15px;
}

.reader-meta {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.reader-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.reader-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.reader-why-news {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #1976d2;
}

.why-news-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1565c0;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.why-news-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.reader-analysis {
    margin-top: 25px;
}

.reader-analysis h3 {
    font-size: 1.2rem;
    color: #1b5e20;
    margin-bottom: 15px;
}

.reader-navigation {
    position: sticky;
    bottom: 70px;
    background: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.reader-nav-btn {
    flex: 1;
    max-width: 150px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.reader-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.reader-nav-btn:active {
    transform: translateY(0);
}

/* ============================================================ */
/* ⭐ DARK MODE SUPPORT */
/* ============================================================ */

body.dark-mode { 
    background: #121212; 
    color: #e0e0e0; 
}

body.dark-mode .app-header { 
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%); 
}

body.dark-mode .flash-card { 
    background: #1e1e1e; 
    color: #e0e0e0; 
}

body.dark-mode .date-divider { 
    background: #1e1e1e; 
    color: #b0b0b0; 
}

body.dark-mode .bottom-nav { 
    background: #1e1e1e; 
    border-top-color: #333; 
}

body.dark-mode .news-title { 
    color: #f0f0f0; 
}

body.dark-mode .news-summary { 
    color: #b0b0b0; 
}

body.dark-mode .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .swiper-pagination-bullet-active {
    background: var(--primary);
}

body.dark-mode .swipe-indicator {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
}

body.dark-mode .saved-news-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

body.dark-mode .saved-category-card {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .saved-category-card:hover {
    border-color: #4caf50;
}

body.dark-mode .category-icon {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
}

body.dark-mode .category-name {
    color: #f0f0f0;
}

body.dark-mode .category-count {
    color: #b0b0b0;
}

body.dark-mode .saved-article-reader {
    background: #1e1e1e;
}

body.dark-mode .reader-header {
    background: #1e1e1e;
    border-bottom-color: #333;
}

body.dark-mode .reader-title {
    color: #f0f0f0;
}

body.dark-mode .reader-summary {
    color: #b0b0b0;
}

body.dark-mode .reader-navigation {
    background: #1e1e1e;
    border-top-color: #333;
}

/* ============================================================ */
/* ⭐ RESPONSIVE UTILITIES */
/* ============================================================ */

@media (max-width: 600px) {
    .swiper-container {
        height: calc(100vh - 130px);
    }
    .swiper-card-wrapper {
        padding: 5px 8px;
    }
    .swipe-indicator {
        bottom: 70px;
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    .swiper-pagination {
        bottom: 8px !important;
    }
}

@media (min-width: 768px) {
    .main-container { 
        max-width: 600px; 
    }
    .test-type-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 1024px) {
    .swiper-container { 
        overflow: visible !important; 
    }
    .swiper-slide { 
        width: 600px !important; 
    }
    /* No blur on laptop: keep all visible slides sharp to avoid "everything blur" */
    .swiper-slide:not(.swiper-slide-active) { 
        opacity: 0.85; 
        transform: scale(0.96); 
    }
    .swiper-slide-active { 
        opacity: 1 !important; 
        transform: scale(1) !important; 
        z-index: 10; 
    }
    .swiper-wrapper { 
        align-items: center; 
    }
}

/* ============================================================
   NEW JOBS TAB - GLASSMORPHISM DESIGN
   ============================================================
*/

/* Jobs Tab CSS Variables */
.jobs-tab {
    --primary-red: #D32F2F;
    --dark-red: #B71C1C;
    --glass-white: rgba(255, 255, 255, 0.95);
    --bg-light: #F8F9FA;
    --text-dark: #2D3436;
    --telegram-blue: #0088cc;
}

.jobs-tab {
    background: var(--bg-light);
    min-height: auto;
    padding-bottom: 24px;
    padding-bottom: 0;
    margin-bottom: 0;
    overflow-x: hidden;
}

/* Header - Centered (normal background); line below box only, in red */
.jobs-header-center {
    background: #b91c1c;
    padding: 14px 15px;
    color: #fff;
    border-bottom: none;
}

.jobs-title-main {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.jobs-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.jobs-notify-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.jobs-notify-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}
.jobs-notify-btn.active i {
    animation: bellRing 1.2s ease-in-out infinite;
}

/* Filter Bar */
.jobs-tab .jobs-filter-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.jobs-tab .jobs-filter-bar .state-select {
    flex: 1;
    min-width: 140px;
}

/* Remove stats bar - not needed */
.jobs-tab .jobs-stats-bar {
    display: none;
}

.jobs-tab .glass-inner-box,
.jobs-tab .state-select {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 0.75rem;
    color: #374151;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    .jobs-tab .glass-inner-box,
    .jobs-tab .state-select {
        font-size: 0.875rem;
    }
}

.jobs-tab .state-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D32F2F' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.jobs-tab .glass-inner-box:hover,
.jobs-tab .state-select:hover {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jobs-tab .glass-inner-box i,
.jobs-tab .state-select + i {
    color: var(--primary-red);
    margin-left: 8px;
    font-size: 0.75rem;
}

/* Near Expiry Button (filter bar) */
.jobs-tab .btn-near-expiry {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 16px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.jobs-tab .btn-near-expiry:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #f87171;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.15);
}
.jobs-tab .btn-near-expiry.active {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.35);
}
.jobs-tab .btn-near-expiry:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.jobs-tab .btn-near-expiry i {
    font-size: 0.9rem;
}

/* Primary Red Button (for error states) */
.jobs-tab .btn-primary-red {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-tab .btn-primary-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Swiper Viewport */
.jobs-tab .jobs-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.jobs-tab .jobs-view-toggle {
    display: none;
}
.jobs-tab .jobs-view-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.jobs-tab .jobs-view-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.jobs-tab .jobs-view-btn.active {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.jobs-tab .jobs-content-area {
    margin-top: 12px;
    min-height: min(420px, calc(100vh - 280px));
    display: flex;
    flex-direction: column;
    width: 100%;
}
.jobs-tab .jobs-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}
.jobs-tab .jobs-empty-inline {
    padding: 24px 16px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 14px;
    color: #b91c1c;
    font-size: 0.9rem;
    font-weight: 600;
}
.jobs-tab .job-row {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
/* Job row alternating colors (7 then repeat) - more visible */
.jobs-tab .job-row-color-0 { background: #e8e8e8; }
.jobs-tab .job-row-color-1 { background: #ffffff; }
.jobs-tab .job-row-color-2 { background: #e3f2fd; }
.jobs-tab .job-row-color-3 { background: #f5f5f5; }
.jobs-tab .job-row-color-4 { background: #fff8e1; }
.jobs-tab .job-row-color-5 { background: #fafafa; }
.jobs-tab .job-row-color-6 { background: #e0f2f1; }
.jobs-tab .job-row-expired { opacity: 0.75; }
.jobs-tab .job-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.jobs-tab .job-row-state {
    font-size: 0.8rem;
    font-weight: 800;
    color: #b91c1c;
    text-transform: uppercase;
}
.jobs-tab .job-row-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.jobs-tab .job-row-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 10px;
}
.jobs-tab .job-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jobs-tab .job-row-actions-notification {
    margin-bottom: 12px;
    width: 100%;
}
.jobs-tab .job-row-actions .job-row-btn-notification {
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    padding: 12px 18px;
    font-size: 0.85rem;
}
.jobs-tab .job-row-actions-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
}
.jobs-tab .job-row-actions-three .job-row-btn {
    margin: 0;
}
.jobs-tab .job-row-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.jobs-tab .job-row-btn.secondary {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.jobs-tab .job-row-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.jobs-tab .job-row-btn.secondary:hover { background: #fef2f2; }
.jobs-tab .job-row-btn-apply {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #fff !important;
    border: none !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.jobs-tab .job-row-btn-apply:hover { background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important; box-shadow: 0 2px 10px rgba(185,28,28,0.3); }

/* Join Jobs button (telegram blue) - in card */
.jobs-tab .job-row-btn-join {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}
.jobs-tab .job-row-btn-join:hover {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

/* Share button - different color (purple) + right-to-left glow - not same as Join Jobs */
.jobs-tab .job-row-btn-share {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 2px 0 12px rgba(124, 58, 237, 0.5), 4px 0 20px rgba(91, 33, 182, 0.35);
    position: relative;
    overflow: hidden;
}
.jobs-tab .job-row-btn-share::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: share-glow-rtl 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes share-glow-rtl {
    0% { left: 100%; opacity: 0; }
    50% { left: -50%; opacity: 1; }
    100% { left: -100%; opacity: 0; }
}
.jobs-tab .job-row-btn-share:hover {
    box-shadow: 2px 0 16px rgba(124, 58, 237, 0.6), 6px 0 24px rgba(91, 33, 182, 0.4);
}

.jobs-tab .swiper-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jobs-tab .job-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    width: 100%;
    will-change: transform;
    flex: 1;
}

/* Job Slide - Full width, fills content area */
.jobs-tab .job-container-single .job-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.jobs-tab .job-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .jobs-tab .job-slide {
        flex: 0 0 100%;
        padding: 0 10px;
    }
}

/* Glass Card */
.jobs-tab .glass-card {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #FFFFFF;
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.jobs-tab .glass-card:hover {
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.15);
    transform: translateY(-4px);
}

.jobs-tab .job-card-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    gap: 0;
}
.jobs-tab .job-card-content .job-card-header {
    flex-shrink: 0;
}
.jobs-tab .job-card-content .job-title {
    flex-shrink: 0;
}
.jobs-tab .job-card-content .info-grid {
    flex: 1;
    min-height: 0;
}
.jobs-tab .job-card-content .btn-get-notification,
.jobs-tab .job-card-content .action-row {
    flex-shrink: 0;
}

/* Urgent Card - Red Background */
.jobs-tab .job-card-urgent {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 2px solid var(--primary-red);
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.25);
}

.jobs-tab .job-card-urgent .job-title,
.jobs-tab .job-card-urgent .info-value,
.jobs-tab .job-card-urgent .job-state-name {
    color: var(--dark-red);
    font-weight: 900;
}

/* Expired Card */
.jobs-tab .job-card-expired {
    opacity: 0.6;
    background: #F5F5F5;
}

/* Days Left Badge */
.jobs-tab .days-left-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.jobs-tab .days-left-safe {
    background: #FFF5F5;
    color: #C53030;
    border: 1px solid #FED7D7;
}

.jobs-tab .days-left-warning {
    background: #FFF5F5;
    color: #C53030;
    border: 1px solid #FED7D7;
}

.jobs-tab .days-left-urgent {
    background: #FFF5F5;
    color: #C53030;
    border: 1px solid #FED7D7;
    font-weight: 900;
}

.jobs-tab .days-left-expired {
    background: #E0E0E0;
    color: #616161;
    border: 1px solid #CCCCCC;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Job Card Header */
.jobs-tab .job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
}

.jobs-tab .job-state-name {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
    line-height: 1.2;
}

/* Job Title */
.jobs-tab .job-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 20px 0;
}

/* 2x2 Info Grid */
.jobs-tab .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.jobs-tab .info-box {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    padding: 8px;
}

.jobs-tab .info-label {
    font-size: 0.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.jobs-tab .info-value {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-dark);
    word-break: break-word;
    line-height: 1.3;
}

/* Action Box */
.jobs-tab .action-box {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.jobs-tab .action-box:hover {
    background: #FFF5F5;
    border-color: #FED7D7;
}

.jobs-tab .action-box:active {
    background: #FFF5F5;
    border-color: #FED7D7;
    transform: scale(0.95);
}

.jobs-tab .action-box i {
    color: var(--primary-red);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

.jobs-tab .action-box span {
    font-size: 0.5625rem;
    font-weight: 900;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Apply Now - background, no underline */
.jobs-tab .action-box-apply {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    text-decoration: none;
}
.jobs-tab .action-box-apply span,
.jobs-tab .action-box-apply i { color: #fff !important; }
.jobs-tab .action-box-apply:hover {
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
}

/* OFFICIAL NOTIFICATION - greenish, bigger, no underline */
.jobs-tab .btn-get-notification {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 14px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    text-decoration: none;
    box-sizing: border-box;
}
.jobs-tab .btn-get-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}
.jobs-tab .btn-get-notification:active {
    transform: scale(0.98);
}

/* Action Row */
.jobs-tab .action-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 0;
}
.jobs-tab .action-row a.action-box {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.jobs-tab .action-box-join {
    background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%) !important;
    border-color: #0088cc !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}
.jobs-tab .action-box-join i,
.jobs-tab .action-box-join span { color: #fff !important; }
.jobs-tab .action-box-share {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    box-shadow: 2px 0 12px rgba(124, 58, 237, 0.5), 4px 0 20px rgba(91, 33, 182, 0.35);
    position: relative;
    overflow: hidden;
}
.jobs-tab .action-box-share i,
.jobs-tab .action-box-share span { color: #fff !important; }
.jobs-tab .action-box-share::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: share-glow-rtl 2s ease-in-out infinite;
    pointer-events: none;
}
.jobs-tab .action-box-share:hover {
    box-shadow: 2px 0 16px rgba(124, 58, 237, 0.6), 6px 0 24px rgba(91, 33, 182, 0.4);
}

/* Navigation */
.jobs-tab .jobs-navigation {
    display: none !important;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

@media (min-width: 1024px) {
    .jobs-tab .jobs-navigation {
        display: flex;
    }
}

.jobs-tab .nav-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-white);
    border: 2px solid rgba(211, 47, 47, 0.2);
    color: var(--primary-red);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.jobs-tab .nav-arrow:hover {
    background: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

/* Dot Indicators */
.jobs-tab .job-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.jobs-tab .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.jobs-tab .dot.active {
    background: var(--primary-red);
    width: 24px;
    border-radius: 4px;
}

.jobs-tab .swipe-hint {
    text-align: center;
    color: #999;
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Dots Wrapper */
.jobs-tab .job-dots-wrapper {
    display: none !important;
    flex-direction: column;
    align-items: center;
    margin: 20px 0 5px 0;
    padding-bottom: 0;
}

.jobs-tab .swipe-hint {
    margin-top: 8px;
    margin-bottom: 5px;
    font-size: 0.65rem;
}

/* Toast Notification */
.jobs-tab #job-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a1a;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jobs-tab #job-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Stats Counter */
.jobs-tab .jobs-stats-bar {
    max-width: 1200px;
    margin: 0 auto 15px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.jobs-tab .stat-box {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.jobs-tab .stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
}

.jobs-tab .stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    margin-top: 4px;
}

/* Empty State */
.jobs-tab .jobs-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.jobs-tab .jobs-empty-state i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.jobs-tab .jobs-empty-state p {
    color: #666;
    font-weight: 600;
    margin: 10px 0;
}

/* Loading Skeleton */
.jobs-tab .job-skeleton {
    background: var(--glass-white);
    border-radius: 20px;
    padding: 25px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Utility Classes */
.jobs-tab .flex {
    display: flex;
}

.jobs-tab .flex-col {
    flex-direction: column;
}

.jobs-tab .items-center {
    align-items: center;
}

.jobs-tab .justify-center {
    justify-content: center;
}

.jobs-tab .justify-between {
    justify-content: space-between;
}

.jobs-tab .gap-2 {
    gap: 8px;
}

.jobs-tab .gap-8 {
    gap: 32px;
}

.jobs-tab .mt-6 {
    margin-top: 24px;
}

.jobs-tab .mb-3 {
    margin-bottom: 12px;
}

.jobs-tab .mb-4 {
    margin-bottom: 16px;
}

.jobs-tab .w-full {
    width: 100%;
}

.jobs-tab .h-fit {
    height: fit-content;
}

.jobs-tab .text-3xl {
    font-size: 1.875rem;
}

.jobs-tab .font-black {
    font-weight: 900;
}

.jobs-tab .tracking-tight {
    letter-spacing: -0.025em;
}

.jobs-tab .pt-6 {
    padding-top: 24px;
}

.jobs-tab .pb-2 {
    padding-bottom: 8px;
}

.jobs-tab .text-center {
    text-align: center;
}

.jobs-tab .text-gray-400 {
    color: #9ca3af;
}

.jobs-tab .uppercase {
    text-transform: uppercase;
}

.jobs-tab .grid {
    display: grid;
}

.jobs-tab .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.jobs-tab .max-w-7xl {
    max-width: 80rem;
}

.jobs-tab .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.jobs-tab .text-xs {
    font-size: 0.75rem;
}

.jobs-tab .text-\[9px\] {
    font-size: 9px;
}

.jobs-tab .text-\[11px\] {
    font-size: 11px;
}

.jobs-tab .rounded-xl {
    border-radius: 0.75rem;
}

.jobs-tab .py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.jobs-tab .active\:scale-95:active {
    transform: scale(0.95);
}

.jobs-tab .transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Swipe Indicator Animation */
@keyframes swipeHint {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Loading State */
.jobs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.jobs-loading i {
    font-size: 3rem;
    color: #1e3c72;
}

/* Empty State */
.jobs-empty {
    text-align: center;
    padding: 50px 20px;
}

.jobs-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}


/* ============================================================ */
/* ⭐ FONT SIZE VARIATIONS */
/* ============================================================ */

body.font-small { font-size: 14px; }
body.font-medium { font-size: 16px; }
body.font-large { font-size: 18px; }
body.font-large .news-title { font-size: 1.4rem; }
body.font-large .news-summary { font-size: 1.05rem; }

/* ============================================================ */
/* ⭐ UTILITY CLASSES */
/* ============================================================ */

.hidden { display: none !important; }

/* Jobs Tab Apply Button */
.btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================================ */
/* ⭐ PRELIMS TEST UI STYLES */
/* ============================================================ */

.prelims-test-container {
    padding: 15px 10px;
    max-width: 100%;
    margin: 0 auto;
}

/* Loading State */
.prelims-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.prelims-loading .spinner {
    margin-bottom: 20px;
}

/* Empty/Error States */
.prelims-empty-state,
.prelims-error-state {
    text-align: center;
    padding: 60px 20px;
}

.prelims-empty-icon,
.prelims-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.prelims-empty-state h3,
.prelims-error-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.prelims-empty-state p,
.prelims-error-state p {
    color: #aaaaaa;
    margin-bottom: 25px;
}

.prelims-login-btn,
.prelims-retry-btn {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.prelims-login-btn:active,
.prelims-retry-btn:active {
    transform: scale(0.95);
}

/* Question Wrapper */
.prelims-question-wrapper {
    max-width: 100%;
}

/* Progress Bar */
.prelims-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.prelims-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.prelims-progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 20px;
}

/* Results View */
.prelims-results-wrapper {
    padding: 10px 0;
}

.prelims-results-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.prelims-results-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.prelims-results-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.prelims-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.prelims-score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.prelims-score-label {
    font-size: 1rem;
    opacity: 0.8;
}

.prelims-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.prelims-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
}

.prelims-stat-item.correct {
    border: 2px solid #4CAF50;
}

.prelims-stat-item.wrong {
    border: 2px solid #F44336;
}

.prelims-stat-item.skipped {
    border: 2px solid #FF9800;
}

.prelims-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.prelims-stat-item.correct .prelims-stat-value {
    color: #4CAF50;
}

.prelims-stat-item.wrong .prelims-stat-value {
    color: #F44336;
}

.prelims-stat-item.skipped .prelims-stat-value {
    color: #FF9800;
}

.prelims-stat-label {
    font-size: 0.85rem;
    color: #aaaaaa;
}

/* Review Section */
.prelims-review-section {
    margin-bottom: 20px;
}

.prelims-review-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.prelims-review-question {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 20px 15px;
    margin-bottom: 15px;
}

.prelims-review-question.correct {
    border-left: 4px solid #4CAF50;
}

.prelims-review-question.wrong {
    border-left: 4px solid #F44336;
}

.prelims-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prelims-review-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B5CF6;
}

.prelims-review-status {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
}

.prelims-review-status.correct {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.prelims-review-status.wrong {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.prelims-review-question-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 15px;
}

.prelims-review-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.prelims-review-answer-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

.prelims-review-answer-item.selected {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
}

.prelims-review-answer-item.correct-answer {
    background: rgba(76, 175, 80, 0.15);
    border-color: #4CAF50;
}

.prelims-review-answer-label {
    font-weight: 700;
    font-size: 1rem;
    color: #8B5CF6;
    min-width: 30px;
    flex-shrink: 0;
}

.prelims-review-answer-item.correct-answer .prelims-review-answer-label {
    color: #4CAF50;
}

.prelims-review-answer-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ffffff;
}

.prelims-review-your-answer {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: #8B5CF6;
    background: rgba(139, 92, 246, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
}

.prelims-review-correct-mark {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.75rem;
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

/* Explanation Box */
.prelims-explanation-box {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8B5CF6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.prelims-explanation-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8B5CF6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prelims-explanation-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.prelims-explanation-locked {
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FF9800;
    font-size: 0.9rem;
}

/* Results Actions */
.prelims-results-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.prelims-action-btn {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 12px;
    padding: 15px 20px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prelims-action-btn.primary {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-color: #8B5CF6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.prelims-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.prelims-action-btn:active {
    transform: translateY(0);
}

/* ============================================================ */
/* ⭐ MAINS TEST UI STYLES */
/* ============================================================ */

.mains-test-container {
    padding: 15px 10px;
    max-width: 100%;
    margin: 0 auto;
}

/* Loading/Empty/Error States */
.mains-loading,
.mains-empty-state,
.mains-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.mains-loading .spinner {
    margin-bottom: 20px;
}

.mains-empty-icon,
.mains-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

.mains-empty-state h3,
.mains-error-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.mains-empty-state p,
.mains-error-state p {
    color: #aaaaaa;
    margin-bottom: 25px;
}

.mains-login-btn,
.mains-retry-btn {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.mains-login-btn:active,
.mains-retry-btn:active {
    transform: scale(0.95);
}

/* Form Wrapper */
.mains-form-wrapper {
    max-width: 100%;
}

/* Quota Display */
.mains-quota-display {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 20px 15px;
    margin-bottom: 20px;
}

.mains-quota-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mains-quota-title {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mains-quota-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.mains-quota-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px 10px;
}

.mains-quota-label {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-bottom: 8px;
}

.mains-quota-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8B5CF6;
}

.mains-quota-value.used {
    color: #FF9800;
}

.mains-quota-value.remaining {
    color: #4CAF50;
}

.mains-quota-value.zero {
    color: #F44336;
}

.mains-quota-warning {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border-left: 4px solid #FF9800;
    border-radius: 8px;
    color: #FF9800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Card */
.mains-form-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #444;
    border-radius: 15px;
    padding: 20px 15px;
}

.mains-form-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

/* Form Groups */
.mains-form-group {
    margin-bottom: 20px;
}

.mains-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.mains-form-label i {
    color: #8B5CF6;
}

.mains-form-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mains-form-select:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.mains-form-select:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.08);
}

.mains-form-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Radio Group */
.mains-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mains-radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
}

.mains-radio-label:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.mains-radio-label input[type="radio"] {
    display: none;
}

.mains-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #8B5CF6;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.mains-radio-label input[type="radio"]:checked + .mains-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #8B5CF6;
    border-radius: 50%;
}

.mains-radio-label input[type="radio"]:checked ~ .mains-radio-text {
    color: #8B5CF6;
    font-weight: 600;
}

.mains-radio-text {
    flex: 1;
    color: #ffffff;
    font-size: 0.95rem;
}

/* Textarea */
.mains-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
}

.mains-textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(255, 255, 255, 0.08);
}

.mains-textarea::placeholder {
    color: #666;
}

/* Word Count Display */
.mains-word-count-display {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #aaaaaa;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mains-word-count {
    font-weight: 700;
    color: #8B5CF6;
}

.mains-target-words {
    font-weight: 600;
    color: #ffffff;
}

.mains-word-tolerance {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.mains-word-tolerance.valid {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.mains-word-tolerance.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

/* Image Upload */
.mains-image-upload-area {
    margin-bottom: 15px;
}

.mains-upload-placeholder {
    border: 2px dashed rgba(139, 92, 246, 0.5);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(139, 92, 246, 0.05);
}

.mains-upload-placeholder:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.mains-upload-placeholder i {
    font-size: 3rem;
    color: #8B5CF6;
    margin-bottom: 15px;
}

.mains-upload-placeholder p {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.mains-upload-placeholder small {
    color: #aaaaaa;
    font-size: 0.85rem;
}

.mains-image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mains-image-preview-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mains-image-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.mains-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.mains-image-remove:hover {
    transform: scale(1.1);
}

.mains-image-info {
    padding: 8px;
    font-size: 0.8rem;
    color: #aaaaaa;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Submit Button */
.mains-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    margin-top: 10px;
}

.mains-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.mains-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mains-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Validation Error Message */
.mains-validation-error {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
    color: #F44336;
    font-size: 0.9rem;
    line-height: 1.6;
}

.mains-validation-error div {
    margin-bottom: 5px;
}

.mains-validation-error div:last-child {
    margin-bottom: 0;
}

/* ============================================================ */
/* ⭐ TEST SERIES - ADDITIONAL POLISH & ANIMATIONS */
/* ============================================================ */

/* Smooth scroll for test containers */
.prelims-test-container,
.mains-test-container {
    scroll-behavior: smooth;
}

/* Loading spinner for test tabs */
.prelims-loading .spinner,
.mains-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade in animation for test content */
.test-content-panel.active {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for active test tab */
.test-tab-btn.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6);
    }
}

/* Smooth transitions for all interactive elements */
.prelims-option-btn,
.prelims-nav-btn,
.prelims-submit-btn,
.mains-form-select,
.mains-radio-label,
.mains-submit-btn,
.mains-image-remove {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.prelims-option-btn:focus,
.prelims-nav-btn:focus,
.prelims-submit-btn:focus,
.mains-form-select:focus,
.mains-textarea:focus,
.mains-submit-btn:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Disabled state styling */
.prelims-nav-btn:disabled,
.mains-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Print styles (hide test content when printing) */
@media print {
    .test-container,
    .prelims-test-container,
    .mains-test-container {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .prelims-option-btn,
    .mains-form-select,
    .mains-radio-label {
        border-width: 3px;
    }
    
    .prelims-option-btn.selected,
    .mains-radio-label input[type="radio"]:checked + .mains-radio-custom {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .prelims-option-btn,
    .prelims-nav-btn,
    .prelims-submit-btn,
    .mains-form-select,
    .mains-submit-btn,
    .test-tab-btn {
        transition: none;
        animation: none;
    }
    
    .prelims-loading .spinner {
        animation: none;
    }
}

/* Dark mode consistency (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but ensure consistency */
    .test-container {
        background-color: #0f0f0f;
    }
}

/* ============================================================ */
/* PHASE 3: TEST TAB REDESIGN */
/* ============================================================ */
.test-container {
    padding: 16px;
    min-height: calc(100vh - 130px);
    background: #f8f9fa;
}

.test-root {
    max-width: 720px;
    margin: 0 auto;
}

.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.timer {
    font-weight: 800;
    font-size: 1rem;
    color: #d32f2f;
}

.language-toggle {
    display: inline-flex;
    gap: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 4px;
}

.language-toggle button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
}

.language-toggle button.active {
    background: #d32f2f;
    color: #fff;
}

.test-start {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.btn-start-test {
    margin-top: 10px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.test-date-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.question-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    color: #222;
}

.question-number {
    font-weight: 700;
    margin-bottom: 8px;
}

.question-text {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #222;
}

.options-container {
    display: grid;
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    color: #222;
}

.option input {
    accent-color: #d32f2f;
}

.saved-question-details {
    margin-top: 8px;
    background: rgba(211, 47, 47, 0.06);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
}

.saved-question-summary {
    cursor: pointer;
    font-weight: 600;
    color: #d32f2f;
}

.saved-question-explanation {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
}

.test-navigation {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.recent-results {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
}

.recent-results h4 {
    margin: 0 0 10px 0;
}

.recent-results-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.recent-results-row:last-child {
    border-bottom: none;
}

.test-results-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.test-results-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    width: 92%;
    max-width: 420px;
}

.test-results-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.test-results-actions button {
    flex: 1;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.btn-view-plans {
    background: #d32f2f;
    color: #fff;
}

.btn-close-popup {
    background: #eee;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .prelims-option-btn,
    .prelims-nav-btn,
    .prelims-submit-btn,
    .mains-submit-btn {
        min-height: 44px; /* iOS touch target size */
    }
    
    .mains-image-remove {
        width: 36px;
        height: 36px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .test-tabs-header {
        gap: 6px;
    }
    
    .test-tab-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .mains-form-card {
        padding: 12px 10px;
    }
    
    .mains-quota-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .test-container {
        height: calc(100vh - 100px);
        padding: 10px;
    }
    
    .mains-form-card {
        padding: 12px;
    }
}

/* ============================================================ */
/* TASK xv-xix: IAS TAB GLASSMORPHISM STYLES */
/* ============================================================ */

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 245, 245, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.1);
}

.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.glass-card-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
}

.glass-badge {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* TASK xvii: Saved Items Display */
.saved-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

.saved-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.saved-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-count {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.saved-section-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.saved-count {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.saved-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    transition: all 0.2s ease;
}

.saved-item:hover {
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateX(4px);
}

.saved-item-content {
    flex: 1;
}

.saved-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 4px;
    line-height: 1.4;
}

.saved-item-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.saved-item-date {
    font-size: 0.75rem;
    color: #999;
}

.saved-item-date.expired {
    color: #d32f2f;
    font-weight: 600;
}

.saved-item-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.saved-item-actions {
    display: flex;
    gap: 6px;
}

.saved-item-btn-small {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.saved-item-btn-small:hover {
    background: rgba(211, 47, 47, 0.2);
}

.saved-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

.saved-view-all {
    background: transparent;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.saved-view-all:hover {
    background: #d32f2f;
    color: #ffffff;
}

/* Prelims Summary + Tests List */
.prelims-summary-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 8px;
}

.view-all-tests-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.prelims-tests-list {
    margin-top: 12px;
    border-top: 1px dashed rgba(211, 47, 47, 0.2);
    padding-top: 10px;
}

.prelims-tests-header {
    font-weight: 700;
    margin-bottom: 8px;
    color: #d32f2f;
}

.prelims-test-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(211, 47, 47, 0.08);
}

.prelims-test-row:last-child {
    border-bottom: none;
}

/* Mains Questions */
.mains-questions-content {
    display: grid;
    gap: 16px;
}

.mains-questions-group {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: 12px;
    padding: 12px;
}

.mains-questions-date {
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
}

.mains-question-item {
    margin: 6px 0;
}

.mains-question-item summary {
    cursor: pointer;
    font-weight: 600;
}

.mains-guidelines {
    margin-top: 6px;
    color: #444;
    font-size: 0.9rem;
}

/* Possible Upcoming Questions (Journey tab - month folders, PUQ only, Actual Analysis) */
.upcoming-questions-card .section-header { margin-bottom: 8px; }
.upcoming-questions-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 14px;
    line-height: 1.4;
}
.upcoming-questions-folders { display: flex; flex-direction: column; gap: 8px; }
.upcoming-month-folder {
    border: 2px solid rgba(211, 47, 47, 0.25);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}
.upcoming-month-folder[open] { border-color: rgba(211, 47, 47, 0.5); }
.upcoming-month-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #1f2937;
    background: rgba(254, 242, 242, 0.8);
    user-select: none;
}
.upcoming-month-summary::-webkit-details-marker { display: none; }
.upcoming-month-summary::after {
    content: '▶';
    font-size: 0.75rem;
    color: #b91c1c;
    transition: transform 0.2s ease;
}
.upcoming-month-folder[open] .upcoming-month-summary::after { transform: rotate(90deg); }
.upcoming-month-name { font-size: 1rem; }
.upcoming-month-count {
    font-size: 0.8rem;
    color: #b91c1c;
    font-weight: 600;
}
.upcoming-month-content {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(211, 47, 47, 0.15);
    max-height: 360px;
    overflow-y: auto;
}
.upcoming-puq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}
.upcoming-puq-item:last-child { margin-bottom: 0; }
.upcoming-puq-date {
    font-size: 0.75rem;
    color: #b91c1c;
    font-weight: 600;
    margin-bottom: 6px;
}
.upcoming-puq-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.45;
    margin-bottom: 10px;
}
.upcoming-puq-actual-btn {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.9);
    border: 1px solid rgba(185, 28, 28, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.upcoming-puq-actual-btn:hover {
    background: #b91c1c;
    color: #fff;
}
.upcoming-questions-empty { padding: 16px; text-align: center; color: #6b7280; }

/* TASK xviii: Test Stats Display */
.test-stats-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(211, 47, 47, 0.1);
}

.test-stats-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.test-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.test-stats-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.test-stats-view-btn {
    background: transparent;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-stats-view-btn:hover {
    background: #d32f2f;
    color: #ffffff;
}

.test-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.test-stat-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.test-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
}

.test-stat-card.highlight {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(244, 67, 54, 0.1));
    border-color: rgba(211, 47, 47, 0.3);
}

.test-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.test-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 4px;
    line-height: 1.2;
}

.test-stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.test-stats-breakdown {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

.test-breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.test-breakdown-item.correct .breakdown-value {
    color: #4caf50;
    font-weight: 700;
}

.test-breakdown-item.wrong .breakdown-value {
    color: #f44336;
    font-weight: 700;
}

.test-breakdown-item.skipped .breakdown-value {
    color: #ff9800;
    font-weight: 700;
}

.test-breakdown-item.pending .breakdown-value {
    color: #ff9800;
    font-weight: 700;
}

.test-breakdown-item.reviewed .breakdown-value {
    color: #2196f3;
    font-weight: 700;
}

.test-breakdown-item.published .breakdown-value {
    color: #4caf50;
    font-weight: 700;
}

.breakdown-label {
    font-size: 0.75rem;
    color: #999;
}

.breakdown-value {
    font-size: 1.1rem;
    color: #000000;
}

.test-stats-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(211, 47, 47, 0.1);
}

.test-stats-date {
    font-size: 0.8rem;
    color: #666;
}

.test-stats-empty {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    border: 1px dashed rgba(211, 47, 47, 0.2);
}

.test-stats-empty p {
    color: #666;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.test-stats-action-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.test-stats-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* TASK xix: Prelims Saved Indicator */
.prelims-saved-indicator {
    font-size: 0.75rem;
    color: #4caf50;
    margin-left: 8px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

/* TASK xx: Enhanced Jobs Tab */
.jobs-container-enhanced {
    padding: 0;
    background: #ffffff;
}

.jobs-header-enhanced {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: #ffffff;
    padding: 20px 15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.jobs-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.jobs-title-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jobs-icon {
    font-size: 1.8rem;
}

.jobs-stats-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.jobs-stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.jobs-stat-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.jobs-stat-item.urgent-stat {
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.jobs-stat-item .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.jobs-stat-item .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.jobs-filter-enhanced {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-select-enhanced {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.filter-select-enhanced option {
    background: #d32f2f;
    color: #ffffff;
}

.telegram-btn-enhanced {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.telegram-btn-enhanced:hover {
    background: rgba(255, 255, 255, 0.3);
}

.job-counter-enhanced {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.jobs-carousel-enhanced {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    padding: 20px 15px;
    gap: 15px;
    height: calc(100vh - 320px);
    scroll-behavior: smooth;
}

.jobs-carousel-enhanced::-webkit-scrollbar {
    display: none;
}

.job-card-enhanced {
    min-width: 90%;
    max-width: 90%;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border-radius: 16px;
    padding: 20px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.job-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(211, 47, 47, 0.25);
}

.job-card-enhanced.urgent {
    border-color: #d32f2f;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.job-card-enhanced.warning {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8f0 0%, #ffe8cc 100%);
}

.job-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.job-state-badge-enhanced {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.job-urgency-enhanced {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.job-urgency-enhanced.urgent {
    background: #d32f2f;
    color: #ffffff;
}

.job-urgency-enhanced.warning {
    background: #ff9800;
    color: #ffffff;
}

.job-urgency-enhanced.normal {
    background: #e0e0e0;
    color: #333333;
}

.job-save-btn-enhanced {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.job-save-btn-enhanced:hover {
    background: #d32f2f;
    color: #ffffff;
    border-color: #d32f2f;
    transform: scale(1.1);
}

.job-save-btn-enhanced.saved {
    background: #d32f2f;
    color: #ffffff;
    border-color: #d32f2f;
}

.job-title-section-enhanced {
    margin-bottom: 20px;
    padding-right: 50px;
}

.job-title-enhanced {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.job-org-enhanced {
    font-size: 0.9rem;
    color: #d32f2f;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-details-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.job-detail-item-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
    border-left: 3px solid #d32f2f;
}

.job-detail-item-enhanced.deadline-item {
    background: rgba(211, 47, 47, 0.1);
    border-left-color: #d32f2f;
}

.detail-icon {
    font-size: 1.2rem;
    color: #d32f2f;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
}

.deadline-value {
    color: #d32f2f;
    font-weight: 700;
}

.job-actions-enhanced {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.job-action-btn-enhanced {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.job-action-btn-enhanced.primary {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
}

.job-action-btn-enhanced.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.job-action-btn-enhanced.secondary {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border: 2px solid #d32f2f;
}

.job-action-btn-enhanced.secondary:hover {
    background: #d32f2f;
    color: #ffffff;
}

.job-action-btn-enhanced.share {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.job-action-btn-enhanced.share:hover {
    background: rgba(0, 0, 0, 0.1);
}

.jobs-nav-dots-enhanced {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    flex-wrap: wrap;
}

.nav-dot-enhanced {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(211, 47, 47, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-dot-enhanced.active {
    background: #d32f2f;
    width: 24px;
    border-radius: 4px;
}

.jobs-empty-state,
.jobs-error-state {
    text-align: center;
    padding: 60px 20px;
}

.jobs-empty-icon,
.jobs-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.jobs-retry-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 480px) {
    .job-card-enhanced {
        min-width: 92%;
        max-width: 92%;
    }
    
    .jobs-carousel-enhanced {
        height: calc(100vh - 300px);
    }
}

/* TASK xxi: Enhanced Test Tab */
.test-container {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
}

.test-header-enhanced {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.test-heading-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.test-icon {
    font-size: 1.8rem;
}

.test-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.test-tabs-header-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(211, 47, 47, 0.05);
    padding: 8px;
    border-radius: 12px;
}

.test-tab-btn-enhanced {
    padding: 14px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    color: #666;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.test-tab-btn-enhanced i {
    font-size: 1.2rem;
}

.test-tab-btn-enhanced.active {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border-color: #d32f2f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.test-content-panel-enhanced {
    display: none;
}

.test-content-panel-enhanced.active {
    display: block;
}

.prelims-selection-screen {
    padding: 0;
}

.prelims-selection-header {
    text-align: center;
    margin-bottom: 25px;
}

.prelims-selection-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prelims-selection-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.prelims-test-types {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.prelims-test-type-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.prelims-test-type-card:hover {
    transform: translateY(-4px);
    border-color: #d32f2f;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.2);
}

.test-type-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.test-type-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 8px 0;
}

.test-type-desc {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 12px 0;
}

.test-type-badge {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.test-type-badge.premium {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
}

.prelims-recent-results {
    margin-top: 30px;
}

.prelims-recent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prelims-recent-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.view-all-results-btn {
    background: transparent;
    border: none;
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.prelims-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prelims-recent-item {
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item-date {
    font-size: 0.85rem;
    color: #666;
}

.recent-item-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: #d32f2f;
}

.recent-item-details {
    font-size: 0.85rem;
    color: #666;
}

.prelims-no-results {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.9rem;
}

.prelims-back-btn-container {
    margin-bottom: 15px;
}

.prelims-back-btn {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.2);
    color: #d32f2f;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prelims-question-wrapper-enhanced {
    background: #ffffff;
}

.prelims-progress-bar-enhanced {
    width: 100%;
    height: 6px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.prelims-progress-fill-enhanced {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f, #f44336);
    transition: width 0.3s ease;
}

.prelims-progress-text-enhanced {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prelims-question-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border: 2px solid rgba(211, 47, 47, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.prelims-question-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.prelims-question-number-enhanced {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.9rem;
}

.prelims-question-subject-enhanced {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.prelims-question-text-enhanced {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 500;
}

.prelims-options-container-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prelims-option-btn-enhanced {
    background: rgba(211, 47, 47, 0.05);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.prelims-option-btn-enhanced:hover {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.4);
}

.prelims-option-btn-enhanced.selected {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border-color: #d32f2f;
    color: #ffffff;
}

.prelims-option-label-enhanced {
    background: rgba(255, 255, 255, 0.3);
    color: #d32f2f;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.prelims-option-btn-enhanced.selected .prelims-option-label-enhanced {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.prelims-option-text-enhanced {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.prelims-navigation-enhanced {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.prelims-nav-btn-enhanced {
    flex: 1;
    padding: 12px 20px;
    background: rgba(211, 47, 47, 0.1);
    border: 2px solid #d32f2f;
    border-radius: 10px;
    color: #d32f2f;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.prelims-nav-btn-enhanced:hover:not(:disabled) {
    background: #d32f2f;
    color: #ffffff;
}

.prelims-nav-btn-enhanced:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prelims-submit-btn-enhanced {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.prelims-submit-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
}

.prelims-empty-state-enhanced,
.prelims-error-state-enhanced {
    text-align: center;
    padding: 40px 20px;
}

.prelims-empty-icon,
.prelims-error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.prelims-login-btn-enhanced,
.prelims-retry-btn-enhanced {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prelims-loading-enhanced {
    text-align: center;
    padding: 40px 20px;
}

.spinner-enhanced {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(211, 47, 47, 0.1);
    border-top-color: #d32f2f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* TASK xxii: Enhanced Plans Tab */
.plans-container-enhanced {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.plans-header-enhanced {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.plans-title-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.plans-icon {
    font-size: 1.8rem;
}

.plans-subtitle-enhanced {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.plan-type-toggle-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(211, 47, 47, 0.05);
    padding: 8px;
    border-radius: 12px;
}

.plan-toggle-btn {
    padding: 12px 8px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.plan-toggle-btn.active {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border-color: #d32f2f;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-price {
    font-size: 1.1rem;
    font-weight: 800;
}

.toggle-badge {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.plan-toggle-btn:not(.active) .toggle-badge {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
}

.plan-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.plan-card-header-enhanced {
    text-align: center;
    margin-bottom: 15px;
}

.plan-badge-enhanced {
    display: inline-block;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-name-enhanced {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
}

.plan-price-enhanced {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.price-amount-enhanced {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d32f2f;
}

#price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #d32f2f;
}

.price-period-enhanced {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.price-savings-enhanced {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #4caf50;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.plan-features-enhanced {
    margin-bottom: 20px;
}

.plan-feature-item-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.plan-feature-item-enhanced i {
    color: #4caf50;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-feature-item-enhanced span {
    color: #333;
    line-height: 1.4;
}

.feature-disabled {
    color: #999;
    text-decoration: line-through;
}

.referral-list {
    margin: 8px 0 12px 18px;
    color: #444;
}

.plan-addon-enhanced {
    background: rgba(211, 47, 47, 0.05);
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.addon-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.addon-info {
    flex: 1;
}

.addon-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 4px 0;
}

.addon-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.addon-price-enhanced {
    font-size: 1rem;
    font-weight: 800;
    color: #d32f2f;
}

.addon-toggle-enhanced {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.addon-toggle-enhanced input {
    opacity: 0;
    width: 0;
    height: 0;
}

.addon-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.addon-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.addon-toggle-enhanced input:checked + .addon-toggle-slider {
    background-color: #d32f2f;
}

.addon-toggle-enhanced input:checked + .addon-toggle-slider:before {
    transform: translateX(24px);
}

.plan-referral-enhanced {
    margin-bottom: 15px;
}

.referral-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.referral-header-enhanced:hover {
    background: rgba(211, 47, 47, 0.1);
}

.referral-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-header-enhanced i {
    color: #d32f2f;
    transition: transform 0.3s ease;
}

.referral-input-section {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-input-enhanced {
    padding: 10px 12px;
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.referral-input-enhanced:focus {
    outline: none;
    border-color: #d32f2f;
}

.referral-apply-btn {
    padding: 10px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.referral-message {
    font-size: 0.85rem;
    min-height: 20px;
}

.plan-total-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
}

.total-label-enhanced {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
}

.total-amount-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #d32f2f;
}

.plan-subscribe-btn-enhanced {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.plan-subscribe-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.4);
}

.referral-info-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.referral-info-enhanced i:first-child {
    color: #d32f2f;
    margin-right: 8px;
}

.referral-details-enhanced {
    padding: 15px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.get-referral-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.referral-login-prompt {
    text-align: center;
    color: #d32f2f;
    font-weight: 600;
    margin-top: 8px;
}

@media (max-height: 800px) {
    .plan-features-enhanced {
        max-height: 120px;
        overflow-y: auto;
    }
    
    .plan-features-enhanced::-webkit-scrollbar {
        width: 4px;
    }
    
    .plan-features-enhanced::-webkit-scrollbar-thumb {
        background: rgba(211, 47, 47, 0.3);
        border-radius: 2px;
    }
}

/* TASK xxiii: Enhanced Profile Tab */
.profile-container-enhanced {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding-bottom: 30px;
}

.profile-header-enhanced {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
}

.profile-avatar-enhanced {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.profile-image-section {
    display: flex;
    justify-content: center;
}

.profile-avatar {
    position: relative;
    width: 90px;
    height: 90px;
}

.profile-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.edit-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scholarship-earnings {
    padding: 16px;
    margin-bottom: 15px;
}

.earnings-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: #d32f2f;
    margin: 6px 0;
}

.earnings-note,
.payout-info {
    font-size: 0.85rem;
    color: #666;
}

.scholarship-section,
.affiliate-section {
    padding: 16px;
    margin-bottom: 15px;
}

.btn-scholarship,
.btn-affiliate {
    margin-top: 10px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.edit-profile-btn:hover {
    background: #d32f2f;
    color: #ffffff;
    transform: scale(1.1);
}

.profile-name-enhanced {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 5px 0;
}

.profile-phone-enhanced {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.profile-card-enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    border: 2px solid rgba(211, 47, 47, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.profile-card-enhanced:hover {
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
}

.profile-toggle-card {
    cursor: pointer;
}

.profile-toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-toggle-chevron {
    transition: transform 0.2s ease;
}

.profile-toggle-body {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(211, 47, 47, 0.15);
}

.profile-panel-text {
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.profile-new-number-card .profile-panel-text { margin-bottom: 12px; }
.profile-new-number-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.profile-new-number-form .form-input-enhanced { max-width: 100%; }
.profile-new-number-form .upgrade-btn-enhanced { align-self: flex-start; }

.profile-panel-list {
    margin: 8px 0 12px 18px;
    padding: 0;
}

.profile-panel-list li {
    margin-bottom: 6px;
}

.affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.affiliate-stat-item {
    background: rgba(211, 47, 47, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.affiliate-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: #d32f2f;
}

.affiliate-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.profile-scholarship-program-card {
    margin-bottom: 15px;
}

.profile-whatsapp-link {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: underline;
}

.profile-whatsapp-affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 18px;
    background: #25D366;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.profile-whatsapp-affiliate-btn:hover { color: #fff; opacity: 0.95; }

.profile-release-scholarship-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}
.profile-release-scholarship-btn:hover { opacity: 0.95; transform: translateY(-1px); }

.release-scholarship-form-wrap {
    padding: 16px 20px 20px;
}
.release-scholarship-form-wrap .form-group-enhanced { margin-bottom: 12px; }
.release-amount-line {
    margin-bottom: 16px;
    font-size: 1rem;
    color: #333;
}
.release-amount-line strong { color: #16a34a; }
.device-popup-modal-wide { max-width: 420px; }

.profile-payout-form-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(211, 47, 47, 0.2);
}

.profile-payout-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
}

.profile-payout-form .form-group-enhanced { margin-bottom: 12px; }

.profile-payout-save-btn {
    margin-top: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.profile-payout-save-btn:hover { opacity: 0.95; }
.profile-payout-save-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.card-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.1);
}

.card-title-enhanced {
    font-size: 1.1rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-enhanced i {
    color: #d32f2f;
}

.edit-icon-btn {
    background: transparent;
    border: none;
    color: #d32f2f;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s ease;
}

.edit-icon-btn:hover {
    transform: scale(1.1);
}

.subscription-status-enhanced {
    text-align: center;
}

.status-badge-enhanced {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-badge-enhanced.premium {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
}

.status-badge-enhanced.free {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.status-badge-enhanced.trial {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 2px solid #2196f3;
}

.subscription-details-enhanced {
    text-align: left;
    background: rgba(211, 47, 47, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-label {
    color: #666;
    font-weight: 600;
}

.detail-value {
    color: #000000;
    font-weight: 700;
}

.detail-value.warning {
    color: #f44336;
}

.renew-btn-enhanced {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upgrade-prompt-enhanced {
    text-align: center;
    padding: 15px;
}

.upgrade-prompt-enhanced p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.upgrade-btn-enhanced {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.member-since-enhanced {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.profile-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item-enhanced {
    padding: 12px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
}

.info-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 700;
}

.info-value {
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
}

.profile-edit-form {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group-enhanced {
    margin-bottom: 15px;
}

.form-label-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
}

.form-input-enhanced {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(211, 47, 47, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input-enhanced:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-actions-enhanced {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.form-btn.cancel-btn {
    background: rgba(211, 47, 47, 0.1);
    border: 2px solid rgba(211, 47, 47, 0.3);
    color: #d32f2f;
}

.form-btn.save-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: none;
    color: #ffffff;
}

.form-btn:hover {
    transform: translateY(-2px);
}

.help-items-enhanced {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-item-enhanced {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.help-item-enhanced:hover {
    background: rgba(211, 47, 47, 0.1);
    transform: translateX(4px);
}

.help-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.help-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.help-icon.faq {
    background: rgba(211, 47, 47, 0.1);
}

.help-icon.contact {
    background: rgba(33, 150, 243, 0.1);
}

.help-content {
    flex: 1;
}

.help-title {
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.help-desc {
    font-size: 0.85rem;
    color: #666;
}

.help-item-enhanced i:last-child {
    color: #999;
}

.scholarship-content-enhanced,
.affiliate-content-enhanced {
    text-align: center;
    padding: 10px 0;
}

.scholarship-icon,
.affiliate-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.scholarship-title,
.affiliate-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000000;
    margin: 0 0 10px 0;
}

.scholarship-desc,
.affiliate-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.scholarship-btn-enhanced,
.affiliate-btn-enhanced {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.scholarship-btn-enhanced:hover,
.affiliate-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.settings-items-enhanced {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
}

.setting-info {
    flex: 1;
}

.setting-label {
    font-weight: 700;
    color: #000000;
    margin-bottom: 4px;
}

.setting-desc {
    font-size: 0.85rem;
    color: #666;
}

.setting-toggle-enhanced {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.setting-toggle-enhanced input {
    opacity: 0;
    width: 0;
    height: 0;
}

.setting-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

.setting-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.setting-toggle-enhanced input:checked + .setting-toggle-slider {
    background-color: #d32f2f;
}

.setting-toggle-enhanced input:checked + .setting-toggle-slider:before {
    transform: translateX(24px);
}

.font-size-selector-enhanced {
    display: flex;
    gap: 8px;
}

.font-size-option {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(211, 47, 47, 0.3);
    background: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.font-size-option.active {
    background: #d32f2f;
    border-color: #d32f2f;
    color: #ffffff;
}

.logout-card {
    border-color: rgba(244, 67, 54, 0.3);
}

.logout-btn-enhanced {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 2px solid #f44336;
    border-radius: 12px;
    color: #f44336;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.logout-btn-enhanced:hover {
    background: #f44336;
    color: #ffffff;
}

.profile-footer-enhanced {
    text-align: center;
    padding: 20px 0;
    color: #999;
}

.app-name-enhanced {
    font-size: 1rem;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 4px;
}

.app-version-enhanced {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.app-tagline-enhanced {
    font-size: 0.8rem;
}

/* ============================================================ */
/* DEVICE TRIAL PROTECTION POPUPS - REDESIGNED */
/* ============================================================ */
.device-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: devicePopupFadeIn 0.2s ease;
}
@keyframes devicePopupFadeIn { from { opacity: 0; } to { opacity: 1; } }

.device-popup-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-width: 400px;
    width: 100%;
    max-height: 88vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    animation: devicePopupSlideUp 0.3s ease;
}
@keyframes devicePopupSlideUp { from { transform: translateY(16px); opacity: 0.95; } to { transform: translateY(0); opacity: 1; } }

/* Device Reg popup - removed (use Profile tab for new number) */

.device-popup-modal .popup-content {
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}
.device-popup-modal .popup-header { padding: 14px 16px; font-size: 1.2rem; }
.device-popup-modal .popup-subtitle { font-size: 0.85rem; margin: 4px 0; }
.device-popup-modal .popup-phone-display { font-size: 1rem; margin: 4px 0; }
.device-popup-modal .popup-warning-box,
.device-popup-modal .popup-info-box { padding: 10px 12px; margin: 10px 0; font-size: 0.85rem; }
.device-popup-modal .popup-separator { margin: 10px 0; }
.device-popup-modal .popup-btn-primary,
.device-popup-modal .popup-btn-gray { padding: 12px; margin: 8px 0; font-size: 1rem; min-height: 44px; }
.device-popup-modal .popup-btn-secondary { padding: 10px; margin: 6px 0; font-size: 0.95rem; }

.device-popup-modal .popup-header {
    padding: 20px;
    border-radius: 16px 16px 0 0;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
}
.popup-header-red { background: linear-gradient(135deg, #d32f2f, #c62828); }
.popup-header-orange { background: linear-gradient(135deg, #ff9800, #fb8c00); }
.popup-header-green { background: linear-gradient(135deg, #4caf50, #66bb6a); }
.popup-header-gold { background: linear-gradient(135deg, #ffa000, #ff8f00); }
.popup-header-blue { background: linear-gradient(135deg, #1976d2, #1565c0); }

.popup-subtitle { margin: 0 0 8px 0; font-size: 0.95rem; color: #555; }
.popup-phone-display { font-size: 1.15rem; font-weight: 700; margin: 6px 0; color: #333; }
.popup-separator { border: none; border-top: 1px solid #e0e0e0; margin: 16px 0; }
.popup-warning-box {
    background: #fffde7;
    border: 1px solid #f9a825;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 0.9rem;
    color: #5d4e37;
}
.popup-info-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 0.9rem;
    color: #0d47a1;
}
.popup-btn-gray {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    background: #757575;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}
.popup-btn-gray:hover { background: #616161; transform: scale(1.02); }
.popup-btn-gray:active { transform: scale(0.98); }
.popup-btn-secondary.popup-btn-gray { color: #616161; text-decoration: none; background: transparent; padding: 12px; }
.popup-btn-secondary.popup-btn-gray:hover { color: #424242; background: #f5f5f5; }
.device-popup-mobile .device-popup-modal { max-width: 94%; width: 100%; }
@media (max-width: 600px) {
    .device-popup-mobile .device-popup-modal { padding: 0; max-width: 94%; }
    .device-popup-mobile .popup-btn-primary,
    .device-popup-mobile .popup-btn-secondary { min-height: 44px; }
}

.device-popup-modal .popup-content.standalone {
    padding: 24px;
    color: #424242;
    line-height: 1.8;
    font-size: 0.95rem;
}
.popup-content-green-tint { background: #f1f8f4; }
.device-popup-modal .popup-muted { color: #666; font-size: 0.9rem; }
.device-popup-modal .popup-benefits { margin: 12px 0; }
.device-popup-modal .popup-remember { font-size: 0.9rem; color: #555; margin-top: 12px; }

.popup-btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}
.popup-btn-primary:hover { transform: scale(1.02); }
.popup-btn-primary:active { transform: scale(0.98); }

.popup-btn-secondary {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: none;
    border: none;
    color: #1976d2;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
}
.popup-btn-secondary:hover { text-decoration: none; }

/* .plan-cards-popup, .plan-card - removed (subscription-same-number popup removed) */

@media (max-width: 600px) {
    .device-popup-modal { max-width: 90%; padding: 0; }
    .device-popup-modal .popup-content { padding: 20px; font-size: 0.9rem; }
    .device-popup-modal .popup-header { font-size: 1.35rem; }
}

/* Profile: Use different number - one line, click to expand */
.profile-new-number-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    border-radius: 12px;
    transition: background 0.2s;
}
.profile-new-number-line:hover { background: #f5f5f5; }
.profile-new-number-label { font-size: 0.95rem; color: #333; }
.profile-new-number-chevron { color: #888; transition: transform 0.2s; }
.profile-new-number-box {
    padding: 14px 18px;
    border-top: none;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    margin-top: -8px;
}
.profile-new-number-box .form-input-enhanced { margin-bottom: 10px; }
.profile-new-number-box .upgrade-btn-enhanced { width: 100%; }

/* Journey: locked premium features */
.locked-premium { opacity: 0.85; }
.view-calendar-btn.locked-premium { background: #e0e0e0; color: #666; }
.focus-btn.locked-premium { background: #e0e0e0; color: #666; }
.locked-premium-card .premium-badge-lock {
    font-size: 0.7rem; background: #ff9800; color: #fff; padding: 2px 8px; border-radius: 6px; margin-left: 8px;
}
.upcoming-questions-card.locked-premium-card .upcoming-questions-empty { padding: 12px 0; color: #666; }

/* ============================================================ */
/* TRIAL GATE MODAL (Phase 1) */
/* ============================================================ */
.trial-gate-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.trial-gate-overlay.active { display: flex; }
.trial-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.trial-gate-card {
    position: relative;
    width: min(520px, 92vw);
    background: #ffffff;
    border-radius: 40px;
    padding: 0;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    text-align: center;
    overflow: hidden;
}
.trial-gate-close {
    position: absolute;
    right: 12px;
    top: 10px;
    border: none;
    background: transparent;
    font-size: 1.6rem;
    color: #666;
    cursor: pointer;
    z-index: 2;
}
.trial-gate-header-bar {
    background: #d92d20;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.trial-gate-header-proof {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trial-gate-heart {
    font-size: 0.9rem;
}
.trial-gate-body {
    padding: 28px 26px 24px;
}
.trial-gate-lock-wrap {
    display: flex;
    justify-content: center;
    margin: 6px 0 18px;
}
.trial-gate-lock-circle {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 10px rgba(59,130,246,0.08);
}
.trial-gate-lock-circle svg {
    width: 40px;
    height: 40px;
    fill: #2563eb;
}
.trial-gate-card h2 {
    margin: 0 0 10px;
    font-size: 1.9rem;
    font-weight: 800;
    color: #101828;
    line-height: 1.15;
}
.trial-gate-sub {
    margin: 0 0 14px;
    color: #64748b;
    line-height: 1.4;
    font-size: 0.95rem;
    font-weight: 500;
}
.trial-gate-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    text-align: left;
    margin: 16px 0 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #344054;
    line-height: 1.2;
}
.trial-gate-feature {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.trial-gate-check {
    width: 14px;
    height: 14px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    margin-top: 2px;
}
.trial-gate-cta {
    width: 100%;
    padding: 18px 16px;
    border-radius: 18px;
    background: #0a1128;
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(10,17,40,0.4);
}
.trial-gate-footer {
    margin-top: 10px;
    font-size: 0.82rem;
    color: #94a3b8;
}

@media (max-width: 640px) {
    .trial-gate-card { width: 94vw; border-radius: 28px; }
    .trial-gate-header-bar { font-size: 10px; padding: 12px 16px; }
    .trial-gate-body { padding: 22px 18px 20px; }
    .trial-gate-features-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* PREMIUM UPSELL CARD (Phase 2) */
/* ============================================================ */
.premium-upsell-card {
    margin: 12px 0;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(211,47,47,0.05), rgba(211,47,47,0.02));
    border: 1px solid rgba(211,47,47,0.2);
    color: #111827;
}
.upsell-kicker {
    font-weight: 700;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.upsell-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 8px;
}
.upsell-meta {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.upsell-list {
    margin: 8px 0 12px 18px;
    padding: 0;
    color: #111827;
    line-height: 1.45;
    font-size: 0.9rem;
}
.upsell-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.upsell-actions.dual .upsell-cta {
    flex: 1;
}
.upsell-cta {
    background: #111827;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.upsell-link {
    background: transparent;
    border: 1px solid rgba(17,24,39,0.2);
    color: #111827;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}
.upsell-sub {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.upsell-countdown {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 6px 0 8px;
    color: #b91c1c;
}
.upsell-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0 12px;
}
.upsell-col {
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.upsell-col.free {
    background: #f3f4f6;
    color: #4b5563;
}
.upsell-col.premium {
    background: #fee2e2;
    color: #7f1d1d;
}
.upsell-col-title {
    font-weight: 800;
    margin-bottom: 6px;
}

/* ============================================================ */
/* HOOK STRIPS (between summary and Why in News) */
/* ============================================================ */
.hook-strip {
    margin: 12px 0 10px;
    border-radius: 12px;
    border: 1px solid #0f172a;
    background: #0f172a;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25);
}
.hook-strip-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.hook-strip-ready {
    border-color: #bbf7d0;
    background: #ecfdf5;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}
.hook-strip-ready .hook-strip-header {
    background: transparent;
}
.hook-strip-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hook-strip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.hook-strip-text { text-align: left; }
.hook-strip-title {
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}
.hook-strip-subtitle {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}
.hook-strip-chevron {
    color: #cbd5e1;
    font-size: 1.2rem;
    line-height: 1;
}
.hook-strip-ready .hook-strip-icon {
    background: #dcfce7;
    color: #166534;
}
.hook-strip-ready .hook-strip-title { color: #14532d; }
.hook-strip-ready .hook-strip-subtitle { color: #15803d; }
.hook-strip-ready .hook-strip-chevron { color: #15803d; }
.hook-strip-body {
    display: none;
    padding: 12px 14px 14px;
    background: #0f172a;
}
.hook-strip.open .hook-strip-body { display: block; }
.hook-strip-preview {
    position: relative;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}
.hook-strip-preview-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36px;
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, #0f172a 100%);
}
.hook-strip-redact {
    opacity: 0.4;
    margin: 8px 0 10px;
}
.hook-strip-redact-line {
    height: 10px;
    background: #334155;
    border-radius: 999px;
    margin-bottom: 6px;
}
.hook-strip-redact-line.mid {
    width: 70%;
    margin-left: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hook-strip-redact-line.mid span {
    font-size: 0.75rem;
    color: #94a3b8;
}
.hook-strip-divider {
    border-top: 1px dashed #334155;
    margin: 10px 0;
}
.hook-strip-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 6px;
}
.hook-strip-list {
    margin: 0 0 10px 16px;
    padding: 0;
    font-size: 0.82rem;
    color: #e2e8f0;
    line-height: 1.4;
}
.hook-strip-cta {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 0 #cbd5e1;
}
.hook-strip-foot {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    text-align: center;
}
/* ============================================================ */
/* TRIAL ONBOARDING CARDS (Phase 3) */
/* ============================================================ */
.trial-onboarding-card {
    margin: 12px 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
}
.trial-onboarding-inner {
    padding: 16px 18px;
}
.trial-onboarding-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.trial-onboarding-title {
    font-weight: 800;
    color: #1e3a8a;
}
.trial-onboarding-close {
    border: none;
    background: transparent;
    font-size: 1.3rem;
    color: #6b7280;
    cursor: pointer;
}
.trial-onboarding-body {
    color: #374151;
    line-height: 1.5;
    margin-bottom: 10px;
}
.trial-onboarding-cta {
    background: #1d4ed8;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.trial-onboarding-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.trial-onboarding-link {
    background: transparent;
    border: none;
    color: #1d4ed8;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .premium-upsell-card { padding: 16px; }
    .upsell-table { grid-template-columns: 1fr; }
    .upsell-actions { flex-direction: column; align-items: stretch; }
    .upsell-cta, .upsell-link { width: 100%; text-align: center; }
}

@media (max-width: 640px) {
    .trial-gate-card {
        width: 94vw;
        border-radius: 18px;
        padding: 20px 18px 18px;
    }
    .trial-gate-pill-row { justify-content: center; }
    .trial-gate-features { font-size: 0.9rem; }
}

/* ============================================================ */
/* DESKTOP 900px+: no blur/hover/transitions (stops crash). Mobile untouched. */
/* ============================================================ */
@media (min-width: 900px) {
    /* Kill heavy animations on desktop */
    * {
        animation: none !important;
    }

    /* Premium overlay — fully flatten on desktop to prevent GPU crash */
    .premium-overlay,
    .premium-overlay * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: none !important;
        animation: none !important;
    }
    /* Disable ALL hover effects on premium sections on desktop - comprehensive */
    .premium-overlay *:hover,
    .premium-overlay *:focus,
    .premium-overlay-body *:hover,
    .premium-overlay-body *:focus,
    .premium-section:hover,
    .premium-section *:hover,
    .premium-text:hover,
    .premium-label:hover,
    .premium-title:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-color: rgba(211, 47, 47, 0.15) !important;
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }
    /* Remove base box-shadow from sections on desktop (keeps GPU layers minimal) */
    .premium-overlay .premium-section {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
        transition: none !important;
        transform: none !important;
    }
    /* Force disable all hover state changes - prevent any style recalculation */
    .premium-overlay .premium-section,
    .premium-overlay .premium-section *,
    .premium-overlay-body,
    .premium-overlay-body * {
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }
    /* analysis-card hover effects cause main thread freeze — disable completely on desktop */
    .analysis-card,
    .analysis-card * {
        transition: none !important;
        animation: none !important;
        will-change: auto !important;
    }
    .analysis-card:hover,
    .analysis-card:hover *,
    .intro-card:hover,
    .body-card:hover,
    .conclusion-card:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .premium-analysis-container,
    .premium-analysis-container * {
        transition: none !important;
        animation: none !important;
    }

    /* Profile tab: no hover, no transition, no blur – prevents crash on open/hover */
    .feed-container .profile-container-enhanced,
    .feed-container .profile-container-enhanced * {
        transition: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .feed-container .profile-container-enhanced *:hover,
    .feed-container .profile-container-enhanced *:focus {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .feed-container .profile-card-enhanced:hover {
        border-color: rgba(211, 47, 47, 0.2);
    }

    /* Global hover effects that trigger repaints */
    button:not(:disabled):hover,
    .btn:hover,
    .select-plan-btn:hover,
    .btn-start-trial:hover,
    .flash-card:hover,
    .news-card:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    .news-card:hover .news-title {
        transition: none !important;
    }

    /* News tab + deep analysis cards: remove hover/blur on desktop (keep Swiper transforms) */
    .feed-container .premium-section,
    .feed-container .premium-section * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .feed-container .premium-section,
    .feed-container .premium-section:hover {
        background: #ffffff !important;
    }
    .feed-container .news-card,
    .feed-container .flash-card,
    .feed-container .profile-card-enhanced,
    .feed-container .premium-section {
        box-shadow: none !important;
        filter: none !important;
        background: #ffffff !important;
        border-color: rgba(211, 47, 47, 0.12) !important;
    }
    .feed-container .premium-section:hover,
    .feed-container .premium-section *:hover,
    .feed-container .news-card:hover,
    .feed-container .flash-card:hover {
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    /* Premium analysis news: strip all effects on desktop */
    .feed-container .premium-section,
    .feed-container .premium-section * {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
        animation: none !important;
    }
    .feed-container .premium-section:hover,
    .feed-container .premium-section *:hover,
    .feed-container .premium-section:focus-within,
    .feed-container .premium-section *:focus {
        transition: none !important;
        transform: none !important;
        box-shadow: none !important;
        filter: none !important;
    }
    .feed-container .news-title {
        transition: none !important;
    }

    /* Glass/blur heavy blocks */
    .glass-splash-card,
    .daily-guide-card .guide-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .genz-guide-card::before,
    .genz-wrap-card::before,
    .daily-guide-card::before {
        display: none !important;
    }

    /* Desktop warning card */
    .desktop-warning-card {
        background: #fff8e1 !important;
        border: 1px solid #ffe0b2 !important;
        box-shadow: none !important;
    }
    .desktop-warning-inner {
        padding: 16px 18px;
    }
    .desktop-warning-title {
        font-weight: 800;
        color: #e65100;
        margin-bottom: 6px;
    }
    .desktop-warning-text {
        color: #5d4037;
        line-height: 1.5;
        font-size: 0.95rem;
    }

    /* Daily guide card: make text visible on light desktop */
    .daily-guide-card,
    .daily-guide-card .guide-card {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #e5e7eb !important;
        box-shadow: none !important;
    }
    .daily-guide-card .guide-subtitle,
    .daily-guide-card .step-desc {
        color: #444444 !important;
    }
    .daily-guide-card .step-title {
        color: #111111 !important;
    }
    .daily-guide-card .step-item {
        opacity: 1 !important;
        transform: none !important;
    }
    .daily-guide-card .step-item::before {
        background: #e5e7eb !important;
        opacity: 1 !important;
    }
    .daily-guide-card .streak-badge {
        background: #fff3e0 !important;
        border-color: #ffe0b2 !important;
        color: #e65100 !important;
    }
    .daily-guide-card .dot-glow {
        box-shadow: none !important;
        animation: none !important;
    }
    .daily-guide-card .btn-start {
        background: #111111 !important;
        color: #ffffff !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .daily-guide-card .btn-start:hover {
        background: #111111 !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* ============================================================ */
/* MANIFESTATION CARD STYLES */
/* ============================================================ */

.manifestation-card-wrapper {
    margin-bottom: 25px;
}

.manifestation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.manifestation-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.manifestation-edit-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.3);
}

.manifestation-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.manifestation-edit-btn:active {
    transform: translateY(0);
}

.manifestation-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #d32f2f;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.15);
}

.manifestation-card:hover {
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.2);
    transform: translateY(-2px);
    border-color: #b71c1c;
}

.manifestation-card-top {
    margin-bottom: 20px;
}

.manifestation-contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.manifestation-phone,
.manifestation-email {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.manifestation-phone i,
.manifestation-email i {
    color: #f97316;
    font-size: 14px;
}

.manifestation-card-center {
    text-align: center;
    margin: 24px 0;
}

.manifestation-logo {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manifestation-logo img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.manifestation-name {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.manifestation-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 16px auto;
    max-width: 200px;
}

.manifestation-position {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manifestation-card-bottom {
    text-align: center;
    margin-top: 20px;
}

.manifestation-location {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.manifestation-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.manifestation-card-overlay p {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 0 20px;
}

/* Daily Motivation Quote */
.manifestation-quote {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-top: 16px;
    position: relative;
}

.manifestation-quote i.fa-quote-left {
    position: absolute;
    top: 12px;
    left: 16px;
    color: #f97316;
    font-size: 18px;
    opacity: 0.6;
}

.manifestation-quote i.fa-quote-right {
    position: absolute;
    bottom: 12px;
    right: 16px;
    color: #f97316;
    font-size: 18px;
    opacity: 0.6;
}

.manifestation-quote #quote-text {
    display: block;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    font-style: italic;
    padding: 0 30px;
    min-height: 40px;
}

/* Manifestation Form Popup */
.manifestation-form-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.manifestation-form-popup.active {
    display: flex;
}

.manifestation-form-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.manifestation-form-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.manifestation-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.manifestation-form-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.manifestation-form-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.manifestation-form-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.manifestation-form-body {
    padding: 24px;
}

.manifestation-form-body .form-group {
    margin-bottom: 20px;
}

.manifestation-form-body .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.manifestation-form-body label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.manifestation-form-body label i {
    color: #f97316;
    font-size: 14px;
}

.manifestation-form-body input[type="text"],
.manifestation-form-body input[type="email"],
.manifestation-form-body input[type="date"],
.manifestation-form-body select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.manifestation-form-body input:focus,
.manifestation-form-body select:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.manifestation-form-body input::placeholder {
    color: #9ca3af;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-save {
    background: #f97316;
    color: #ffffff;
}

.btn-save:hover {
    background: #ea580c;
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark Mode Support */
body.dark-mode .manifestation-card {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #d32f2f;
    color: #f9fafb;
    box-shadow: 0 4px 16px rgba(211, 47, 47, 0.2);
}

body.dark-mode .manifestation-card:hover {
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3);
    border-color: #f44336;
}

body.dark-mode .manifestation-card-title {
    color: #f9fafb;
}

body.dark-mode .manifestation-edit-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
}

body.dark-mode .manifestation-edit-btn:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.5);
}

body.dark-mode .manifestation-name {
    color: #f9fafb;
}

body.dark-mode .manifestation-position,
body.dark-mode .manifestation-location,
body.dark-mode .manifestation-phone,
body.dark-mode .manifestation-email {
    color: #d1d5db;
}

body.dark-mode .manifestation-divider {
    background: #374151;
}

body.dark-mode .manifestation-card-overlay {
    background: rgba(31, 41, 55, 0.95);
}

body.dark-mode .manifestation-card-overlay p {
    color: #d1d5db;
}

body.dark-mode .manifestation-quote {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-color: #374151;
}

body.dark-mode .manifestation-quote #quote-text {
    color: #d1d5db;
}

body.dark-mode .manifestation-form-content {
    background: #1f2937;
    color: #f9fafb;
}

body.dark-mode .manifestation-form-header {
    border-bottom-color: #374151;
}

body.dark-mode .manifestation-form-header h3 {
    color: #f9fafb;
}

body.dark-mode .manifestation-form-body input,
body.dark-mode .manifestation-form-body select {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
}

body.dark-mode .manifestation-form-body input:focus,
body.dark-mode .manifestation-form-body select:focus {
    border-color: #f97316;
}

body.dark-mode .manifestation-form-body label {
    color: #d1d5db;
}

body.dark-mode .btn-cancel {
    background: #374151;
    color: #d1d5db;
}

body.dark-mode .btn-cancel:hover {
    background: #4b5563;
}

body.dark-mode .form-actions {
    border-top-color: #374151;
}

/* Responsive */
@media (max-width: 640px) {
    .manifestation-form-body .form-row {
        grid-template-columns: 1fr;
    }
    
    .manifestation-contact-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .manifestation-name {
        font-size: 20px;
    }
    
    .manifestation-position {
        font-size: 14px;
    }
}

/* ============================================================ */
/* MODERN PLANS DESIGN - INSPIRED BY REACT COMPONENT */
/* ============================================================ */

.modern-plans-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FFFFFF;
    color: #1F2937;
    padding-bottom: 150px; /* Increased to account for bottom nav (70px) + footer ribbon (~60px) + spacing */
}

/* TIMER BANNER */
.timer-banner {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: #fff;
    padding: 12px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.timer-banner-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.timer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.timer-text i {
    font-size: 16px;
}

.timer-title-bold {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.timer-seats-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timer-seats-total {
    font-weight: 600;
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-seats {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.seats-label {
    font-weight: 600;
    opacity: 0.9;
}

.seats-count {
    font-weight: 900;
    font-size: 16px;
    color: #FFD700;
    transition: color 0.3s;
}

.seats-total {
    font-weight: 600;
    opacity: 0.8;
}

@media (max-width: 640px) {
    .timer-banner-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .timer-text,
    .timer-seats {
        font-size: 12px;
    }
    
    .timer-title-bold {
        font-size: 16px;
    }
    
    .timer-seats-wrapper {
        align-items: center;
    }
    
    .timer-seats-total {
        font-size: 10px;
    }
    
    .seats-count {
        font-size: 14px;
    }
}

/* HERO SECTION */
.plans-hero {
    padding: 30px 20px 60px;
    text-align: center;
}

.plans-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #FEE2E2;
    border-radius: 20px;
    background: #FEF2F2;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #DC2626;
}

.plans-headline {
    font-size: 42px;
    font-weight: 900;
    color: #0F172A;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight-officer {
    color: #2563EB;
    text-decoration: underline;
    text-decoration-thickness: 6px;
    text-underline-offset: 8px;
    text-decoration-color: #DBEAFE;
}

.plans-subheadline {
    font-size: 18px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 32px;
}

.red-text {
    color: #DC2626;
    font-weight: bold;
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.value-prop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #1F2937;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.value-prop i {
    font-size: 18px;
    flex-shrink: 0;
    color: #10B981;
    font-weight: 900;
}

.value-prop:hover {
    transform: none;
    box-shadow: none;
}

.value-prop span {
    font-weight: 700;
    color: #1F2937;
}

/* Remove all individual color styles - use green tick for all */
.value-prop-1,
.value-prop-2,
.value-prop-3,
.value-prop-4,
.value-prop-5,
.value-prop-6 {
    background: transparent;
    border: none;
    color: #1F2937;
}

.value-prop-1 i,
.value-prop-2 i,
.value-prop-3 i,
.value-prop-4 i,
.value-prop-5 i,
.value-prop-6 i {
    color: #10B981;
    font-weight: 900;
}

.hero-cta {
    background: #DC2626;
    color: #fff;
    padding: 18px 40px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
    transition: transform 0.2s;
}

.hero-cta:active {
    transform: scale(0.98);
}

/* SECTIONS */
.plans-section {
    padding: 40px 20px;
}

.plans-section-no-top {
    padding: 0 20px 40px;
}

.plans-section-gray {
    padding: 60px 20px;
    background: #F9FAFB;
}

.plans-section-content {
    max-width: 800px;
    margin: 0 auto;
}

.plans-section-content-wide {
    max-width: 1200px;
    margin: 0 auto;
}

.plans-section-title {
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 32px;
}

/* VIDEO REVIEWS */
.swipe-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 20px;
}

.swipe-container.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.swipe-card {
    flex-shrink: 0;
    width: 85%;
    max-width: 380px;
    scroll-snap-align: center;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.swipe-card:active {
    transform: scale(0.98);
}

.swipe-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

.video-image {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-info {
    padding: 16px;
}

.video-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.video-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #DC2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.video-name {
    font-size: 12px;
    font-weight: bold;
    color: #64748B;
}

.video-title {
    font-size: 14px;
    font-weight: bold;
    margin-top: 4px;
    line-height: 1.4;
    color: #1F2937;
}

.swipe-hint {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 10px;
}

.swipe-hint-bold {
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: #DC2626;
    margin-top: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.swipe-hint-bold::before {
    content: '←';
    font-size: 18px;
    animation: swipeLeft 1.5s ease-in-out infinite;
}

.swipe-hint-bold::after {
    content: '→';
    font-size: 18px;
    animation: swipeRight 1.5s ease-in-out infinite;
}

@keyframes swipeLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-8px); }
}

@keyframes swipeRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* VIDEO MODAL */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: videoModalFadeIn 0.3s ease;
}

.video-modal-overlay.active {
    display: flex;
}

@keyframes videoModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: videoModalSlideUp 0.3s ease;
}

@keyframes videoModalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #1F2937;
    border-bottom: 1px solid #374151;
}

.video-modal-info {
    flex: 1;
}

.video-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 4px;
}

.video-modal-author {
    font-size: 13px;
    color: #9CA3AF;
}

.video-modal-close {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: color 0.2s;
    margin-left: 16px;
}

.video-modal-close:hover {
    color: #F9FAFB;
}

.video-modal-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-modal-content {
        max-width: 100%;
        border-radius: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .video-modal-player {
        flex: 1;
        padding-bottom: 0;
        height: calc(100vh - 80px);
    }
    
    .video-modal-title {
        font-size: 14px;
    }
    
    .video-modal-author {
        font-size: 12px;
    }
}

/* WALL OF LOVE */
.wall-of-love-wrapper {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #E2E8F0;
}

/* Ensure wall columns have proper height for scrolling */
.wall-col {
    height: 100%;
    will-change: transform;
}

.fade-top {
    position: absolute;
    top: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, #fff, transparent);
    z-index: 10;
    pointer-events: none;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #fff, transparent);
    z-index: 10;
    pointer-events: none;
}

.wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
}

.wall-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
    min-height: 100%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.review-card-wall {
    background: #F8FAFC;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #F1F5F9;
    margin-bottom: 16px;
}

.review-header-wall {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author-wall {
    display: flex;
    gap: 10px;
    align-items: center;
}

.review-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #DC2626;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.review-name-wall {
    font-size: 13px;
    font-weight: bold;
    color: #1F2937;
}

.review-role-wall {
    font-size: 10px;
    color: #94A3B8;
}

.review-stars-wall {
    display: flex;
    gap: 2px;
}

.review-text-wall {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    font-style: italic;
}

/* BILLING TOGGLE */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto 24px;
}

.billing-button {
    padding: 8px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    color: #64748B;
    transition: all 0.2s;
}

.billing-button.active {
    background: #DC2626;
    color: #fff;
}

/* PLAN CARDS */
.plan-card-modern {
    background: #fff;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

.plan-card-modern.merit-card {
    border: 2px solid #DC2626;
    position: relative;
}

.merit-badge-modern {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #DC2626;
    color: #fff;
    font-size: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.plan-name-modern {
    font-size: 16px;
    font-weight: 900;
    color: #DC2626;
    margin-bottom: 8px;
}

.price-modern {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    color: #1F2937;
}

.price-modern .price-amount {
    font-weight: 900;
    font-size: 32px;
    color: #1F2937;
}

.price-modern .price-period {
    font-size: 18px;
    color: #64748B;
    font-weight: 400;
}

.old-price {
    font-size: 18px;
    color: #94A3B8;
    text-decoration: line-through;
    margin-right: 8px;
}

.merit-info-modern {
    font-size: 12px;
    color: #059669;
    font-weight: bold;
    margin-bottom: 16px;
}

.features-list-modern {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.feature-item-modern {
    display: flex;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #475569;
    align-items: flex-start;
}

.plan-button-modern {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.plan-button-modern:hover {
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.plan-button-modern:active {
    transform: scale(0.98);
}

.plan-button-primary-modern {
    width: 100%;
    padding: 14px;
    background: #DC2626;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-button-primary-modern:active {
    transform: scale(0.98);
}

/* REFERRAL */
.plan-referral-modern {
    margin-top: 20px;
}

.referral-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #E2E8F0;
}

.referral-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1F2937;
}

.referral-input-section-modern {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.referral-input-modern {
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
}

.referral-apply-btn-modern {
    padding: 12px;
    background: #DC2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.referral-message-modern {
    font-size: 12px;
    margin-top: 8px;
}

/* MERIT TRACKER */
.merit-box-modern {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    border: 2px dashed #DC2626;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.progress-header-modern {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1F2937;
}

.progress-bar-bg-modern {
    width: 100%;
    height: 12px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #DC2626, #EF4444);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.merit-tip-modern {
    font-size: 13px;
    color: #64748B;
}

/* FAQ */
.faq-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item-modern {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
}

.faq-question-modern {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question-text {
    font-size: 15px;
    font-weight: bold;
    color: #1F2937;
}

.faq-answer-modern {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
}

/* COMPARISON TABLE */
.table-wrapper-modern {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    background: #fff;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-header-modern {
    background: #F8FAFC;
}

.table-cell-head-modern {
    padding: 16px;
    text-align: center;
    font-weight: 900;
    color: #475569;
    border-bottom: 2px solid #E2E8F0;
}

.table-cell-feature-modern {
    padding: 16px;
    font-weight: bold;
    color: #1F2937;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
}

.table-cell-center-modern {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #F1F5F9;
}

.table-row-alt-modern {
    background: #F9FAFB;
}

.table-badge-modern {
    font-size: 11px;
    font-weight: 900;
    color: #64748B;
    background: #F1F5F9;
    padding: 4px 8px;
    border-radius: 6px;
}

.table-price-row-modern {
    background: #FEF2F2;
    font-weight: bold;
    color: #DC2626;
}

.table-actions-modern {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}

.table-btn-primary-modern {
    background: #DC2626;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s;
}

.table-btn-primary-modern:active {
    transform: scale(0.98);
}

.table-btn-secondary-modern {
    background: #fff;
    border: 1px solid #E2E8F0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s;
}

.table-btn-secondary-modern:active {
    transform: scale(0.98);
}

/* FOOTER */
.plans-footer-modern {
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid #F1F5F9;
    position: relative;
    margin-bottom: 0;
}

.trust-badges-modern {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.trust-badge-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #059669;
}

.trust-badge-modern i {
    font-size: 24px;
    color: #10B981;
    margin-bottom: 4px;
}

.footer-note-modern {
    font-size: 11px;
    color: #CBD5E1;
    margin-bottom: 20px;
}

/* FOOTER RIBBON */
.footer-ribbon-modern {
    position: fixed;
    bottom: 75px; /* Position above bottom nav (70px height) with 5px gap */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    padding: 12px 20px;
    display: none; /* Hidden by default */
    justify-content: space-between;
    align-items: center;
    z-index: 999; /* Below modals but above content */
    box-shadow: 0 -4px 12px rgba(16, 185, 129, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* Show footer ribbon only on Plans tab */
body.plans-tab-active .footer-ribbon-modern {
    display: flex;
}

/* Ensure bottom nav stays on top */
.bottom-nav {
    z-index: 1000 !important;
}

@keyframes glow {
    from {
        box-shadow: 0 -4px 12px rgba(16, 185, 129, 0.3);
    }
    to {
        box-shadow: 0 -4px 20px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.3);
    }
}

.ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ribbon-content:active {
    opacity: 0.8;
}

.ribbon-content i {
    font-size: 18px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ribbon-text {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.ribbon-price {
    font-weight: 900;
    font-size: 18px;
    white-space: nowrap;
    padding: 4px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
    .footer-ribbon-modern {
        padding: 10px 16px;
        bottom: 75px; /* Still above bottom nav on mobile */
    }
    
    .ribbon-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ribbon-text,
    .ribbon-price {
        font-size: 14px;
    }
}

/* STICKY CTA - Removed, replaced by footer ribbon */

/* ═══════════════════════════════════════════════════════════ */
/* VIDEO INTEREST MODAL - ELITE SELF-STUDY BATCH */
/* ═══════════════════════════════════════════════════════════ */

.video-interest-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(254, 252, 232, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
}

.video-interest-modal-overlay.active {
    opacity: 1;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.video-interest-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.video-interest-modal-overlay.active .video-interest-modal {
    transform: translateY(0);
}

/* Header */
.video-modal-header {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.video-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.video-modal-badge {
    background: #FCD34D;
    color: #991B1B;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 8px;
    width: fit-content;
}

.video-modal-title {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
}

.video-modal-subtitle {
    color: #FCA5A5;
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
}

/* Content */
.video-modal-content {
    padding: 24px;
    max-height: calc(90vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Status Banner */
.video-status-banner {
    background: #FEF2F2;
    border: 1px solid #FEE2E2;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.video-status-banner i {
    color: #DC2626;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.video-status-title {
    color: #991B1B;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 4px 0;
}

.video-status-text {
    color: #DC2626;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Features Section */
.video-features-section {
    margin-bottom: 24px;
}

.video-section-title {
    font-size: 10px;
    font-weight: 900;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px 0;
}

.video-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.video-feature-card {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #F3F4F6;
    transition: border-color 0.2s;
}

.video-feature-card:hover {
    border-color: #E5E7EB;
}

.video-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 16px;
}

.video-feature-icon.calendar-icon {
    background: #FEE2E2;
    color: #DC2626;
}

.video-feature-icon.calendar-icon i.fa-video {
    color: #DC2626;
}

.video-feature-icon.news-icon {
    background: #DBEAFE;
    color: #2563EB;
}

.video-feature-icon.target-icon {
    background: #FED7AA;
    color: #EA580C;
}

.video-feature-icon.edit-icon {
    background: #E9D5FF;
    color: #9333EA;
}

.video-feature-card h4 {
    font-size: 13px;
    font-weight: 900;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.video-feature-card p {
    font-size: 10px;
    color: #6B7280;
    line-height: 1.4;
    margin: 0;
}

/* Pricing Section */
.video-pricing-section {
    margin-bottom: 24px;
}

.video-pricing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #F3F4F6;
    border-bottom: 1px solid #F3F4F6;
    padding: 16px 0;
    margin-bottom: 16px;
}

.video-pricing-label {
    font-size: 10px;
    font-weight: 900;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 4px 0;
}

.video-pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.video-pricing-amount span:first-child {
    font-size: 24px;
    font-weight: 900;
    color: #1F2937;
}

.video-pricing-period {
    font-size: 12px;
    color: #6B7280;
}

.video-guarantee-badge {
    background: #ECFDF5;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.video-guarantee-badge i {
    color: #059669;
    font-size: 14px;
}

.video-guarantee-text {
    color: #047857;
    font-weight: 900;
    font-size: 12px;
}

.video-guarantee-subtext {
    color: #10B981;
    font-size: 9px;
    margin: 0;
}

/* Eligibility Card */
.video-eligibility-card {
    background: #FEF9E7;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #FDE68A;
    color: #1F2937;
}

.video-eligibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.video-eligibility-header h4 {
    font-size: 10px;
    font-weight: 900;
    color: #4B5563;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.video-eligibility-header h4 i {
    color: #FCD34D;
    font-size: 14px;
}

.video-invite-badge {
    font-size: 10px;
    color: #6B7280;
    font-style: italic;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.video-progress-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.video-progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.video-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #4B5563;
}

.video-progress-label i {
    margin-right: 6px;
}

.video-progress-label i.fa-bolt {
    color: #FB923C;
}

.video-progress-label i.fa-check-circle {
    color: #60A5FA;
}

.video-progress-value {
    color: #4B5563;
}

.video-progress-value.achieved {
    color: #10B981;
}

.video-progress-bar {
    height: 6px;
    width: 100%;
    background: #FDE68A;
    border-radius: 999px;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease;
}

.video-progress-fill.tests-fill {
    background: #10B981;
}

.video-progress-fill.score-fill {
    background: #FCD34D;
}

.video-progress-label i.fa-check-circle {
    color: #10B981;
}

.video-progress-label i.fa-trophy {
    color: #FCD34D;
}

/* Action Section */
.video-action-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-apply-btn {
    width: 100%;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #fff;
    font-weight: 900;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.2s;
    font-size: 16px;
}

.video-apply-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
    transform: translateY(-1px);
}

.video-apply-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.video-apply-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.video-apply-btn.submitted {
    background: #10B981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.video-disclaimer {
    font-size: 10px;
    color: #9CA3AF;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    padding: 0 12px;
}

.video-success-message {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.video-success-title {
    color: #065F46;
    font-weight: 900;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.video-success-title i {
    color: #10B981;
}

.video-success-text {
    color: #047857;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (min-width: 640px) {
    .video-interest-modal-overlay {
        align-items: center;
        padding: 16px;
    }
    
    .video-interest-modal {
        border-radius: 24px;
        max-height: 85vh;
    }
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    .modern-plans-container {
        background-color: #0F172A;
        color: #F1F5F9;
    }
    
    .plans-hero,
    .plans-section {
        background-color: #0F172A;
    }
    
    .plans-section-gray {
        background: #1E293B;
    }
    
    .plan-card-modern,
    .swipe-card,
    .review-card-wall,
    .merit-box-modern,
    .faq-item-modern,
    .table-wrapper-modern {
        background: #1E293B;
        border-color: #334155;
    }
    
    .sticky-bar-modern {
        background: #1E293B;
        border-color: #334155;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .plans-headline {
        font-size: 32px;
    }
    
    .wall-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-badges-modern {
        gap: 20px;
    }
    
    .table-wrapper-modern {
        font-size: 11px;
    }
    
    .table-cell-head-modern,
    .table-cell-feature-modern,
    .table-cell-center-modern {
        padding: 12px 8px;
    }
}

/* ============================================================ */
/* INSTALLED PWA (desktop standalone): disable ALL hover effects */
/* ============================================================ */
@media (display-mode: standalone) and (min-width: 900px) {
    .premium-overlay .premium-section,
    .premium-overlay .premium-section:hover,
    .premium-overlay .premium-section:focus {
        transform: none !important;
        transition: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        border-color: rgba(211, 47, 47, 0.15) !important;
        background: #ffffff !important;
    }
}

/* ============================================================ */
/* DESKTOP STATIC PREMIUM OVERLAY — zero effects, zero crash    */
/* ============================================================ */
#premium-overlay.desktop-overlay {
    all: unset;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f7f8fa !important;
    z-index: 10000 !important;
    font-family: 'DM Sans', 'Roboto', sans-serif !important;
    /* Zero GPU effects */
    transform: none !important;
    transition: none !important;
    animation: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    will-change: auto !important;
}
#premium-overlay.desktop-overlay * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
    backdrop-filter: none !important;
}
#premium-overlay.desktop-overlay *:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}
.ds-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #d32f2f;
    color: #fff;
    flex-shrink: 0;
}
.ds-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.ds-pos {
    font-size: 13px;
    opacity: 0.85;
    flex: 1;
}
.ds-header-actions {
    display: flex;
    gap: 8px;
}
.ds-nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}
.ds-save-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 7px 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}
.ds-save-btn.saved {
    background: rgba(76, 175, 80, 0.3);
}
.ds-save-btn i {
    color: #fff;
    font-size: 16px;
}
.ds-meta {
    padding: 10px 24px 0;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    flex-shrink: 0;
}
.ds-title {
    padding: 10px 24px 14px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    border-bottom: 2px solid #eee;
    flex-shrink: 0;
}
.ds-body {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 20px 24px;
    /* Stop scroll fighting */
    overflow-anchor: none;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
}
.ds-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    /* Isolate completely — hover on children cannot affect outside */
    contain: content;
    pointer-events: none;
}
.ds-label {
    font-size: 13px;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 8px;
}
.ds-text {
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    white-space: pre-wrap;
    word-break: break-word;
}
.ds-footer {
    padding: 14px 20px;
    background: #fff;
    border-top: 2px solid #eee;
    flex-shrink: 0;
}
.ds-action-row {
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.ds-like-btn,
.ds-feedback-btn {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ds-like-btn.liked {
    background: #ffebee;
    border-color: #d32f2f;
    color: #d32f2f;
}
.ds-like-btn.liked i {
    color: #d32f2f;
}
.ds-feedback-card {
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.ds-feedback-card-hidden {
    display: none;
}
.ds-feedback-question {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}
.ds-feedback-sentiment-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.ds-feedback-sentiment-btn {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ds-feedback-sentiment-btn.active {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}
.ds-feedback-negative.active {
    background: #ffebee;
    border-color: #d32f2f;
    color: #c62828;
}
.ds-feedback-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
}
.ds-feedback-submit-btn {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ds-understand-btn {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.03em;
}

/* ============================================================ */
/* END OF COMPLETE STYLESHEET - v4.9.0 */
/* ============================================================ */