/* =========================================
   1. GLOBAL VARIABLES & RESET (Neo-Glass Theme)
   ========================================= */
:root {
    /* Color Palette - Premium Dark */
    --bg-dark: #020617;
    /* Deepest Navy */
    --bg-card: rgba(30, 41, 59, 0.4);
    /* Glass Card */
    --bg-card-hover: rgba(30, 41, 59, 0.6);

    --primary: #6366f1;
    /* Vivid Indigo */
    --primary-glow: rgba(99, 102, 241, 0.5);

    --secondary: #ec4899;
    /* Hot Pink */
    --secondary-glow: rgba(236, 72, 153, 0.5);

    --accent: #06b6d4;
    /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.5);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    --glass: rgba(15, 23, 42, 0.65);
    --glass-heavy: rgba(15, 23, 42, 0.85);

    /* Spacing & Layout */
    --container-width: 1280px;
    --border-radius: 24px;
    --border-radius-sm: 12px;

    /* Animation */
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy feel */
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Deep Background Mesh Gradient */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* =========================================
   2. REUSABLE UTILITIES & ANIMATIONS
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow), 0 0 10px var(--secondary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.05);
}

/* Buttons Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Gradients */
.gradient-text {
    background: linear-gradient(to right, #818cf8, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* =========================================
   3. NAVIGATION BAR (Premium Glass)
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-heavy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    transition: var(--transition-smooth);
}

.brand-logo img {
    height: 56px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.brand-logo span {
    color: var(--primary);
}

/* Nav Links */
.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--accent);
    transform: translateX(-50%);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

/* Header Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons .btn {
    padding: 10px 24px;
    font-size: 0.88rem;
    border-radius: 40px;
}

.btn-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-muted);
    font-weight: 600;
}

.btn-text:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* Profile Dropdown */
/* Profile Dropdown */
.profile-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.trigger-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.profile-info h4 {
    margin: 0;
    font-size: 1rem;
    color: white;
}

.profile-info span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    transition: 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-item:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dropdown-item.logout:hover i {
    color: #ef4444;
}

/* =========================================
   4. HERO SECTION (Redesigned)
   ========================================= */
.hero-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-search-wrapper {
    position: relative;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-search {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-2px);
}

.search-results-floating {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 10px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.result-thumb {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #0f172a;
}

.result-info {
    flex: 1;
}

.result-info h5 {
    font-size: 0.95rem;
    color: white;
    margin-bottom: 2px;
}

.result-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-left: 10px;
}

.hero-search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    flex: 1;
    padding: 0 15px;
    font-size: 1.05rem;
    font-weight: 400;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#hero-search-btn {
    background: linear-gradient(135deg, var(--primary), #4338ca);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    margin-right: 2px;
}

#hero-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

#hero-search-btn:active {
    transform: scale(0.98);
}

/* --- LIVE PREVIEW CARD (REDESIGNED) --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.live-card {
    width: 380px;
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    overflow: hidden;
}

/* Glow behind card */
.live-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
    transform: rotate(30deg);
}

.preview-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.live-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.live-badge i {
    color: #ef4444;
    font-size: 0.5rem;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.card-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: white;
}

