/**
 * Harimathena - Glassmorphism Design
 * Modern Frosted Glass UI
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Exo+2:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary-dark: #0d1b3e;
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --secondary: #0ea5e9;
    
    /* Gradients */
    --gradient-bg: #ffffff;
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-header: linear-gradient(135deg, #1e3a8a 0%, #0d1b3e 100%);
    
    /* Glass Effects - White Theme */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-light: rgba(255, 255, 255, 0.95);
    --glass-bg-dark: rgba(13, 27, 62, 0.95);
    --glass-border: rgba(30, 58, 138, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(20px);
    
    /* Card backgrounds for white theme */
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    
    /* Text */
    --text-light: #ffffff;
    --text-muted: #64748b;
    --text-dark: #0d1b3e;
    --text-body: #334155;
    
    /* Radius */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-full: 50px;
}


/* Force white colors for How It Works, titles and stats to prevent overrides */
.page-container .section-title,
.page-container .section-subtitle,
.page-container .section-instruction:not(.scrolled),
.stats-container .stat-label,
.stats-container .stat-number,
.page-container h2,
.page-container .simple-date-text {
    color: #ffffff !important;
}

/* Override: Keep profile name black */
.profile-avatar-info h2 {
    color: #000000 !important;
}

/* Ensure step card headings and subtext are white */
.page-container .step-card h3,
.page-container .step-card p {
    color: #ffffff !important;
}

/* Make all stat numbers and labels white */
.stats-container .stat-number {
    color: #ffffff !important;
}
.stats-container .stat-label {
    color: #ffffff !important;
}

/* Hero title should be white over the video */
.hero-title-animated,
.hero-subtitle-animated {
    color: #ffffff !important;
}

/* ═══════ Big White Page Titles & Subtitles ═══════ */
.page-title-big {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
}

.page-title-big::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 2px;
    animation: title-underline 2s ease-in-out infinite;
}

.page-subtitle-big {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff !important;
    opacity: 0.9;
    margin-bottom: 35px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

@keyframes title-underline {
    0%, 100% { transform: scaleX(1); opacity: 0.8; }
    50% { transform: scaleX(1.2); opacity: 1; }
}

/* Scroll state: scale down and change to gray when scrolled past 50% visibility */
.section-instruction {
    transform-origin: center center;
    color: #ffffff;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%), url('../images/594.jpg') no-repeat center center fixed;
    background-size: cover, cover;
    background-blend-mode: overlay;
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Dark Overlay on Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.6) 0%, 
        rgba(30, 41, 59, 0.4) 50%, 
        rgba(51, 65, 85, 0.3) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Page Container Base Style */
.page-container {
    background: transparent;
    position: relative;
    z-index: 1;
}


a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
}

/* Glass Card Base */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08), 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Header */
.header {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: none;
}

/* Disable header animations on auth pages */
body[data-page="login"] .header,
body[data-page="register"] .header,
body[data-page="forgot-password"] .header,
body[data-page="verify-email"] .header,
body[data-page="reset-password"] .header,
body[data-page="resend-verification"] .header,
body[data-page="youtube-subscription-verification"] .header {
    transition: none;
    transform: none;
    animation: none;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

/* Hide mobile-only elements on desktop */
.nav-header {
    display: none;
}

.nav-links {
    display: contents;
}

.menu-bar {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #000;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body[data-page="home"] .menu-bar {
    background: #fff;
}

body[data-page="home"] .header.scrolled-logo .menu-bar {
    background: #000;
}

body[data-page="login"] .menu-bar,
body[data-page="register"] .menu-bar,
body[data-page="forgot-password"] .menu-bar,
body[data-page="verify-email"] .menu-bar,
body[data-page="reset-password"] .menu-bar {
    background: #fff;
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
    filter: brightness(0) invert(0);
    transition: filter 0.4s ease;
}

/* Home page only - white logos initially, black after scroll */
body[data-page="home"] .logo-img {
    filter: brightness(0) invert(1);
}

body[data-page="home"] .header.scrolled-logo .logo-img {
    filter: brightness(0) invert(0);
}

/* Home page nav links - white initially, black when scrolled */
body[data-page="home"] .header.scrolled-logo .nav a {
    color: #000000 !important;
    background: #0000000a;
}

body[data-page="home"] .header.scrolled-logo .lang-switcher-btn {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}

/* Keep header/nav/logo/menu icon white on scroll for home page */
body[data-page="home"] .header.scrolled-logo .nav a {
    color: #ffffff !important;
    background: transparent !important;
}
body[data-page="home"] .header.scrolled-logo .menu-bar {
    background: #fff !important;
}
body[data-page="home"] .header.scrolled-logo .logo-img {
    filter: brightness(0) invert(1) !important;
}
body[data-page="home"] .header.scrolled-logo .lang-switcher-btn {
    color: #ffffff !important;
    border-color: transparent !important;
    background: transparent !important;
}

/* Auth pages use same logo style as home page */
body[data-page="login"] .logo-img,
body[data-page="register"] .logo-img,
body[data-page="forgot-password"] .logo-img,
body[data-page="verify-email"] .logo-img,
body[data-page="reset-password"] .logo-img {
    filter: brightness(0) invert(1);
}

/* Home page and auth pages - white nav links initially */
body[data-page="home"] .nav a,
body[data-page="login"] .nav a,
body[data-page="register"] .nav a,
body[data-page="forgot-password"] .nav a,
body[data-page="verify-email"] .nav a,
body[data-page="reset-password"] .nav a {
    color: #ffffff;
}

/* Dashboard page - white nav links & language switcher (same as home) */
body[data-page="dashboard"] .nav a {
    color: #ffffff !important;
}

body[data-page="dashboard"] .lang-switcher-btn {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
}

/* Dashboard page - white logo and menu bars */
body[data-page="dashboard"] .logo-img {
    filter: brightness(0) invert(1);
}

body[data-page="dashboard"] .menu-bar {
    background: #fff;
}

/* Answer page - white nav links */
body[data-page="answer"] .nav a {
    color: #000000 !important;
}

/* Leaderboard page - white nav links & styling */
body[data-page="leaderboard"] .nav a {
    color: #ffffff !important;
}

body[data-page="leaderboard"] .lang-switcher-btn {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
}

body[data-page="leaderboard"] .logo-img {
    filter: brightness(0) invert(1);
}

body[data-page="leaderboard"] .menu-bar {
    background: #fff;
}

/* Profile page - white nav links & styling */
body[data-page="profile"] .nav a {
    color: #ffffff !important;
}

body[data-page="profile"] .lang-switcher-btn {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
}

body[data-page="profile"] .logo-img {
    filter: brightness(0) invert(1);
}

body[data-page="profile"] .menu-bar {
    background: #fff;
}

/* Upload subscription page - white nav links & styling */
body[data-page="youtube-subscription-verification"] .nav a {
    color: #ffffff !important;
}

body[data-page="youtube-subscription-verification"] .lang-switcher-btn {
    color: #ffffff;
    border-color: transparent;
    background: transparent;
}

body[data-page="youtube-subscription-verification"] .logo-img {
    filter: brightness(0) invert(1);
}

body[data-page="youtube-subscription-verification"] .menu-bar {
    background: #fff;
}

body[data-page="home"] .nav .btn-nav {
    color: #fff !important;
}

.logo::before {
    content: none;
}

.logo span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav a {
    color: #000000;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #0000000a;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav a:hover {
    color: #000000 !important;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

.nav a.active {
    color: #2563eb !important;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.5);
}

body[data-page="home"] .nav a.active {
    color: #1e3a8a !important;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Dashboard and Answer page active links */

body[data-page="dashboard"] .nav a.active,
body[data-page="answer"] .nav a.active,
body[data-page="leaderboard"] .nav a.active,
body[data-page="profile"] .nav a.active,
body[data-page="youtube-subscription-verification"] .nav a.active {
    color: #1e3a8a !important;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.nav .btn-nav {
    background: #00000042;
    color: #ffffff !important;
    border: none;
}

.nav .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.18);
    cursor: pointer;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.scroll-top svg { display: block; transform: translateY(-1px); }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:focus { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 4px; }
@media (min-width: 1200px) {
    .scroll-top { right: 36px; bottom: 28px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 1) 0%, rgba(37, 99, 235, 1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: #3b82f6;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--text-light);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.5);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 10px;
}

/* Auth pages enhanced form groups */
body[data-page="login"] .form-group,
body[data-page="register"] .form-group,
body[data-page="verify-email"] .form-group,
body[data-page="reverify-email"] .form-group,
body[data-page="resend-verification"] .form-group,
body[data-page="forgot-password"] .form-group,
body[data-page="reset-password"] .form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.form-control {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #1e3a8a;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
}

.form-control:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 20px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(30, 58, 138, 0.6);
    font-weight: 400;
}

/* ═══════ Auth Pages — Input Icon Wrapper ═══════ */
.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #6b7280;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-icon-wrapper .input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.input-icon-wrapper .form-control {
    padding-left: 44px !important;
}

/* When password toggle is also present */
.input-icon-wrapper.password-toggle-wrapper .form-control {
    padding-left: 44px !important;
    padding-right: 48px !important;
}

.input-icon-wrapper:focus-within .input-icon {
    color: #3b82f6;
}

/* ═══════ Auth Pages — Clean Light Mode Inputs ═══════ */
body[data-page="login"] .form-control,
body[data-page="register"] .form-control,
body[data-page="verify-email"] .form-control,
body[data-page="reverify-email"] .form-control,
body[data-page="resend-verification"] .form-control,
body[data-page="forgot-password"] .form-control,
body[data-page="reset-password"] .form-control {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(203, 213, 225, 0.8);
    border-radius: 14px;
    color: #1e293b;
    font-weight: 500;
    padding: 14px 18px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 2px rgba(0,0,0,0.04);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body[data-page="login"] .form-control:focus,
body[data-page="register"] .form-control:focus,
body[data-page="verify-email"] .form-control:focus,
body[data-page="reverify-email"] .form-control:focus,
body[data-page="resend-verification"] .form-control:focus,
body[data-page="forgot-password"] .form-control:focus,
body[data-page="reset-password"] .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15), 0 2px 8px rgba(0,0,0,0.06);
    background: #ffffff;
    transform: none;
    outline: none;
}

body[data-page="login"] .form-control::placeholder,
body[data-page="register"] .form-control::placeholder,
body[data-page="verify-email"] .form-control::placeholder,
body[data-page="reverify-email"] .form-control::placeholder,
body[data-page="resend-verification"] .form-control::placeholder,
body[data-page="forgot-password"] .form-control::placeholder,
body[data-page="reset-password"] .form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* ═══════ Auth Pages — Labels ═══════ */
body[data-page="login"] .form-group label,
body[data-page="register"] .form-group label,
body[data-page="verify-email"] .form-group label,
body[data-page="reverify-email"] .form-group label,
body[data-page="resend-verification"] .form-group label,
body[data-page="forgot-password"] .form-group label,
body[data-page="reset-password"] .form-group label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 13.5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
    margin-bottom: 6px;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    letter-spacing: 0.02em;
}

/* ═══════ Auth — Auth Body slightly lighter card body ═══════ */
body[data-page="login"] .auth-body,
body[data-page="register"] .auth-body,
body[data-page="forgot-password"] .auth-body,
body[data-page="reset-password"] .auth-body,
body[data-page="verify-email"] .auth-body,
body[data-page="reverify-email"] .auth-body,
body[data-page="resend-verification"] .auth-body {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ═══════ Auth — Header logo ═══════ */
.auth-header-logo {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

/* ═══════ Auth — Submit button ═══════ */
body[data-page="login"] .auth-submit-btn,
body[data-page="register"] .auth-submit-btn,
body[data-page="forgot-password"] .auth-submit-btn,
body[data-page="reset-password"] .auth-submit-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    border: none;
    border-radius: 14px;
    padding: 15px 24px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(59,130,246,0.45), 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

body[data-page="login"] .auth-submit-btn:hover,
body[data-page="register"] .auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.55), 0 4px 12px rgba(0,0,0,0.15);
}

/* ═══════ Auth — Remember/Forgot row ═══════ */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 8px;
    flex-wrap: wrap;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: rgba(255,255,255,0.9);
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    display: none;
}

.auth-checkbox-custom {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
    background: #3b82f6;
    border-color: #3b82f6;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.auth-link-small {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.auth-link-small:hover {
    color: #ffffff;
}

/* ═══════ Auth — Dark Mode Toggle Button ═══════ */
.auth-theme-toggle {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.25s ease;
    z-index: 20;
    line-height: 1;
}

.auth-theme-toggle:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1) rotate(15deg);
}

/* ═══════ Auth — DARK MODE ═══════ */
body.auth-dark[data-page="login"] .auth-card,
body.auth-dark[data-page="register"] .auth-card,
body.auth-dark[data-page="forgot-password"] .auth-card,
body.auth-dark[data-page="reset-password"] .auth-card,
body.auth-dark[data-page="verify-email"] .auth-card,
body.auth-dark[data-page="reverify-email"] .auth-card,
body.auth-dark[data-page="resend-verification"] .auth-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.96) 0%, rgba(30,41,59,0.94) 100%);
    border-color: rgba(59,130,246,0.25);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 15px 50px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}

body.auth-dark .auth-body {
    background: rgba(15,23,42,0.4) !important;
}

body.auth-dark .auth-footer {
    background: rgba(15,23,42,0.5);
    border-top-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

body.auth-dark .auth-footer a {
    color: #60a5fa;
}

/* Dark mode inputs */
body.auth-dark[data-page="login"] .form-control,
body.auth-dark[data-page="register"] .form-control,
body.auth-dark[data-page="verify-email"] .form-control,
body.auth-dark[data-page="reverify-email"] .form-control,
body.auth-dark[data-page="resend-verification"] .form-control,
body.auth-dark[data-page="forgot-password"] .form-control,
body.auth-dark[data-page="reset-password"] .form-control {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 2px rgba(0,0,0,0.2);
}

body.auth-dark[data-page="login"] .form-control:focus,
body.auth-dark[data-page="register"] .form-control:focus,
body.auth-dark[data-page="verify-email"] .form-control:focus,
body.auth-dark[data-page="reverify-email"] .form-control:focus,
body.auth-dark[data-page="resend-verification"] .form-control:focus,
body.auth-dark[data-page="forgot-password"] .form-control:focus,
body.auth-dark[data-page="reset-password"] .form-control:focus {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2), 0 2px 8px rgba(0,0,0,0.3);
}

body.auth-dark[data-page="login"] .form-control::placeholder,
body.auth-dark[data-page="register"] .form-control::placeholder,
body.auth-dark[data-page="verify-email"] .form-control::placeholder,
body.auth-dark[data-page="reverify-email"] .form-control::placeholder,
body.auth-dark[data-page="resend-verification"] .form-control::placeholder,
body.auth-dark[data-page="forgot-password"] .form-control::placeholder,
body.auth-dark[data-page="reset-password"] .form-control::placeholder {
    color: #475569;
}

