/* Global Design System - Premium Industrial Neon */
/* Global Design System - Modern Metallurgical Theme */
:root {
    /* Base Colors - Deep Ore & refined Steel */
    --bg-dark: #020408;
    /* Darker, cooler black */
    --bg-panel: rgba(15, 23, 42, 0.6);
    /* Slate tinted glass */
    --bg-card: #0f172a;
    /* Slate-900 */
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Accents - Elements */
    /* Accents - Heat Wave Palette */
    --accent-magma: #ff4500;
    /* OrangeRed */
    --accent-gold: #fbbf24;
    /* Amber */
    --accent-plasma: #f97316;
    /* Orange */
    --accent-steel: #78350f;
    /* Rust/Bronze */
    --accent-radium: #f59e0b;
    /* Golden Yellow */
    --accent-neon: #ef4444;
    /* Hot Red */

    /* Glows */
    /* Glows - Intense Heat */
    --glow-magma: rgba(255, 69, 0, 0.5);
    --glow-plasma: rgba(255, 140, 0, 0.5);
    --glow-radium: rgba(234, 179, 8, 0.4);

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    /* Gradients */
    /* Gradients - HEAT WAVE DOMINANCE */
    --grad-magma: linear-gradient(135deg, #ff4500 0%, #ff8c00 60%, #ffd700 100%);
    /* Red-Orange-Gold */
    --grad-plasma: linear-gradient(135deg, #ff4500 0%, #ff6b00 100%);
    /* Intense Orange */
    --grad-radium: linear-gradient(135deg, #ff8c00 0%, #fbbf24 100%);
    /* Orange-Yellow */
    --grad-neon: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    /* Red-Orange */
    --grad-steel: linear-gradient(135deg, #1c1917 0%, #431407 100%);
    /* Warm Charcoal */

    /* New Heat Accent */
    --accent-heat: #ff4500;
    /* OrangeRed */

    /* Legacy mappings for safety */
    --grad-primary: var(--grad-magma);
    --accent-orange: var(--accent-magma);
    --accent-blue: var(--accent-steel);
    --accent-green: var(--accent-radium);
    --success-green: var(--accent-radium);
    --accent-glow: var(--glow-magma);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    /* Deep warm black */
    /* Heat Wave Animated Background */
    background-image:
        radial-gradient(circle at 50% 120%, rgba(255, 69, 0, 0.15), transparent 70%),
        radial-gradient(circle at 0% 50%, rgba(255, 140, 0, 0.08), transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(255, 69, 0, 0.08), transparent 50%),
        linear-gradient(to top, rgba(5, 2, 1, 0.95), transparent);
    background-size: 100% 100%;
    background-attachment: fixed;
    animation: heatPulse 10s ease-in-out infinite alternate;

    color: var(--text-main);
    line-height: 1.6;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

@keyframes heatPulse {
    0% {
        background-color: #050201;
        /* Deep Black-Red */
    }

    50% {
        background-color: #1a0502;
        /* Dark Brown-Red */
    }

    100% {
        background-color: #050201;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .container {
        width: 92%;
        padding: 0 25px;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
}

/* Glassmorphism Cards */
/* Glassmorphism Cards - Premium Finish */
.glass-panel,
.auth-box,
.dash-card,
.admin-panel,
.ai-gen-card,
.feature-card {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Buttons */
/* Buttons - refined */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 12px;
    /* Sleeker radius */
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-magma);
    color: white;
    box-shadow: 0 4px 20px var(--glow-magma);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-magma);
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--accent-magma);
    color: var(--accent-magma);
}

.btn-outline:hover {
    background: var(--accent-magma);
    color: white;
    box-shadow: 0 0 15px var(--glow-magma);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.75rem;
    gap: 8px;
}

body:not(.ai-page) {
    padding-top: 74px;
    /* Compensate for fixed header */
}

/* Logo */
/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    /* Enforce Outfit font */
    letter-spacing: -0.5px;
    /* Tighten up 'MetaVirta' */
}

/* .logo span removed as text is now unified */

.logo img {
    height: 32px;
    width: auto;
}

.navbar {
    background: rgba(5, 5, 5, 0.85);
    /* Semi-transparent for glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    height: 74px;
    /* Strict fixed height */
    padding: 0;
    /* Clear padding, use flex centering */
    display: flex;
    /* Ensure flex context for direct children if needed, though container handles it */
    align-items: center;
    position: fixed;
    /* Fixed to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: var(--font-body);
    /* Force consistent font */
}

/* Navbar Container */
.nav-container {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Changed to auto 1fr auto for better flow */
    gap: 20px;
    align-items: center;
    /* Width & Padding inherited from .container */
    z-index: 1002;
}

/* Right Side Actions Group */
.nav-actions {
    justify-self: end;
    /* Push to far right */
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap for clarity */
    padding-right: 0;
}

/* ... Notification CSS unchanged ... */

/* Centered Navigation Links (Grid-safe Glass Pill) */
.nav-links {
    position: static;
    /* Remove absolute positioning */
    transform: none;
    justify-self: center;
    /* Center in the middle grid track */

    display: flex;
    gap: 15px;
    /* Reduced gap as requested */
    padding: 0;
    /* Remove pill padding */
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
}

.nav-links a {
    color: #a3a3a3;
    font-size: 0.85rem;
    /* Slightly smaller font for better fit */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    /* Pill-style padding */
    border-radius: 30px;
    /* Inner Pill */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
    /* Prevent layout shift on active */
}

/* Orange Icons */
.nav-links a i {
    color: var(--accent-gold);
    font-size: 1rem;
    transition: 0.2s;
}

/* Hover & Active States */
.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    /* Light hover */
}

.nav-links a.active {
    color: white;
    background: rgba(255, 107, 0, 0.1);
    /* Subtle orange background */
    border: 1px solid rgba(255, 107, 0, 0.2);
}

.nav-links a.active i {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.6);
}