.card-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.users-watching {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(6, 182, 212, 0.1);
    color: #67e8f9;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* =========================================
   5. STATS & FEATURES
   ========================================= */
.stats-banner {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.5);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(180deg, white, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Feature Cards */
.split-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 80px;
}

.role-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.role-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================================
   6. WEBINAR CARDS (Trending)
   ========================================= */
.trending-section {
    padding: 100px 0;
}

.w-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.w-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.w-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.w-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.w-card:hover .w-thumb img {
    transform: scale(1.1);
}

.w-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.w-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* =========================================
   7. FOOTER & AUTH
   ========================================= */
.main-footer {
    background: var(--glass-heavy);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .brand-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {

    .nav-menu,
    .auth-buttons {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-search {
        margin: 0 auto;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .split-features {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* =========================================
   LOGIN & AUTH PAGE STYLES (Add to bottom)
   ========================================= */

/* Main Auth Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: radial-gradient(circle at 10% 20%, rgb(33, 43, 85) 0%, rgb(11, 15, 29) 90%);
}

.auth-box {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    min-height: 600px;
    position: relative;
}

/* Form Side (Left) */
.auth-form-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s ease;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.auth-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Visual Side (Right) */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Decorative Circles */
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.c1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.c2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    left: 50px;
}

/* Input Fields */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.field-with-button {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: stretch;
}

.btn-side-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 0 18px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-side-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-side-toggle:active {
    transform: translateY(0);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #4f46e5;
    background: rgba(0, 0, 0, 0.4);
}

/* Buttons */
.auth-btn {
    width: 100%;
    margin-top: 10px;
    transition: var(--transition);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.home-btn {
    position: fixed;
    top: 32px;
    left: 32px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.home-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 28px var(--primary-glow);
    transform: translateY(-2px);
}

.home-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.home-btn:hover i {
    transform: scale(1.1);
}

/* Utility Class */
.hidden {
    display: none !important;
}

/* --- TOAST NOTIFICATIONS --- */
#toast-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #00E59E;
    /* Success Green */

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

/* =========================================
   8. EXPLORE PAGE STYLES (Updated)
   ========================================= */

.filter-section {
    text-align: center;
    padding: 60px 0 40px;
    position: relative;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-bar input {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 25px 18px 55px;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.2);
}

.search-bar i {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    pointer-events: none;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .filter-tags {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- FORGOT PASSWORD MODAL --- */
/* --- PREMIUM MODAL SYSTEM --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.close-modal {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Redesigned Form Elements within Modal */
.modal-box .input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    transition: 0.3s;
}

.modal-box .input-group:focus-within label {
    color: var(--primary);
}

.modal-box input,
.modal-box select,
.modal-box textarea {
    background: rgba(15, 23, 42, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    color: white !important;
    font-size: 0.95rem !important;
}

.modal-box input:focus,
.modal-box select:focus,
.modal-box textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.close-modal:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        flex-direction: column;
        min-height: auto;
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding: 30px;
    }
}

/* --- CERTIFICATE & CLASSROOM STYLES --- */
.dash-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.classroom-container {
    transition: all 0.4s ease;
}

#video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



/* =========================================
   9. WEBINAR GRID & CARD STYLES
   ========================================= */

.webinars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.w-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.w-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: rgba(30, 41, 59, 0.8);
}

.w-thumb {
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.w-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.w-card:hover .w-thumb img {
    transform: scale(1.1);
}

/* Video Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.play-overlay i {
    color: white;
    font-size: 1.2rem;
    margin-left: 3px;
    /* visual center */
}

.w-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary);
    border-color: var(--primary);
}

.w-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.w-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.w-meta i {
    margin-right: 5px;
    color: var(--secondary);
}

.w-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6rem;
    /* Ensure consistency */
}

.w-host {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.host-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.w-host span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.w-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.w-price {
    font-weight: 700;
    font-size: 1.1rem;
}

.w-price.free {
    color: #10b981;
    /* Emerald-500 */
}

.w-price.paid {
    color: #06b6d4;
    /* Cyan-500 */
}

/* Button variants */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-watch {
    background: #ef4444;
    /* Red for watch */
    border-color: #ef4444;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-watch:hover {
    background: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .webinars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px 60px;
    }

    .w-card {
        margin-bottom: 10px;
    }

    .w-thumb {
        height: 200px;
    }
}

.archive-hero h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    font-family: 'Space Grotesk', sans-serif;
}

.archive-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Webinar Card for Recordings */
.webinar-card .thumb {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.tag-recorded {
    background: rgba(99, 102, 241, 0.8);
}

.webinar-card .details {
    padding: 20px 5px;
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: 15px;
}

.btn-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateY(-2px);
}

.webinar-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.webinar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
}

/* =========================================
   10. GLOBAL PAGE UTILITIES
   ========================================= */

.main-content {
    padding-top: 60px;
    padding-bottom: 100px;
    min-height: 80vh;
}

