/* MOBILE-FIRST CSS RESET */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

body {
    min-height: 100dvh;
    height: 100%;
    /* Mobile Safe Area Support */
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}

@supports (-webkit-touch-callout: none) {
    body {
        /* iOS Safari height fix */
        min-height: -webkit-fill-available;
    }
}

/* Base Styles */
/*
 * Fine-Tuning Studio Pro v11 - Custom Styles (Jan 2026)
 * Cyberpunk / Neon Aesthetics & Dual-Audience UI
 * v11: Added gold spark animation, consistent header/footer, forum styles, custom icons
 * v15: Added local @font-face definitions for Orbitron and Rajdhani
 */

/* =========================================
   LOCAL FONT DEFINITIONS
   ========================================= */

/* Orbitron - Logo and Headlines */
@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/orbitron-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/orbitron-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/orbitron-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/orbitron-latin-700-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/fonts/orbitron-latin-800-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/fonts/orbitron-latin-900-normal.woff2') format('woff2');
}

/* Rajdhani - Body and UI Text */
@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/rajdhani-latin-300-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/rajdhani-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/rajdhani-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/rajdhani-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Rajdhani';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/rajdhani-latin-700-normal.woff2') format('woff2');
}

:root {
    --neon-cyan: #00D9FF;
    --neon-purple: #B537F2;
    --neon-gold: #FFD700;
    --deep-navy: #0a0e27;
    --glass-bg: rgba(10, 14, 39, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-logo: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* =========================================
   1. GLOBAL & TYPOGRAPHY ENHANCEMENTS
   ========================================= */

body {
    background-color: var(--deep-navy);
    font-family: var(--font-body);
    overflow-x: hidden;
}

html,
body {
    max-width: 100%;
}

* {
    min-width: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* Utility: generic hidden class for JS toggles */
.hidden {
    display: none !important;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Forum base typography */
.forum-body {
    font-family: 'Rajdhani', sans-serif;
    color: #f0f1f8;
    background-color: var(--deep-navy);
}

/* Enhanced Focus Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 4px;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* =========================================
   2. NEON / CYBERPUNK EFFECTS
   ========================================= */

/* Hero Glow */
.hero-glow-text {
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4), 0 0 20px rgba(181, 55, 242, 0.3);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
    transform: translateY(-5px);
}

/* Input Fields (Cyberpunk Style) */
.cyber-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.cyber-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

/* =========================================
   3. DUAL AUDIENCE TOGGLE
   ========================================= */

.audience-toggle-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    z-index: 20;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1s forwards;
}

.toggle-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 4px;
    position: relative;
}

.toggle-btn {
    padding: 8px 24px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.toggle-btn.active {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

/* Content Visibility Control */
body.mode-expert .content-beginner {
    display: none !important;
}

body.mode-beginner .content-expert {
    display: none !important;
}

/* Transitions */
.content-beginner,
.content-expert {
    animation: fadeContent 0.5s ease;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   4. LOADING & NOTIFICATIONS
   ========================================= */

.form-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submission-success {
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.submission-error {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid #ff0055;
    color: #ff0055;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* =========================================
   5. GLOSSARY STYLES
   ========================================= */

.glossary-hero {
    background: radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.4) 0%, rgba(10, 14, 39, 1) 70%);
    padding: 120px 20px 80px;
    text-align: center;
}

.search-container {
    max-width: 600px;
    margin: 40px auto;
    position: relative;
    z-index: 30;
}

.search-bar {
    width: 100%;
    padding: 16px 24px;
    padding-left: 50px;
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 50px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
    border-color: #fff;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.term-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.term-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.term-card h3 {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.term-category {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 30;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
}

.expert-badge {
    display: inline-block;
    background: rgba(181, 55, 242, 0.2);
    color: var(--neon-purple);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'IBM Plex Mono', monospace;
}

/* =========================================
   6. BENEFITS SECTION ENHANCEMENTS
   ========================================= */

#benefits .group {
    will-change: transform, box-shadow;
}

#benefits .group:hover {
    transform: translateY(-8px);
}

/* Staggered animation for benefits cards */
#benefits .grid>div:nth-child(1) {
    animation-delay: 0.1s;
}

#benefits .grid>div:nth-child(2) {
    animation-delay: 0.2s;
}