/* Remove old Active Bottom Line Indicator */
.nav-links a.active::after {
    display: none;
}

/* Mobile Responsiveness for Nav */
.mobile-menu-btn {
    display: none;
    /* Hidden by default on desktop */
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* Hide standard links on mobile */
    }

    .navbar .logo {
        display: none !important;
        /* Hide main navbar logo, it now lives inside the side panel */
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 0 15px;
    }

    .nav-actions {
        justify-self: end;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
    }

    .mobile-menu-btn {
        justify-self: start;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: white;
        font-size: 1.4rem;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        cursor: pointer;
        margin: 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--accent-orange);
    }
}

/* Enhanced Notification Bell */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.notification-bell {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.notification-wrapper:hover .notification-bell {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

/* Badge Fix */
.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    font-weight: bold;
    height: 16px;
    width: 16px;
    /* Circle */
    display: flex;
    /* Flex center text */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #050505;
    /* Cutout effect */
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notif-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.logo img {
    height: 40px;
    /* Force strict logo height */
    width: auto;
    object-fit: contain;
    margin-right: 10px;
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
    /* Reserve space for Login/Join to prevent shift */
    justify-content: flex-end;
    /* Keep profile on the right */
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

/* Logo Text Span (White) */
.logo span {
    font-weight: 300;
    color: white;
    -webkit-text-fill-color: white;
    /* Override parent gradient */
}

/* Logo Sizing */
.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.05);
}

/* Centered Navigation Links (Premium) */
/* Legacy nav-links styles removed to fix duplication */


/* Dashboard Grid - Modern Flex/Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.dash-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s;
}

.dash-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
}

.dash-card i {
    font-size: 3rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.dash-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

/* Page Headers */
.page-header {
    background: transparent;
    /* Seamless flow */
    padding: 120px 0 40px;
    /* Adjusted for continuous feel */
    text-align: center;
    border-bottom: none;
    /* Remove division */
}

.home-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(15, 5, 20, 0.85)), url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vh;
    height: 60vh;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, #ff4500, #ffb700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 69, 0, 0.2);
    }

    to {
        text-shadow: 0 0 40px rgba(255, 69, 0, 0.6), 0 0 10px rgba(255, 183, 0, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: #cbd5e1;
    margin-bottom: 50px;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.5);
}

/* Section Titles (Quizzes, Dashboard) */
.section-title {
    text-align: center;
    margin: 60px 0 40px;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--accent-orange);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, #1a100a 0%, #000000 100%);
    padding: 20px;
}