/* =========================================
   11. ABOUT PAGE STYLES
   ========================================= */

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.mission-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-left: 4px solid var(--secondary);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.mission-card:hover {
    background: rgba(30, 41, 59, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.mission-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.team-card {
    text-align: center;
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.team-avatar {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, var(--primary), #1e1b4b);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.team-info h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 5px;
}

.team-info span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.choose-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.choose-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.choose-icon {
    width: 50px;
    height: 50px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .main-content {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .mission-grid,
    .team-grid,
    .choose-grid {
        gap: 30px;
        grid-template-columns: 1fr;
    }
}

/* =========================================
   12. SUPPORT & REQUESTS STYLES
   ========================================= */

.support-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
}

/* FAQ Section */
.faq-item {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: var(--text-muted);
    transition: 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.6;
    background: transparent;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Contact Cards */
.c-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.c-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    background: rgba(30, 41, 59, 0.6);
}

.c-card i {
    font-size: 1.8rem;
    color: var(--secondary);
    background: rgba(236, 72, 153, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

/* Form Box */
.form-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Host Promo */
.host-promo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.host-promo::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.4;
}


/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */

@media (max-width: 900px) {

    /* Retain previous grid fixes */
    .support-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Hero Section Adjustments */
    .hero-content {
        grid-template-columns: 1fr;
        /* Stack vertically */
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }

    /* Center search bar and section titles */
    .section-title {
        text-align: center !important;
    }

    .hero-search-wrapper {
        margin: 0 auto 40px auto;
        width: 100%;
        max-width: 500px;
        display: flex;
        justify-content: center;
        overflow: hidden;
        /* Prevent spill */
    }

    .hero-search {
        flex-wrap: wrap;
        height: auto;
        min-height: 56px;
        gap: 10px;
        padding: 10px;
    }

    .hero-search input {
        min-width: 200px;
    }

    .hero-text p {
        text-align: center;
        margin: 0 auto 40px;
    }

    /* Live Card Centering */
    .hero-visual {
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

    .live-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .split-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        /* Smaller for mobile */
    }

    .brand-logo {
        font-size: 1.5rem;
    }

    /* Footer Fixes */
    .footer-top {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        margin: 0 auto 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand .brand-logo {
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
        max-width: 450px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        text-align: center;
    }

    .footer-col h4 {
        margin-bottom: 20px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
}

/* =========================================
   BACK BUTTON (Floating, Neo-Glass)
   ========================================= */
.back-btn {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.5s ease-out both;
    text-decoration: none;
}

.back-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.back-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 28px var(--primary-glow);
    transform: translateX(-4px);
}

.back-btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .back-btn {
        bottom: 20px;
        left: 16px;
        padding: 10px 18px;
        font-size: 0.82rem;
    }
}

/* =============================================
   MOBILE NAV DRAWER
   ============================================= */

/* Prevent body scroll when drawer open */
body.nav-open {
    overflow: hidden;
}

.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    visibility: hidden;
}

.mobile-nav-drawer.open {
    pointer-events: all;
    visibility: visible;
}

/* Dark overlay */
.mobile-nav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-nav-drawer.open .mobile-nav-overlay {
    opacity: 1;
}

/* Slide-in panel */
.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    background: rgba(10, 16, 35, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 0 0 30px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer.open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    background: rgba(10, 16, 35, 0.97);
    z-index: 1;
}

.mobile-nav-header .brand-logo {
    font-size: 1.3rem;
}

.mobile-nav-header .brand-logo img {
    height: 36px;
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}

.mobile-nav-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 4px;
    flex: 1;
}

.mobile-nav-links .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: 0.2s;
    min-height: 48px;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-color: transparent;
}

.mobile-nav-links .nav-link::after {
    display: none;
}

.mobile-nav-auth {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-auth .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================= */

/* --- Fluid Typography --- */
h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
}

/* --- Global Touch Targets --- */
@media (max-width: 900px) {

    a,
    button,
    .btn,
    .filter-btn,
    .tab-btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
    }

    .btn {
        padding: 13px 24px;
    }
}