#benefits .grid>div:nth-child(3) {
    animation-delay: 0.3s;
}

#benefits .grid>div:nth-child(4) {
    animation-delay: 0.4s;
}

#benefits .grid>div:nth-child(5) {
    animation-delay: 0.5s;
}

#benefits .grid>div:nth-child(6) {
    animation-delay: 0.6s;
}

/* Icon pulse animation on hover */
#benefits .group:hover svg {
    animation: iconPulse 0.6s ease-in-out;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* =========================================
   7. RESPONSIVE IMPROVEMENTS
   ========================================= */

@media (max-width: 768px) {

    /* Reduce section padding on mobile */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Benefits section mobile layout */
    #benefits .lg\:col-span-2 {
        grid-column: span 1;
    }

    #benefits .flex.items-start.gap-6 {
        flex-direction: column;
        gap: 1rem;
    }

    #benefits .w-16.h-16 {
        width: 3rem;
        height: 3rem;
    }

    #benefits h3.text-2xl {
        font-size: 1.25rem;
    }

    /* Smaller glow effects on mobile for performance */
    .hero-glow-text {
        text-shadow: 0 0 5px rgba(0, 217, 255, 0.3), 0 0 10px rgba(181, 55, 242, 0.2);
    }

    /* Toggle switch mobile optimization */
    .toggle-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    /* Glossary mobile adjustments */
    .glossary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 16px;
    }

    .search-container {
        margin: 20px auto;
    }

    .category-filter {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .toggle-switch {
        flex-direction: column;
        padding: 4px;
    }

    .toggle-btn {
        width: 100%;
        text-align: center;
    }

    #benefits .flex.flex-wrap.gap-2 span {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* =========================================
   8. SMOOTH SCROLL & PERFORMANCE
   ========================================= */

html {
    scroll-behavior: smooth;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Hardware acceleration for smoother animations */
.glass-card,
.term-card,
#benefits .group {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* =========================================
   9. LOGO ANIMATION & BRANDING
   ========================================= */

/* Logo Container for Spin Animation */
.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .logo-container {
        width: 48px;
        height: 48px;
    }
}

/* Logo Spin on Hover - Modern 2026 Easing */
.logo-spin {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6)) !important;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: logoPulse 3s ease-in-out infinite !important;
}

.logo-container:hover .logo-spin,
.logo-container:focus-within .logo-spin {
    transform: rotate(360deg) !important;
}

/* Continuous slow rotation for idle state */
.logo-container .logo-spin {
    animation: logoPulse 3s ease-in-out infinite, logoIdleSpin 20s linear infinite !important;
}

@keyframes logoIdleSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Subtle continuous glow pulse */
@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.9));
    }
}

/* Universal Gold Logo Text - Consistent Across All Pages */
.logo-text-glow {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    text-shadow:
        0 0 4px #fff,
        0 0 8px #fff,
        0 0 12px #FFD700,
        0 0 20px #FFD700,
        0 0 35px #FFD700,
        0 0 50px rgba(255, 215, 0, 0.5);
    margin-left: 12px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .logo-text-glow {
        font-size: 18px;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 640px) {
    .logo-text-glow {
        font-size: 13px;
        letter-spacing: 0.12em;
        margin-left: 8px;
    }

    .v11-header-inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .v11-logo .logo-text-glow {
        font-size: 12px;
        letter-spacing: 0.08em;
        margin-left: 6px;
    }
}

@media (max-width: 420px) {
    .v11-logo .logo-text-glow {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
}

/* =========================================
   10. NEON SPARK UNDERLINE - V15.5 PREMIUM
   ========================================= */

/* Container for spark effect */
.logo-text-spark {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 6px !important;
}

/* Static glowing underline base - always visible */
.logo-text-spark::before {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg,
            rgba(0, 217, 255, 0.3) 0%,
            rgba(181, 55, 242, 0.3) 50%,
            rgba(0, 217, 255, 0.3) 100%) !important;
    border-radius: 2px !important;
    box-shadow:
        0 0 4px rgba(0, 217, 255, 0.4),
        0 0 8px rgba(181, 55, 242, 0.3) !important;
}

/* Traveling spark orb - moves back and forth */
.logo-text-spark::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 12px !important;
    height: 8px !important;
    background: radial-gradient(ellipse at center,
            #fff 0%,
            #00D9FF 30%,
            rgba(0, 217, 255, 0.8) 50%,
            transparent 70%) !important;
    border-radius: 50% !important;
    filter: blur(1px) !important;
    box-shadow:
        0 0 6px #00D9FF,
        0 0 12px #00D9FF,
        0 0 20px rgba(0, 217, 255, 0.8),
        0 0 30px rgba(181, 55, 242, 0.5),
        -8px 0 15px rgba(0, 217, 255, 0.4),
        -16px 0 20px rgba(181, 55, 242, 0.2) !important;
    animation: sparkSlide 2.5s ease-in-out infinite !important;
    z-index: 10 !important;
}

