/* Critical Instant Theme-Aware Full-Screen Loader Overlay */
#loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

html.dark #loader,
html.dark-mode #loader,
body.dark #loader,
body.dark-mode #loader {
    background: #0b0f19 !important;
}

#loader.hide,
#loader.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* ==========================================
   GENZCLASS EXECUTIVE DESIGN SYSTEM & TOKENS
   ========================================== */
:root {
    /* Refined Executive Color Palette */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #0284C7;
    --accent: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Executive Light Theme */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --surface-hover: #E2E8F0;
    --text: #0F172A;
    --text-muted: #475569;
    --text-light: #64748B;
    --border: #E2E8F0;
    --border-subtle: #F1F5F9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    
    /* Standardized Typographic Scale (6 tiers) */
    --text-xs: 0.75rem;    /* 12px - Badges, captions, timestamps */
    --text-sm: 0.875rem;   /* 14px - Subtitles, helper text, tags */
    --text-base: 1rem;     /* 16px - Primary body text, inputs */
    --text-md: 1.125rem;   /* 18px - Subheadings, card titles */
    --text-lg: 1.5rem;     /* 24px - Section headings (h2, h3) */
    --text-xl: 2.25rem;    /* 36px - Hero title (h1) */

    /* Standardized Corner Radii System (4 tiers) */
    --radius-sm: 8px;      /* Small chips, badges, tooltips */
    --radius-md: 14px;     /* Cards, menu items, container boxes */
    --radius-lg: 24px;     /* Dropdown popups, modals */
    --radius-pill: 9999px; /* Pill buttons, search inputs */
    --radius: 14px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark, body.dark-mode {
    /* Executive Dark Midnight Obsidian Theme */
    --bg: #0B0F19;
    --surface: #111827;
    --surface-2: #1F2937;
    --surface-hover: #374151;
    --text: #F8FAFC;
    --text-muted: #CBD5E1;
    --text-light: #94A3B8;
    --border: #1F2937;
    --border-subtle: #161F30;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 35px -5px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    letter-spacing: -0.011em;
}

/* Accessibility Focus States for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--primary, #6366f1) !important;
    outline-offset: 2px !important;
}

/* Global Hardware & Render Performance Optimizations */
footer, .footer, .cards-section, .stats-section, .updates, .related-section {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

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

h1, h2, h3 {
    line-height: 1.2;
}

/* ==========================================
   GLOBAL ADVERTISEMENT BANNER STYLING
   ========================================== */
.ad-banner {
    width: 92%;
    margin: 40px auto;
    height: 180px;
    background: #E5E7EB;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #777;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* AUTOCOMPLETE SEARCH SUGGESTIONS (STYLED IN UIVERSE SECTION BELOW) */

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border, #f1f5f9);
    text-decoration: none;
}

body.dark-mode .search-suggestion-item,
body.dark .search-suggestion-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

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

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(99, 102, 241, 0.08);
}

body.dark-mode .search-suggestion-item:hover,
body.dark-mode .search-suggestion-item.active,
body.dark .search-suggestion-item:hover,
body.dark .search-suggestion-item.active {
    background: rgba(99, 102, 241, 0.2);
}

.suggestion-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .suggestion-icon,
body.dark .suggestion-icon {
    background: rgba(99, 102, 241, 0.2);
}

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

.suggestion-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text, #0f172a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .suggestion-title,
body.dark .suggestion-title {
    color: #f8fafc;
}

.suggestion-meta {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dark-mode .suggestion-meta,
body.dark .suggestion-meta {
    color: #94a3b8;
}

.suggestion-query-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    transition: background 0.2s ease;
}

.suggestion-query-action:hover,
.suggestion-query-action.active {
    background: rgba(99, 102, 241, 0.12);
}

body.dark-mode .suggestion-query-action,
body.dark .suggestion-query-action {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   GLOBAL GOOGLE TRANSLATOR STYLING
   ========================================== */
.top-translate-bar {
    width: 92%;
    margin: 15px auto 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.translate-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#google_translate_element {
    display: inline-block;
}

#google_translate_element select {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease !important;
    appearance: none;
    -webkit-appearance: none;
}

#google_translate_element select:hover {
    border-color: var(--primary) !important;
    transform: translateY(-1px);
}