body.auth-dark .input-icon-wrapper .input-icon {
    color: #475569;
}

body.auth-dark .input-icon-wrapper:focus-within .input-icon {
    color: #60a5fa;
}

body.auth-dark .auth-divider {
    color: rgba(255,255,255,0.4);
}

body.auth-dark .auth-divider::before,
body.auth-dark .auth-divider::after {
    border-bottom-color: rgba(255,255,255,0.1);
}

body.auth-dark .google-signin-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
}

body.auth-dark .google-signin-btn:hover {
    background: rgba(30, 41, 59, 1);
    border-color: #3b82f6;
}

body.auth-dark .auth-checkbox-label {
    color: rgba(226,232,240,0.9);
}

body.auth-dark .auth-link-small {
    color: #93c5fd;
}

body.auth-dark .auth-theme-toggle {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
}

/* Dark mode — OTP boxes */
body.auth-dark .otp-box {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(71, 85, 105, 0.8);
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 2px rgba(0,0,0,0.2);
}
body.auth-dark .otp-box:focus {
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.25), 0 4px 15px rgba(59,130,246,0.15);
}
body.auth-dark .otp-box:not(:placeholder-shown),
body.auth-dark .otp-box.filled {
    border-color: #22c55e;
    background: rgba(20, 83, 45, 0.5);
    color: #86efac;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.2);
}

/* Dark mode — auth resend row & misc text */
body.auth-dark .auth-resend-row {
    color: rgba(226,232,240,0.75);
}
body.auth-dark .auth-resend-row .btn-link,
body.auth-dark .btn-link {
    color: #60a5fa;
}
body.auth-dark .auth-resend-row .btn-link:hover,
body.auth-dark .btn-link:hover {
    color: #93c5fd;
}
body.auth-dark .form-group label {
    color: #cbd5e1;
}

/* OTP paste/clear action row */
.otp-action-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}
.otp-action-btn {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 8px;
    color: #3b82f6;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.otp-action-btn:hover {
    background: rgba(59,130,246,0.15);
    border-color: #3b82f6;
}
body.auth-dark .otp-action-btn {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.3);
    color: #60a5fa;
}
body.auth-dark .otp-action-btn:hover {
    background: rgba(59,130,246,0.2);
}

/* Auth resend row */
.auth-resend-row {
    text-align: center;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ═══════ Auth Pages — Old button overrides (kept for other auth pages) ═══════ */
body[data-page="login"] .btn-primary,
body[data-page="register"] .btn-primary,
body[data-page="verify-email"] .btn-primary,
body[data-page="reverify-email"] .btn-primary,
body[data-page="resend-verification"] .btn-primary,
body[data-page="forgot-password"] .btn-primary,
body[data-page="reset-password"] .btn-primary {
    background: linear-gradient(135deg,#3b82f6 0%,#6366f1 50%,#8b5cf6 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 15px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(59,130,246,0.45);
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

body[data-page="login"] .btn-primary:hover,
body[data-page="register"] .btn-primary:hover,
body[data-page="verify-email"] .btn-primary:hover,
body[data-page="reverify-email"] .btn-primary:hover,
body[data-page="resend-verification"] .btn-primary:hover,
body[data-page="forgot-password"] .btn-primary:hover,
body[data-page="reset-password"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.55);
}

/* ═══════ YouTube Subscription Upload Page Enhanced Glass Design ═══════ */

/* YouTube Subscribe Button - Modern Glass Design */
.youtube-subscribe-btn {
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.9) 0%, 
        rgba(204, 0, 0, 0.8) 50%,
        rgba(153, 0, 0, 0.9) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(255, 0, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1) !important;
    padding: 16px 28px !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    font-size: 16px !important;
}

.youtube-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.youtube-subscribe-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 15px 40px rgba(255, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 1) 0%, 
        rgba(204, 0, 0, 1) 50%,
        rgba(153, 0, 0, 1) 100%
    ) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.youtube-subscribe-btn:hover::before {
    left: 100%;
}

/* Upload Form Enhanced Glass Styling */
body[data-page="youtube-subscription-verification"] .card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    ) !important;
    backdrop-filter: blur(30px) saturate(2) !important;
    -webkit-backdrop-filter: blur(30px) saturate(2) !important;
    border: 1px solid transparent !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 15px 50px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1) !important;
}

/* Steps Guide Glass Enhancement */
body[data-page="youtube-subscription-verification"] .steps-guide {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(241, 245, 249, 0.6) 100%
    ) !important;
    backdrop-filter: blur(15px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(15px) saturate(1.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important;
}

/* Upload Input Enhanced */
body[data-page="youtube-subscription-verification"] .form-control[type="file"] {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px) saturate(1.5);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Modal Dialog Enhanced Glass Design */
#subscribeModal {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

#subscribeModal > div {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%
    ) !important;
    backdrop-filter: blur(25px) saturate(2) !important;
    -webkit-backdrop-filter: blur(25px) saturate(2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.2),
        0 15px 50px rgba(59, 130, 246, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2) !important;
    border-radius: 24px !important;
    max-width: 500px !important;
}

/* Desktop enhancements for larger screens */
@media (min-width: 1024px) {
    .youtube-subscribe-btn {
        font-size: 18px !important;
        padding: 18px 32px !important;
        min-width: 320px !important;
    }
    
    body[data-page="youtube-subscription-verification"] .card {
        max-width: 750px !important;
        margin: 40px auto !important;
    }
    
    .steps-guide {
        padding: 40px !important;
        border-radius: 24px !important;
    }
    
    #subscribeModal > div {
        max-width: 520px !important;
        padding: 45px 40px !important;
    }
}

/* Tablet landscape responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .youtube-subscribe-btn {
        font-size: 16px !important;
        padding: 15px 28px !important;
        min-width: 280px !important;
    }
    
    body[data-page="youtube-subscription-verification"] .card-body {
        padding: 35px 30px !important;
    }
    
    .steps-guide {
        padding: 30px !important;
    }
    
    #subscribeModal > div {
        max-width: 450px !important;
        padding: 40px 35px !important;
    }
}

/* Verification Code Input */
.verification-code-input {
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    padding: 15px 10px !important;
    border: 3px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    color: #1e3a8a !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1) !important;
}

.verification-code-input:focus {
    border-color: rgba(59, 130, 246, 0.6) !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15) !important;
    transform: scale(1.02);
}

.verification-code-input::placeholder {
    letter-spacing: 3px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* Cards */
.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 8px 32px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* Winner Card Extra Effects */
.card.widget-flip:hover,
.card.widget-rotate-in:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: transparent;
}

.card-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--text-light);
    padding: 24px 30px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
}

.card-body {
    padding: 30px;
    background-color: white !important;
    color: var(--text-dark);
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: none;
    padding: 120px 20px 40px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 40px;
}

/* Full Background Wallet Animation */
.auth-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* Lottie Animation Containers - Small Random Sizes */
.auth-animation-left,
.auth-animation-right {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    filter: drop-shadow(0 10px 25px rgba(59, 130, 246, 0.3));
    transition: all 0.3s ease;
}

/* Left side animations - 6 with small random sizes and scattered positions */
.auth-animation-left-1 {
    left: 2%;
    top: 8%;
    width: 120px;
    height: 120px;
    animation: float-left-1 8s ease-in-out infinite;
}

.auth-animation-left-2 {
    left: 9%;
    top: 42%;
    width: 90px;
    height: 90px;
    animation: float-left-2 9s ease-in-out infinite 1s;
}

.auth-animation-left-3 {
    left: 1%;
    top: 63%;
    width: 110px;
    height: 110px;
    animation: float-left-3 10s ease-in-out infinite 2s;
}

.auth-animation-left-4 {
    left: 6%;
    top: 85%;
    width: 95px;
    height: 95px;
    animation: float-left-4 7.5s ease-in-out infinite 0.5s;
}

.auth-animation-left-5 {
    left: 3%;
    top: 105%;
    width: 115px;
    height: 115px;
    animation: float-left-5 11s ease-in-out infinite 3s;
}

.auth-animation-left-6 {
    left: 8%;
    top: 125%;
    width: 85px;
    height: 85px;
    animation: float-left-6 8.5s ease-in-out infinite 1.5s;
}

/* Right side animations - 6 with small random sizes and scattered positions */
.auth-animation-right-1 {
    right: 3%;
    top: 15%;
    width: 105px;
    height: 105px;
    animation: float-right-1 7s ease-in-out infinite 0.5s;
}

.auth-animation-right-2 {
    right: 9%;
    top: 36%;
    width: 88px;
    height: 88px;
    animation: float-right-2 10s ease-in-out infinite 2s;
}

.auth-animation-right-3 {
    right: 2%;
    top: 55%;
    width: 100px;
    height: 100px;
    animation: float-right-3 9s ease-in-out infinite 1s;
}

.auth-animation-right-4 {
    right: 7%;
    top: 72%;
    width: 118px;
    height: 118px;
    animation: float-right-4 8s ease-in-out infinite 2.5s;
}

.auth-animation-right-5 {
    right: 4%;
    top: 92%;
    width: 92px;
    height: 92px;
    animation: float-right-5 11s ease-in-out infinite 0.8s;
}

.auth-animation-right-6 {
    right: 8%;
    top: 115%;
    width: 108px;
    height: 108px;
    animation: float-right-6 9.5s ease-in-out infinite 3s;
}

/* Modern Floating Animations with Rotation & Scale */
@keyframes float-left-1 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-5deg) scale(1);
        filter: brightness(1) drop-shadow(0 15px 40px rgba(59, 130, 246, 0.4));
    }
    25% { 
        transform: translateY(-25px) translateX(-15px) rotate(0deg) scale(1.05);
        filter: brightness(1.1) drop-shadow(0 20px 50px rgba(59, 130, 246, 0.5));
    }
    50% { 
        transform: translateY(-15px) translateX(-8px) rotate(5deg) scale(1.02);
        filter: brightness(1) drop-shadow(0 15px 40px rgba(59, 130, 246, 0.4));
    }
    75% { 
        transform: translateY(-20px) translateX(-12px) rotate(2deg) scale(1.03);
        filter: brightness(1.05) drop-shadow(0 18px 45px rgba(59, 130, 246, 0.45));
    }
}

@keyframes float-left-2 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(8deg) scale(1);
        filter: brightness(1) drop-shadow(0 10px 30px rgba(139, 92, 246, 0.3));
    }
    33% { 
        transform: translateY(-18px) translateX(-10px) rotate(-2deg) scale(1.08);
        filter: brightness(1.15) drop-shadow(0 15px 40px rgba(139, 92, 246, 0.4));
    }
    66% { 
        transform: translateY(-22px) translateX(-5px) rotate(-8deg) scale(1.04);
        filter: brightness(1.08) drop-shadow(0 12px 35px rgba(139, 92, 246, 0.35));
    }
}

@keyframes float-left-3 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-3deg) scale(1);
        filter: brightness(1) drop-shadow(0 12px 35px rgba(236, 72, 153, 0.35));
    }
    50% { 
        transform: translateY(-20px) translateX(-12px) rotate(4deg) scale(1.06);
        filter: brightness(1.12) drop-shadow(0 18px 45px rgba(236, 72, 153, 0.4));
    }
}

@keyframes float-left-4 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(6deg) scale(1);
        filter: brightness(1) drop-shadow(0 10px 30px rgba(14, 165, 233, 0.3));
    }
    40% { 
        transform: translateY(-15px) translateX(-8px) rotate(-5deg) scale(1.07);
        filter: brightness(1.1) drop-shadow(0 15px 40px rgba(14, 165, 233, 0.4));
    }
}

@keyframes float-left-5 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-7deg) scale(1);
        filter: brightness(1) drop-shadow(0 15px 40px rgba(245, 158, 11, 0.35));
    }
    30% { 
        transform: translateY(-25px) translateX(-14px) rotate(3deg) scale(1.05);
        filter: brightness(1.08) drop-shadow(0 20px 50px rgba(245, 158, 11, 0.4));
    }
    70% { 
        transform: translateY(-18px) translateX(-9px) rotate(-2deg) scale(1.03);
        filter: brightness(1.14) drop-shadow(0 18px 45px rgba(245, 158, 11, 0.38));
    }
}

@keyframes float-left-6 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(4deg) scale(1);
        filter: brightness(1) drop-shadow(0 12px 35px rgba(168, 85, 247, 0.35));
    }
    50% { 
        transform: translateY(-22px) translateX(-11px) rotate(-6deg) scale(1.09);
        filter: brightness(1.16) drop-shadow(0 16px 42px rgba(168, 85, 247, 0.42));
    }
}

@keyframes float-right-1 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(6deg) scale(1);
        filter: brightness(1) drop-shadow(0 15px 40px rgba(236, 72, 153, 0.3));
    }
    30% { 
        transform: translateY(-22px) translateX(12px) rotate(-4deg) scale(1.06);
        filter: brightness(1.12) drop-shadow(0 20px 50px rgba(236, 72, 153, 0.4));
    }
    60% { 
        transform: translateY(-28px) translateX(8px) rotate(-10deg) scale(1.03);
        filter: brightness(1.05) drop-shadow(0 18px 45px rgba(236, 72, 153, 0.35));
    }
}

@keyframes float-right-2 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-7deg) scale(1);
        filter: brightness(1) drop-shadow(0 12px 35px rgba(14, 165, 233, 0.3));
    }
    40% { 
        transform: translateY(-20px) translateX(10px) rotate(3deg) scale(1.07);
        filter: brightness(1.1) drop-shadow(0 18px 45px rgba(14, 165, 233, 0.4));
    }
    80% { 
        transform: translateY(-16px) translateX(6px) rotate(8deg) scale(1.04);
        filter: brightness(1.06) drop-shadow(0 15px 40px rgba(14, 165, 233, 0.35));
    }
}

@keyframes float-right-3 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(5deg) scale(1);
        filter: brightness(1) drop-shadow(0 14px 38px rgba(59, 130, 246, 0.35));
    }
    50% { 
        transform: translateY(-24px) translateX(11px) rotate(-7deg) scale(1.08);
        filter: brightness(1.13) drop-shadow(0 19px 47px rgba(59, 130, 246, 0.42));
    }
}

@keyframes float-right-4 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-4deg) scale(1);
        filter: brightness(1) drop-shadow(0 16px 42px rgba(139, 92, 246, 0.36));
    }
    35% { 
        transform: translateY(-26px) translateX(13px) rotate(6deg) scale(1.06);
        filter: brightness(1.11) drop-shadow(0 21px 52px rgba(139, 92, 246, 0.43));
    }
}

@keyframes float-right-5 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(7deg) scale(1);
        filter: brightness(1) drop-shadow(0 13px 36px rgba(245, 158, 11, 0.34));
    }
    45% { 
        transform: translateY(-19px) translateX(9px) rotate(-5deg) scale(1.09);
        filter: brightness(1.15) drop-shadow(0 17px 44px rgba(245, 158, 11, 0.41));
    }
}