/* Spark slides back and forth with smooth easing */
@keyframes sparkSlide {

    0%,
    100% {
        left: 0%;
        transform: scaleX(1);
        box-shadow:
            0 0 6px #00D9FF,
            0 0 12px #00D9FF,
            0 0 20px rgba(0, 217, 255, 0.8),
            8px 0 15px rgba(0, 217, 255, 0.4),
            16px 0 20px rgba(181, 55, 242, 0.2);
    }

    45%,
    55% {
        left: calc(100% - 12px);
        transform: scaleX(-1);
        box-shadow:
            0 0 8px #B537F2,
            0 0 16px #B537F2,
            0 0 25px rgba(181, 55, 242, 0.8),
            -8px 0 15px rgba(181, 55, 242, 0.4),
            -16px 0 20px rgba(0, 217, 255, 0.2);
    }
}

/* Pulsing glow on the underline synced with spark position */
.logo-text-spark {
    animation: textGlowPulse 2.5s ease-in-out infinite !important;
}

@keyframes textGlowPulse {

    0%,
    100% {
        text-shadow:
            0 0 4px #fff,
            0 0 8px #fff,
            0 0 12px #FFD700,
            0 0 20px #FFD700,
            0 0 35px #FFD700,
            0 0 50px rgba(255, 215, 0, 0.5);
    }

    25% {
        text-shadow:
            0 0 4px #fff,
            0 0 10px #fff,
            0 0 15px #FFD700,
            0 0 25px #FFD700,
            0 0 40px rgba(0, 217, 255, 0.6),
            0 0 55px rgba(0, 217, 255, 0.4);
    }

    50% {
        text-shadow:
            0 0 4px #fff,
            0 0 8px #fff,
            0 0 12px #FFD700,
            0 0 20px #FFD700,
            0 0 35px #FFD700,
            0 0 50px rgba(255, 215, 0, 0.5);
    }

    75% {
        text-shadow:
            0 0 4px #fff,
            0 0 10px #fff,
            0 0 15px #FFD700,
            0 0 25px #FFD700,
            0 0 40px rgba(181, 55, 242, 0.6),
            0 0 55px rgba(181, 55, 242, 0.4);
    }
}

/* Enhanced spark on hover - faster, brighter */
/* Trigger on both direct hover and parent hover */
.logo-text-spark:hover::after,
.v11-logo:hover .logo-text-spark::after {
    animation: sparkSlideHover 1.5s ease-in-out infinite !important;
    filter: blur(0.5px) !important;
    width: 16px !important;
    height: 10px !important;
    box-shadow:
        0 0 12px #fff,
        0 0 24px #00D9FF,
        0 0 36px #00D9FF,
        0 0 50px rgba(0, 217, 255, 0.9),
        0 0 70px rgba(181, 55, 242, 0.6) !important;
}