/* Hide default Google Translate branding elements */
.skiptranslate iframe, .goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0px !important;
}

.goog-logo-link {
    display: none !important;
}

.goog-te-gadget {
    font-size: 0px !important;
    color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 4px 0 !important;
}

/* Circular loading spinner inside buttons */
.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: btnSpin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ==========================================
      DYNAMIC HAMBURGER & MOBILE OVERLAY MENU
========================================== */

/* Hamburger Button Icon styles */
.hamburger-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001; /* Layered above other components */
    position: relative;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: #4f7cff; /* Vibe primary color */
    border-radius: 9px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.219, 1.55);
    transform-origin: left center;
}

body.dark-mode .hamburger-btn span {
    background: #6c63ff; /* Purple glow color for dark mode */
}

/* Animate to 'X' */
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    background: #ff5252 !important; /* Soft GenZ red accent */
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    background: #ff5252 !important;
}

/* GenZ Mobile Menu Overlay */
.genz-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.genz-mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.genz-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15); /* Lightened subtle mask */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

body.dark-mode .genz-menu-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

/* Dynamic side drawer */
.genz-menu-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: rgba(255, 255, 255, 0.94); /* Frosted light glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px 24px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

body.dark-mode .genz-menu-drawer {
    background: rgba(20, 20, 26, 0.94); /* Dark glass for dark mode */
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
}

.genz-mobile-menu.active .genz-menu-drawer {
    transform: translateX(0);
}

/* Glowing ambient backdrops for extra futuristic aesthetics */
.genz-menu-bg-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.25;
    pointer-events: none;
}

.genz-menu-bg-glow.g1 {
    top: 10%;
    right: -10%;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
}

.genz-menu-bg-glow.g2 {
    bottom: 10%;
    left: -10%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
}

/* Close Button */
.genz-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #475569;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10002;
    line-height: 1;
}

body.dark-mode .genz-menu-close {
    color: rgba(255, 255, 255, 0.7);
}

.genz-menu-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #ff5252;
    transform: rotate(90deg);
}

body.dark-mode .genz-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ff5252;
}

/* Menu Inner Links Container */
.genz-menu-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.genz-menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: left;
}

/* GenZ styled links with staggered slide in from right */
.genz-menu-links a {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #1e293b; /* Dark text for light mode background */
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(30px);
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .genz-menu-links a {
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

/* Opening State */
.genz-mobile-menu.active:not(.closing) .genz-menu-links a {
    transform: translateX(0);
    opacity: 1;
}

/* Staggered entrance loop (options come one by one) */
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(1) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.08s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(2) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.14s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(3) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.20s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(4) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.26s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(5) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.32s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(6) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.38s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(7) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.44s; }
.genz-mobile-menu.active:not(.closing) .genz-menu-links a:nth-child(8) { transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.50s; }

/* Closing State (options exit one by one) */
.genz-mobile-menu.closing .genz-menu-links a {
    transform: translateX(40px);
    opacity: 0;
}

/* Staggered exit loop (options close one by one) */
.genz-mobile-menu.closing .genz-menu-links a:nth-child(1) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.02s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(2) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.07s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(3) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.12s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(4) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.17s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(5) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.22s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(6) { transition: all 0.25s cubic-bezier(0.7, 0, 0.84, 0) 0.27s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(7) { transition-delay: 0.32s; }
.genz-mobile-menu.closing .genz-menu-links a:nth-child(8) { transition-delay: 0.37s; }

/* Closing Drawer slide out */
.genz-mobile-menu.closing .genz-menu-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.84, 0) 0.1s;
}

.genz-mobile-menu.closing {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

/* Link Hover State */
.genz-menu-links a:hover {
    background: rgba(79, 124, 255, 0.15);
    border-color: rgba(79, 124, 255, 0.3);
    color: #4f7cff;
    transform: translateX(4px);
}

body.dark-mode .genz-menu-links a:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
    color: #8b80ff;
}

