/* ==========================================================================
   GKQuizy — Master Mobile-First & Desktop Design System
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', 'Noto Sans Devanagari', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Brand & Accent Colors */
    --primary: #5833EA;
    --primary-hover: #4824D6;
    --primary-light: #EDE9FE;
    --primary-gradient: linear-gradient(135deg, #5833EA 0%, #3B1BBE 100%);
    
    /* Surface & Canvas */
    --bg-canvas: #F4F6F9;
    --bg-surface: #FFFFFF;
    --bg-surface-muted: #F8FAFC;
    --border-color: #E2E8F0;
    --border-subtle: #F1F5F9;
    
    /* Text Hierarchy */
    --text-main: #0F172A;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;
    --text-white: #FFFFFF;
    
    /* Categories & Badges */
    --badge-defence-bg: #ECFDF5;
    --badge-defence-text: #059669;
    --badge-national-bg: #EFF6FF;
    --badge-national-text: #2563EB;
    --badge-international-bg: #F3E8FF;
    --badge-international-text: #7C3AED;
    
    /* eFootball Metallic Colors */
    --efootball-gold-border: linear-gradient(135deg, #FFE894 0%, #D4AF37 40%, #8A6818 70%, #F5CE62 100%);
    --efootball-silver-border: linear-gradient(135deg, #E0F2FE 0%, #38BDF8 40%, #0369A1 70%, #BAE6FD 100%);
    --efootball-bronze-border: linear-gradient(135deg, #FFEDD5 0%, #FB923C 40%, #9A3412 70%, #FDBA74 100%);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    --shadow-elevated: 0 10px 25px -4px rgba(88, 51, 234, 0.25);
}

/* Custom Thin Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Firefox Support */
html {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 var(--bg-canvas);
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: var(--font-main);
    background-color: var(--bg-canvas);
    color: var(--text-main);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

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

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

/* ==========================================================================
   Base Layout Structure
   ========================================================================== */
.app-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Sidebar Drawer Backdrop (Mobile) */
.sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Left Sidebar */
.desktop-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #F5F3FF 0%, #FAF5FF 40%, #FFFFFF 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: hidden;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

.sidebar-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px 18px 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 4px;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    padding: 3px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 12px rgba(88, 51, 234, 0.12);
    flex-shrink: 0;
}

.sidebar-logo .logo-text-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.5px;
    display: block;
}

.sidebar-logo .logo-text .dot {
    color: var(--primary);
}

.sidebar-logo .logo-tagline {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 800;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
    padding: 0 14px 10px 14px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: #64748B;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.nav-item a:hover {
    background: #F8FAFC;
    color: var(--primary);
}

.nav-item.active a {
    background: #F5F3FF;
    color: var(--primary);
    font-weight: 800;
    border-left-color: var(--primary);
}

.nav-item .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item a:hover .icon {
    transform: scale(1.18);
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748B;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.category-item a:hover {
    background: #F8FAFC;
    color: #0F172A;
}

.category-item.active a {
    background: #F5F3FF;
    color: var(--primary);
    font-weight: 800;
    border-left-color: var(--primary);
}

.category-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(88, 51, 234, 0.08);
    color: var(--primary);
    border: 1px solid rgba(88, 51, 234, 0.05);
}

/* Streak card sidebar widget */
.streak-sidebar-card {
    background: var(--primary-light);
    border: 1px solid rgba(88, 51, 234, 0.2);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    margin-top: 10px;
}

.streak-sidebar-card h5 {
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.streak-sidebar-card p {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.streak-sidebar-card .btn-streak {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.streak-sidebar-card .btn-streak:hover {
    background: var(--primary-hover);
}

/* User Profile card sidebar widget */
.sidebar-profile-card-wrapper {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-muted);
}

.sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.sidebar-profile-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-link {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.sidebar-profile-chevron {
    color: var(--text-subtle);
    flex-shrink: 0;
}


.sidebar-premium-card .btn-premium-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==========================================================================
   Main Layout & App Header
   ========================================================================== */
.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    box-sizing: border-box;
}

.content-body {
    padding: 16px;
    padding-bottom: 84px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.top-navbar {
    height: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-main);
    border-radius: var(--radius-md);
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.greeting-text h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.greeting-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box-container {
    display: none;
}

.btn-icon-search-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    color: var(--text-main);
}

.btn-icon-notify {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full, 50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: var(--bg-surface-muted, #F1F5F9);
    border: 1px solid var(--border-color, #E2E8F0);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-notify:hover {
    transform: scale(1.05);
    background: var(--bg-surface, #FFFFFF);
}

.btn-auth-desktop-pill {
    display: none;
}

.content-body {
    padding: 14px;
    padding-bottom: 84px;
    width: 100%;
}

@media (max-width: 480px) {
    .content-body {
        padding: 8px 8px 84px 8px;
    }
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.grid-main-column, .grid-side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Home Components
   ========================================================================== */
.streak-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-card);
    gap: 10px;
}

.streak-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.streak-text p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.btn-streak-cta {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #DDD6FE;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-quiz-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 22px 18px;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.hero-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hero-quiz-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.exam-pill-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: #FFFFFF;
}

.btn-start-quiz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF !important;
    color: #1E1B4B !important;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: none;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.btn-start-quiz:hover {
    background: #FFFFFF !important;
    color: #312E81 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-start-quiz:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hero-attempted-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: default;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
    .hero-quiz-card {
        padding: 16px 14px !important;
        border-radius: 16px !important;
    }
    .hero-quiz-title {
        font-size: 1.12rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    .hero-meta-row {
        gap: 10px !important;
        font-size: 0.74rem !important;
        margin-bottom: 10px !important;
    }
    .hero-categories-pills {
        gap: 4px !important;
        margin-bottom: 14px !important;
    }
    .hero-3d-graphic {
        opacity: 0.15 !important;
        right: -25px !important;
        bottom: -25px !important;
        transform: scale(0.8) !important;
    }
    .btn-start-quiz {
        padding: 8px 18px !important;
        font-size: 0.82rem !important;
    }
}

.btn-start-quiz .arrow-circle {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-graphic {
    display: none;
}

/* Ranking Tabs Switch & Test Scrollable Pills */
.test-ranking-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.test-ranking-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.test-pill-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.test-pill-tab:hover {
    color: var(--primary);
    border-color: #DDD6FE;
}

.test-pill-tab.active {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(88, 51, 234, 0.25);
}

.live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.live-status-pill.is-live {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.live-status-pill.is-final {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: #DC2626;
    animation: liveRadarPulse 1.8s infinite;
}

/* Leaderboard Filter Grid */
.leaderboard-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .leaderboard-filter-grid {
        grid-template-columns: 1.2fr 1fr 1fr auto;
        align-items: center;
    }
}

.filter-input-control {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--bg-surface-muted);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-input-control:focus {
    background: var(--bg-surface);
    border-color: var(--primary);
}

.btn-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.btn-filter-submit:hover {
    background: var(--primary-hover);
}


/* Quick Actions (Uniform Size with Smooth Horizontal Scroll on Mobile, 5-Grid on Desktop) */
.quick-actions-grid {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 8px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-actions-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .quick-actions-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow-x: visible;
        padding: 0;
    }
}

.quick-action-card {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    height: 96px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    box-shadow: var(--shadow-card);
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (min-width: 768px) {
    .quick-action-card {
        flex: 1;
        width: 100%;
        min-width: 0;
        height: auto;
        padding: 14px 6px;
    }
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.action-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-card .action-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}

/* News Feed */
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.section-view-all {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 2px;
}

.current-affairs-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card-horizontal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.news-card-horizontal:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1;
    box-shadow: var(--shadow-card-hover);
}

.news-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.news-thumb {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-thumb svg {
    width: 24px;
    height: 24px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.news-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.news-card-horizontal:hover .news-title {
    color: var(--primary);
}

.news-meta-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.news-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 2.5px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    background: #EEF2FF;
    color: #4F46E5;
    border: 1px solid #C7D2FE;
}

.badge-defence { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-national { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }
.badge-international { background: #FAF5FF; color: #7C3AED; border: 1px solid #E9D5FF; }
.badge-economy { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.badge-science-tech { background: #ECFEFF; color: #0891B2; border: 1px solid #A5F3FC; }
.badge-sports { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-current-affairs { background: #EEF2FF; color: #4F46E5; border: 1px solid #C7D2FE; }
.badge-exam-strategies-guides, .badge-exam-strategies { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.badge-polity-governance, .badge-polity { background: #FDF4FF; color: #C026D3; border: 1px solid #F5D0FE; }

.news-card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.news-card-horizontal:hover .news-card-arrow {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .news-card-horizontal {
        padding: 10px 12px;
        gap: 10px;
    }
    .news-thumb {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    .news-title {
        font-size: 0.84rem;
        line-height: 1.3;
    }
    .news-card-arrow {
        display: none;
    }
}

/* ==========================================================================
   AUTHENTIC eFOOTBALL / EPIC BIG TIME CARD ENGINE
   ========================================================================== */

/* Shaders & Keyframes */
@keyframes eFootballBokehPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

@keyframes eFootballLaserSweep {
    0% { transform: translateX(-180%) rotate(25deg); }
    25%, 100% { transform: translateX(200%) rotate(25deg); }
}

@keyframes eFootballGoldGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), 0 0 30px rgba(184, 134, 11, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.7), 0 0 45px rgba(212, 175, 55, 0.4);
    }
}

@keyframes eFootballCyanGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    }
    50% {
        box-shadow: 0 0 22px rgba(14, 165, 233, 0.7);
    }
}

@keyframes eFootballBronzeGlow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 22px rgba(234, 88, 12, 0.7);
    }
}

@keyframes liveRadarPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* eFootball Podium Arena */
.efootball-podium-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
}

@media (min-width: 768px) {
    .efootball-podium-grid {
        gap: 16px;
        margin-bottom: 24px;
    }
}

/* Authentic eFootball Card Shell */
.efootball-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 12px;
    padding: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
    cursor: pointer;
    user-select: none;
}

.efootball-card:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

/* Card Plate Body */
.efootball-card-body {
    width: 100%;
    box-sizing: border-box;
    border-radius: 9px;
    padding: 18px 12px 14px 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

@media (min-width: 1024px) {
    .efootball-rank-1 .efootball-card-body {
        min-height: 260px;
        padding: 22px 16px 18px 16px;
    }

    .efootball-rank-2 .efootball-card-body,
    .efootball-rank-3 .efootball-card-body {
        min-height: 235px;
        padding: 18px 12px 14px 12px;
    }
}

/* Diagonal Holographic Sheen */
.efootball-card-body::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.3) 48%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 52%,
        transparent 65%
    );
    animation: eFootballLaserSweep 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
}

/* -------------------------------------------------------------
   RANK 1: EPIC GOLD BIG TIME CARD (102 OVR)
   ------------------------------------------------------------- */
.efootball-rank-1 {
    background: var(--efootball-gold-border);
    animation: eFootballGoldGlow 3s infinite alternate ease-in-out;
    padding-bottom: 3px;
    z-index: 4;
}

.efootball-rank-1 .efootball-card-body {
    background: radial-gradient(circle at 50% 30%, #153B28 0%, #081B12 60%, #030A07 100%);
    border: 1.5px solid rgba(255, 232, 148, 0.6);
}

/* -------------------------------------------------------------
   RANK 2: CYBER DIAMOND BIG TIME CARD (99 OVR)
   ------------------------------------------------------------- */
.efootball-rank-2 {
    background: var(--efootball-silver-border);
    animation: eFootballCyanGlow 3.5s infinite alternate ease-in-out;
}

.efootball-rank-2 .efootball-card-body {
    background: radial-gradient(circle at 50% 30%, #0A2540 0%, #051329 60%, #020813 100%);
    border: 1.5px solid rgba(186, 230, 253, 0.5);
}

/* -------------------------------------------------------------
   RANK 3: INFERNO BRONZE EPIC CARD (97 OVR)
   ------------------------------------------------------------- */
.efootball-rank-3 {
    background: var(--efootball-bronze-border);
    animation: eFootballBronzeGlow 4s infinite alternate ease-in-out;
}

.efootball-rank-3 .efootball-card-body {
    background: radial-gradient(circle at 50% 30%, #3B1408 0%, #200903 60%, #0D0301 100%);
    border: 1.5px solid rgba(254, 215, 170, 0.5);
}

/* Card Header: Rating, Position, Shield */
.efootball-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    z-index: 3;
    margin-bottom: 6px;
}

.efootball-rating-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.efootball-rating-num {
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.efootball-pos-tag {
    font-size: 0.72rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.efootball-crest-icon {
    width: 22px;
    height: 22px;
    color: #FFDF00;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Dynamic Hero Character Avatar */
.efootball-avatar-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 8px auto;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.efootball-rank-1 .efootball-avatar-wrap {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle, #FFE894 0%, #D4AF37 70%, transparent 100%);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.8);
}

.efootball-rank-2 .efootball-avatar-wrap {
    background: radial-gradient(circle, #BAE6FD 0%, #0284C7 70%, transparent 100%);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.efootball-rank-3 .efootball-avatar-wrap {
    background: radial-gradient(circle, #FED7AA 0%, #EA580C 70%, transparent 100%);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.7);
}

.efootball-avatar-wrap svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
}

.efootball-rank-1 .efootball-avatar-wrap svg {
    width: 44px;
    height: 44px;
}

/* Player Name & State */
.efootball-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    z-index: 3;
    line-height: 1.2;
    margin-top: 4px;
}

.efootball-state {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    z-index: 3;
    margin-top: 2px;
    margin-bottom: 8px;
}

/* Iconic eFootball Bottom Plaque / Stepped Pedestal */
.efootball-pedestal {
    width: 98%;
    background: linear-gradient(180deg, #2A2415 0%, #15120B 100%);
    border: 1px solid #D4AF37;
    border-radius: 6px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    z-index: 3;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.efootball-rank-2 .efootball-pedestal {
    border-color: #38BDF8;
    background: linear-gradient(180deg, #102131 0%, #081018 100%);
}

.efootball-rank-3 .efootball-pedestal {
    border-color: #FB923C;
    background: linear-gradient(180deg, #2A160C 0%, #120904 100%);
}

.efootball-stars {
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 1px;
}

.efootball-rank-1 .efootball-stars { color: #FFDF00; }
.efootball-rank-2 .efootball-stars { color: #38BDF8; }
.efootball-rank-3 .efootball-stars { color: #FB923C; }

.efootball-xp-text {
    font-size: 0.82rem;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
}

/* -------------------------------------------------------------
   MOBILE ADAPTIVE RULES FOR eFOOTBALL PODIUM (<= 640px)
   ------------------------------------------------------------- */
@media (max-width: 640px) {
    .efootball-podium-grid {
        gap: 4px;
        margin-bottom: 8px;
    }

    .efootball-card-body {
        padding: 6px 2px 4px 2px;
        min-height: unset !important;
    }

    .efootball-avatar-wrap {
        width: 32px !important;
        height: 32px !important;
        margin: 2px auto !important;
    }

    .efootball-rank-1 .efootball-avatar-wrap {
        width: 38px !important;
        height: 38px !important;
    }

    .efootball-avatar-wrap svg {
        width: 20px !important;
        height: 20px !important;
    }

    .efootball-rank-1 .efootball-avatar-wrap svg {
        width: 24px !important;
        height: 24px !important;
    }

    .efootball-name {
        font-size: 0.66rem !important;
        letter-spacing: 0;
    }

    .efootball-state {
        font-size: 0.52rem !important;
        margin-bottom: 2px !important;
    }

    .efootball-pos-tag {
        font-size: 0.52rem !important;
    }

    .efootball-crest-icon {
        width: 12px !important;
        height: 12px !important;
    }

    .efootball-pedestal {
        padding: 2px !important;
    }

    .efootball-stars {
        font-size: 0.48rem !important;
    }

    .efootball-xp-text {
        font-size: 0.58rem !important;
    }
}

/* Leaderboard Responsive Table Styles */
.leaderboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 14px;
}

@media (max-width: 640px) {
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 6px;
    }

    .leaderboard-table .col-hide-mobile {
        display: none;
    }

    .leaderboard-table .student-name-text {
        font-size: 0.78rem;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .leaderboard-table .student-meta-sub {
        display: flex !important;
        align-items: center;
        gap: 4px;
        font-size: 0.65rem;
        color: var(--text-muted);
    }
}

/* ==========================================================================
   Gamified Pinned User Standing Card (#47 Guest User)
   ========================================================================== */
.user-standing-card-dark {
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
    border: 1.5px solid #6366F1;
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    color: #FFFFFF;
    margin-top: 6px;
    width: 100%;
}

.user-standing-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.user-standing-rank-badge {
    background: #4F46E5;
    color: #FFFFFF;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.user-standing-info h5 {
    font-size: 0.84rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.user-standing-info p {
    font-size: 0.7rem;
    color: #C7D2FE;
    line-height: 1.2;
}

.user-standing-xp {
    font-size: 0.88rem;
    font-weight: 900;
    color: #A5B4FC;
    flex-shrink: 0;
    text-align: right;
}

/* Go Premium Dark Card */
.go-premium-dark-card {
    background: #0B0F19;
    border: 1px solid #1E293B;
    border-radius: var(--radius-xl);
    padding: 16px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.premium-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-crown-icon {
    color: #F59E0B;
    display: flex;
    align-items: center;
}

.premium-card-left h3 { font-size: 0.86rem; font-weight: 800; margin-bottom: 2px; }
.premium-card-left p { font-size: 0.7rem; color: #94A3B8; line-height: 1.25; }

.btn-go-premium-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-stats-widget-card {
    display: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 6px 12px env(safe-area-inset-bottom, 8px) 12px;
    z-index: 80;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.bottom-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #94A3B8;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
}

.bottom-nav-item.active a {
    color: var(--primary);
    font-weight: 800;
}

.bottom-nav-item .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Mobile-Optimized Multi-Column Utility Classes
   ========================================================================== */
.stats-2col-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat-metric-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-metric-card .metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stat-metric-card .metric-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
    line-height: 1;
}

.dashboard-user-banner {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 18px 14px;
    box-shadow: var(--shadow-elevated);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.dashboard-user-banner .banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-user-banner .banner-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.dashboard-user-banner .banner-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.dashboard-user-banner .banner-sub {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.dashboard-user-banner .btn-banner-edit {
    background: #FFFFFF;
    color: var(--primary);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.score-chip {
    padding: 12px 10px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.score-chip .chip-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.score-chip .chip-val {
    font-size: 1.25rem;
    font-weight: 800;
}

/* ==========================================================================
   Desktop Responsive Breakpoints (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .desktop-sidebar {
        transform: translateX(0);
        box-shadow: none;
    }

    .sidebar-backdrop {
        display: none !important;
    }

    .main-layout {
        margin-left: 270px;
        width: calc(100% - 270px);
        max-width: calc(100% - 270px);
        min-width: 0;
        box-sizing: border-box;
    }

    .top-navbar {
        height: 72px;
        padding: 0 32px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .btn-mobile-menu {
        display: none;
    }

    .btn-icon-search-mobile {
        display: none;
    }

    .search-box-container {
        display: block;
        position: relative;
        width: 280px;
    }

    .search-box-container input {
        width: 100%;
        padding: 8px 16px 8px 38px;
        background: var(--bg-surface-muted);
        border: 1px solid transparent;
        border-radius: var(--radius-full);
        font-size: 0.85rem;
        outline: none;
        color: var(--text-main);
    }

    .search-box-container input:focus {
        background: var(--bg-surface);
        border-color: var(--primary);
    }

    .search-box-container .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-subtle);
        pointer-events: none;
    }

    .btn-auth-desktop-pill {
        display: inline-block;
        padding: 8px 18px;
        background: var(--primary);
        color: var(--text-white);
        border-radius: var(--radius-full);
        font-size: 0.85rem;
        font-weight: 700;
    }

    .content-body {
        padding: 24px 28px;
        padding-bottom: 40px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .dashboard-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
        gap: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .grid-main-column, .grid-side-column {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .hero-quiz-card {
        padding: 32px 36px;
    }

    .hero-quiz-title {
        font-size: 1.85rem;
    }

    .hero-3d-graphic {
        display: flex;
        position: absolute;
        right: 32px;
        top: 50%;
        transform: translateY(-50%);
        width: 170px;
        height: 170px;
        pointer-events: none;
    }

    .go-premium-dark-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }

    .go-premium-dark-card .btn-go-premium-gold {
        width: 100%;
        margin-top: 14px;
        padding: 12px 18px;
    }

    .quick-stats-widget-card {
        display: block;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-xl);
        padding: 18px 16px;
        box-shadow: var(--shadow-card);
    }

    .quick-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 12px;
    }

    .stat-item-card {
        background: var(--bg-surface-muted);
        border-radius: var(--radius-md);
        padding: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .stat-icon-wrapper {
        width: 34px;
        height: 34px;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-val {
        font-size: 1.05rem;
        font-weight: 800;
        color: var(--text-main);
        line-height: 1;
    }

    .stat-lbl {
        font-size: 0.7rem;
        color: var(--text-muted);
        font-weight: 600;
    }

    .stats-2col-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .results-score-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile-First Modal & Results Rules */
@media (max-width: 480px) {
    #guestAuthModal > div {
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 18px;
        margin: 10px;
    }

    .results-score-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Quiz row items: stack on very narrow */
    .quiz-row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }

    .btn-leaderboard-light,
    .btn-leaderboard-card {
        padding: 6px 10px;
    }

    /* Quick actions horizontal scroll on narrow */
    .quick-actions-grid {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .quick-actions-grid::-webkit-scrollbar {
        display: none;
    }

    /* Tab buttons smaller */
    .home-tab-btn {
        font-size: 0.78rem;
        padding: 6px 10px;
    }
}

/* ==========================================================================
   Ultra-Modern Glassmorphic Controls
   ========================================================================== */
.glass-segmented-track {
    background: rgba(241, 245, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 14px;
    padding: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.glass-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    cursor: pointer;
}

.glass-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
}

.glass-tab-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid rgba(203, 213, 225, 0.7);
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.glass-chip:hover {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.glass-chip.active {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border: 1px solid #334155;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-date-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 9999px;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    outline: none;
    height: 34px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.glass-date-pill:focus {
    border-color: #64748B;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

/* ==========================================================================
   Native Mobile-App Style Quiz Row Item
   ========================================================================== */
.app-quiz-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-row-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.quiz-row-item:hover {
    border-color: #CBD5E1;
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.quiz-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.quiz-icon-squircle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.quiz-icon-squircle svg {
    width: 22px;
    height: 22px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quiz-icon-squircle img {
    width: 24px;
    height: 24px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quiz-row-details {
    flex: 1;
    min-width: 0;
}

.quiz-row-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-row-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
}

.quiz-row-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(88, 51, 234, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.quiz-row-cta:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.quiz-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .quiz-row-item {
        padding: 12px 14px;
        gap: 10px;
    }

    .quiz-icon-squircle {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.15rem;
    }

    .quiz-row-title {
        font-size: 0.9rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .quiz-row-meta {
        font-size: 0.7rem;
        gap: 4px;
    }

    /* Quiz CTA buttons smaller */
    .quiz-row-cta {
        font-size: 0.72rem;
        padding: 5px 10px;
    }

    /* Section titles smaller */
    .section-title {
        font-size: 0.92rem;
    }

    /* App hub tiles tighter */
    .app-hub-tile {
        min-width: 72px;
        padding: 8px 6px;
    }
    .app-hub-name {
        font-size: 0.68rem;
    }
    .app-hub-count {
        font-size: 0.6rem;
    }
}

/* ==========================================================================
   Native Mobile-App Style Hub Cards (Exams & Subjects)
   ========================================================================== */
.app-hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-hub-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.app-hub-link {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    white-space: nowrap;
}

.app-hub-link:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.app-hub-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px 2px;
}

.app-hub-track::-webkit-scrollbar {
    display: none;
}

.app-hub-tile {
    flex: 0 0 110px;
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.app-hub-tile:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.app-hub-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.app-hub-icon svg {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-hub-icon img {
    width: 22px;
    height: 22px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.app-hub-name {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-hub-count {
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.04);
    padding: 1px 6px;
    border-radius: 9999px;
}

/* ==========================================================================
   WordPress Theme Style Magazine / Blog Cards Grid
   ========================================================================== */
.blog-magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
}

.blog-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: #CBD5E1;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

.blog-card-media {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.blog-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.blog-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.blog-author-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.blog-read-more {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.15s ease;
}

.blog-card:hover .blog-read-more {
    transform: translateX(3px);
}

@media (max-width: 640px) {
    .blog-magazine-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-media {
        height: 160px;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Universal Pagination Styling (Light/Dark Surface Compatible)
   ========================================================================== */
nav[role="navigation"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 14px 0 6px 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

nav[role="navigation"] svg {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}

nav[role="navigation"] span, 
nav[role="navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

nav[role="navigation"] a {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

nav[role="navigation"] a:hover {
    background: var(--bg-surface-muted);
    border-color: #CBD5E1;
    color: var(--primary);
}

nav[role="navigation"] span[aria-current="page"] span,
nav[role="navigation"] span[aria-current="page"] {
    background: var(--primary);
    color: #FFFFFF;
    border: 1px solid var(--primary);
    box-shadow: 0 2px 6px rgba(88, 51, 234, 0.3);
}

nav[role="navigation"] span[aria-disabled="true"] span,
nav[role="navigation"] span[aria-disabled="true"] {
    background: var(--bg-surface-muted);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

nav[role="navigation"] .hidden {
    display: none;
}

@media (min-width: 640px) {
    nav[role="navigation"] .sm\:flex-1 {
        flex: 1 1 0%;
    }
    nav[role="navigation"] .sm\:flex {
        display: flex !important;
    }
    nav[role="navigation"] .sm\:items-center {
        align-items: center;
    }
    nav[role="navigation"] .sm\:justify-between {
        justify-content: space-between;
    }
    nav[role="navigation"] .sm\:hidden {
        display: none !important;
    }
}


/* ==========================================================================
   Universal High-Contrast White Text for Action Buttons
   ========================================================================== */
.btn-primary,
.btn-primary-sm,
.btn-premium-sm,
.btn-action-sm.btn-primary-sm,
.btn-publish,
a.btn-primary,
button.btn-primary,
.embedded-quiz-card .btn-primary,
.btn-primary span {
    color: #FFFFFF !important;
}

/* ==========================================================================
   Editorial Reading System & Rich Article Experience
   ========================================================================== */
#readingProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #6366F1, #EC4899, #F59E0B);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
}

.article-reading-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 1024px) {
    .article-reading-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0;
    }
}

.post-card-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
    /* Edge-to-edge full width reading on mobile without cramped boxed container */
    .article-reading-layout {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        width: 100% !important;
    }

    .post-card-container {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 8px 4px !important;
        width: 100% !important;
    }
}

/* Rich Article Post Content Typography */
.post-rich-content {
    font-size: 1.12rem;
    line-height: 1.9;
    color: #334155;
    letter-spacing: -0.01em;
}

.post-rich-content p {
    margin-bottom: 20px;
}

.post-rich-content h1,
.post-rich-content h2,
.post-rich-content h3,
.post-rich-content h4 {
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.35;
    margin-top: 32px;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.post-rich-content h2 {
    font-size: 1.55rem;
    position: relative;
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}

.post-rich-content h3 {
    font-size: 1.3rem;
}

.post-rich-content h4 {
    font-size: 1.15rem;
}

.post-rich-content ul,
.post-rich-content ol {
    margin-left: 24px;
    margin-bottom: 20px;
}

.post-rich-content li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.post-rich-content blockquote {
    border-left: 4px solid #6366F1;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    padding: 18px 24px;
    border-radius: 0 12px 12px 0;
    font-size: 1.08rem;
    font-style: italic;
    color: #1E293B;
    margin: 24px 0;
}

.post-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.post-rich-content th {
    background: #F1F5F9;
    color: #0F172A;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

.post-rich-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: #334155;
}

.post-rich-content tr:nth-child(even) td {
    background: #F8FAFC;
}

.post-rich-content pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92rem;
    overflow-x: auto;
    margin: 22px 0;
}

.post-rich-content code {
    background: rgba(99, 102, 241, 0.1);
    color: #4F46E5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.post-rich-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.post-rich-content figure.post-inline-image {
    margin: 24px 0;
    text-align: center;
}

.post-rich-content figure.post-inline-image img,
.post-rich-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

.post-rich-content figcaption {
    font-size: 0.85rem;
    color: #64748B;
    margin-top: 8px;
    font-style: italic;
}

.post-rich-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
}

/* Related Posts Visual Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(88, 51, 234, 0.12);
    border-color: var(--primary);
}

.related-post-thumb {
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
    background: #0F172A;
    position: relative;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.06);
}

.related-post-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

/* Universal High-Contrast Action Button System (Strictly Zero Low-Contrast Yellow Buttons) */
.btn-primary,
.btn-primary-sm,
.btn-premium-sm,
.btn-action-sm.btn-primary-sm,
.btn-go-premium-gold,
.sidebar-premium-card .btn-premium-sm {
    background: #6366F1 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-shadow: none !important;
}

.btn-primary *,
.btn-primary-sm *,
.btn-premium-sm *,
.btn-action-sm.btn-primary-sm *,
.btn-go-premium-gold *,
.sidebar-premium-card .btn-premium-sm * {
    color: #FFFFFF !important;
}

.btn-secondary,
.btn-secondary-sm,
.btn-action-sm.btn-secondary-sm {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1.5px solid #E2E8F0 !important;
}

.btn-secondary *,
.btn-secondary-sm *,
.btn-action-sm.btn-secondary-sm * {
    color: #0F172A !important;
}

/* Modern Form & Input Design System (Clean, Zero Placeholder, Premium Focus Glow) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    font-family: inherit;
    transition: all 0.2s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.22) !important;
    outline: none !important;
}

.form-control-dark {
    width: 100%;
    padding: 12px 16px;
    background: #0F172A !important;
    border: 1.5px solid #1E293B !important;
    border-radius: 10px;
    color: #F8FAFC !important;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control-dark:hover {
    border-color: #334155 !important;
}

.form-control-dark:focus {
    border-color: #6366F1 !important;
    background: #0B0F19 !important;
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.25) !important;
}

/* Responsive Grid & Layout Utilities */
.contact-responsive-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    align-items: start;
}

.admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .admin-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .admin-profile-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .legal-hero-banner {
        padding: 24px 16px !important;
    }

    .legal-page-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .contact-card-box {
        padding: 20px 16px !important;
    }

    .site-global-footer {
        padding: 32px 16px 85px 16px !important;
    }
}

/* ==========================================================================
   Global One-Click Google Auth & Leaderboard Card Components
   ========================================================================== */
.g-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: gModalFadeIn 0.2s ease-out;
}

@keyframes gModalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.g-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.45);
    text-align: center;
    box-sizing: border-box;
}

.g-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.g-modal-close:hover {
    color: var(--text-main);
    background: var(--border-color);
}

.g-modal-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--bg-surface-muted);
    border: 1px solid var(--border-color);
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.g-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.g-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.btn-google-modal-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #FFFFFF !important;
    color: #1F2937 !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-google-modal-action:hover {
    background: #F9FAFB !important;
    border-color: #D1D5DB !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.btn-leaderboard-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.btn-leaderboard-card:hover {
    background: #FFFFFF !important;
    color: #1E1B4B !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-leaderboard-card:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-share-quiz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
}

.btn-share-quiz:hover {
    background: #FFFFFF !important;
    color: #1E1B4B !important;
    border-color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-share-quiz:active {
    transform: translateY(1px);
}

.btn-leaderboard-light {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none !important;
    background: var(--bg-surface-muted);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.btn-leaderboard-light:hover {
    background: var(--border-color);
    color: var(--primary) !important;
}

/* ==========================================================================
   Mobile Native Profile & Responsive Styles
   ========================================================================== */
@media (max-width: 640px) {
    .profile-wrap {
        padding: 0 4px !important;
        gap: 16px !important;
    }

    .profile-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }

    .profile-header-stack {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .profile-user-left {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .profile-badges-stack {
        width: 100% !important;
        align-items: stretch !important;
    }

    .profile-badges-stack > div {
        text-align: center !important;
    }

    .stat-grid-mobile {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .info-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 10px 0 !important;
    }

    .info-value {
        width: 100% !important;
        text-align: left !important;
    }

    .btn-location-touch {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 16px !important;
    }
}

/* Responsive Quiz Rows & Stacked Actions for mobile viewports */
@media (max-width: 580px) {
    .quiz-row-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 12px 14px !important;
    }

    .quiz-row-left {
        width: 100% !important;
    }

    .quiz-row-actions {
        width: 100% !important;
        border-top: 1px dashed var(--border-color) !important;
        padding-top: 10px !important;
        margin-top: 6px !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .quiz-row-actions > * {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.72rem !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
        min-height: 36px !important;
    }

    .quiz-row-actions .btn-share-quiz {
        width: 36px !important;
        flex-shrink: 0 !important;
        padding: 0 !important;
        flex-grow: 0 !important;
    }

    .quiz-row-actions .btn-leaderboard-light,
    .quiz-row-actions .quiz-row-cta {
        flex: 1 1 auto !important;
        width: auto !important;
        font-size: 0.72rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        white-space: nowrap !important;
    }
}

/* Scrollable Horizontal Headers for Mobile */
@media (max-width: 640px) {
    .home-tabs-header {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        padding-bottom: 4px !important;
    }
    .home-tabs-header::-webkit-scrollbar {
        display: none !important;
    }
    .home-tab-btn {
        flex-shrink: 0 !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    /* Profile tabs scrollable */
    .profile-tab-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .profile-tabs-scroll {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        flex: 1 !important;
    }
    .profile-tabs-scroll::-webkit-scrollbar {
        display: none !important;
    }
    .profile-tabs-scroll > a {
        flex-shrink: 0 !important;
        font-size: 0.78rem !important;
        padding: 6px 12px !important;
    }
}

/* Quizzes Filter Bar Responsive Layout */
.quizzes-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    width: 100%;
}
@media (max-width: 580px) {
    .quizzes-filter-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .quizzes-filter-bar .glass-segmented-track {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        padding: 3px !important;
    }
    .quizzes-filter-bar .glass-segmented-track::-webkit-scrollbar {
        display: none !important;
    }
    .quizzes-filter-bar .glass-tab-btn {
        flex: 1 !important;
        min-width: 0 !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        padding: 6px 10px !important;
        font-size: 0.74rem !important;
        flex-shrink: 0 !important;
    }
    .quizzes-filter-bar form {
        width: 100% !important;
        display: flex !important;
        margin: 0 !important;
    }
    .quizzes-filter-bar .glass-date-pill {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        height: 36px !important;
        font-size: 0.78rem !important;
    }
}

/* Always show Leaderboard label (never icon-only) */
.btn-leaderboard-light,
.btn-leaderboard-card {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

.btn-leaderboard-light span,
.btn-leaderboard-card span {
    display: inline !important;
}

/* Keep secondary buttons readable on light pages (profile, quizzes, modals) */
.btn-action-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 640px) {
    .home-tabs-header,
    .home-tabs-header {
        display: flex !important;
        flex-wrap: wrap !important;
        white-space: normal !important;
        overflow-x: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 6px !important;
    }

    .home-tab-btn,
    .home-tab-btn {
        flex: 1 1 auto !important;
        justify-content: center !important;
        min-width: 0 !important;
        font-size: 0.74rem !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
    }

    .quiz-row-item,
    .quiz-row-item {
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .quiz-row-title,
    .quiz-row-title,
    .quiz-row-item h3,
    .quiz-row-item h4 {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        min-width: 0 !important;
    }

    .profile-tab-header {
        flex-wrap: wrap !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .profile-tabs-scroll {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
        width: 100% !important;
    }

    .profile-tabs-scroll > a {
        flex: 1 1 auto !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .quizzes-filter-bar .glass-segmented-track {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        white-space: normal !important;
    }

    .quizzes-filter-bar .glass-tab-btn {
        flex: 1 1 auto !important;
        white-space: nowrap !important;
    }
}

/* Push Notification Prompt Banner & Bell Styling */
.push-prompt-banner {
    background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
    border-radius: 16px;
    padding: 18px 22px;
    color: #FFFFFF;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.45);
    margin-bottom: 20px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    position: relative;
    overflow: hidden;
}

.push-prompt-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.push-prompt-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.push-prompt-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.push-prompt-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
    margin-top: 2px;
}

.push-prompt-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    color: #A78BFA;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.push-prompt-text h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.push-prompt-text p {
    font-size: 0.78rem;
    color: #CBD5E1;
    margin: 0;
    line-height: 1.45;
}

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

.btn-push-confirm {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF !important;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.80rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-push-confirm:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}

.btn-push-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.80rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-push-cancel:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF !important;
}

/* Pulsing & Toggle Notification Bell */
.push-bell-pulse {
    position: relative;
}

.push-bell-on {
    position: relative;
    color: #16A34A !important;
}

.push-bell-off {
    position: relative;
    color: var(--text-muted) !important;
}

.notification-dot-green {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background: #16A34A;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-surface);
}

.notification-dot-red {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    background: #EF4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bg-surface);
    animation: bellPulse 2s infinite;
}
    box-shadow: 0 0 0 2px var(--bg-surface);
    animation: bellPulse 2s infinite;
}

@keyframes bellPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 640px) {
    .push-prompt-banner {
        padding: 16px;
    }
    .push-prompt-content {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .push-prompt-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .btn-push-confirm, .btn-push-cancel {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}

/* Attempt Page Bottom Actions Alignment */
.attempt-bottom-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.action-group-left,
.action-group-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-attempt-action {
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.btn-clear {
    padding: 8px 14px;
    background: var(--bg-surface-muted);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.btn-review {
    padding: 8px 14px;
    background: #F3E8FF;
    color: #7C3AED;
    border: 1px solid #E9D5FF;
    font-size: 0.8rem;
}

.btn-prev {
    padding: 8px 16px;
    background: var(--bg-surface-muted);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.84rem;
}

.btn-next {
    padding: 8px 20px;
    background: var(--primary);
    color: #FFF;
    border: none;
    font-size: 0.84rem;
}

@media (max-width: 640px) {
    .attempt-bottom-actions {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    .action-group-left,
    .action-group-right {
        gap: 6px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .action-group-left {
        justify-content: flex-start !important;
    }

    .action-group-right {
        justify-content: flex-end !important;
    }

    .btn-attempt-action {
        padding: 6px 8px !important;
        font-size: 0.74rem !important;
        min-height: 32px !important;
    }

    .btn-next {
        padding: 6px 12px !important;
    }
}

/* WhatsApp Sticky Floating Button */
.whatsapp-sticky-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #FFFFFF !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: all 0.2s ease;
    border: none;
}

.whatsapp-sticky-btn:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

.whatsapp-sticky-btn svg {
    width: 30px;
    height: 30px;
}

@media (max-width: 640px) {
    .whatsapp-sticky-btn {
        bottom: 76px !important; /* Position above mobile bottom tab bar */
        right: 16px !important;
        width: 50px !important;
        height: 50px !important;
    }
    .whatsapp-sticky-btn svg {
        width: 26px !important;
        height: 26px !important;
    }
}

/* ==========================================================================
   Homepage Hero SEO Carousel Banner
   ========================================================================== */
.hero-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.22);
    user-select: none;
}

.hero-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    width: 100%;
}

.hero-carousel-slide {
    min-width: 100%;
    min-height: clamp(230px, 24vw, 275px);
    box-sizing: border-box;
    padding: clamp(22px, 3.5vw, 32px) clamp(20px, 3.4vw, 30px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #FFFFFF;
    background-repeat: no-repeat;
}

/* Background Artwork Animation - Subtle live pan & zoom */
.hero-carousel-slide.has-bg-image {
    background-size: 105% 105%;
    animation: bannerBgDrift 16s ease-in-out infinite alternate;
}

@keyframes bannerBgDrift {
    0% {
        background-position: 98% 50%;
        background-size: 105% 105%;
    }
    50% {
        background-position: 92% 48%;
        background-size: 108% 108%;
    }
    100% {
        background-position: 100% 52%;
        background-size: 105% 105%;
    }
}

.hero-carousel-slide.has-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Seamless, natural vignette overlay so artwork blends smoothly without sharp borders */
.hero-carousel-slide.slide-gk.has-bg-image::before {
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.70) 35%, rgba(11, 15, 25, 0.15) 68%, rgba(11, 15, 25, 0) 100%);
}

.hero-carousel-slide.slide-current-affairs.has-bg-image::before {
    background: linear-gradient(90deg, rgba(3, 7, 18, 0.94) 0%, rgba(3, 7, 18, 0.70) 35%, rgba(3, 7, 18, 0.15) 68%, rgba(3, 7, 18, 0) 100%);
}

.hero-carousel-slide.slide-subjects.has-bg-image::before {
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.94) 0%, rgba(11, 17, 32, 0.70) 35%, rgba(11, 17, 32, 0.15) 68%, rgba(11, 17, 32, 0) 100%);
}

/* Dynamic Interactive Motion Layer on Right Side */
.banner-motion-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

/* Slide 1: Pulsing rings & Floating Badges */
.motion-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.6);
    top: 48%;
    right: 28%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.motion-pulse-ring.ring-1 {
    width: 140px;
    height: 140px;
    animation: bannerRingPulse 2.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.motion-pulse-ring.ring-2 {
    width: 180px;
    height: 180px;
    animation: bannerRingPulse 2.8s cubic-bezier(0.25, 1, 0.5, 1) infinite 1.4s;
    border-color: rgba(56, 189, 248, 0.5);
}

@keyframes bannerRingPulse {
    0% {
        transform: translate(50%, -50%) scale(0.65);
        opacity: 0.9;
    }
    100% {
        transform: translate(50%, -50%) scale(1.4);
        opacity: 0;
    }
}

.motion-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.motion-float-badge.badge-trophy {
    top: 22%;
    right: 18%;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(251, 191, 36, 0.6);
    animation: floatBadge 3.6s ease-in-out infinite;
}

.motion-float-badge.badge-check {
    bottom: 24%;
    right: 42%;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(56, 189, 248, 0.6);
    animation: floatBadge 4.2s ease-in-out infinite 0.8s;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(4deg);
    }
}

/* Slide 2: Radar Ping, Rotating Orbit & Live Pill */
.motion-radar-ping {
    position: absolute;
    top: 50%;
    right: 28%;
    width: 160px;
    height: 160px;
    transform: translate(50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.7);
    animation: bannerRingPulse 2.4s ease-out infinite;
}

.motion-orbit-circle {
    position: absolute;
    top: 50%;
    right: 28%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-right: -100px;
    border-radius: 50%;
    border: 1px dashed rgba(52, 211, 153, 0.4);
    animation: orbitRotate 14s linear infinite;
}

.motion-satellite-dot {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34D399;
    box-shadow: 0 0 12px #34D399, 0 0 20px #10B981;
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.motion-live-pill {
    position: absolute;
    top: 18%;
    right: 14%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.6);
    color: #A7F3D0;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.5);
    letter-spacing: 0.05em;
    animation: floatBadge 3.2s ease-in-out infinite alternate;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: liveDotPulse 1.2s ease-in-out infinite alternate;
}

@keyframes liveDotPulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1.35); opacity: 1; }
}

/* Slide 3: Atomic Orbital Ring & Sparkles */
.motion-atom-ring {
    position: absolute;
    top: 50%;
    right: 28%;
    border-radius: 50%;
    border: 1.5px solid rgba(236, 72, 153, 0.65);
    pointer-events: none;
}

.motion-atom-ring.atom-ring-1 {
    width: 170px;
    height: 80px;
    margin-top: -40px;
    margin-right: -85px;
    transform: rotate(35deg);
    animation: atomSpin1 8s linear infinite;
}

.motion-atom-ring.atom-ring-2 {
    width: 170px;
    height: 80px;
    margin-top: -40px;
    margin-right: -85px;
    transform: rotate(-35deg);
    animation: atomSpin2 8s linear infinite;
    border-color: rgba(168, 85, 247, 0.65);
}

@keyframes atomSpin1 {
    0% { transform: rotate(35deg) scaleY(1); }
    50% { transform: rotate(215deg) scaleY(0.7); }
    100% { transform: rotate(395deg) scaleY(1); }
}

@keyframes atomSpin2 {
    0% { transform: rotate(-35deg) scaleY(1); }
    50% { transform: rotate(145deg) scaleY(0.7); }
    100% { transform: rotate(325deg) scaleY(1); }
}

.motion-sparkle {
    position: absolute;
    color: #FCD34D;
    font-size: 1.2rem;
    line-height: 1;
    text-shadow: 0 0 10px #F59E0B;
    animation: sparkleBlink 2.2s ease-in-out infinite alternate;
}

.motion-sparkle.sp-1 {
    top: 22%;
    right: 20%;
    animation-delay: 0.3s;
}

.motion-sparkle.sp-2 {
    bottom: 22%;
    right: 36%;
    color: #A855F7;
    text-shadow: 0 0 10px #9333EA;
    animation-delay: 1.1s;
}

@keyframes sparkleBlink {
    0% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
    100% { transform: scale(1.3) rotate(45deg); opacity: 1; }
}

.hero-carousel-content {
    position: relative;
    z-index: 2;
    max-width: clamp(320px, 58%, 540px);
}

.hero-carousel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: clamp(0.68rem, 1.4vw, 0.74rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-carousel-title {
    font-size: clamp(1.15rem, 2.6vw, 1.58rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-carousel-desc {
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 18px 0;
    max-width: 640px;
}

.hero-carousel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: #0F172A !important;
    font-size: clamp(0.78rem, 1.5vw, 0.86rem);
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
    background: #F8FAFC;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF !important;
    font-size: clamp(0.78rem, 1.5vw, 0.86rem);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.18s ease, background 0.18s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.hero-carousel-watermark {
    position: absolute;
    right: 15px;
    bottom: -15px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    transform: rotate(-6deg);
}

/* Dots & Nav Controls */
.hero-carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 14px;
    right: 18px;
    z-index: 3;
    gap: 8px;
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.25s ease;
}

.hero-carousel-dot.active {
    width: 24px;
    background: #FFFFFF;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.hero-carousel-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
}

.hero-carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

@media (max-width: 640px) {
    .hero-carousel-container {
        border-radius: 18px;
        margin-bottom: 18px;
    }
    .hero-carousel-slide {
        padding: 18px 16px 48px 16px;
        min-height: 250px;
    }
    .hero-carousel-content {
        max-width: 100% !important;
        position: relative;
        z-index: 4;
    }
    .hero-carousel-slide.has-bg-image::before {
        background: linear-gradient(180deg, rgba(11, 15, 25, 0.94) 0%, rgba(11, 15, 25, 0.85) 60%, rgba(11, 15, 25, 0.72) 100%) !important;
    }
    .hero-carousel-title {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    .hero-carousel-desc {
        font-size: 0.78rem;
        line-height: 1.45;
        margin-bottom: 14px;
        color: rgba(255, 255, 255, 0.88);
    }
    .hero-carousel-actions {
        display: flex;
        gap: 8px;
        flex-direction: row;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .btn-hero-primary, .btn-hero-secondary {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        padding: 9px 12px;
        font-size: 0.78rem;
        font-weight: 800;
        border-radius: 10px;
        min-width: 120px;
        box-sizing: border-box;
    }
    .btn-hero-primary span, .btn-hero-secondary span {
        white-space: nowrap;
    }
    .btn-hero-primary svg {
        flex-shrink: 0;
        width: 13px;
        height: 13px;
    }
    /* On mobile, hide the overlapping badges so text is clean and legible, keep subtle background animation */
    .banner-motion-layer {
        opacity: 0.35;
        width: 100%;
    }
    .motion-float-badge, .motion-live-pill {
        display: none !important;
    }
    .hero-carousel-watermark {
        display: none;
    }
    .hero-carousel-footer {
        bottom: 14px;
        right: 16px;
    }
    .hero-carousel-nav-btn {
        display: none;
    }
}

@media (max-width: 380px) {
    .hero-carousel-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        min-width: 100%;
        padding: 9px 14px;
    }
}