@keyframes float-right-6 {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-8deg) scale(1);
        filter: brightness(1) drop-shadow(0 15px 40px rgba(168, 85, 247, 0.37));
    }
    50% { 
        transform: translateY(-23px) translateX(12px) rotate(4deg) scale(1.07);
        filter: brightness(1.14) drop-shadow(0 20px 50px rgba(168, 85, 247, 0.44));
    }
}

/* Glow effect on hover (if mouse near) */
.auth-animation-left:hover,
.auth-animation-right:hover {
    filter: drop-shadow(0 20px 60px rgba(59, 130, 246, 0.6)) 
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.5))
            brightness(1.15);
    transform: scale(1.1);
}

.auth-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../harimathana/Fb Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Video background for mobile - hidden by default */
.auth-bg-video {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.auth-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(13, 27, 62, 0.92) 0%, rgba(30, 58, 138, 0.78) 30%, rgba(59, 130, 246, 0.68) 100%),
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 90%, rgba(168, 85, 247, 0.12) 0%, transparent 40%);
    z-index: -1;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Floating Orbs */
.auth-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

.auth-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation: orb-float-1 12s ease-in-out infinite;
}

.auth-orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    top: 60%;
    right: 8%;
    animation: orb-float-2 15s ease-in-out infinite 2s;
}

.auth-orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, transparent 70%);
    bottom: 15%;
    left: 20%;
    animation: orb-float-3 10s ease-in-out infinite 1s;
}

.auth-orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    top: 30%;
    right: 25%;
    animation: orb-float-1 18s ease-in-out infinite 3s;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, -15px) scale(1.05); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-35px, 25px) scale(1.12); }
    66% { transform: translate(20px, -30px) scale(0.9); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -35px) scale(1.15); }
}

/* Floating Sparkle Particles */
.auth-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.auth-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: particle-rise linear infinite;
}

.auth-particle:nth-child(1) { width: 3px; height: 3px; left: 10%; animation-duration: 12s; animation-delay: 0s; }
.auth-particle:nth-child(2) { width: 4px; height: 4px; left: 25%; animation-duration: 15s; animation-delay: 2s; }
.auth-particle:nth-child(3) { width: 2px; height: 2px; left: 40%; animation-duration: 10s; animation-delay: 4s; }
.auth-particle:nth-child(4) { width: 5px; height: 5px; left: 55%; animation-duration: 18s; animation-delay: 1s; }
.auth-particle:nth-child(5) { width: 3px; height: 3px; left: 70%; animation-duration: 14s; animation-delay: 3s; }
.auth-particle:nth-child(6) { width: 2px; height: 2px; left: 85%; animation-duration: 11s; animation-delay: 5s; }
.auth-particle:nth-child(7) { width: 4px; height: 4px; left: 15%; animation-duration: 16s; animation-delay: 7s; }
.auth-particle:nth-child(8) { width: 3px; height: 3px; left: 60%; animation-duration: 13s; animation-delay: 6s; }
.auth-particle:nth-child(9) { width: 2px; height: 2px; left: 35%; animation-duration: 17s; animation-delay: 8s; }
.auth-particle:nth-child(10) { width: 4px; height: 4px; left: 80%; animation-duration: 12s; animation-delay: 4s; }
.auth-particle:nth-child(11) { width: 3px; height: 3px; left: 5%; animation-duration: 14s; animation-delay: 9s; }
.auth-particle:nth-child(12) { width: 2px; height: 2px; left: 50%; animation-duration: 19s; animation-delay: 2s; }
.auth-particle:nth-child(13) { width: 5px; height: 5px; left: 92%; animation-duration: 11s; animation-delay: 6s; }
.auth-particle:nth-child(14) { width: 3px; height: 3px; left: 30%; animation-duration: 16s; animation-delay: 10s; }
.auth-particle:nth-child(15) { width: 4px; height: 4px; left: 75%; animation-duration: 13s; animation-delay: 3s; }

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

.auth-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 15px 50px rgba(59, 130, 246, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -2px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(30px) saturate(2);
    -webkit-backdrop-filter: blur(30px) saturate(2);
    position: relative;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    animation: card-entrance 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes card-entrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.9) 20%,
        rgba(139, 92, 246, 0.9) 50%,
        rgba(236, 72, 153, 0.9) 80%,
        rgba(59, 130, 246, 0) 100%);
    animation: shimmer 3s linear infinite;
}

.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(59, 130, 246, 0.03) 60deg,
        transparent 120deg,
        rgba(139, 92, 246, 0.03) 180deg,
        transparent 240deg,
        rgba(236, 72, 153, 0.03) 300deg,
        transparent 360deg
    );
    animation: card-rotate 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes card-rotate {
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.auth-card:hover {
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.2),
        0 20px 60px rgba(59, 130, 246, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.7),
        inset 0 -2px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
}

.auth-header {
    background: linear-gradient(135deg, 
        #1e3a8a 0%, 
        #3730a3 25%,
        #4f46e5 50%,
        #6366f1 75%,
        #3b82f6 100%);
    color: var(--text-light);
    padding: 25px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: none;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(139, 92, 246, 0.08) 30%,
        transparent 60%);
    animation: pulse-slow 8s ease-in-out infinite;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.auth-header h2 {
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-header p {
    opacity: 0.9;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 35px 40px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    z-index: 2;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    padding: 0 15px;
}

/* Modern Google Sign In Button - Enhanced Glass */
.google-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    margin-top: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    backdrop-filter: blur(25px) saturate(1.8);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.google-signin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.google-signin-btn:hover::before {
    left: 100%;
}

.google-signin-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.12) 100%
    );
    color: #ffffff;
}

.google-signin-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 6px rgba(66, 133, 244, 0.2),
        inset 0 0 0 2px rgba(66, 133, 244, 0.3);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    animation: googleIconFloat 3s ease-in-out infinite;
}

@keyframes googleIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(1deg);
    }
    75% {
        transform: translateY(2px) rotate(-1deg);
    }
}

.google-btn-text {
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.auth-footer {
    text-align: center;
    padding: 25px;
    background: rgba(248, 250, 252, 0.5);
    border-top: 1px solid rgba(226, 232, 240, 0.3);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.auth-footer a {
    font-weight: 600;
    color: var(--primary);
}

/* Responsive Auth Forms */
@media (max-width: 768px) {
    .auth-container {
        padding: 70px 20px 150px;
        min-height: calc(100vh + 150px);
        width: 100%;
        max-width: none;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    /* Hide image, show video on mobile */
    .auth-container::before {
        display: none;
    }
    
    .auth-bg-video {
        display: block;
    }
    
    .auth-card {
        max-width: calc(100% - 40px);
        margin: 0 20px;
        border-radius: 20px;
        width: calc(100% - 40px);
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }
    
    .auth-header {
        padding: 22px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .auth-header p {
        font-size: 14px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .auth-body .form-group label {
        font-size: 13px;
    }
    
    .auth-body .form-control {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .auth-body .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .google-signin-btn {
        padding: 13px 22px;
        font-size: 15px;
        gap: 11px;
    }
    
    .google-icon {
        width: 19px;
        height: 19px;
    }
    
    .auth-footer {
        padding: 18px 20px;
        font-size: 14px;
    }
}

/* Tablet animations - Modern Responsive */
@media (min-width: 769px) and (max-width: 1200px) {
    .auth-animation-left-1,
    .auth-animation-right-1,
    .auth-animation-left-4,
    .auth-animation-right-4 {
        width: 180px;
        height: 180px;
    }
    
    .auth-animation-left-2,
    .auth-animation-left-6,
    .auth-animation-right-2,
    .auth-animation-right-6 {
        width: 130px;
        height: 130px;
    }
    
    .auth-animation-left-3,
    .auth-animation-left-5,
    .auth-animation-right-3,
    .auth-animation-right-5 {
        width: 160px;
        height: 160px;
    }
    
    .auth-animation-left-1,
    .auth-animation-left-2,
    .auth-animation-left-3,
    .auth-animation-left-4,
    .auth-animation-left-5,
    .auth-animation-left-6 {
        left: 1%;
    }
    
    .auth-animation-right-1,
    .auth-animation-right-2,
    .auth-animation-right-3,
    .auth-animation-right-4,
    .auth-animation-right-5,
    .auth-animation-right-6 {
        right: 1%;
    }
}

/* Large screens - Extra spacing */
@media (min-width: 1400px) {
    .auth-animation-left-1 {
        width: 260px;
        height: 260px;
        left: 8%;
    }
    
    .auth-animation-left-2 {
        width: 220px;
        height: 220px;
        left: 10%;
    }
    
    .auth-animation-right-1 {
        width: 240px;
        height: 240px;
        right: 8%;
    }
    
    .auth-animation-right-2 {
        width: 230px;
        height: 230px;
        right: 10%;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 90px 10px 30px;
        min-height: 100vh;
        align-items: center;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure video shows on small mobile */
    .auth-container::before {
        display: none;
    }
    
    .auth-bg-video {
        display: block;
    }
    
    .auth-card {
        border-radius: 14px;
        width: 100%;
    }
    
    .auth-header {
        padding: 20px 16px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .auth-body {
        padding: 16px;
    }
    
    .auth-divider {
        margin: 20px 0 15px;
        font-size: 12px;
    }
    
    .google-signin-btn {
        padding: 12px 20px;
        font-size: 14px;
        gap: 10px;
        margin-top: 8px;
        border-radius: 10px;
    }
    
    .google-icon {
        width: 18px;
        height: 18px;
    }
    
    .auth-body .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-footer {
        padding: 15px 16px;
        font-size: 13px;
    }
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
}

.alert::before {
    font-size: 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.9) 100%);
    border: 2px solid rgba(167, 243, 208, 0.5);
    color: #059669;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.15);
}

.alert-success::before {
    content: "✅";
    font-size: 24px;
}

.alert-error {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.9) 100%);
    border: 2px solid rgba(254, 202, 202, 0.5);
    color: #dc2626;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.15);
}

.alert-error::before {
    content: "❌";
    font-size: 24px;
}

.alert-info {
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.95) 0%, rgba(207, 250, 254, 0.9) 100%);
    border: 2px solid rgba(165, 243, 252, 0.5);
    color: #0891b2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.15);
}

.alert-info::before {
    content: "💡";
    font-size: 24px;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.9) 100%);
    border: 2px solid rgba(250, 204, 21, 0.5);
    color: #92400e;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(250, 204, 21, 0.2);
}

.alert-warning::before {
    content: "📺";
    font-size: 24px;
}

/* Video Card */
.video-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 1px solid #e2e8f0;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-info {
    padding: 24px;
}