.auth-box {
    padding: 50px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: 0.3sbox-shadow;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}

/* Responsive Polish */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
        height: 65px;
    }

    .nav-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 15px;
        /* Slightly increased gap for thumb friendliness */
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 0px;
    }

    .logo img {
        height: 30px;
        margin-right: 5px;
    }

    .nav-links {
        display: none;
    }

    .auth-buttons {
        min-width: 0;
        /* Clear 180px base */
        width: auto;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }

    .profile-btn {
        width: 35px;
        /* Slightly scale down avatar for mobile header */
        height: 35px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero-container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 70vh;
        /* Gives space to push button down */
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
        line-height: 1.2;
        margin-top: 10vh;
        /* Push down slightly from top */
    }

    .hero-subtitle {
        font-size: 1.15rem;
        /* Min 16px+ for readability */
        padding: 0 10px;
        line-height: 1.6;
        margin-bottom: auto;
        /* Push button to bottom */
    }

    .hero-btn {
        width: 90%;
        max-width: 350px;
        margin: 40px auto 20px auto;
        /* Thumb reach area */
        padding: 18px 20px;
        /* Minimum 44px height hit target */
        font-size: 1.2rem;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations (Helper classes for JS or CSS anims) */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-btn {
    width: 45px;
    height: 45px;
    padding: 0 !important;
    border-radius: 50%;
    background: none !important;
    /* No background */
    border: none !important;
    /* No container border */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    /* Ring shadow instead of border */
}

.profile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
}

.profile-initials {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.1rem;
}

.profile-btn:hover {
    box-shadow: 0 0 0 2px var(--accent-gold), 0 0 15px rgba(255, 183, 0, 0.4);
    transform: scale(1.1);
}

/* Old icon removed */

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.dropdown-menu.show {
    display: block;
}

.user-info {
    border-bottom: 1px solid var(--glass-border);
    padding: 10px;
    margin-bottom: 10px;
}

.dropdown-item {
    padding: 12px;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* --- New Dashboard Command Center --- */
.command-center-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

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

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

.toggle-btn.active {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.cmd-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cmd-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cmd-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cmd-card h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cmd-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.cmd-card .btn-link {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cmd-card .btn-link i {
    font-size: 0.8rem;
    color: var(--accent-gold);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    margin-left: 5px;
    margin-bottom: 0;
}

/* Event & Resume Specific Accents */
.cmd-card[data-category="career"] {
    border-top: 3px solid var(--accent-gold);
}

.cmd-card[data-category="learn"] {
    border-top: 3px solid #ff4b1f;
}

.cmd-card[data-category="community"] {
    border-top: 3px solid #2563eb;
}

/* --- Visual Unification (Top Widgets) --- */
.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensure uniform height if in grid */
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.15);
    /* Heat Glow */
    border-color: var(--accent-orange);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    padding-bottom: 15px;
}

.stat-header h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.stat-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 183, 0, 0.2);
}

.stat-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* --- New Dashboard Sections --- */

/* Founder Styling */
.founder-section {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.founder-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 183, 0, 0.3);
}

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

/* Footer Styling */
/* FOOTER STYLES */
.site-footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    margin-top: 80px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    /* Auto-fit for fluid responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Force stack on very small screens if auto-fit gets too cramped */
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
        /* Center form on mobile */
    }

    .social-icons-row {
        justify-content: center;
        /* Center icons on mobile */
    }
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-contact-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-contact-info span {
    display: block;
    color: white;
    font-weight: 600;
    margin-top: 5px;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    transition: 0.3s;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    /* Ensure input and button are side-by-side */
    margin-top: 20px;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #d32f2f;
    /* Red accent from image */
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: 0.3s;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: #b71c1c;
}

.social-icons-row {
    display: flex;
    gap: 10px;
}

.social-icons-row a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    /* Square with slight radius like image */
    color: white;
    transition: 0.3s;
    font-size: 0.9rem;
}

.social-icons-row a:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    padding-top: 30px;
}

.copyright a {
    color: var(--accent-gold);
    text-decoration: none;
}

/* --- STATS ROW --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- Agricola AI Interface --- */

.ai-interface-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.ai-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.ai-chat-area {
    flex: 1;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50px;
    font-family: inherit;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* Messaging Styles */
.message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-self: flex-end;
    align-items: flex-end;
}