/* Link Active State */
.genz-menu-links a.active {
    background: linear-gradient(135deg, #4f7cff, #2563eb);
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(79, 124, 255, 0.4);
}

body.dark-mode .genz-menu-links a.active {
    background: linear-gradient(135deg, #6c63ff, #4f7cff);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

/* Mobile responsive layout overrides */
@media (max-width: 768px) {
    header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 24px !important;
        gap: 0 !important;
    }
    
    .logo-container {
        width: auto !important;
        justify-content: flex-start !important;
        order: 1 !important;
    }
    
    header nav {
        display: none !important; /* Hide original navigation row */
    }
    
    .header-theme-toggle {
        order: 2 !important;
        margin-left: auto !important; /* Push theme switcher and hamburger to the right */
        margin-right: 15px !important;
    }
    
    .hamburger-btn {
        display: flex !important; /* Show hamburger button */
        order: 3 !important; /* Force hamburger button to the far right */
    }
}

/* ==========================================
   FEEDBACK & SUGGESTION WIDGET & MODAL
========================================== */

/* Floating Feedback Button - Completely Hidden on Desktop and Mobile */
.genz-feedback-trigger {
    display: none !important;
}

/* Bottom Footer Feedback Bar */
.genz-footer-feedback-card {
    margin: 40px auto 20px auto;
    max-width: 1100px;
    width: 90%;
    padding: 24px 30px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

body.dark-mode .genz-footer-feedback-card {
    background: #1e1f2f;
    border-color: rgba(255, 255, 255, 0.08);
}

.genz-footer-feedback-left h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #111);
}

.genz-footer-feedback-left p {
    margin: 0;
    font-size: 13px;
    color: var(--text-light, #666);
}

.genz-footer-feedback-btn {
    padding: 10px 22px;
    background: #4f7cff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.genz-footer-feedback-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Feedback Modal Backdrop & Content */
.genz-feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.genz-feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.genz-feedback-modal {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode .genz-feedback-modal {
    background: #181926;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.genz-feedback-modal-overlay.active .genz-feedback-modal {
    transform: scale(1);
}

.genz-feedback-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.genz-feedback-modal-close:hover {
    color: #ff4757;
}

.genz-feedback-stars {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px 0;
}

.genz-star-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.genz-star-btn.active, .genz-star-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.genz-feedback-form-group {
    margin-bottom: 14px;
}

.genz-feedback-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light, #555);
}

body.dark-mode .genz-feedback-form-group label {
    color: #aaa;
}

.genz-feedback-form-group select,
.genz-feedback-form-group input,
.genz-feedback-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

body.dark-mode .genz-feedback-form-group select,
body.dark-mode .genz-feedback-form-group input,
body.dark-mode .genz-feedback-form-group textarea {
    background: #232436;
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.genz-feedback-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4f7cff, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.genz-feedback-submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* ==========================================
   EXECUTIVE GLOBAL HEADER & NAVBAR
   ========================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.25s ease;
}

body.dark header, body.dark-mode header {
    background: rgba(11, 15, 25, 0.85);
    border-bottom-color: var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-container img {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

body.dark nav a:hover, body.dark-mode nav a:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #818CF8;
}

nav a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

body.dark nav a.active, body.dark-mode nav a.active {
    background: rgba(79, 70, 229, 0.2);
    color: #818CF8;
}

/* ==========================================
   INTERACTIVE ANIMATED "G" & "Z" HERO DUO
   ========================================== */
.mascot-container {
    width: 100%;
    max-width: 420px;
    height: 220px;
    margin: 0 auto 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible;
    user-select: none;
}

.mascots-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Character G & Z Base Group */
.mascot-group {
    transform-origin: 50% 90%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

/* Floating Music Notes for Singing Mode */
.singing-note {
    position: absolute;
    font-size: 20px;
    color: var(--primary);
    pointer-events: none;
    animation: floatNote 1.5s ease-out forwards;
    z-index: 10;
}

@keyframes floatNote {
    0% { opacity: 1; transform: translateY(0) scale(0.6) rotate(0deg); }
    50% { opacity: 0.9; transform: translateY(-45px) scale(1.2) rotate(15deg); }
    100% { opacity: 0; transform: translateY(-80px) scale(0.8) rotate(-15deg); }
}

/* Floating Tickle Emojis / Text ("ha ha!", "😂", "✨") */
.tickle-pop {
    position: absolute;
    font-size: 16px;
    font-weight: 800;
    color: #F59E0B;
    pointer-events: none;
    animation: popUp 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 10;
}

@keyframes popUp {
    0% { opacity: 1; transform: scale(0.4) translateY(0); }
    50% { opacity: 1; transform: scale(1.3) translateY(-30px); }
    100% { opacity: 0; transform: scale(0.9) translateY(-60px); }
}

/* 1. Tickle / Laughing Animation */
.mascot-group.tickled {
    animation: mascotTickle 0.4s ease-in-out infinite alternate !important;
}

@keyframes mascotTickle {
    0% { transform: scale(1.15, 0.85) rotate(-12deg) translateY(4px); }
    50% { transform: scale(0.88, 1.15) rotate(12deg) translateY(-4px); }
    100% { transform: scale(1.1, 0.9) rotate(-8deg); }
}

/* 2. Fighting / Playful Wrestling Animation */
.mascot-container.fighting #characterG {
    animation: fightG 0.8s ease-in-out infinite alternate;
}

.mascot-container.fighting #characterZ {
    animation: fightZ 0.8s ease-in-out infinite alternate;
}

@keyframes fightG {
    0% { transform: translateX(0) rotate(0); }
    40% { transform: translateX(35px) rotate(18deg) scale(1.1, 0.9); }
    60% { transform: translateX(-10px) rotate(-10deg); }
    100% { transform: translateX(25px) rotate(12deg); }
}

@keyframes fightZ {
    0% { transform: translateX(0) rotate(0); }
    40% { transform: translateX(-35px) rotate(-18deg) scale(1.1, 0.9); }
    60% { transform: translateX(10px) rotate(10deg); }
    100% { transform: translateX(-25px) rotate(-12deg); }
}

/* 3. Singing Animation */
.mascot-container.singing #characterG, .mascot-container.singing #characterZ {
    animation: mascotSing 1.2s ease-in-out infinite alternate;
}

@keyframes mascotSing {
    0% { transform: translateY(0) scale(1) rotate(-4deg); }
    50% { transform: translateY(-16px) scale(1.08, 0.92) rotate(6deg); }
    100% { transform: translateY(0) scale(1) rotate(-4deg); }
}

/* 4. Password Focus / Simple Clean Eyes-Opposite Animation */
.mascot-container.cover-eyes .mascot-pupil,
.mascot-container.look-opposite .mascot-pupil {
    transform: translate(-9px, 0px) !important;
    transition: transform 0.25s ease-out !important;
}

.mascot-hands {
    display: none !important;
}

/* Seamless Transparent Side Panel for Mascots */
.login-left {
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

/* Mobile responsive adjustments for Side Mascot Layout */
@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr !important;
    }
    .login-left {
        padding: 20px 15px !important;
    }
    .login-left #loginMascots,
    .login-left #registerMascots,
    .login-left #adminMascots {
        max-width: 200px !important;
        margin-bottom: 10px !important;
    }
}

/* ==========================================================
   BRAND TEXT ANIMATED CREATURES ENGINE (EMBEDDED LETTER EYES)
   ========================================================== */
.brand-creatures-text {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-weight: 800;
    user-select: none;
    line-height: 1;
}

.logo-container span, .logo span {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

.char-creature {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo-container span, .logo span, .char-creature {
        font-size: 1.65rem !important;
    }
    .creature-eye {
        width: 8px !important;
        height: 8px !important;
    }
    .creature-pupil {
        width: 4px !important;
        height: 4px !important;
    }
}

/* Jiggle physics when hovered / tapped */
.char-creature:hover, .char-creature.active {
    animation: creatureJiggle 0.5s cubic-bezier(0.36, 0, 0.66, -0.56);
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.35));
}