.video-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.video-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.status-answered {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.status-answered::before {
    content: "✓";
}

.status-not-answered {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}

.status-not-answered::before {
    content: "○";
}

/* Answer Page */
.answer-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

.answer-thumbnail {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Video Instruction Popup Widget */
.alert.alert-info {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: popup-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alert.alert-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: popup-glow 3s ease-in-out infinite;
}

.alert.alert-info strong {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

@keyframes popup-bounce {
    0% { transform: scale(0.5) translateY(-20px); opacity: 0; }
    60% { transform: scale(1.05) translateY(0); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes popup-glow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

/* Answer Page Responsive */
@media (max-width: 768px) {
    .answer-container {
        padding: 120px 15px 30px;
        max-width: 100%;
    }
    
    .alert.alert-info {
        padding: 20px;
        border-radius: 12px;
    }
    
    .alert.alert-info strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .answer-container {
        padding: 110px 10px 20px;
    }
    
    .alert.alert-info {
        padding: 16px;
        border-radius: 10px;
    }
    
    .alert.alert-info strong {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .answer-thumbnail {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .options-container h3 {
        font-size: 18px;
    }
}

.options-container {
    margin-top: 24px;
}

.options-container h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: var(--primary-light);
    transform: translateX(8px);
}

.option-item.selected {
    background: #eff6ff;
    border-color: var(--primary-light);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.option-item input[type="radio"] {
    margin-right: 16px;
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
}

.option-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Leaderboard */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.leaderboard-table th {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--text-light);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table th:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.leaderboard-table th:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.leaderboard-table td {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
}

.leaderboard-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius) 0 0 var(--radius);
}

.leaderboard-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.35);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.rank-2 {
    background: linear-gradient(135deg, #e0e0e0 0%, #9e9e9e 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(158, 158, 158, 0.5);
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.5);
}

/* Dashboard Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-dark);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    animation: pulse-slow 6s ease-in-out infinite;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    /* remove gradient text for numeric stats so color rules apply */
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: none;
}

.stat-label {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0d1b3e 0%, #1e3a8a 100%);
    border-right: 1px solid #e2e8f0;
    color: var(--text-light);
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header .logo {
    flex: 1;
}

.sidebar-close {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
}

.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1099;
}

.admin-sidebar .admin-menu {
    padding: 15px 0;
}

.admin-menu {
    list-style: none;
}

.admin-menu li {
    margin: 4px 16px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.admin-menu a.active {
    background: var(--gradient-accent);
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    background: #f8fafc;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.admin-menu-toggle:hover {
    background: #f1f5f9;
}

.admin-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #334155;
    border-radius: 2px;
}

.admin-welcome {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.admin-header h1 {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.data-table-wrapper,
.leaderboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.data-table th,
.data-table td {
    padding: 18px 20px;
    text-align: left;
}

.data-table th {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: none;
}

.data-table td {
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.data-table .actions {
    display: flex;
    gap: 10px;
}

/* ═══════ Winner Management Styles ═══════ */

/* Week Banner */
.week-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 30px;
    color: #fff;
    flex-wrap: wrap;
    gap: 12px;
}

.week-banner-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.week-banner-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.week-banner-dates {
    font-size: 18px;
    font-weight: 700;
}

.week-banner-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Dashboard Stats Grid (6 cards) */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.dashboard-stats-grid .stat-card {
    position: relative;
    padding: 24px 18px 18px;
    text-align: center;
}

.stat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 10px;
}

.stat-icon-blue { background: #eff6ff; }
.stat-icon-purple { background: #f5f3ff; }
.stat-icon-green { background: #ecfdf5; }
.stat-icon-teal { background: #ecfeff; }
.stat-icon-gold { background: #fffbeb; }
.stat-icon-orange { background: #fff7ed; }
.stat-icon-yellow { background: #fef9c3; }

.stat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Winner Stats Grid (4 cards horizontal) */
.winner-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.winner-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s;
}

.winner-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.winner-stat-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.stat-blue .winner-stat-icon { background: #eff6ff; }
.stat-green .winner-stat-icon { background: #ecfdf5; }
.stat-gold .winner-stat-icon { background: #fffbeb; }
.stat-orange .winner-stat-icon { background: #fff7ed; }

.winner-stat-info {
    flex: 1;
    min-width: 0;
}

.winner-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.winner-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* Winner Cards Grid (approved winners display) */
.winners-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.winner-card-item {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 8px 25px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.winner-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(255, 165, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.winner-card-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 15px 40px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.35);
}

.winner-card-item:hover::before {
    opacity: 1;
}

.winner-card-medal {
    font-size: 46px;
    margin-bottom: 12px;
    animation: medal-shine 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
    position: relative;
    z-index: 2;
}

.winner-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(59, 130, 246, 0.2);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.winner-card-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    word-break: break-all;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.winner-card-stat {
    font-size: 14px;
    font-weight: 700;
    color: rgba(34, 197, 94, 1);
    margin-bottom: 10px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(34, 197, 94, 0.3);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.winner-card-meta {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.winner-card-remove {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.winner-card-remove:hover {
    opacity: 1;
    color: #dc2626;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-system {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.badge-admin {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.badge-notified {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Correct Answer Badge */
.correct-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #059669;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid #a7f3d0;
}

/* Action Buttons Row */
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Footer - Modern Compact Design */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
    z-index: 100;
}

.footer .auth-animation-left,
.footer .auth-animation-right {
    display: none !important;
}

/* Hide animations in footer area - All screen sizes */
.auth-animation-left-5,
.auth-animation-left-6,
.auth-animation-right-5,
.auth-animation-right-6 {
    display: none !important;
}

/* Special handling for page-container (upload-subscription page) */
.page-container .auth-animation-left,
.page-container .auth-animation-right {
    position: fixed !important;
}

.page-container .auth-animation-left-1 {
    top: 120px !important;
}

.page-container .auth-animation-left-2 {
    top: 280px !important;
}

.page-container .auth-animation-left-3 {
    top: 440px !important;
}

.page-container .auth-animation-left-4 {
    top: 600px !important;
}

.page-container .auth-animation-right-1 {
    top: 150px !important;
}

.page-container .auth-animation-right-2 {
    top: 310px !important;
}

.page-container .auth-animation-right-3 {
    top: 470px !important;
}

.page-container .auth-animation-right-4 {
    top: 630px !important;
}

/* Mobile responsive for page-container */
@media (max-width: 768px) {
    .page-container .auth-animation-left,
    .page-container .auth-animation-right,
    .page-container .auth-animation-left-1,
    .page-container .auth-animation-left-2,
    .page-container .auth-animation-left-3,
    .page-container .auth-animation-left-4,
    .page-container .auth-animation-right-1,
    .page-container .auth-animation-right-2,
    .page-container .auth-animation-right-3,
    .page-container .auth-animation-right-4 {
        display: none !important;
    }
}

/* Mobile animations - Full page cover design */
@media (max-width: 768px) {
    /* Top row - Large animations */
    .auth-animation-left-1 {
        width: 100px;
        height: 100px;
        top: 60px;
        left: 0%;
        z-index: 3;
    }
    
    .auth-animation-right-1 {
        width: 100px;
        height: 100px;
        top: 60px;
        right: 0%;
        z-index: 3;
    }
    
    /* Second row - Large animations */
    .auth-animation-left-2 {
        width: 95px;
        height: 95px;
        top: 180px;
        left: 3%;
        z-index: 4;
    }
    
    .auth-animation-right-2 {
        width: 95px;
        height: 95px;
        top: 180px;
        right: 3%;
        z-index: 4;
    }
    
    /* Third row - Extra large animations */
    .auth-animation-left-3 {
        width: 110px;
        height: 110px;
        top: 300px;
        left: -2%;
        z-index: 5;
    }
    
    .auth-animation-right-3 {
        width: 110px;
        height: 110px;
        top: 300px;
        right: -2%;
        z-index: 5;
    }
    
    /* Fourth row - Large animations */
    .auth-animation-left-4 {
        width: 90px;
        height: 90px;
        top: 430px;
        left: 2%;
        z-index: 3;
    }
    
    .auth-animation-right-4 {
        width: 90px;
        height: 90px;
        top: 430px;
        right: 2%;
        z-index: 3;
    }
    
    /* Fifth row - Medium animations */
    .auth-animation-left-5 {
        width: 85px;
        height: 85px;
        top: 560px;
        left: 5%;
        z-index: 2;
        display: block !important;
    }
    
    .auth-animation-right-5 {
        width: 85px;
        height: 85px;
        top: 560px;
        right: 5%;
        z-index: 2;
        display: block !important;
    }
    
    /* Sixth row - Bottom large animations */
    .auth-animation-left-6 {
        width: 95px;
        height: 95px;
        top: 680px;
        left: 1%;
        z-index: 4;
        display: block !important;
    }
    
    .auth-animation-right-6 {
        width: 95px;
        height: 95px;
        top: 680px;
        right: 1%;
        z-index: 4;
        display: block !important;
    }
    
    .footer {
        z-index: 200 !important;
        position: relative;
        margin-top: 100px;
    }
}

/* Small mobile - Full page coverage */
@media (max-width: 480px) {
    .auth-animation-left-1,
    .auth-animation-right-1 {
        width: 80px;
        height: 80px;
        top: 55px;
    }
    
    .auth-animation-left-2,
    .auth-animation-right-2 {
        width: 75px;
        height: 75px;
        top: 150px;
    }
    
    .auth-animation-left-3,
    .auth-animation-right-3 {
        width: 85px;
        height: 85px;
        top: 250px;
    }
    
    .auth-animation-left-4,
    .auth-animation-right-4 {
        width: 72px;
        height: 72px;
        top: 360px;
    }
    
    .auth-animation-left-5,
    .auth-animation-right-5 {
        width: 70px;
        height: 70px;
        top: 470px;
    }
    
    .auth-animation-left-6,
    .auth-animation-right-6 {
        width: 78px;
        height: 78px;
        top: 580px;
    }
}

/* Very small screens - Optimized full cover */
@media (max-width: 375px) {
    .auth-animation-left-1,
    .auth-animation-right-1 {
        width: 70px;
        height: 70px;
    }
    
    .auth-animation-left-2,
    .auth-animation-right-2 {
        width: 65px;
        height: 65px;
    }
    
    .auth-animation-left-3,
    .auth-animation-right-3 {
        width: 75px;
        height: 75px;
    }
    
    .auth-animation-left-4,
    .auth-animation-right-4 {
        width: 62px;
        height: 62px;
    }
    
    .auth-animation-left-5,
    .auth-animation-right-5 {
        width: 60px;
        height: 60px;
    }
    
    .auth-animation-left-6,
    .auth-animation-right-6 {
        width: 68px;
        height: 68px;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 0;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-logo-icon {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: scale(1.05) rotate(5deg);
}

.footer-tagline {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    font-style: italic;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
}

.footer-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-link:hover::after {
    width: 100%;
}

.footer-credits {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: flex-end;
}

.footer-credits-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
}

.footer-credit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #94a3b8;
}

.footer-credit-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(0.95);
}

.footer-credit-logo-only .footer-credit-logo {
    height: 26px;
}

.footer-credit-with-text .footer-credit-logo {
    height: 24px;
}

.footer-credit-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-credit-logo-only {
    flex-direction: row;
    background: #ffffff00;
    padding: 10px 14px;
}

.footer-credit-with-text {
    flex-direction: row;
    background: transparent;
}

.footer-credit-label {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
}

/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    z-index: 3;
}

.password-toggle-btn:hover {
    color: #3b82f6;
    background: rgba(59,130,246,0.08);
    border-radius: 6px;
    transform: translateY(-50%);
}

.password-toggle-btn:focus {
    outline: none;
}

.footer-credit-icon {
    font-size: 16px;
    opacity: 0.8;
}

.footer-credit-link {
    color: #60a5fa;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-credit-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    margin: 0;
    font-size: 12px;
}

/* Footer Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 20px;
    }

    .footer-credits {
        justify-content: center;
    }

    .footer-credits-stack {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-bottom: 15px;
    }

    .footer-content {
        padding: 20px 0;
        gap: 24px;
    }

    .footer-logo {
        font-size: 24px;
        gap: 10px;
    }

    .footer-logo-icon {
        height: 48px;
    }

    .footer-tagline {
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-credits-stack {
        gap: 10px;
    }

    .footer-credit-logo-only .footer-credit-logo {
        height: 30px;
    }

    .footer-credit-with-text .footer-credit-logo {
        height: 20px;
    }

    .footer-credit-label {
        font-size: 11px;
    }

    .footer-bottom p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 20px;
        gap: 8px;
    }

    .footer-logo-icon {
        height: 40px;
    }

    .footer-links {
        gap: 10px;
    }

    .footer-link {
        font-size: 12px;
        padding: 4px 0;
    }

    .footer-credit-logo-link {
        padding: 6px 10px;
    }

    .footer-credit-logo-only {
        padding: 8px 12px;
    }
}

/* Page Container */
.page-container {
    flex: 1 0 auto;
    padding: 100px 0 50px 0;
}

/* Page container with white gradient background for animation sections */
.page-container[style*="position: relative"] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 250, 252, 0.1) 50%, rgba(255, 255, 255, 0.1) 100%);
}

/* Hero Section */
.hero {
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-video {
        width: 100vw;
        height: 100vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 27, 62, 0.85) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(59, 130, 246, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 10s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero .container,
.hero .hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lottie Animation Styles */
.lottie-animation {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
    animation: floatRandom 15s ease-in-out infinite;
}

.lottie-gift {
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.lottie-confetti {
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

.lottie-celebration {
    width: 160px;
    height: 160px;
    animation-delay: 4s;
}

.lottie-wallet {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes floatRandom {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(5deg) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(-3deg) scale(0.95);
        opacity: 0.7;
    }
    75% {
        transform: translateY(-25px) translateX(5px) rotate(8deg) scale(1.1);
        opacity: 0.85;
    }
}

/* Hero Title Animations */
.hero-title-animated {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-title-animated.slide-in-left {
    opacity: 1;
    transform: translateX(0);
}

.hero-subtitle-animated {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hero-subtitle-animated.slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive for Lottie Animations */
@media (max-width: 768px) {
    .lottie-animation {
        width: 100px;
        height: 100px;
    }
    
    .lottie-gift {
        width: 90px;
        height: 90px;
    }
    
    .lottie-confetti {
        width: 120px;
        height: 120px;
    }
    
    .lottie-celebration {
        width: 100px;
        height: 100px;
    }
    
    .lottie-wallet {
        width: 85px;
        height: 85px;
    }
}

.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero .btn {
    padding: 18px 40px;
    font-size: 18px;
}

/* Ensure primary hero CTA buttons on home page have white text */
body[data-page="home"] .hero .btn.btn-primary,
body[data-page="home"] .hero .btn.btn-primary:hover {
    color: #ffffff !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
}

.section-title.widget-fade-in.widget-animated::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 2px;
    animation: slideExpand 0.6s ease-out 0.3s backwards;
}

@keyframes slideExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Combined instruction paragraph under How It Works */
.section-instruction {
    text-align: center;
    font-size: 16px;
    color: #ffffff;
    max-width: 900px;
    margin: 12px auto 36px auto;
    line-height: 1.6;
}

/* Step Card */
.step-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Prize Card */
.prize-card {
    background-image: url('../harimathana/Fb Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-radius: var(--radius-lg);
    padding: 50px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.3);
}

.prize-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.7) 100%);
    z-index: 0;
}

.prize-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    color: var(--text-light);
}

.prize-card p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.prize-card .btn {
    position: relative;
    z-index: 2;
}

/* Prize Card Lottie Animation */
.lottie-prize-animation {
    position: absolute;
    width: 250px;
    height: 250px;
    top: -40px;
    right: -40px;
    z-index: 1;
    opacity: 0.4;
    pointer-events: none;
}

/* ═══════ Simple Date Display (replacing countdown) ═══════ */
.simple-date-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 35px 0;
}

.simple-date-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.simple-date-text:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ═══════ Winner Countdown Styles - Advanced Glass Effect ═══════ */
.countdown-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 35px 0;
}

.countdown-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(25px) saturate(1.8);
    -webkit-backdrop-filter: blur(25px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    max-width: 550px;
    width: 100%;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 15px 40px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.countdown-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(6, 182, 212, 0.1) 30%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 100%
    );
    animation: glass-pulse 12s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

.countdown-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        rgba(255, 255, 255, 0.8) 80%, 
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

.countdown-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.2),
        0 20px 60px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
}

.countdown-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
}

.countdown-icon {
    font-size: 42px;
    margin-bottom: 15px;
    animation: trophy-float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.countdown-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.countdown-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 30px 0;
    position: relative;
    z-index: 3;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 75px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 12px 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff !important;
    line-height: 1;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(59, 130, 246, 0.3);
    animation: number-glow 3s ease-in-out infinite;
}

.countdown-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-separator {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    animation: separator-pulse 2s ease-in-out infinite;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.5);
}

.countdown-footer {
    margin-top: 25px;
    position: relative;
    z-index: 3;
}

.countdown-date {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%
    );
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

/* Countdown Animations - Enhanced for Glass Effect */
@keyframes trophy-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-8px) rotate(-2deg); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-6px) rotate(2deg); 
    }
}

@keyframes number-glow {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 4px 16px rgba(59, 130, 246, 0.3);
    }
    50% { 
        transform: scale(1.08);
        text-shadow: 
            0 2px 8px rgba(0, 0, 0, 0.4),
            0 4px 16px rgba(59, 130, 246, 0.5),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes separator-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.1);
    }
}

@keyframes glass-pulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05) rotate(180deg); 
    }
}

@keyframes shimmer {
    0% { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

@keyframes medal-shine {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 6px 20px rgba(255, 215, 0, 0.6)) 
                drop-shadow(0 0 30px rgba(255, 215, 0, 0.3));
    }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.03; transform: scale(1); }
    50% { opacity: 0.08; transform: scale(1.1); }
}