.ai-message {
    align-self: flex-start;
    align-items: flex-start;
}

.message-header {
    margin-bottom: 5px;
    font-size: 0.8rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-message .message-header {
    flex-direction: row-reverse;
}

.sender-name {
    font-weight: 600;
}

.ai-message .sender-name {
    color: var(--accent-orange);
}

.user-message .sender-name {
    color: var(--accent-gold);
}

.timestamp {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.message-body {
    padding: 12px 18px;
    border-radius: 12px;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
}

.ai-message .message-body {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-top-left-radius: 2px;
}

.user-message .message-body {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-top-right-radius: 2px;
}

/* Markdown Content Styling */
.markdown-body p {
    margin-bottom: 10px;
}

.markdown-body p:last-child {
    margin-bottom: 0;
}

.markdown-body code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.markdown-body pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: #e0e0e0;
}

.markdown-body ul,
.markdown-body ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .ai-interface-container {
        flex-direction: column;
    }

    .ai-sidebar {
        width: 100%;
        height: auto;
    }

    .glass-panel {
        height: auto !important;
    }

    .chat-messages {
        height: 500px;
    }
}

/* =========================================
   MOBILE MENU & HAMBURGER (Restored)
   ========================================= */

/* Overlay Menu Background (Darken screen) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    /* Below the menu */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay Menu Side Panel (Left slide-in) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    /* Slightly narrower, closer to Firebase */
    max-width: 85vw;
    height: 100%;
    background: var(--bg-dark);
    /* Solid dark background instead of heavy glass */
    border-right: 1px solid var(--glass-border);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateX(-100%);
    /* Start completely off-screen left */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
    /* Slide in to 0 */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-header button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-menu-header button:hover {
    color: white;
}

.mobile-links {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
}

.mobile-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

#mobile-auth-actions {
    margin-top: auto;
    /* Push to bottom if space permits */
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-auth-actions a {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    justify-content: center;
}

#mobile-auth-actions a:hover {
    background: var(--accent-orange);
    color: black;
}

.mobile-links a:hover {
    color: var(--accent-orange);
    padding-left: 10px;
}

.mobile-links i {
    width: 25px;
    text-align: center;
    color: var(--accent-blue);
}


/* Generators Grid (Side-by-Side) */
.generators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
    /* Equal Height */
}

@media (max-width: 1200px) {
    .generators-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols */
    }

    .generators-grid>div:last-child {
        grid-column: span 2;
        /* Span GATE mock on tablet */
    }
}

@media (max-width: 768px) {
    .generators-grid {
        grid-template-columns: 1fr;
        /* 1 col */
    }

    .generators-grid>div:last-child {
        grid-column: span 1;
    }
}

/* --- AI GEN CARD (Unified Premium Style) --- */
.ai-gen-card {
    position: relative;
    padding: 25px;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ai-gen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Theme: Blue (AI) */
.ai-gen-card.theme-blue {
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-color: rgba(66, 133, 244, 0.3);
}

.ai-gen-card.theme-blue:hover {
    border-color: #8ab4f8;
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.3);
    /* Stronger Blue Glow */
}

.ai-gen-card.theme-blue .card-icon-bg {
    background: #4285f4;
}

.ai-gen-card.theme-blue h2 {
    color: #8ab4f8;
}

/* Theme: Green (Upload) */
.ai-gen-card.theme-green {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-color: rgba(76, 175, 80, 0.3);
}

.ai-gen-card.theme-green:hover {
    border-color: #4caf50;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.3);
    /* Stronger Green Glow */
}

.ai-gen-card.theme-green .card-icon-bg {
    background: #4caf50;
}

.ai-gen-card.theme-green h2 {
    color: #81c784;
}

/* Theme: Orange (GATE) */
.ai-gen-card.theme-orange {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    border-color: rgba(255, 152, 0, 0.3);
}

.ai-gen-card.theme-orange:hover {
    border-color: #ff9800;
    box-shadow: 0 15px 40px rgba(255, 152, 0, 0.3);
    /* Stronger Orange/Heat Glow */
}

.ai-gen-card.theme-orange .card-icon-bg {
    background: #ff9800;
}