/* Enhanced underline on hover */
.logo-text-spark:hover::before,
.v11-logo:hover .logo-text-spark::before {
    height: 3px !important;
    box-shadow:
        0 0 8px rgba(0, 217, 255, 0.7),
        0 0 16px rgba(181, 55, 242, 0.5),
        0 0 24px rgba(0, 217, 255, 0.4) !important;
}

@keyframes sparkSlideHover {

    0%,
    100% {
        left: 0%;
        transform: scaleX(1);
    }

    45%,
    55% {
        left: calc(100% - 16px);
        transform: scaleX(-1);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .logo-text-spark::after {
        animation: none !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .logo-text-spark {
        animation: none !important;
    }
}

/* Mobile adjustments - smaller spark */
@media (max-width: 640px) {
    .logo-text-spark::after {
        width: 8px !important;
        height: 6px !important;
        bottom: -2px !important;
    }

    .logo-text-spark {
        padding-bottom: 4px !important;
    }
}

/* =========================================
   11. EXPERT/TECHNICAL MODE ENHANCEMENTS
   ========================================= */

/* Code blocks in expert mode */
.expert-content .code-block,
body.expert-mode .code-block {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.2);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Tables in expert mode */
.expert-content table,
body.expert-mode .expert-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.expert-content th,
.expert-content td,
body.expert-mode .expert-table th,
body.expert-mode .expert-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.expert-content th,
body.expert-mode .expert-table th {
    color: var(--neon-cyan);
    font-weight: 600;
    background: rgba(0, 217, 255, 0.05);
}

.expert-content tr:hover,
body.expert-mode .expert-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Metric cards for benchmarks */
.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.metric-card .metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

.metric-card .metric-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Mobile optimizations for expert mode */
@media (max-width: 768px) {

    .expert-content .code-block,
    body.expert-mode .code-block {
        font-size: 12px;
        padding: 14px;
    }

    .expert-content table,
    body.expert-mode .expert-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .expert-content th,
    .expert-content td,
    body.expert-mode .expert-table th,
    body.expert-mode .expert-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .metric-card .metric-value {
        font-size: 1.5rem;
    }
}

/* =========================================
   12. SECTION JUMP NAVIGATION
   ========================================= */

.section-jumps {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 32px;
}

.section-jumps a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.section-jumps a:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.section-jumps a.active {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
}

/* Scroll margin for fixed header */
section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .section-jumps {
        gap: 6px;
        padding: 12px;
    }

    .section-jumps a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* =========================================
   13. CONSISTENT HEADER STYLES - V11 NEW
   ========================================= */

/* Standard Header */
.v11-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v11-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.v11-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.v11-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.v11-nav a {
    color: #f0f1f8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.v11-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
}

.v11-nav a:hover {
    color: var(--neon-cyan);
}

.v11-nav a:hover::after {
    width: 100%;
}

.v11-nav a.active {
    color: var(--neon-cyan);
}

.v11-nav a.active::after {
    width: 100%;
}

.v11-btn-waitlist {
    background: var(--neon-purple);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(181, 55, 242, 0.3);
    transition: all 0.3s ease;
}

.v11-btn-waitlist:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(181, 55, 242, 0.5);
}

button.v11-btn-waitlist {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.v11-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.45);
    background: rgba(0, 217, 255, 0.08);
    color: #00D9FF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    font-family: var(--font-body);
}

.v11-btn-outline:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 217, 255, 0.75);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.25);
}

/* Mobile Menu Toggle - HIGH VISIBILITY */
.v11-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.25);
    border: 2px solid rgba(0, 217, 255, 0.8);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
    z-index: 100;
    box-shadow:
        0 0 10px rgba(0, 217, 255, 0.4),
        0 0 20px rgba(0, 217, 255, 0.2),
        inset 0 0 10px rgba(0, 217, 255, 0.1);
}

.v11-mobile-toggle:hover {
    background: rgba(0, 217, 255, 0.4);
    border-color: rgba(0, 217, 255, 1);
    box-shadow:
        0 0 15px rgba(0, 217, 255, 0.6),
        0 0 30px rgba(0, 217, 255, 0.3),
        inset 0 0 15px rgba(0, 217, 255, 0.2);
}