/* Widget Animation Classes */
.widget-fade-in,
.widget-slide-left,
.widget-slide-right,
.widget-slide-up,
.widget-scale-up,
.widget-bounce {
    opacity: 1; /* Show by default instead of 0 */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback: Ensure content is always visible */
.widget-fade-in:not(.widget-animated),
.widget-slide-left:not(.widget-animated),
.widget-slide-right:not(.widget-animated),
.widget-slide-up:not(.widget-animated),
.widget-scale-up:not(.widget-animated),
.widget-bounce:not(.widget-animated) {
    opacity: 1 !important;
    transform: none !important;
}

.widget-fade-in {
    transform: translateY(30px);
}

.widget-slide-left {
    transform: translateX(-80px);
}

.widget-slide-right {
    transform: translateX(80px);
}

.widget-slide-up {
    transform: translateY(60px);
}

.widget-scale-up {
    transform: scale(0.8);
}

.widget-bounce {
    transform: translateY(50px) scale(0.9);
}

.widget-flip {
    opacity: 1; /* Show by default */
    transform: perspective(1000px) rotateY(-90deg);
}

.widget-rotate-in {
    opacity: 1; /* Show by default */
    transform: rotate(-180deg) scale(0.5);
}

.widget-pulse {
    opacity: 1; /* Show by default */
    transform: scale(0.95);
}

.widget-zoom-in {
    opacity: 1; /* Show by default */
    transform: scale(0.7);
}

/* Additional fallback for all widget animations */
.widget-flip:not(.widget-animated),
.widget-rotate-in:not(.widget-animated),
.widget-pulse:not(.widget-animated),
.widget-zoom-in:not(.widget-animated) {
    opacity: 1 !important;
    transform: none !important;
}

/* Animated state */
.widget-fade-in.widget-animated {
    opacity: 1;
    transform: translateY(0);
}

.widget-slide-left.widget-animated {
    opacity: 1;
    transform: translateX(0);
}

.widget-slide-right.widget-animated {
    opacity: 1;
    transform: translateX(0);
}

.widget-slide-up.widget-animated {
    opacity: 1;
    transform: translateY(0);
}

.widget-scale-up.widget-animated {
    opacity: 1;
    transform: scale(1);
}

.widget-bounce.widget-animated {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        opacity: 1;
    }
    70% {
        transform: translateY(5px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.widget-flip.widget-animated {
    opacity: 1;
    transform: perspective(1000px) rotateY(0deg);
    animation: flipIn 0.8s ease-out;
}

.widget-rotate-in.widget-animated {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    animation: rotateIn 0.7s ease-out;
}

.widget-pulse.widget-animated {
    opacity: 1;
    transform: scale(1);
    animation: pulseIn 1s ease-out;
}

.widget-zoom-in.widget-animated {
    opacity: 1;
    transform: scale(1);
    animation: zoomIn 0.6s ease-out;
}

@keyframes flipIn {
    0% {
        transform: perspective(1000px) rotateY(-90deg);
        opacity: 0;
    }
    50% {
        transform: perspective(1000px) rotateY(10deg);
    }
    100% {
        transform: perspective(1000px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes pulseIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Decoration Lottie Animations */
.lottie-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.lottie-faq {
    width: 200px;
    height: 200px;
    top: 50px;
    left: -30px;
    animation: floatSlow 20s ease-in-out infinite;
}

.lottie-empty-box {
    width: 180px;
    height: 180px;
    top: 150px;
    right: -20px;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

.lottie-trophy-left {
    width: 150px;
    height: 150px;
    top: -20px;
    left: 5%;
    animation: floatSlow 16s ease-in-out infinite;
}

.lottie-trophy-right {
    width: 160px;
    height: 160px;
    top: -30px;
    right: 5%;
    animation: floatSlow 17s ease-in-out infinite reverse;
}

.lottie-cta-gift {
    width: 180px;
    height: 180px;
    top: 20px;
    left: 30px;
    opacity: 0.4;
    animation: floatSlow 15s ease-in-out infinite;
}

.lottie-cta-wallet {
    width: 160px;
    height: 160px;
    bottom: 30px;
    right: 40px;
    opacity: 0.4;
    animation: floatSlow 14s ease-in-out infinite reverse;
}

/* Page-specific Lottie Decorations */
.lottie-page-trophy-1 {
    width: 180px;
    height: 180px;
    top: 100px;
    left: 5%;
    animation: floatSlow 18s ease-in-out infinite;
}

.lottie-page-trophy-2 {
    width: 170px;
    height: 170px;
    top: 300px;
    right: 8%;
    animation: floatSlow 16s ease-in-out infinite reverse;
}

.lottie-page-celebration {
    width: 200px;
    height: 200px;
    bottom: 150px;
    left: 10%;
    opacity: 0.5;
    animation: floatSlow 20s ease-in-out infinite;
}

.lottie-page-gift {
    width: 160px;
    height: 160px;
    top: 120px;
    right: 5%;
    animation: floatSlow 17s ease-in-out infinite;
}

.lottie-page-wallet {
    width: 180px;
    height: 180px;
    bottom: 200px;
    left: 8%;
    animation: floatSlow 19s ease-in-out infinite reverse;
}

.lottie-page-confetti {
    width: 190px;
    height: 190px;
    top: 400px;
    right: 10%;
    opacity: 0.5;
    animation: floatSlow 15s ease-in-out infinite;
}

.lottie-page-faq {
    width: 170px;
    height: 170px;
    top: 150px;
    left: 3%;
    animation: floatSlow 16s ease-in-out infinite;
}

.lottie-page-user {
    width: 160px;
    height: 160px;
    top: 350px;
    right: 7%;
    animation: floatSlow 18s ease-in-out infinite reverse;
}

/* Answer Page Decorations */
.lottie-answer-left {
    width: 150px;
    height: 150px;
    top: -50px;
    left: -50px;
    animation: floatSlow 14s ease-in-out infinite;
}

.lottie-answer-right {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -60px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(3deg);
    }
    50% {
        transform: translateY(-8px) translateX(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) translateX(5px) rotate(4deg);
    }
}

/* CTA Sparkle Effect */
.cta-sparkle {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(248, 250, 252, 0.2) 50%, 
        rgba(255, 255, 255, 0.15) 100%
    );
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(255, 255, 255, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.cta-sparkle h2 {
    color: #000000 !important;
}

.cta-sparkle p {
    color: #334155 !important;
}

.cta-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.cta-sparkles::before,
.cta-sparkles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.cta-sparkles::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.cta-sparkles::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(2.5);
    }
}

/* Mobile responsive widget animations */
@media (max-width: 768px) {
    .lottie-prize-animation {
        width: 150px;
        height: 150px;
        top: -20px;
        right: -20px;
        opacity: 0.3;
    }
    
    /* Mobile decoration animations */
    .lottie-decoration {
        opacity: 0.4;
    }
    
    .lottie-faq {
        width: 100px;
        height: 100px;
        top: 20px;
        left: -10px;
    }
    
    .lottie-empty-box {
        width: 90px;
        height: 90px;
        top: 80px;
        right: -10px;
    }
    
    .lottie-trophy-left,
    .lottie-trophy-right {
        width: 80px;
        height: 80px;
        top: -10px;
    }
    
    .lottie-trophy-left {
        left: 2%;
    }
    
    .lottie-trophy-right {
        right: 2%;
    }
    
    .lottie-cta-gift,
    .lottie-cta-wallet {
        width: 100px;
        height: 100px;
        opacity: 0.3;
    }
    
    .lottie-cta-gift {
        top: 10px;
        left: 10px;
    }
    
    .lottie-cta-wallet {
        bottom: 15px;
        right: 15px;
    }
    
    /* CTA section mobile responsive */
    .cta-sparkle {
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
    }
    
    .cta-sparkle .card-body {
        padding: 40px 20px !important;
    }
    
    .cta-sparkle h2 {
        font-size: 24px !important;
    }
    
    .cta-sparkle p {
        font-size: 16px !important;
    }
    
    /* Page-specific mobile decorations */
    .lottie-page-trophy-1,
    .lottie-page-trophy-2,
    .lottie-page-celebration,
    .lottie-page-gift,
    .lottie-page-wallet,
    .lottie-page-confetti {
        width: 80px;
        height: 80px;
        opacity: 0.3;
    }
    
    .lottie-page-trophy-1 {
        top: 50px;
        left: 2%;
    }
    
    .lottie-page-trophy-2 {
        top: 150px;
        right: 3%;
    }
    
    .lottie-page-celebration {
        display: none;
    }
    
    .lottie-page-gift {
        top: 80px;
        right: 2%;
    }
    
    .lottie-page-wallet {
        bottom: 100px;
        left: 3%;
    }
    
    .lottie-page-confetti {
        top: 200px;
        right: 5%;
    }
    
    .lottie-page-faq {
        top: 70px;
        left: 2%;
        width: 70px;
        height: 70px;
    }
    
    .lottie-page-user {
        top: 180px;
        right: 3%;
        width: 75px;
        height: 75px;
    }
    
    .lottie-answer-left {
        width: 80px;
        height: 80px;
        top: -30px;
        left: -20px;
    }
    
    .lottie-answer-right {
        width: 85px;
        height: 85px;
        top: -25px;
        right: -25px;
    }
    
    .widget-slide-left,
    .widget-slide-right {
        transform: translateY(40px);
    }
    
    .widget-slide-left.widget-animated,
    .widget-slide-right.widget-animated {
        transform: translateY(0);
    }
    
    /* Simplify complex animations on mobile */
    .widget-flip,
    .widget-rotate-in {
        transform: translateY(40px);
    }
    
    .widget-flip.widget-animated,
    .widget-rotate-in.widget-animated {
        transform: translateY(0);
        animation: none;
    }
}

/* Winner Badge */
.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffab00 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
}

.winner-badge::before {
    content: "🏆";
}

/* ═══════ Page Loader ═══════ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}
.page-loader-inner {
    text-align: center;
}
.page-loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: pageSpinner 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes pageSpinner {
    to { transform: rotate(360deg); }
}
.page-loader-text {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: loaderTextPulse 1.5s ease-in-out infinite;
}
@keyframes loaderTextPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ═══════ Button Loading State ═══════ */
.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pageSpinner 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}
.btn-loading .btn-text {
    opacity: 0.7;
}
.btn-loading .btn-loader {
    display: inline-block;
}
.btn-loading {
    pointer-events: none;
    opacity: 0.85;
}

/* ═══════ OTP Input Boxes ═══════ */
.otp-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 16px 0;
}

.paste-hint {
    animation: fadeIn 0.3s ease;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced button link style for paste/clear */
.btn-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 197, 253, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Auth pages - white btn-link styling */
body[data-page="login"] .btn-link,
body[data-page="register"] .btn-link,
body[data-page="verify-email"] .btn-link,
body[data-page="reverify-email"] .btn-link,
body[data-page="resend-verification"] .btn-link,
body[data-page="forgot-password"] .btn-link,
body[data-page="reset-password"] .btn-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-page="login"] .btn-link:hover,
body[data-page="register"] .btn-link:hover,
body[data-page="verify-email"] .btn-link:hover,
body[data-page="reverify-email"] .btn-link:hover,
body[data-page="resend-verification"] .btn-link:hover,
body[data-page="forgot-password"] .btn-link:hover,
body[data-page="reset-password"] .btn-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Auth pages - white link styling for regular links */
body[data-page="login"] a,
body[data-page="register"] a,
body[data-page="verify-email"] a,
body[data-page="reverify-email"] a,
body[data-page="resend-verification"] a,
body[data-page="forgot-password"] a,
body[data-page="reset-password"] a {
    color: #ffffff !important;
}

body[data-page="login"] a:hover,
body[data-page="register"] a:hover,
body[data-page="verify-email"] a:hover,
body[data-page="reverify-email"] a:hover,
body[data-page="resend-verification"] a:hover,
body[data-page="forgot-password"] a:hover,
body[data-page="reset-password"] a:hover {
    color: #f1f5f9 !important;
}
.otp-box {
    width: 50px;
    height: 56px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.05);
}
.otp-box:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 15px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.otp-box:not(:placeholder-shown),
.otp-box.filled {
    border-color: #22c55e;
    background: rgba(240, 253, 244, 0.9);
    color: #166534;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.1), 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* ═══════ Result Dialog ═══════ */
.result-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.result-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}
.result-dialog {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-dialog-overlay.show .result-dialog {
    transform: scale(1) translateY(0);
}
.result-dialog-icon {
    margin-bottom: 16px;
}
.result-icon-svg {
    width: 64px;
    height: 64px;
}
.result-icon-success circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: resultCircleDraw 0.6s ease forwards;
}
.result-icon-success path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: resultCheckDraw 0.4s ease 0.4s forwards;
}
.result-icon-error circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: resultCircleDraw 0.6s ease forwards;
}
.result-icon-error path {
    stroke-dasharray: 56;
    stroke-dashoffset: 56;
    animation: resultCheckDraw 0.4s ease 0.4s forwards;
}
@keyframes resultCircleDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes resultCheckDraw {
    to { stroke-dashoffset: 0; }
}
.result-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: pageSpinner 0.7s linear infinite;
    margin: 0 auto;
}
.result-dialog-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}
.result-dialog-success .result-dialog-title {
    color: #16a34a;
}
.result-dialog-error .result-dialog-title {
    color: #dc2626;
}
.result-dialog-message {
    color: #64748b;
    font-size: 15px;
    margin: 0 0 20px;
    line-height: 1.5;
}
.result-dialog-progress {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.result-dialog-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    width: 100%;
}
.result-dialog-redirect {
    color: #94a3b8;
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

/* ═══════ Profile Page ═══════ */

/* Profile Avatar Header */
.profile-avatar-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}
.profile-avatar-display {
    flex-shrink: 0;
}
.profile-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}
.profile-avatar-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
    color: #000000;
}
.profile-avatar-info p {
    margin: 0;
}

/* Avatar Selection Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 500px;
}
.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-option:hover {
    border-color: var(--primary-light);
    transform: scale(1.08);
}
.avatar-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}
.avatar-option.selected::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Avatar Current Preview */
.avatar-current-preview {
    text-align: center;
    margin-bottom: 10px;
}
.avatar-current-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

/* Avatar Upload Area */
.avatar-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}
.avatar-upload-area:hover,
.avatar-upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}
.avatar-upload-placeholder p {
    margin: 8px 0 4px;
    font-weight: 500;
    color: #475569;
}

/* Mobile Upload Button */
.mobile-upload-btn {
    display: none;
    margin-top: 10px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-upload-btn:hover {
    background: var(--primary-light);
}

/* Mobile-specific avatar upload styles */
@media (max-width: 768px) {
    .avatar-upload-area {
        border: 2px solid var(--glass-border);
        border-radius: 12px;
        padding: 20px;
        min-height: 120px;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        touch-action: manipulation;
    }
    
    .avatar-upload-area.touch-active {
        background: rgba(99, 102, 241, 0.08);
        border-color: var(--primary);
        transform: scale(0.98);
    }
    
    .avatar-upload-area:active {
        background: rgba(99, 102, 241, 0.08);
        border-color: var(--primary);
    }
    
    .mobile-upload-btn {
        display: inline-block;
    }
    
    .avatar-upload-placeholder {
        pointer-events: none;
    }
    
    .avatar-upload-placeholder p {
        font-size: 14px;
        margin: 6px 0 3px;
    }
    
    .avatar-upload-placeholder small {
        font-size: 12px;
    }
    
    /* Hide drag text on mobile */
    .avatar-upload-placeholder p[data-translate="Click or drag an image here"] {
        display: none;
    }
    
    /* Show mobile-specific text */
    .avatar-upload-placeholder::after {
        content: "Tap to select image";
        display: block;
        margin: 6px 0 3px;
        font-weight: 500;
        color: #475569;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .avatar-upload-area {
        padding: 16px;
        min-height: 100px;
    }
    
    .avatar-upload-placeholder span {
        font-size: 28px !important;
    }
}

/* File selected state for mobile */
.avatar-upload-area.file-selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.05);
}

@media (max-width: 768px) {
    .avatar-upload-area.file-selected {
        animation: successPulse 0.6s ease;
    }
}