/* --- 900px breakpoint (tablets + larger phones) --- */
@media (max-width: 900px) {

    /* --- Fantastic Sticky Header --- */
    .navbar {
        height: 64px;
        background: rgba(8, 12, 28, 0.85);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
    }

    .nav-container {
        height: 64px;
        padding: 0 16px;
    }

    .brand-logo {
        font-size: 1.4rem;
        gap: 8px;
    }

    .brand-logo img {
        height: 36px;
    }

    /* --- Fantastic Animated Burger Toggle --- */
    .mobile-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        /* Premium touch target */
        height: 44px;
        background: rgba(99, 102, 241, 0.12) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 14px;
        cursor: pointer;
        padding: 0;
        z-index: 2101;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        gap: 5px;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
    }

    .mobile-toggle:active {
        transform: scale(0.92);
        background: rgba(99, 102, 241, 0.2) !important;
    }

    .burger-bar {
        width: 20px;
        height: 2px;
        background-color: white;
        border-radius: 4px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    /* Morph to X */
    .mobile-toggle.active .burger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--secondary);
    }

    .mobile-toggle.active .burger-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-toggle.active .burger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--secondary);
    }

    /* Close Toggle inside drawer */
    .premium-close-toggle {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .premium-close-toggle .burger-bar {
        position: absolute;
        width: 20px;
    }

    .premium-close-toggle .active-1 {
        transform: rotate(45deg);
        background-color: var(--secondary);
    }

    .premium-close-toggle .active-2 {
        transform: rotate(-45deg);
        background-color: var(--secondary);
    }

    /* Hide standard icon if JS fails to clear it */
    .mobile-toggle i,
    .mobile-toggle i.fa-bars {
        display: none !important;
        opacity: 0 !important;
    }

    /* --- Fantastic Premium Drawer --- */
    .mobile-nav-drawer {
        position: fixed;
        inset: 0;
        z-index: 2100;
        visibility: hidden;
        pointer-events: none;
    }

    .mobile-nav-drawer.open {
        visibility: visible;
        pointer-events: all;
    }

    .mobile-nav-overlay {
        position: absolute;
        inset: 0;
        background: rgba(4, 7, 18, 0.8);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .mobile-nav-drawer.open .mobile-nav-overlay {
        opacity: 1;
    }

    .mobile-nav-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(340px, 90vw);
        background: linear-gradient(135deg, rgba(13, 18, 40, 0.95), rgba(8, 10, 24, 0.98));
        backdrop-filter: blur(40px) saturate(160%);
        -webkit-backdrop-filter: blur(40px) saturate(160%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        box-shadow: -20px 0 80px rgba(0, 0, 0, 0.7);
    }

    .mobile-nav-drawer.open .mobile-nav-panel {
        transform: translateX(0);
    }

    /* Header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 24px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .mobile-nav-header .brand-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: white;
    }

    .mobile-nav-header .brand-logo img {
        height: 32px;
        border-radius: 8px;
    }

    .mobile-nav-header .logo-text {
        font-size: 1.25rem;
        font-weight: 700;
        letter-spacing: -0.5px;
    }

    .mobile-nav-header .logo-text span {
        color: var(--primary);
    }

    /* Content Scrolling Area */
    .mobile-nav-content {
        flex: 1;
        overflow-y: auto;
        padding: 20px 0 40px;
        scrollbar-width: none;
    }

    .mobile-nav-content::-webkit-scrollbar {
        display: none;
    }

    /* Section Labels */
    .section-label {
        padding: 0 24px 10px;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--secondary);
        opacity: 0.8;
    }

    /* Search Bar */
    .drawer-search {
        padding: 0 24px 30px;
    }

    .drawer-search-box {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 12px 18px;
        transition: all 0.3s ease;
    }

    .drawer-search-box:focus-within {
        background: rgba(255, 255, 255, 0.08);
        border-color: var(--primary);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    .drawer-search-box i {
        color: var(--text-muted);
        margin-right: 14px;
        font-size: 0.9rem;
    }

    .drawer-search-box input {
        background: transparent;
        border: none;
        outline: none;
        color: white;
        width: 100%;
        font-size: 0.95rem;
    }

    /* Nav Links */
    .mobile-nav-links {
        margin-bottom: 40px;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px 24px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        border: none;
        background: transparent;
        width: 100%;
        text-align: left;

        /* Animation Entrance */
        opacity: 0;
        transform: translateY(20px);
    }

    .mobile-nav-drawer.open .mobile-link {
        opacity: 1;
        transform: translateY(0);
        transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) calc(var(--i) * 0.08s + 0.2s);
    }

    .mobile-link i {
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
        color: var(--primary);
        opacity: 0.9;
        transition: 0.3s;
    }

    .mobile-link:hover,
    .mobile-link:active {
        color: white;
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-link:hover i {
        transform: scale(1.1);
        color: var(--secondary);
    }

    /* Fixed Account/Auth Section - NO OVERLAP */
    .mobile-nav-account {
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-top: 10px;
    }

    .auth-mirror {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Styling for specific extracted links */
    .auth-mirror .mobile-link[innerHTML*="Logout"],
    .auth-mirror .mobile-link.logout {
        color: #ef4444;
    }

    .auth-mirror .mobile-link[innerHTML*="Logout"] i,
    .auth-mirror .mobile-link.logout i {
        color: #ef4444;
    }

    .auth-mirror .mobile-link[innerHTML*="Logout"]:hover,
    .auth-mirror .mobile-link.logout:hover {
        background: rgba(239, 68, 68, 0.08);
    }

    /* Footer */
    .mobile-nav-footer {
        padding: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    .mobile-nav-footer p {
        font-size: 0.8rem;
        color: var(--text-muted);
        opacity: 0.6;
    }
}

/* --- Page Spacing & Rhythm --- */
section {
    padding: 60px 0 !important;
}

.section-title {
    margin-bottom: 40px !important;
}

/* Hero section font sizing */
.hero-text h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn {
    width: 100%;
    height: 56px;
    font-size: 1.1rem;
    border-radius: 16px;
}

/* Mobile Stats - Card Style */
.stats-banner {
    background: transparent;
    border: none;
    padding: 40px 0;
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    padding: 20px 10px;
    border-radius: 16px;
}

.stat h2 {
    font-size: 1.8rem;
}

.stat p {
    font-size: 0.8rem;
}

.stat {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* Better card layouts */
.w-card {
    margin-bottom: 24px;
    border-radius: 24px;
}

.w-content {
    padding: 30px 24px;
}

.w-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Footer Polishing */
.footer-top {
    gap: 50px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    font-size: 1.05rem;
}

/* --- 768px breakpoint (phones) --- */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Main content spacing */
    .main-content {
        padding-top: 32px;
        padding-bottom: 80px;
    }

    /* Navbar height */
    .nav-container {
        height: 64px;
    }

    /* Brand logo size */
    .brand-logo {
        font-size: 1.4rem;
        gap: 8px;
    }

    .brand-logo img {
        height: 40px;
    }

    /* Hero */
    .hero-section {
        padding: 40px 0 20px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        letter-spacing: -0.5px;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    /* --- PREMIUM MOBILE OVERHAUL ---
       Enforces symmetrical centering, vertical stats, 
       and improved spacing for a Neo-Glass aesthetic. */

    .hero-text,
    .section-title {
        text-align: center !important;
    }

    /* Stats banner - 3rd row stack */
    .stats-banner {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .stat {
        background: var(--bg-card);
        padding: 30px;
        border-radius: 20px;
        border: 1px solid var(--border);
        text-align: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .stat h2 {
        font-size: 2.8rem;
        font-weight: 800;
        margin-bottom: 5px;
        background: linear-gradient(180deg, white, #94a3b8);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .stat p {
        font-size: 1rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
        opacity: 0.8;
    }

    /* Role features section */
    .role-features {
        padding: 40px 0;
    }

    .split-features {
        margin-top: 40px;
        gap: 20px;
    }

    /* Webinar cards */
    .webinars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 40px;
    }

    /* Filter tags scroll horizontally */
    .filter-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .filter-tags::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 9px 18px;
        font-size: 0.88rem;
    }

    /* Search bar */
    .search-bar input {
        font-size: 0.95rem;
        padding: 14px 20px 14px 48px;
    }

    /* Hero search - Centered & Full Width */
    .hero-search-wrapper {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    #hero-search-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* Auth / Login */
    .auth-box {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
    }

    .auth-visual-side {
        display: none;
    }

    .auth-form-side {
        padding: 28px 20px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    /* Form rows */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-box {
        padding: 24px 18px;
    }

    /* Support layout */
    .support-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Profile page */
    .profile-card {
        padding: 24px 16px;
    }

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

    /* Archive hero */
    .archive-hero h1 {
        font-size: 2rem;
    }

    .archive-hero p {
        font-size: 0.95rem;
    }

    /* About page */
    .mission-grid,
    .choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    /* Legal / Policy pages */
    .policy-content,
    .legal-content {
        padding: 0 4px;
    }

    .policy-content h2,
    .legal-content h2 {
        font-size: 1.3rem;
    }

    /* Certificate */
    .cert-preview {
        transform: scale(0.75);
        transform-origin: top center;
    }

    .dash-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
    }

    .dash-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex-shrink: 0;
    }

    /* Compete page */
    .contest-info-grid,
    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Host studio */
    .stream-section {
        padding: 20px 0;
    }

    /* Watch/classroom */
    .classroom-layout {
        flex-direction: column;
    }

    #video-wrapper {
        width: 100%;
    }

    /* Modal */
    .modal-box {
        border-radius: 16px;
        margin: 0 8px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    /* Footer */
    .main-footer {
        padding: 50px 0 30px;
        margin-top: 60px;
    }

    /* Back button — keep above mobile nav */
    .back-btn {
        bottom: 16px;
        left: 12px;
        padding: 9px 15px;
        font-size: 0.8rem;
        z-index: 1998;
    }
}

/* --- 480px breakpoint (small phones) --- */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem !important;
        word-wrap: break-word;
    }

    .container {
        padding: 0 16px;
    }

    .mobile-nav-panel {
        width: 100%;
    }
}

/* --- Utility: Remove hover effects on touch devices --- */
@media (hover: none) {

    .w-card:hover,
    .role-card:hover,
    .mission-card:hover,
    .btn-primary:hover {
        transform: none;
    }
}