.v11-mobile-toggle img {
    width: 32px !important;
    height: 32px !important;
    display: block !important;
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 1));
}

@media (max-width: 1023px) {
    .v11-nav {
        display: none !important;
    }

    .v11-header .v11-btn-waitlist {
        display: none !important;
    }

    .v11-mobile-toggle {
        display: inline-flex !important;
    }
}

@media (min-width: 1024px) {
    .v11-mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .v11-header-inner {
        padding: 12px 16px;
    }
}

/* Mobile Menu Overlay */
.v11-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.v11-mobile-menu.open {
    display: flex;
}

.v11-mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.v11-mobile-menu a:hover {
    color: var(--neon-cyan);
}

.v11-mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 32px;
}

/* =========================================
   14. CONSISTENT FOOTER STYLES - V11 NEW
   ========================================= */

.v11-footer {
    background: linear-gradient(to top, #0a0e27, #0d1233);
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    padding: 60px 24px 30px;
}

.v11-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.v11-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .v11-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .v11-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .v11-footer-brand {
        justify-content: center;
        flex-wrap: wrap;
    }

    .v11-footer-brand .logo-text-glow {
        font-size: 14px;
    }
}

.v11-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    max-width: 100%;
    overflow: hidden;
}

/* Footer-specific logo text - allow wrapping and constrain width */
.v11-footer-brand .logo-text-glow {
    white-space: normal !important;
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-left: 8px;
    line-height: 1.3;
    max-width: calc(100% - 50px);
    word-break: break-word;
}

.v11-footer-col h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v11-footer-col a {
    display: block;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.v11-footer-col a:hover {
    color: var(--neon-cyan);
}

.v11-footer-col p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.v11-newsletter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.v11-newsletter .cyber-input {
    flex: 1 1 200px;
    width: auto;
}

button.v11-btn-waitlist {
    border: none;
    cursor: pointer;
}

.v11-footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff41;
    font-size: 0.9rem;
    margin-top: 8px;
}

.v11-footer-error {
    color: #ff5a7a;
    font-size: 0.85rem;
    margin-top: 8px;
}

.v11-footer-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.v11-footer-copyright p {
    color: #667eea;
    font-size: 12px;
}

/* =========================================
   15. FORUM-SPECIFIC STYLES - V11 NEW
   ========================================= */

/* Forum Layout */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.forum-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

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

/* Category Cards */
.category-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
    transform: translateY(-2px);
}

/* Topic List */
.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: background 0.2s;
}

.topic-item:hover {
    background: rgba(0, 217, 255, 0.05);
}

.topic-title {
    font-family: var(--font-logo);
    font-weight: 600;
    color: #f0f1f8;
    transition: color 0.2s;
}

.topic-title:hover {
    color: var(--neon-cyan);
}

/* User Avatar */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 217, 255, 0.3);
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
}

/* Comment Styling */
.comment {
    background: rgba(10, 14, 39, 0.5);
    border-left: 3px solid var(--neon-cyan);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.comment-nested {
    margin-left: 2rem;
    border-left-color: var(--neon-purple);
}

/* Forum Input */
.forum-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    color: #f0f1f8;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.2s;
}

.forum-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* Forum Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: linear-gradient(135deg, var(--neon-purple), #ff0055);
    color: white;
}

.badge-moderator {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
}

/* Forum Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.action-btn.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.action-btn img {
    filter: drop-shadow(0 0 6px rgba(0, 217, 255, 0.4));
}

.action-btn.active img {
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.7));
}

/* Forum editor buttons */
.editor-btn,
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    transition: all 0.2s ease;
}

.editor-btn:hover,
.toolbar-btn:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