@keyframes successPulse {
    0% { 
        border-color: var(--glass-border); 
        background: transparent; 
    }
    50% { 
        border-color: #22c55e; 
        background: rgba(34, 197, 94, 0.1); 
        transform: scale(1.02); 
    }
    100% { 
        border-color: #22c55e; 
        background: rgba(34, 197, 94, 0.05); 
        transform: scale(1); 
    }
}

/* Leaderboard & Winner Avatars */
.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.winner-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

/* Clickable Avatars */
.avatar-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avatar-clickable:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Avatar Lightbox */
.avatar-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.avatar-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.avatar-lightbox-content {
    text-align: center;
    animation: avatarZoomIn 0.3s ease;
}
.avatar-lightbox-content img {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.avatar-lightbox-content p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}
.avatar-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.avatar-lightbox-close:hover {
    opacity: 1;
}
@keyframes avatarZoomIn {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 600px) {
    .avatar-lightbox-content img {
        width: 180px;
        height: 180px;
    }
}

.profile-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.profile-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.profile-stat-icon {
    font-size: 16px;
}
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    overflow-x: auto;
}
.profile-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}
.profile-tab:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}
.profile-tab.active {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.profile-tab.tab-danger.active {
    color: #dc2626;
}
.profile-tab-content {
    display: none;
}
.profile-tab-content.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════ Profile Page Compact Design ═══════ */
/* Compact card for profile forms on desktop */
.profile-compact-card {
    max-width: 800px;
    margin: 0 auto;
}

.profile-compact-card .card-body {
    padding: 24px;
    background-color: white !important;
}

.profile-form .form-group {
    margin-bottom: 18px;
}

.profile-form .form-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
}

.profile-form .form-control {
    padding: 12px 16px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(59, 130, 246, 0.4);
    color: #1e3a8a;
}