@keyframes creatureJiggle {
    0% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.25, 0.8) translateY(2px) rotate(-6deg); }
    60% { transform: scale(0.85, 1.2) translateY(-6px) rotate(6deg); }
    80% { transform: scale(1.05, 0.95) translateY(-2px); }
    100% { transform: scale(1) translateY(0) rotate(0); }
}

/* Distinct Colorful Character Creature Personalities */
.char-creature[data-char="G"] { color: #6366F1; }
.char-creature[data-char="e"] { color: #06B6D4; }
.char-creature[data-char="n"] { color: #10B981; }
.char-creature[data-char="Z"] { color: #F59E0B; }
.char-creature[data-char="C"] { color: #8B5CF6; }
.char-creature[data-char="l"] { color: #F43F5E; }
.char-creature[data-char="a"] { color: #3B82F6; }
.char-creature[data-char="s1"] { color: #14B8A6; }
.char-creature[data-char="s2"] { color: #A855F7; }

/* Embedded Face directly ON/INSIDE the letter body */
.creature-face {
    position: absolute;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    pointer-events: none;
    z-index: 2;
}

/* White Sclera Eyes & Blushing Cheeks - Hidden per user request for clean logo typography */
.creature-face, .creature-eye, .creature-pupil, .creature-blush {
    display: none !important;
}

/* ==========================================================
   ANTIGRAVITY REAL DRIFTING PHYSICS ENGINE & TRIGGER
   ========================================================== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

#antigravityToggleBtn, .antigravity-trigger-btn {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 50% !important;
    margin: 0 0 0 10px !important;
    padding: 0 !important;
    background: linear-gradient(135deg, #4F46E5, #0284C7) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    vertical-align: middle !important;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease !important;
    z-index: 10 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

#antigravityToggleBtn i,
.antigravity-trigger-btn i {
    font-size: 11px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#antigravityToggleBtn .antigravity-label,
.antigravity-trigger-btn .antigravity-label {
    font-size: 7px !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

#antigravityToggleBtn:hover,
.antigravity-trigger-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.65) !important;
}

#antigravityToggleBtn.active,
.antigravity-trigger-btn.active {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5) !important;
}

/* Flying Smooth Rigid Body Elements (GPU Accelerated for 60fps/120fps Mobile Smoothness) */
.antigravity-body {
    position: absolute !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    will-change: transform !important;
    transform-style: preserve-3d !important;
    backface-visibility: hidden !important;
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px;
    max-width: 95vw !important;
}

.antigravity-body.ag-picked {
    box-shadow: 0 0 24px rgba(79, 70, 229, 0.5), 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.antigravity-body * {
    pointer-events: auto !important;
}

/* ==========================================================
   AI / GEMINI CONTENT CALLOUT BOXES & MATH STYLES
   ========================================================== */
.ai-callout {
    position: relative;
    padding: 14px 18px;
    margin: 16px 0;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ai-callout .callout-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.ai-callout.warning {
    background: rgba(245, 158, 11, 0.09);
    border-left: 5px solid #F59E0B;
    color: var(--text, #0F172A);
}

.ai-callout.wrong {
    background: rgba(239, 68, 68, 0.09);
    border-left: 5px solid #EF4444;
    color: var(--text, #0F172A);
}

.ai-callout.correct {
    background: rgba(16, 185, 129, 0.09);
    border-left: 5px solid #10B981;
    color: var(--text, #0F172A);
}

.ai-callout.tip {
    background: rgba(79, 70, 229, 0.09);
    border-left: 5px solid #4F46E5;
    color: var(--text, #0F172A);
}

.ai-callout.fun-fact {
    background: rgba(6, 182, 212, 0.09);
    border-left: 5px solid #06B6D4;
    color: var(--text, #0F172A);
}

.ai-callout.formula-sheet {
    background: rgba(124, 58, 237, 0.09);
    border-left: 5px solid #7C3AED;
    color: var(--text, #0F172A);
}

/* KaTeX Display Math block styling */
.katex-display {
    margin: 16px 0 !important;
    padding: 12px 16px !important;
    background: rgba(79, 70, 229, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    overflow-x: auto;
}

body.dark .katex-display, body.dark-mode .katex-display {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fallback Pure HTML/CSS Fractions & Math Blocks */
.cs-frac {
    display: inline-flex !important;
    flex-direction: column !important;
    vertical-align: middle !important;
    text-align: center !important;
    padding: 0 4px !important;
    font-size: 0.95em !important;
    line-height: 1.1 !important;
}

.cs-num {
    border-bottom: 1.5px solid currentColor !important;
    padding-bottom: 2px !important;
    display: block !important;
}

.cs-den {
    padding-top: 2px !important;
    display: block !important;
}

.cs-math-display {
    display: block !important;
    margin: 14px auto !important;
    text-align: center !important;
    font-size: 1.1em !important;
    padding: 10px 16px !important;
    background: rgba(79, 70, 229, 0.04) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(79, 70, 229, 0.12) !important;
}

.cs-math-inline {
    display: inline-block !important;
    padding: 0 2px !important;
}

/* ==========================================
   CSS MARQUEE REPLACEMENT (Deprecated <marquee>)
   ========================================== */
.marquee-container {
    overflow: hidden !important;
    white-space: nowrap !important;
    width: 100% !important;
    position: relative !important;
}

.marquee-content {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    will-change: transform !important;
    animation: marqueeScroll 30s linear infinite !important;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused !important;
}

@keyframes marqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* ==========================================
   FIXED UNFLOATABLE ANTIGRAVITY TOGGLE BUTTON
   ========================================== */
#antigravityToggleBtn, .antigravity-trigger-btn {
    position: relative !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==========================================
   PRO GZ MASCOTS & HERO SEARCH INTEGRATION
   ========================================== */
#indexMascots {
    width: 100%;
    max-width: 320px;
    height: 140px;
    margin: 0 auto 10px auto;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#indexMascots .mascot-container {
    width: 100%;
    height: 100%;
}

#indexMascots svg {
    width: 100%;
    height: 100%;
    max-height: 140px;
}

/* Legacy Search Wrapper Override (Mapped to uiverse-search-box) */
.hero-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    margin-right: 8px;
    flex-shrink: 0;
}

body.dark-mode .hero-search-icon {
    color: #818cf8;
}
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
}

/* ==========================================================================
   GenZClass Executive Full-Window Image Lightbox & Zoom Viewer Styles
   ========================================================================== */

.genz-zoomable-img {
    cursor: zoom-in !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, filter 0.25s ease !important;
    border-radius: 10px !important;
}

.genz-zoomable-img:hover {
    transform: translateY(-2px) scale(1.008) !important;
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.25), 0 0 0 2px rgba(79, 70, 229, 0.4) !important;
    filter: brightness(1.02) !important;
}

/* Ensure Content Studio Editor images remain 100% normal and editable */
#editor img, .editor-area img {
    cursor: pointer !important;
    transform: none !important;
    box-shadow: none !important;
}

.genz-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    touch-action: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.genz-lightbox-open {
    touch-action: none !important;
    overflow: hidden !important;
}

.genz-lightbox-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.genz-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 10, 18, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.genz-lightbox-toolbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 900px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.genz-lightbox-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.genz-lightbox-caption {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.genz-lightbox-zoom-badge {
    font-size: 12px;
    font-weight: 800;
    color: #4f46e5;
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
}

.genz-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.genz-lightbox-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.genz-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.genz-lightbox-btn.close-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.genz-lightbox-btn.close-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: scale(1.06);
}

.genz-lightbox-stage {
    position: relative;
    z-index: 1000000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 20px 30px;
    overflow: hidden;
    user-select: none;
}

.genz-lightbox-stage img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    cursor: grab;
}

@media (max-width: 768px) {
    .genz-lightbox-toolbar {
        top: 10px;
        width: 98%;
        max-width: 480px;
        padding: 5px 8px;
        gap: 4px;
        border-radius: 30px;
        box-sizing: border-box;
        justify-content: space-between;
    }
    .genz-lightbox-title-box {
        gap: 4px;
        flex-shrink: 0;
    }
    .genz-lightbox-caption {
        display: none !important;
    }
    .genz-lightbox-zoom-badge {
        font-size: 10px;
        padding: 2px 6px;
        flex-shrink: 0;
    }
    .genz-lightbox-controls {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 3px !important;
        overflow: visible !important;
        flex-wrap: nowrap !important;
        flex: 1;
        width: auto !important;
    }
    .genz-lightbox-btn {
        padding: 5px 8px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }
    .genz-lightbox-btn span {
        display: inline-block !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   GenZClass Feedback & Suggestions Modal + Lovely Success Greeting Animation
   ========================================================================== */
.genz-footer-feedback-card {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(16, 185, 129, 0.08));
    border: 1.5px dashed rgba(79, 70, 229, 0.3);
    border-radius: 20px;
    padding: 24px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

body.dark-mode .genz-footer-feedback-card,
body.dark .genz-footer-feedback-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(15, 23, 42, 0.8));
    border-color: rgba(99, 102, 241, 0.3);
}

.genz-footer-feedback-left h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text, #0f172a);
    margin: 0 0 4px 0;
}

.genz-footer-feedback-left p {
    font-size: 13.5px;
    color: var(--text-light, #64748b);
    margin: 0;
}

.genz-footer-feedback-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genz-footer-feedback-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.genz-feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.genz-feedback-modal-overlay.active {
    display: flex !important;
    animation: fadeInModal 0.25s ease forwards;
}

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

.genz-feedback-modal {
    position: relative;
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.92);
    animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUpModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.genz-feedback-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 22px;
    color: var(--text-light, #64748b);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.genz-feedback-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.genz-feedback-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.genz-feedback-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text, #0f172a);
}

.genz-feedback-stars {
    display: flex;
    gap: 8px;
}

.genz-star-btn {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    opacity: 0.3;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.genz-star-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.genz-feedback-form-group select,
.genz-feedback-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border, #cbd5e1);
    background: var(--bg, #f8fafc);
    color: var(--text, #0f172a);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.genz-feedback-form-group select:focus,
.genz-feedback-form-group textarea:focus {
    border-color: #4f46e5;
}

.genz-feedback-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genz-feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.45);
}

/* LOVELY GREETING SUCCESS ANIMATION CARD */
.genz-feedback-success-card {
    text-align: center;
    padding: 15px 10px 10px;
    animation: lovelyEntrance 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lovelyEntrance {
    0% { transform: scale(0.7) rotate(-4deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.genz-success-heart-badge {
    font-size: 48px;
    margin-bottom: 10px;
    animation: heartPulse 1.2s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
    display: inline-block;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.18); }
}

.genz-feedback-close-success-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s ease;
}

.genz-feedback-close-success-btn:hover {
    transform: scale(1.03);
}

/* ==========================================================================
   GenZClass GDPR / ePrivacy Cookie Consent Agreement Banner
   ========================================================================== */
.genz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    width: 100%;
    max-width: 100%;
    background: var(--surface, #ffffff);
    color: var(--text, #0f172a);
    border-top: 1.5px solid var(--border, #e2e8f0);
    border-radius: 16px 16px 0 0;
    padding: 12px 24px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

body.dark .genz-cookie-banner,
body.dark-mode .genz-cookie-banner {
    background: rgba(17, 24, 39, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
}

.genz-cookie-banner.active {
    transform: translateY(0);
    opacity: 1;
}

.genz-cookie-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.genz-cookie-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--text, #0f172a);
}

.genz-cookie-desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--text-light, #64748b);
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.genz-cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.genz-cookie-btn {
    min-width: 90px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: center;
}

.genz-cookie-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.genz-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.genz-cookie-deny {
    background: var(--bg, #f1f5f9);
    color: var(--text-muted, #475569);
    border: 1px solid var(--border, #cbd5e1);
}

.genz-cookie-deny:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 640px) {
    .genz-cookie-banner {
        padding: 10px 14px;
        gap: 10px;
    }
}

/* ==========================================
   Uiverse.io Sleek Expanding Search Bar Component
   ========================================== */
/* ==========================================
   Uiverse.io Sleek Expanding Search Bar Component
   ========================================== */
.uiverse-search-box {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 20px auto 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-sizing: border-box !important;
    z-index: 100 !important;
}

.uiverse-search-box input,
#heroSearchInput,
#mainSearch {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 16px 64px 16px 24px !important;
    border-radius: 50px !important;
    border: 1.5px solid var(--border, #cbd5e1) !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.25s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

body.dark .uiverse-search-box input,
body.dark-mode .uiverse-search-box input,
body.dark #heroSearchInput,
body.dark-mode #heroSearchInput,
body.dark #mainSearch,
body.dark-mode #mainSearch {
    background: #111827 !important;
    border-color: #1f2937 !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.uiverse-search-box input:focus,
#heroSearchInput:focus,
#mainSearch:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.25) !important;
}

/* Interactive Search Button */
.uiverse-search-btn,
#heroSearchBtn,
#mainSearchBtn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
    z-index: 10 !important;
}

.uiverse-search-btn:hover,
#heroSearchBtn:hover,
#mainSearchBtn:hover {
    transform: translateY(-50%) scale(1.08) !important;
    background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.55) !important;
}

.uiverse-search-btn:active,
#heroSearchBtn:active,
#mainSearchBtn:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.uiverse-search-btn svg,
#heroSearchBtn svg,
#mainSearchBtn svg,
.uiverse-search-box .uiverse-search-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    stroke-width: 2.2 !important;
    stroke: #ffffff !important;
    fill: none !important;
    pointer-events: none !important;
}

/* ==========================================
   Universal Search Auto-Suggestions Dropdown UI
   ========================================== */
.search-suggestions-box,
#searchSuggestionsBox {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15) !important;
    z-index: 999999 !important;
    max-height: 420px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

body.dark .search-suggestions-box,
body.dark-mode .search-suggestions-box,
body.dark #searchSuggestionsBox,
body.dark-mode #searchSuggestionsBox {
    background: #111827 !important;
    border-color: #1f2937 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

.search-suggestion-group-title {
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-light, #64748b) !important;
    padding: 10px 12px 6px !important;
}

.search-suggestion-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: var(--text, #0f172a) !important;
    transition: background 0.18s ease, transform 0.18s ease !important;
    cursor: pointer !important;
}

body.dark .search-suggestion-item,
body.dark-mode .search-suggestion-item {
    color: #f8fafc !important;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background: rgba(99, 102, 241, 0.1) !important;
    transform: translateX(2px) !important;
}

.suggestion-icon {
    font-size: 22px !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
}

.suggestion-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.suggestion-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text, #0f172a) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.dark .suggestion-title,
body.dark-mode .suggestion-title {
    color: #f8fafc !important;
}

.suggestion-subtitle,
.suggestion-meta {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: var(--text-light, #64748b) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 2px !important;
}

.suggestion-query-action {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    margin-top: 6px !important;
    border-top: 1px solid var(--border, #e2e8f0) !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6366f1 !important;
    cursor: pointer !important;
    transition: background 0.18s ease !important;
}

body.dark .suggestion-query-action,
body.dark-mode .suggestion-query-action {
    border-top-color: #1f2937 !important;
    color: #818cf8 !important;
}

.suggestion-query-action:hover,
.suggestion-query-action.active {
    background: rgba(99, 102, 241, 0.1) !important;
}

/* ==========================================
   UIVERSE.IO PENUMBRA CTA BUTTON COMPONENT
   ========================================== */
.penumbra-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 22px !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  transition: all 180ms ease !important;
  width: 100% !important;
  max-width: 220px !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.penumbra-cta:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3) !important;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.penumbra-cta:active {
  transform: translateY(1px) !important;
}

.penumbra-cta .penumbra-cta__label {
  display: inline-block !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.penumbra-cta .penumbra-cta__icon,
.penumbra-cta svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  stroke-width: 2.2 !important;
  stroke: #ffffff !important;
  fill: none !important;
  flex-shrink: 0 !important;
  transition: transform 180ms ease !important;
  display: inline-block !important;
}

.penumbra-cta:hover .penumbra-cta__icon,
.penumbra-cta:hover svg {
  transform: translateX(4px) !important;
}

/* Chemical Reaction Heat Arrow Formatting */
.chem-heat-arrow {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 8px !important;
    line-height: 1 !important;
}

.chem-heat-arrow .chem-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #6366f1 !important;
    line-height: 1 !important;
    margin-bottom: -1px !important;
}

body.dark .chem-heat-arrow .chem-label,
body.dark-mode .chem-heat-arrow .chem-label {
    color: #818cf8 !important;
}

.chem-heat-arrow .chem-arrow {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Hide Admin Session Badge UI from overlapping headers and modals */
#adminSessionBadge {
  display: none !important;
}