.toolbar-text {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================
   16. CUSTOM ICON ANIMATIONS - V11 NEW
   ========================================= */

/* Icon containers for "Made for You" section */
.icon-animated {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-animated svg {
    width: 100%;
    height: 100%;
}

/* Pause animations on hover for better interaction */
.icon-animated:hover svg * {
    animation-play-state: paused;
}

/* =========================================
   17. LIGHT MODE - V11 NEW
   ========================================= */

/* Light mode color variables */
body.light-mode {
    --deep-navy: #f5f7fa;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 0, 0, 0.1);
    background-color: #f5f7fa;
    color: #1a1f3e;
}

/* Light mode backgrounds */
body.light-mode {
    background: linear-gradient(180deg, #f5f7fa 0%, #e8edf5 100%);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode footer {
    background: linear-gradient(180deg, #e8edf5 0%, #dde3ed 100%) !important;
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* Light mode text colors */
body.light-mode .text-white {
    color: #1a1f3e !important;
}

body.light-mode .text-gray-100 {
    color: #2d3748 !important;
}

body.light-mode .text-gray-200 {
    color: #4a5568 !important;
}

body.light-mode .text-gray-300 {
    color: #5a6578 !important;
}

body.light-mode .text-gray-400 {
    color: #718096 !important;
}

body.light-mode .text-gray-500 {
    color: #8a94a6 !important;
}

/* Light mode backgrounds */
body.light-mode .bg-\[\#0a0e27\],
body.light-mode .bg-\[\#0a0e27\]\/95 {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

body.light-mode .bg-\[\#16213e\] {
    background-color: #ffffff !important;
}

body.light-mode .bg-\[\#1a1f3e\] {
    background-color: #f0f2f5 !important;
}

body.light-mode .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

body.light-mode .bg-white\/10 {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Light mode borders */
body.light-mode .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .border-white\/20 {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Light mode cards */
body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .glass-card:hover {
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Light mode forum elements */
body.light-mode .forum-container {
    color: #1a1f3e;
}

body.light-mode .category-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-mode .category-card:hover {
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.15);
}

body.light-mode .topic-item {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .topic-item:hover {
    background: rgba(0, 217, 255, 0.05);
}

body.light-mode .comment {
    background: rgba(0, 0, 0, 0.02);
    border-left-color: var(--neon-cyan);
}

body.light-mode .comment-nested {
    border-left-color: var(--neon-purple);
}

/* Light mode inputs */
body.light-mode .cyber-input,
body.light-mode .forum-input,
body.light-mode input[type="text"],
body.light-mode input[type="email"],
body.light-mode input[type="password"],
body.light-mode input[type="number"],
body.light-mode input[type="search"],
body.light-mode textarea,
body.light-mode select {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #1a1f3e !important;
}

body.light-mode .cyber-input:focus,
body.light-mode .forum-input:focus,
body.light-mode input:focus,
body.light-mode textarea:focus,
body.light-mode select:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #a0aec0 !important;
}

/* Light mode buttons */
body.light-mode .action-btn {
    border-color: rgba(0, 0, 0, 0.15);
    color: #4a5568;
}

body.light-mode .action-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 217, 255, 0.1);
}

/* Light mode dropdowns */
body.light-mode [id^="dropdown-"],
body.light-mode #notification-dropdown {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Light mode avatar border */
body.light-mode .avatar {
    border-color: rgba(0, 217, 255, 0.4);
}

/* Light mode badges */
body.light-mode .badge {
    background: rgba(0, 0, 0, 0.08);
}

/* Light mode logo text glow (reduced for light mode) */
body.light-mode .logo-text-glow {
    text-shadow: none;
    color: var(--neon-cyan);
}

/* Preserve gradient buttons in light mode */
body.light-mode .bg-gradient-to-r {
    /* Keep gradient buttons as-is */
}

/* Light mode code blocks */
body.light-mode pre,
body.light-mode code {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a1f3e !important;
}

/* Light mode scrollbar */
body.light-mode::-webkit-scrollbar {
    width: 10px;
}

body.light-mode::-webkit-scrollbar-track {
    background: #e8edf5;
}

body.light-mode::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.4);
    border-radius: 5px;
}

body.light-mode::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Respect prefers-reduced-motion for theme transitions */
@media (prefers-reduced-motion: no-preference) {
    body {
        transition: background-color 0.3s ease, color 0.3s ease;
    }
}