.profile-form .form-control:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Alert styles */
.alert-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #22c55e;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop specific - more compact spacing */
@media (min-width: 1024px) {
    .profile-container {
        padding: 20px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .profile-card {
        padding: 32px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-header {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .profile-stats {
        gap: 16px;
    }
    
    .profile-stat {
        padding: 12px 20px;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .profile-container {
        padding: 16px;
    }
    
    .profile-card {
        padding: 20px;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .profile-form .form-group {
        margin-bottom: 16px;
    }
    
    .profile-form .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .profile-form button {
        width: 100%;
        padding: 12px;
    }
    
    .profile-compact-card .card-body {
        padding: 16px;
        background-color: white !important;
    }
    
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .profile-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* ═══════ Winner Congratulation Popup ═══════ */
.winner-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.winner-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}
.winner-popup-overlay.hiding {
    opacity: 0;
    visibility: hidden;
}
.winner-popup {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    border-radius: 24px;
    padding: 40px 36px 36px;
    max-width: 440px;
    width: 92%;
    text-align: center;
    position: relative;
    box-shadow:
        0 0 60px rgba(99, 102, 241, 0.4),
        0 0 120px rgba(168, 85, 247, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.4);
    transform: scale(0.7) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.winner-popup-overlay.show .winner-popup {
    transform: scale(1) translateY(0);
}
.winner-popup-overlay.hiding .winner-popup {
    transform: scale(0.8) translateY(20px);
}
.winner-popup::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #ffd700, #ff6b35);
    background-size: 400% 400%;
    z-index: -1;
    animation: popupBorderGlow 3s ease infinite;
}
@keyframes popupBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.winner-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.winner-popup-close:hover {
    color: #fff;
}

/* Confetti particles */
.winner-popup-confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.winner-popup-confetti span {
    position: absolute;
    font-size: 20px;
    animation: confettiFall 3s ease-in-out infinite;
    opacity: 0.7;
}
.winner-popup-confetti span:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 2.5s; }
.winner-popup-confetti span:nth-child(2) { left: 15%; animation-delay: 0.3s; animation-duration: 3s; }
.winner-popup-confetti span:nth-child(3) { left: 28%; animation-delay: 0.6s; animation-duration: 2.8s; }
.winner-popup-confetti span:nth-child(4) { left: 40%; animation-delay: 0.2s; animation-duration: 3.2s; }
.winner-popup-confetti span:nth-child(5) { left: 55%; animation-delay: 0.8s; animation-duration: 2.6s; }
.winner-popup-confetti span:nth-child(6) { left: 65%; animation-delay: 0.1s; animation-duration: 3.1s; }
.winner-popup-confetti span:nth-child(7) { left: 75%; animation-delay: 0.5s; animation-duration: 2.7s; }
.winner-popup-confetti span:nth-child(8) { left: 85%; animation-delay: 0.7s; animation-duration: 3.3s; }
.winner-popup-confetti span:nth-child(9) { left: 92%; animation-delay: 0.4s; animation-duration: 2.9s; }
.winner-popup-confetti span:nth-child(10) { left: 48%; animation-delay: 0.9s; animation-duration: 3.4s; }
@keyframes confettiFall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(400px) rotate(720deg); opacity: 0; }
}

.winner-popup-trophy {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 8px;
    animation: trophyBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.5));
}
@keyframes trophyBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}
.winner-popup-title {
    color: #ffd700;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}
.winner-popup-name {
    color: #e0e7ff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
}
.winner-popup-message {
    color: #fff;
    font-size: 18px;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.winner-popup-message strong {
    color: #fbbf24;
    font-size: 20px;
}
.winner-popup-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.winner-popup-stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px 18px;
    flex: 1;
    max-width: 180px;
}
.winner-popup-stat-value {
    display: block;
    color: #fbbf24;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.winner-popup-stat-label {
    display: block;
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.winner-popup-sub {
    color: #c7d2fe;
    font-size: 14px;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}
.winner-popup-btn {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}
.winner-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(251, 191, 36, 0.6);
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-sidebar {
        width: 260px;
    }
    
    .admin-content {
        margin-left: 260px;
        padding: 30px 20px;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav a {
        padding: 9px 14px;
        font-size: 13px;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .winner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .winners-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header {
        padding: 15px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transition: none;
    }
    
    /* Prevent header animation issues on all pages mobile */
    .header {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .header .container {
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 20px;
        position: relative;
    }
    
    .logo {
        flex: 1;
        justify-content: flex-start;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Page containers mobile */
    .page-container {
        padding: 75px 0 25px 0;
    }
    
    .page-container h1 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .page-container .page-title-big {
        font-size: 28px;
    }
    
    .page-container .page-subtitle-big {
        font-size: 15px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Tables responsive */
    .data-table-wrapper,
    .leaderboard-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .data-table,
    .leaderboard-table {
        min-width: 600px;
    }
    
    .data-table th,
    .data-table td {
        padding: 14px 12px;
        font-size: 13px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 14px 12px;
        font-size: 13px;
    }
    
    /* Card responsive */
    .card {
        border-radius: 14px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 18px 20px;
        font-size: 17px;
    }
    
    .card-body {
        padding: 20px;
        background-color: white !important;
    }
    
    /* Video cards */
    .video-card {
        margin-bottom: 14px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-info {
        padding: 18px;
    }
    
    .video-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Form controls */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    /* Answer page */
    .answer-container {
        padding: 85px 16px 30px;
    }
    
    .answer-thumbnail {
        border-radius: 12px;
        margin-bottom: 18px;
    }
    
    /* Alert messages */
    .alert {
        padding: 14px 18px;
        font-size: 14px;
        margin-bottom: 18px;
        border-radius: 10px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15);
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav.open {
        left: 0;
    }
    
    /* Mobile menu header with logo */
    .nav-header {
        display: flex;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.5);
    }
    
    .nav-logo {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .nav-logo-img {
        height: 26px;
        width: auto;
        object-fit: contain;
        filter: brightness(0) invert(0);
    }
    
    /* White header pages mobile nav logo - keep black */
    body[data-page="home"] .nav-logo-img,
    body[data-page="dashboard"] .nav-logo-img,
    body[data-page="leaderboard"] .nav-logo-img,
    body[data-page="profile"] .nav-logo-img,
    body[data-page="youtube-subscription-verification"] .nav-logo-img {
        filter: brightness(0) invert(0);
    }
    
    /* Menu links container */
    .nav-links {
        display: flex;
        flex-direction: column;
        padding: 12px;
        gap: 4px;
    }
    
    .nav a {
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        color: #1e293b !important;
        background: #f8fafc;
        border-radius: 12px;
        text-align: left;
        border-bottom: none;
        transition: all 0.25s ease;
    }
    
    /* Mobile nav links for ALL pages - force black text */
    body[data-page="home"] .nav a,
    body[data-page="login"] .nav a,
    body[data-page="register"] .nav a,
    body[data-page="forgot-password"] .nav a,
    body[data-page="verify-email"] .nav a,
    body[data-page="reset-password"] .nav a,
    body[data-page="dashboard"] .nav a,
    body[data-page="answer"] .nav a,
    body[data-page="leaderboard"] .nav a,
    body[data-page="profile"] .nav a,
    body[data-page="youtube-subscription-verification"] .nav a {
        color: #1e293b !important;
        background: #f8fafc !important;
    }
    
    .nav a:hover {
        background: #eff6ff !important;
        color: #000000 !important;
    }
    
    /* Mobile nav hover for ALL pages - force black text */
    body[data-page="home"] .nav a:hover,
    body[data-page="login"] .nav a:hover,
    body[data-page="register"] .nav a:hover,
    body[data-page="forgot-password"] .nav a:hover,
    body[data-page="verify-email"] .nav a:hover,
    body[data-page="reset-password"] .nav a:hover,
    body[data-page="dashboard"] .nav a:hover,
    body[data-page="answer"] .nav a:hover,
    body[data-page="leaderboard"] .nav a:hover,
    body[data-page="profile"] .nav a:hover,
    body[data-page="youtube-subscription-verification"] .nav a:hover {
        background: #eff6ff !important;
        color: #000000 !important;
    }
    
    /* Mobile scrolled header nav links for home page */
    body[data-page="home"] .header.scrolled-logo .nav a {
        color: #000000 !important;
        background: transparent !important;
    }
    
    .nav a.active {
        color: #2563eb !important;
        background: #eff6ff;
        font-weight: 600;
    }
    
    /* Mobile nav active for white header pages */
    body[data-page="home"] .nav a.active,
    body[data-page="dashboard"] .nav a.active,
    body[data-page="leaderboard"] .nav a.active,
    body[data-page="profile"] .nav a.active,
    body[data-page="youtube-subscription-verification"] .nav a.active {
        color: #2563eb !important;
        background: #eff6ff;
        font-weight: 600;
    }
    
    .nav a::before {
        display: none;
    }
    
    .nav .btn-nav {
        background: #f8fafc !important;
        color: #1e293b !important;
        text-align: left;
        border-radius: 12px;
        border-bottom: none;
    }
    
    .nav .btn-nav:hover {
        background: #eff6ff !important;
        color: #000000 !important;
    }
    
    /* Mobile nav btn for white header pages */
    body[data-page="home"] .nav .btn-nav,
    body[data-page="dashboard"] .nav .btn-nav,
    body[data-page="leaderboard"] .nav .btn-nav,
    body[data-page="profile"] .nav .btn-nav,
    body[data-page="youtube-subscription-verification"] .nav .btn-nav {
        background: #f8fafc !important;
        color: #1e293b !important;
    }
    
    body[data-page="home"] .nav .btn-nav:hover,
    body[data-page="dashboard"] .nav .btn-nav:hover,
    body[data-page="leaderboard"] .nav .btn-nav:hover,
    body[data-page="profile"] .nav .btn-nav:hover,
    body[data-page="youtube-subscription-verification"] .nav .btn-nav:hover {
        background: #eff6ff !important;
        color: #000000 !important;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    
    .nav-overlay.show {
        display: block;
        opacity: 1;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 280px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1100;
        padding: 0;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-sidebar-overlay.show {
        display: block;
    }
    
    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .admin-menu-toggle {
        display: flex;
    }
    
    .admin-sidebar .logo {
        justify-content: flex-start;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .admin-menu {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .admin-menu li {
        margin: 0 12px;
        flex: none;
        min-width: auto;
    }
    
    .admin-menu a {
        padding: 14px 18px;
        font-size: 15px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    .admin-header {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-welcome {
        font-size: 12px;
    }
    
    /* Profile page mobile */
    .profile-container {
        padding: 85px 16px 30px;
    }
    
    .profile-header {
        padding: 18px;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .profile-header h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .profile-stats-row {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    
    .profile-stat-chip {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .profile-tabs {
        gap: 6px;
        margin-bottom: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
    
    .profile-tab {
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 10px;
    }
    
    .profile-tab-content {
        padding: 18px;
        border-radius: 12px;
    }
    
    .profile-tab-content h3 {
        font-size: 17px;
        margin-bottom: 14px;
    }
    
    .profile-form-row {
        flex-direction: column;
        gap: 14px;
    }
    
    /* Mobile profile avatar improvements */
    .avatar-current-preview {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .avatar-current-preview img {
        width: 100px;
        height: 100px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin: 16px 0;
    }
    
    .avatar-option {
        padding: 8px;
        border-radius: 10px;
    }
    
    .avatar-option img {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile form improvements */
    .btn {
        min-height: 44px; /* iOS touch target */
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 20px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
        min-height: 44px;
    }
    
    /* Mobile avatar upload form */
    .loading-form .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .profile-form-col {
        flex: 1;
        min-width: 100%;
    }
    
    .profile-delete-warning {
        padding: 14px;
        margin-bottom: 14px;
        font-size: 13px;
    }
    
    /* Winner Stats responsive */
    .winner-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .winner-stat-card {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .winner-stat-icon {
        font-size: 22px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .winner-stat-number {
        font-size: 20px;
    }
    
    .winner-stat-label {
        font-size: 11px;
    }
    
    /* Dashboard Stats responsive */
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dashboard-stats-grid .stat-card {
        padding: 16px 12px;
    }
    
    /* Week Banner responsive */
    .week-banner {
        flex-direction: column;
        padding: 16px 18px;
        text-align: center;
    }
    
    .week-banner-right {
        justify-content: center;
    }
    
    .week-banner-dates {
        font-size: 15px;
    }
    
    /* Winners cards responsive */
    .winners-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Card header flex responsive */
    .card-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Footer responsive - Tablet */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }
    
    .footer-brand {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-credits {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-credits-stack {
        align-items: center;
    }
    
    .footer-credit-item {
        font-size: 12px;
    }
    
    .footer-credit-logo {
        height: 32px;
    }
    
    .footer-credit-logo-only .footer-credit-logo {
        height: 32px;
    }
    
    .footer-credit-with-text .footer-credit-logo {
        height: 22px;
    }
    
    .footer-credit-logo-link {
        padding: 6px 10px;
    }
    
    .footer-credit-logo-only {
        padding: 8px 12px;
    }
    
    .footer-credit-label {
        font-size: 11px;
    }
    
    .footer-bottom {
        padding: 14px 0;
    }
    
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 40px 20px;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 38px;
        line-height: 1.25;
        margin-bottom: 18px;
    }
    
    .hero p {
        font-size: 18px;
        line-height: 1.5;
        padding: 0 10px;
        margin-bottom: 24px;
    }
    
    .hero .btn {
        padding: 12px 26px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 35px;
        padding: 0 10px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .stat-card {
        padding: 18px 14px;
    }
    
    /* Countdown mobile styles */
    .countdown-container {
        margin: 30px 0;
        padding: 0 10px;
    }
    
    .countdown-card {
        padding: 25px 20px;
        border-radius: 18px;
        margin: 0 auto;
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.18) 0%, 
            rgba(255, 255, 255, 0.12) 50%, 
            rgba(255, 255, 255, 0.08) 100%
        );
    }
    
    .countdown-header h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .countdown-header p {
        font-size: 14px;
    }
    
    .countdown-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .countdown-timer {
        gap: 12px;
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-unit {
        min-width: 65px;
        padding: 10px 6px;
        border-radius: 12px;
    }
    
    .countdown-number {
        font-size: 26px;
    }
    
    .countdown-label {
        font-size: 10px;
        margin-top: 5px;
        letter-spacing: 1px;
    }
    
    .countdown-separator {
        font-size: 24px;
    }
    
    .countdown-date {
        font-size: 13px;
        padding: 6px 15px;
    }
    
    .countdown-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .step-card {
        padding: 22px 16px;
    }
    
    .step-card h3 {
        font-size: 17px;
    }
    
    .step-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin-bottom: 14px;
    }
    
    .prize-card {
        padding: 35px 20px;
    }
    
    .prize-card h3 {
        font-size: 22px;
    }
    
    .page-container {
        padding: 80px 0 30px 0;
    }
    
    .page-container h1 {
        font-size: 22px;
    }
    
    .video-card {
        margin-bottom: 10px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 22px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .auth-container {
        margin: 40px auto;
        padding: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header {
        padding: 12px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transition: none;
    }
    
    /* Extra small - prevent header animation issues */
    body[data-page="login"] .header,
    body[data-page="register"] .header,
    body[data-page="forgot-password"] .header,
    body[data-page="verify-email"] .header,
    body[data-page="reset-password"] .header {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
    
    .header .container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo-img {
        height: 34px;
    }
    
    .nav {
        width: 260px;
    }
    
    .nav-links {
        padding: 10px;
    }
    
    .nav a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Page containers extra small */
    .page-container {
        padding: 70px 0 20px 0;
    }
    
    .page-container h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Tables extra responsive */
    .data-table-wrapper,
    .leaderboard-table-wrapper {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .data-table,
    .leaderboard-table {
        min-width: 550px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    /* Leaderboard specific */
    .leaderboard-rank {
        font-size: 16px;
        width: 32px;
        height: 32px;
    }
    
    .rank-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    
    .correct-badge {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .highlight-row {
        border-width: 2px;
    }
    
    /* Action buttons mobile */
    .data-table .actions {
        flex-direction: column;
        gap: 6px;
        min-width: 100px;
    }
    
    .data-table .actions .btn {
        padding: 8px 12px;
        font-size: 12px;
        width: 100%;
    }
    
    /* Touch targets minimum 44px */
    .btn,
    .nav a,
    .admin-menu a,
    .profile-tab {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Card extra small */
    .card {
        border-radius: 12px;
        margin-bottom: 12px;
    }
    
    .card-header {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 16px;
        background-color: white !important;
    }
    
    /* Video cards small */
    .video-card {
        margin-bottom: 12px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-info {
        padding: 14px;
    }
    
    .video-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .video-status {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Buttons extra small */
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    /* Form controls small */
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    /* Answer page small */
    .answer-container {
        padding: 80px 12px 25px;
    }
    
    .answer-thumbnail {
        border-radius: 10px;
        margin-bottom: 16px;
    }
    
    /* Alert messages small */
    .alert {
        padding: 12px 14px;
        font-size: 13px;
        margin-bottom: 14px;
        border-radius: 8px;
    }
    
    .alert::before {
        font-size: 16px;
    }
    
    /* Profile page extra small */
    .profile-container {
        padding: 80px 12px 25px;
    }
    
    .profile-header {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 14px;
    }
    
    .profile-header h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .profile-stats-row {
        gap: 6px;
    }
    
    .profile-stat-chip {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 7px;
    }
    
    .profile-tabs {
        gap: 5px;
        margin-bottom: 14px;
    }
    
    .profile-tab {
        padding: 9px 14px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .profile-tab-content {
        padding: 14px;
        border-radius: 10px;
    }
    
    .profile-tab-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .profile-form-row {
        gap: 12px;
    }
    
    .profile-delete-warning {
        padding: 12px;
        margin-bottom: 12px;
        font-size: 12px;
    }
    
    .hero {
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 25px 15px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
        line-height: 1.25;
    }
    
    .hero p {
        font-size: 16px;
        line-height: 1.5;
        padding: 0 5px;
        margin-bottom: 20px;
    }
    
    .hero .btn {
        padding: 11px 22px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 19px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 28px;
        padding: 0 8px;
    }
    
    .grid-3, .grid-2 {
        gap: 14px;
    }
    
    .step-card {
        padding: 18px 14px;
    }
    
    .step-card h3 {
        font-size: 15px;
    }
    
    .step-card p {
        font-size: 13px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .stat-card {
        padding: 16px 12px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .prize-card {
        padding: 28px 16px;
    }
    
    .prize-card h3 {
        font-size: 19px;
    }
    
    .prize-card .prize-value {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    /* Footer responsive - Mobile */
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        padding: 20px 0;
        gap: 20px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        font-size: 24px;
        justify-content: center;
    }
    
    .footer-logo-icon {
        height: 48px;
    }
    
    .footer-tagline {
        font-size: 12px;
    }
    
    .footer-links {
        gap: 16px;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 13px;
    }
    
    .footer-credits {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-credit-item {
        font-size: 12px;
        justify-content: center;
        text-align: center;
    }
    
    .footer-credit-logo {
        height: 28px;
    }
    
    .footer-credit-logo-only .footer-credit-logo {
        height: 28px;
    }
    
    .footer-credit-with-text .footer-credit-logo {
        height: 20px;
    }
    
    .footer-credit-logo-link {
        padding: 6px 8px;
    }
    
    .footer-credit-logo-only {
        padding: 8px 10px;
    }
    
    .footer-credit-label {
        font-size: 10px;
    }
    
    .footer-bottom {
        padding: 12px 0;
    }
    
    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .admin-header h1 {
        font-size: 18px;
    }
    
    .admin-menu a {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px 10px;
        font-size: 12px;
    }
    
    /* Winner Stats extra small */
    .winner-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .winner-stat-card {
        flex-direction: column;
        text-align: center;
        padding: 12px 10px;
        gap: 6px;
    }
    
    .winner-stat-number {
        font-size: 18px;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .winners-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .week-banner {
        padding: 14px;
    }
    
    .week-banner-dates {
        font-size: 14px;
    }
    
    .prize-card {
        padding: 30px 16px;
    }
    
    .prize-card h3 {
        font-size: 20px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    /* OTP boxes small screen */
    .otp-input-container {
        gap: 6px;
    }
    .otp-box {
        width: 42px;
        height: 48px;
        font-size: 20px;
        border-radius: 10px;
    }
    
    /* Profile tabs small screen */
    .profile-stats-row {
        gap: 8px;
    }
    .profile-stat-chip {
        padding: 6px 14px;
        font-size: 12px;
    }
    .profile-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Result dialog small screen */
    .result-dialog {
        padding: 28px 24px;
        max-width: 340px;
    }
    .result-icon-svg {
        width: 52px;
        height: 52px;
    }
    .result-dialog-title {
        font-size: 18px;
    }
    
    /* Winner popup small screen */
    .winner-popup {
        padding: 30px 20px 28px;
        max-width: 360px;
        width: 94%;
        border-radius: 20px;
    }
    .winner-popup-trophy {
        font-size: 56px;
    }
    .winner-popup-title {
        font-size: 22px;
    }
    .winner-popup-name {
        font-size: 17px;
    }
    .winner-popup-message {
        font-size: 15px;
    }
    .winner-popup-message strong {
        font-size: 17px;
    }
    .winner-popup-stats {
        flex-direction: column;
        gap: 10px;
    }
    .winner-popup-stat-item {
        max-width: 100%;
        padding: 10px 14px;
    }
    .winner-popup-stat-value {
        font-size: 18px;
    }
    .winner-popup-btn {
        padding: 12px 32px;
        font-size: 14px;
    }
    
    /* Winner cards mobile glass styles */
    .winner-card-item {
        padding: 20px 15px;
        border-radius: 16px;
        backdrop-filter: blur(15px) saturate(1.4);
        -webkit-backdrop-filter: blur(15px) saturate(1.4);
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.18) 0%, 
            rgba(255, 255, 255, 0.12) 50%, 
            rgba(255, 255, 255, 0.08) 100%
        );
    }

    .winner-card-medal {
        font-size: 38px;
        margin-bottom: 8px;
    }

    .winner-card-name {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .winner-card-stat {
        font-size: 13px;
    }
    
    .winner-card-email {
        font-size: 12px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Pulse Animation */
.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 50px rgba(59, 130, 246, 0.6);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Mobile scrollbar for tables */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
}

/* Floating Animation for Cards */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: floating 3s ease-in-out infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.3),
        0 0 40px rgba(59, 130, 246, 0.2),
        0 0 60px rgba(59, 130, 246, 0.1);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        #f8fafc 0%,
        #e2e8f0 50%,
        #f8fafc 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* ═══════ Avatar Responsive ═══════ */
@media (max-width: 600px) {
    .profile-avatar-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .profile-avatar-img {
        width: 70px;
        height: 70px;
    }
    .avatar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    .avatar-option.selected::after {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .winner-card-avatar {
        width: 44px;
        height: 44px;
    }
    .leaderboard-avatar {
        width: 28px;
        height: 28px;
    }
}

/* ═══════ Profile & Leaderboard Responsive ═══════ */
@media (max-width: 768px) {
    .profile-stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-stat-chip {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .profile-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .profile-tab {
        font-size: 13px;
        padding: 10px;
        white-space: nowrap;
    }
    
    .card-body {
        padding: 20px;
        background-color: white !important;
    }
    
    .leaderboard-table {
        font-size: 13px;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 8px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .profile-avatar-header .profile-avatar-info h2 {
        font-size: 20px;
        color: #000000;
    }
    
    .profile-tabs {
        grid-template-columns: 1fr;
    }
    
    .profile-tab {
        font-size: 14px;
        padding: 12px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    /* Very small mobile - even more compact big titles */
    .page-title-big {
        font-size: 26px !important;
        margin-bottom: 10px;
    }
    
    .page-title-big::after {
        width: 50px;
        height: 2px;
    }
    
    .page-subtitle-big {
        font-size: 14px !important;
        margin-bottom: 25px;
    }
    
    .alert {
        padding: 12px;
        font-size: 13px;
    }
    
    /* YouTube Subscription Upload Button Responsive */
    .youtube-subscribe-btn {
        font-size: 14px !important;
        padding: 12px 20px !important;
        flex-wrap: wrap;
        justify-content: center;
        min-width: 200px !important;
        max-width: 100% !important;
        text-align: center;
    }
    
    .youtube-subscribe-btn span {
        text-align: center;
        font-size: 14px !important;
    }
    
    .youtube-subscribe-btn svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Upload page responsive */
    body[data-page="youtube-subscription-verification"] .card {
        margin: 10px;
        border-radius: 20px !important;
    }
    
    body[data-page="youtube-subscription-verification"] .card-body {
        padding: 25px 20px !important;
        background-color: white !important;
    }
    
    /* Steps guide mobile */
    .steps-guide {
        padding: 20px !important;
        margin-bottom: 20px !important;
        border-radius: 16px !important;
    }
    
    .steps-guide h3 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    .steps-guide ol {
        font-size: 14px !important;
        line-height: 1.8 !important;
        padding-left: 18px !important;
    }
    
    .steps-guide ol li {
        margin-bottom: 8px !important;
    }
    
    /* Modal responsive */
    #subscribeModal > div {
        max-width: 350px !important;
        width: 92% !important;
        padding: 30px 25px !important;
        margin: 0 15px !important;
    }
    
    #subscribeModal h2 {
        font-size: 20px !important;
    }
    
    #subscribeModal p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    
    #subscribeModal .btn {
        font-size: 14px !important;
        padding: 12px 20px !important;
        width: 100% !important;
        margin-bottom: 8px !important;
    }
    
    #subscribeModal > div > div:last-child {
        flex-direction: column !important;
    }
    
    /* File input mobile styling */
    body[data-page="youtube-subscription-verification"] .form-control[type="file"] {
        padding: 15px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }
    
    /* Image preview responsive */
    #imagePreview {
        text-align: center !important;
    }
    
    #imagePreview img {
        max-height: 200px !important;
        width: auto !important;
        border-radius: 12px !important;
    }
    
    /* Form buttons mobile */
    body[data-page="youtube-subscription-verification"] .btn-block {
        font-size: 15px !important;
        padding: 14px 20px !important;
        border-radius: 14px !important;
    }
    
    /* Alert messages responsive */
    body[data-page="youtube-subscription-verification"] .alert {
        font-size: 14px !important;
        padding: 12px 16px !important;
        border-radius: 12px !important;
    }
}

/* Mobile responsive alerts and dialogs */
@media (max-width: 767px) {
    .alert {
        padding: 16px !important;
        margin: 10px !important;
        font-size: 14px !important;
        border-radius: 16px !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .alert h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    
    .alert p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    
    .alert .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        margin-top: 8px !important;
        text-align: center !important;
        display: block !important;
    }
    
    .alert::before {
        font-size: 28px !important;
        align-self: center !important;
    }
    
    .alert-warning,
    .alert-info,
    .alert-error,
    .alert-success {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }
}

/* Tablet responsive alerts */
@media (min-width: 768px) and (max-width: 1023px) {
    .alert {
        padding: 20px !important;
        font-size: 15px !important;
    }
    
    .alert h3 {
        font-size: 20px !important;
    }
    
    .alert .btn {
        padding: 12px 24px !important;
        font-size: 16px !important;
    }
}

/* Mobile responsive modals and dialogs */
@media (max-width: 767px) {
    #subscribeModal > div {
        max-width: 90% !important;
        width: 90% !important;
        padding: 24px 20px !important;
        margin: 20px !important;
        border-radius: 20px !important;
    }
    
    #subscribeModal h2,
    #subscribeModal h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
    }
    
    #subscribeModal p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    #subscribeModal .btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        margin-top: 10px !important;
    }
    
    .result-dialog {
        max-width: 90% !important;
        width: 90% !important;
        padding: 28px 20px !important;
        border-radius: 18px !important;
    }
    
    .result-dialog-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .result-dialog-message {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }
    
    .result-icon-svg {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Tablet responsive modals */
@media (min-width: 768px) and (max-width: 1023px) {
    #subscribeModal > div {
        max-width: 85% !important;
        padding: 30px 25px !important;
    }
    
    .result-dialog {
        max-width: 85% !important;
        padding: 32px 28px !important;
    }
}

/* ═══════════════════════════════════════════════════════
   ADMIN THEME SYSTEM — LIGHT & DARK MODE
   ═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────
   TOGGLE BUTTON (in admin sidebar)
   ───────────────────────────────────────────────────── */
.sidebar-theme-toggle {
    padding: 14px 20px 20px;
    margin: 6px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.2px;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

.theme-toggle-label {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
}

.theme-toggle-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-track {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

body.admin-dark .theme-toggle-track {
    background: #3b82f6;
    border-color: #2563eb;
}

body.admin-dark .theme-toggle-thumb {
    transform: translateX(18px);
}

body.admin-dark .theme-toggle-icon {
    transform: rotate(20deg);
}

/* ─────────────────────────────────────────────────────
   LIGHT MODE — Admin panel enhancements
   ───────────────────────────────────────────────────── */

/* Scoped to admin panel only – cleaner page background */
.admin-content {
    background: #f0f4fb !important;
}

/* Light mode cards – crisp white with visible border */
.admin-layout .card {
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08), 0 1px 4px rgba(0,0,0,0.04) !important;
}

.admin-layout .card:hover {
    box-shadow: 0 6px 24px rgba(30, 58, 138, 0.13), 0 2px 8px rgba(0,0,0,0.06) !important;
}

.admin-layout .card-body {
    background: #ffffff !important;
    color: #1e293b !important;
}

/* Light mode stat cards */
.admin-layout .stat-card {
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08) !important;
}

/* Light mode stat numbers & labels — override the global forced-white */
body:not(.admin-dark) .admin-layout .stat-number {
    color: #0d1b3e !important;
    -webkit-text-fill-color: #0d1b3e !important;
    text-shadow: none !important;
}

body:not(.admin-dark) .admin-layout .stat-label {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
}

/* Light mode form controls in admin */
.admin-layout .form-control {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1.5px solid #c7d9f0 !important;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.06) !important;
}

.admin-layout .form-control:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.admin-layout .form-control::placeholder {
    color: #94a3b8 !important;
}

/* Light mode labels */
.admin-layout .form-group label,
.admin-layout label {
    color: #334155 !important;
    text-shadow: none !important;
}

/* Light mode data table */
.admin-layout .data-table {
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
}

.admin-layout .data-table td {
    color: #1e293b !important;
    background: #ffffff;
    border-bottom-color: #e8f0fa !important;
}

.admin-layout .data-table tr:hover td {
    background: #f0f6ff !important;
}

/* Light mode winner stat cards */
.admin-layout .winner-stat-card {
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: 0 2px 12px rgba(30, 58, 138, 0.08) !important;
}

/* Light mode btn-secondary */
.admin-layout .btn-secondary {
    background: #ffffff !important;
    color: #2563eb !important;
    border: 1.5px solid #bdd3f0 !important;
}

.admin-layout .btn-secondary:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

/* Light mode week banner stays gradient – fine */

/* Light mode tabs (pending_users filter) */
.admin-layout .tab {
    background: #ffffff !important;
    border: 1.5px solid #d1dff5 !important;
    color: #334155 !important;
}

.admin-layout .tab:hover {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

.admin-layout .tab.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Light mode modal */
.admin-layout .modal-content {
    background: #ffffff !important;
    border: 1px solid #dce8f5 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
}

.admin-layout .modal-content h3 {
    color: #0d1b3e !important;
}

/* Light mode page-header text */
.admin-layout .page-header p {
    color: #475569 !important;
}

/* Light mode small texts (used inline in tables like color:#666) */
.admin-layout .data-table td small {
    color: #64748b !important;
}

/* Light mode heading inside card-body */
.admin-layout .card-body h3 {
    color: #0d1b3e !important;
}

/* ─────────────────────────────────────────────────────
   DARK MODE — body.admin-dark
   ───────────────────────────────────────────────────── */

/* CSS variables overridden for dark scope */
body.admin-dark {
    background: #0a0f1e;
    color: #e2e8f0;
}

/* Prevent flash-of-unstyled-content: apply dark bg instantly from pre-class on html element */
html.admin-dark-pre body {
    background: #0a0f1e !important;
}
html.admin-dark-pre .admin-content {
    background: #0d1526 !important;
}

/* ── Content area ── */
body.admin-dark .admin-content {
    background: #0d1526 !important;
}

/* ── Sidebar ── */
body.admin-dark .admin-sidebar {
    background: linear-gradient(180deg, #050d1f 0%, #0a1530 100%) !important;
    border-right: 1px solid #1e2d4a !important;
}

/* ── Top header bar ── */
body.admin-dark .admin-header h1 {
    color: #f1f5f9 !important;
}

body.admin-dark .admin-welcome {
    color: #7fa4c9 !important;
}

body.admin-dark .admin-menu-toggle {
    background: #1a2840 !important;
    border-color: #2d4063 !important;
}

body.admin-dark .admin-menu-toggle span {
    background: #7fa4c9 !important;
}

body.admin-dark .admin-menu-toggle:hover {
    background: #243350 !important;
}

/* ── Cards ── */
body.admin-dark .card {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

body.admin-dark .card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
    transform: none;
}

body.admin-dark .card-body {
    background: #162035 !important;
    color: #dde6f0 !important;
}

/* All generic text inside card-body */
body.admin-dark .card-body p {
    color: #a8c0d8 !important;
}

body.admin-dark .card-body h3 {
    color: #e8f0f8 !important;
}

body.admin-dark .card-body strong {
    color: #dde6f0 !important;
}

body.admin-dark .card-body small,
body.admin-dark .data-table td small {
    color: #7fa4c9 !important;
}

/* ── Stat Cards (dashboard) ── */
body.admin-dark .stat-card {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body.admin-dark .stat-icon-blue   { background: #0d2545 !important; }
body.admin-dark .stat-icon-purple { background: #1f103e !important; }
body.admin-dark .stat-icon-green  { background: #0a2d20 !important; }
body.admin-dark .stat-icon-teal   { background: #052838 !important; }
body.admin-dark .stat-icon-gold   { background: #302000 !important; }
body.admin-dark .stat-icon-orange { background: #301500 !important; }
body.admin-dark .stat-icon-yellow { background: #2a2600 !important; }

/* Dark mode stat numbers — specificity matches light-mode rule (body + class + .admin-layout + .stat-number) */
body.admin-dark .admin-layout .stat-number {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

body.admin-dark .admin-layout .stat-label {
    color: #7fa4c9 !important;
    -webkit-text-fill-color: #7fa4c9 !important;
}

body.admin-dark .stat-sub {
    color: #4e6f8a !important;
}

/* ── Winner Stat Cards (winners page) ── */
body.admin-dark .winner-stat-card {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.admin-dark .stat-blue  .winner-stat-icon { background: #0d2545 !important; }
body.admin-dark .stat-green .winner-stat-icon { background: #0a2d20 !important; }
body.admin-dark .stat-gold  .winner-stat-icon { background: #302000 !important; }
body.admin-dark .stat-orange .winner-stat-icon{ background: #301500 !important; }

body.admin-dark .winner-stat-number {
    color: #e8f0f8 !important;
}

body.admin-dark .winner-stat-label {
    color: #7fa4c9 !important;
}

/* ── Data Tables ── */
body.admin-dark .data-table {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
}

body.admin-dark .data-table td {
    color: #dde6f0 !important;
    background: #162035 !important;
    border-bottom: 1px solid #1e3050 !important;
}

body.admin-dark .data-table tr:nth-child(even) td {
    background: #132a42 !important;
}

body.admin-dark .data-table tr:hover td {
    background: #1c3255 !important;
}

body.admin-dark .data-table tr:last-child td {
    border-bottom: none !important;
}

/* Leaderboard selected row (overrides inline style="background:#ecfdf5") */
body.admin-dark .data-table tr[style*="background:#ecfdf5"] td,
body.admin-dark .data-table tr[style*="background: #ecfdf5"] td {
    background: #0a2d20 !important;
}

/* ── Rank Badges ── */
body.admin-dark .rank-badge {
    filter: brightness(0.9) saturate(1.2);
}

/* ── Winner Badge ── */
body.admin-dark .winner-badge {
    filter: brightness(0.85) saturate(1.2);
}

/* ── Correct / Answer Badge ── */
body.admin-dark .correct-badge {
    background: #0a2d20 !important;
    color: #6ee7b7 !important;
    border-color: #059669 !important;
}

/* ── Status Badges ── */
body.admin-dark .badge-system {
    background: #0d2545 !important;
    color: #7dd3fc !important;
    border-color: #1d4ed8 !important;
}

body.admin-dark .badge-admin {
    background: #1f103e !important;
    color: #c4b5fd !important;
    border-color: #7c3aed !important;
}

body.admin-dark .badge-notified {
    background: #0a2d20 !important;
    color: #6ee7b7 !important;
    border-color: #059669 !important;
}

/* pending/approved/rejected badges (pending_users page) */
body.admin-dark .badge-pending {
    background: #2d2000 !important;
    color: #fbbf24 !important;
}

body.admin-dark .badge-approved {
    background: #0a2d20 !important;
    color: #6ee7b7 !important;
}

body.admin-dark .badge-rejected {
    background: #3b0a0a !important;
    color: #fca5a5 !important;
}

/* ── Buttons in dark mode ── */
body.admin-dark .btn-secondary {
    background: #1e3050 !important;
    color: #7dd3fc !important;
    border: 1px solid #2d4a70 !important;
}

body.admin-dark .btn-secondary:hover {
    background: #243a60 !important;
    border-color: #3b82f6 !important;
    color: #bae6fd !important;
}

/* ── Form Controls ── */
body.admin-dark .form-control,
body.admin-dark input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
body.admin-dark select,
body.admin-dark textarea {
    background: #0d1526 !important;
    color: #dde6f0 !important;
    border: 1.5px solid #2d4a70 !important;
    box-shadow: none !important;
}

body.admin-dark .form-control:focus,
body.admin-dark input:focus,
body.admin-dark select:focus,
body.admin-dark textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background: #0f1e38 !important;
}

body.admin-dark .form-control::placeholder,
body.admin-dark input::placeholder,
body.admin-dark textarea::placeholder {
    color: #4e6f8a !important;
}

/* ── Labels ── */
body.admin-dark label,
body.admin-dark .form-group label,
body.admin-dark .form-label {
    color: #a8c0d8 !important;
    text-shadow: none !important;
}

/* ── Alert boxes ── */
body.admin-dark .alert {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
    color: #dde6f0 !important;
}

body.admin-dark .alert-info {
    background: #0d2545 !important;
    color: #7dd3fc !important;
    border-color: #1d4ed8 !important;
}

body.admin-dark .alert-success {
    background: #0a2d20 !important;
    color: #6ee7b7 !important;
    border-color: #059669 !important;
}

body.admin-dark .alert-warning {
    background: #2d1f00 !important;
    color: #fbbf24 !important;
    border-color: #d97706 !important;
}

body.admin-dark .alert-danger,
body.admin-dark .alert-error {
    background: #3b0a0a !important;
    color: #fca5a5 !important;
    border-color: #dc2626 !important;
}

/* ── Tabs (filter tabs in User Approvals) ── */
body.admin-dark .tabs .tab {
    background: #162035 !important;
    border: 1.5px solid #1e3050 !important;
    color: #a8c0d8 !important;
}

body.admin-dark .tabs .tab:hover {
    background: #1e3050 !important;
    border-color: #3b82f6 !important;
    color: #7dd3fc !important;
}

body.admin-dark .tabs .tab.active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

body.admin-dark .tabs .tab .badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: inherit !important;
}

/* ── Modal (reject modal in pending_users) ── */
body.admin-dark .modal-content {
    background: #162035 !important;
    border: 1px solid #1e3050 !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

body.admin-dark .modal-content h3 {
    color: #e8f0f8 !important;
}

/* ── Page header description text ── */
body.admin-dark .page-header p {
    color: #7fa4c9 !important;
}

/* ── Inline colored texts that use style="" attributes ── */
/* green text for "correct" status in answers page */
body.admin-dark .data-table td span[style*="color: green"],
body.admin-dark .data-table td span[style*="color:green"] {
    color: #4ade80 !important;
}

/* red text for "wrong" */
body.admin-dark .data-table td span[style*="color: red"],
body.admin-dark .data-table td span[style*="color:red"] {
    color: #f87171 !important;
}

/* gold/amber trophy text */
body.admin-dark .data-table td span[style*="color:#f59e0b"] {
    color: #fbbf24 !important;
}

/* muted "None" text */
body.admin-dark .data-table td span[style*="color:#94a3b8"] {
    color: #4e6f8a !important;
}

/* card-body subscription screenshot section border */
body.admin-dark [style*="border-top: 1px solid var(--glass-border)"] {
    border-top-color: #1e3050 !important;
}

body.admin-dark [style*="border: 2px solid var(--glass-border)"] {
    border-color: #2d4a70 !important;
}

/* ── Week banner stays gradient – works in both modes ── */

/* ── Leaderboard user row ── */
body.admin-dark .leaderboard-user {
    color: #dde6f0;
}

/* ── Pagination buttons ── */
body.admin-dark .btn.btn-secondary[href] {
    background: #162035 !important;
    color: #7dd3fc !important;
    border-color: #1e3050 !important;
}

body.admin-dark .btn.btn-primary[href] {
    /* leave primary gradient as-is, it works */
}

/* ── Add Video inline notes ── */
body.admin-dark small[style*="color: #666"],
body.admin-dark small[style*="color:#666"] {
    color: #4e6f8a !important;
}

/* ── Rejection reason text ── */
body.admin-dark p[style*="color: #ef4444"],
body.admin-dark p[style*="color:#ef4444"] {
    color: #f87171 !important;
}

/* ── Scrollbar styling in dark mode ── */
body.admin-dark .admin-content::-webkit-scrollbar,
body.admin-dark .admin-sidebar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body.admin-dark .admin-content::-webkit-scrollbar-track {
    background: #0d1526;
}

body.admin-dark .admin-content::-webkit-scrollbar-thumb {
    background: #2d4a70;
    border-radius: 3px;
}

body.admin-dark .admin-content::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* ─────────────────────────────────────────────────────
   UNIVERSAL SMOOTH TRANSITIONS (both modes)
   ───────────────────────────────────────────────────── */
.admin-layout *,
.admin-layout *::before,
.admin-layout *::after {
    transition-property: background-color, background, border-color, color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Exceptions: don't animate transforms/opacity on transitions (breaks hover effects) */
.admin-layout .btn,
.admin-layout .card,
.admin-layout .stat-card,
.admin-layout .winner-stat-card,
.admin-layout .winner-card-item {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s ease !important;
}