.ai-gen-card.theme-orange h2 {
    color: #ffb74d;
}

/* Internal Elements */
.card-icon-bg {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(10px);
}

.ai-badge {
    background: linear-gradient(45deg, #4285f4, #9b72cb);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.gate-badge {
    background: linear-gradient(45deg, #ff9800, #ff5722);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.ai-input-group {
    display: flex;
    gap: 15px;
}

.ai-input-group input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease;
}

.ai-input-group input:focus {
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 15px rgba(138, 180, 248, 0.2);
    background: rgba(0, 0, 0, 0.6) !important;
}

/* Responsive Fix */
@media (max-width: 768px) {
    .ai-gen-panel>div {
        flex-direction: column;
        align-items: stretch !important;
    }

    .ai-input-group {
        flex-direction: column;
        width: 100%;
    }

    .ai-input-group button {
        width: 100% !important;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        height: auto;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .auth-buttons,
    #nav-auth {
        width: 100%;
        justify-content: center;
        display: flex;
        gap: 10px;
    }
}

/* USER PROFILE DROPDOWN */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px;
    z-index: 2000;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-info {
    padding-bottom: 5px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

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

.logout-item {
    color: #ff4d4d;
}

.logout-item:hover {
    background: rgba(255, 77, 77, 0.1);
    color: #ff6b6b;
}

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

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

/* Notification System Styles */
.notification-wrapper {
    position: relative;
    cursor: pointer;
    margin-right: 15px;
}

.notification-bell {
    position: relative;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    padding: 10px;
}

.notification-bell:hover {
    color: white;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    background: #f44336;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    border: 2px solid #000;
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 120%;
    right: -10px;
    width: 320px;
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    /* Critical: Hidden by default */
    overflow: hidden;
    animation: fadeInDown 0.2s ease-out;
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid #222;
    font-weight: bold;
    color: white;
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-list {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid #222;
    display: flex;
    gap: 12px;
    transition: 0.2s;
    text-decoration: none;
    color: #ddd;
}

.notif-item:hover {
    background: #1a1a1a;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: white;
}

.notif-time {
    font-size: 0.75rem;
    color: #666;
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

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

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

/* =========================================
   FORUM SPECIFIC STYLES (Migrated)
   ========================================= */
.simple-creator-card {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 0;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.simple-creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff9e42);
    z-index: 2;
}

.creator-wrapper {
    padding: 20px;
}

.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    background: #111;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-select {
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    cursor: pointer;
    min-width: 120px;
}

.creator-input-area {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #eee;
    font-size: 1rem;
    padding: 10px;
    outline: none;
    font-family: inherit;
}

.creator-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ff6b00;
    color: black;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
    font-size: 1.1rem;
}

.creator-send-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.5);
}

.creator-toolbar-row {
    display: flex;
    gap: 25px;
    padding-top: 5px;
}

/* AI Generator Cards (Quizzes) */
.ai-gen-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.ai-gen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-icon-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    z-index: 0;
}

/* Theme Variances */
/* Theme Variances - Metallurgical */
.ai-gen-card.theme-blue {
    border-top: 3px solid var(--accent-plasma);
}

.ai-gen-card.theme-blue .card-icon-bg {
    background: var(--accent-plasma);
}

.ai-gen-card.theme-blue i {
    color: var(--accent-plasma);
}

.ai-gen-card.theme-green {
    border-top: 3px solid var(--accent-radium);
}

.ai-gen-card.theme-green .card-icon-bg {
    background: var(--accent-radium);
}

.ai-gen-card.theme-green i {
    color: var(--accent-radium);
}

.ai-gen-card.theme-orange {
    border-top: 3px solid var(--accent-magma);
}

.ai-gen-card.theme-orange .card-icon-bg {
    background: var(--accent-magma);
}

.ai-gen-card.theme-orange i {
    color: var(--accent-magma);
}

/* Badges */
.ai-badge,
.gate-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ai-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-steel);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.gate-badge {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-magma);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Input group fix for cards */
.ai-input-group {
    display: flex;
    z-index: 1;
}

/* Checkbox container for quiz options */
.check-container {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    cursor: pointer;
}

.check-container input {
    accent-color: var(--accent-blue);
}