/*
Theme Name:  Cybe Hub
Author:      Cybe Hub Engineering
Description: High-Performance App-Style SPA WordPress Theme for www.cybehub.com.ng
Version:     2.0.0
Text Domain: cybe-hub
*/

/* ============================================================
   CSS DESIGN TOKENS
   ============================================================ */
:root {
    /* Backgrounds */
    --bg-primary:   #0b0f19;
    --bg-secondary: rgba(18, 24, 38, 0.88);
    --bg-card:      #0f172a;

    /* Typography */
    --text-primary:   #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted:     #6b7280;

    /* Borders */
    --border-color:   rgba(255, 255, 255, 0.08);
    --border-active:  rgba(255, 255, 255, 0.18);

    /* Accent (overridden by plugin CSS vars from WP admin) */
    --accent-color:   #0000FF;
    --accent-glow:    rgba(0, 0, 255, 0.35);
    --accent-subtle:  rgba(0, 0, 255, 0.10);
    --accent-light:   #3333ff;

    /* Strict Font Scale */
    --font-2xs: 0.65rem;   /* 10.4px */
    --font-xs:  0.75rem;   /* 12px   */
    --font-sm:  0.875rem;  /* 14px   */
    --font-md:  1rem;      /* 16px   */
    --font-lg:  1.25rem;   /* 20px   */
    --font-xl:  1.5rem;    /* 24px   */
    --font-2xl: 2rem;      /* 32px   */

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Radii */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-pill: 9999px;

    /* Motion */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Business Owner mode accent */
body.business-mode {
    --accent-color:  #e11d48;
    --accent-glow:   rgba(225, 29, 72, 0.35);
    --accent-subtle: rgba(225, 29, 72, 0.10);
    --accent-light:  #f43f5e;
}

/* Light mode */
body.light-mode {
    --bg-primary:   #f1f5f9;
    --bg-secondary: rgba(255, 255, 255, 0.92);
    --bg-card:      #e8edf4;
    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;
    --border-color:   rgba(0, 0, 0, 0.08);
    --border-active:  rgba(0, 0, 0, 0.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-md);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    /* Safe area for notched phones */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 9999;
    transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   DESIGN ENGINES: NEUMORPHISM
   ============================================================ */
body[data-general-style="neumorphism"] .content-card,
body[data-general-style="neumorphism"] .view-micro-hero {
    background: var(--bg-card);
    box-shadow:
        8px 8px 18px rgba(4, 7, 13, 0.65),
        -8px -8px 18px rgba(28, 41, 69, 0.45);
    border: none;
}

body[data-general-style="neumorphism"] .app-top-navbar,
body[data-general-style="neumorphism"] .bottom-nav-bar {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: none;
}

body.light-mode[data-general-style="neumorphism"] .content-card,
body.light-mode[data-general-style="neumorphism"] .view-micro-hero {
    background: #dde3ed;
    box-shadow:
        6px 6px 14px rgba(160, 174, 192, 0.55),
        -6px -6px 14px rgba(255, 255, 255, 0.85);
}

body.light-mode[data-general-style="neumorphism"] .app-top-navbar,
body.light-mode[data-general-style="neumorphism"] .bottom-nav-bar {
    background: #dde3ed;
    box-shadow:
        0 2px 10px rgba(160, 174, 192, 0.4),
        0 -2px 10px rgba(255, 255, 255, 0.6);
}

/* ============================================================
   DESIGN ENGINE: LIQUID GLASS (iOS)
   ============================================================ */
body[data-general-style="liquid-glass"] .content-card,
body[data-general-style="liquid-glass"] .view-micro-hero {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 16px 32px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.12);
}

body[data-general-style="liquid-glass"] .app-top-navbar,
body[data-general-style="liquid-glass"] .bottom-nav-bar {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.1);
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.app-top-navbar {
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
    z-index: 1000;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hamburger-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.brand-identity:hover { background: var(--accent-subtle); }

.brand-logo-3d {
    font-size: 1.4rem;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-weight: 800;
    font-size: var(--font-sm);
    color: var(--accent-color);
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-tagline {
    font-size: var(--font-2xs);
    color: var(--text-secondary);
    line-height: 1;
}

#theme-toggle-btn {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
#theme-toggle-btn:hover {
    background: var(--accent-subtle);
    transform: scale(1.05);
}

.avatar-ring {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    border: 2px solid var(--accent-color);
    overflow: hidden;
    cursor: pointer;
    padding: 1px;
    background: transparent;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.avatar-ring:hover {
    box-shadow: 0 0 0 4px var(--accent-subtle);
    transform: scale(1.05);
}
.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-pill);
    object-fit: cover;
}

/* ============================================================
   FLOATING AI ADMIN BADGE
   ============================================================ */
.floating-ai-badge {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    left: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-color);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: 700;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px var(--accent-glow);
    backdrop-filter: blur(12px);
}

.ai-pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: var(--radius-pill);
    animation: pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50%       { transform: scale(1.4); opacity: 1;   }
}

/* ============================================================
   RECEPTIONIST GREETING CAPSULE
   ============================================================ */
.receptionist-greeting-capsule {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: var(--font-xs);
    font-weight: 600;
    z-index: 999;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.receptionist-icon { font-size: 0.9rem; flex-shrink: 0; }

/* ============================================================
   FLOATING AI ASSISTANT BUTTON
   ============================================================ */
.floating-ai-btn {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    left: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border: none;
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.floating-ai-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}
.floating-ai-btn:active { transform: scale(0.96); }

/* ============================================================
   APP VIEWPORT
   ============================================================ */
.app-viewport {
    margin-top: calc(env(safe-area-inset-top, 0px) + 116px);
    margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 86px);
    padding: var(--space-md);
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Micro-hero */
.view-micro-hero {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
}

.view-micro-hero h1 {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 3px;
    line-height: 1.3;
}

.view-micro-hero p {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Views */
.cybe-view { display: none; }
.cybe-view.active-view { display: block; }

/* Content Card */
.content-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.content-card h2 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.content-card p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

/* CTA Button */
.cybe-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--font-sm);
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    line-height: 1;
}
.cybe-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--accent-glow);
}
.cybe-cta-btn:active { transform: translateY(0); opacity: 1; }
.cybe-cta-btn.full-width { width: 100%; margin-top: var(--space-sm); }
.cybe-cta-btn:disabled { opacity: 0.5; pointer-events: none; }

/* ============================================================
   FEEDS
   ============================================================ */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.feed-loading {
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-style: italic;
}

.feed-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.feed-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.feed-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-card);
}

.feed-card-body { padding: var(--space-sm) var(--space-md); }
.feed-card-title { font-size: var(--font-sm); font-weight: 700; margin-bottom: 4px; }
.feed-card-price { font-size: var(--font-xs); color: var(--accent-color); font-weight: 700; }

/* ============================================================
   PROFILE VIEW
   ============================================================ */
.profile-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-sm);
}
.profile-stat-row:last-of-type { border-bottom: none; }

.stat-label { color: var(--text-secondary); }
.stat-val { font-weight: 700; }

.rank-badge { color: var(--accent-color); }

.xp-bar-track {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-pill);
    margin-top: var(--space-md);
    overflow: hidden;
}
.xp-bar-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: var(--radius-pill);
    transition: width 0.6s ease;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
   CYBE AI SUITE
   ============================================================ */
.ai-suite-card {}

.groq-config-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.groq-label {
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: var(--space-sm);
}
.groq-label:first-child { padding-top: 0; }

.groq-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px var(--space-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    transition: border-color var(--transition-fast);
    width: 100%;
}
.groq-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--accent-subtle);
}
.groq-input::placeholder { color: var(--text-muted); }

.groq-status {
    font-size: var(--font-xs);
    color: #10b981;
    min-height: 1.2em;
}
.groq-status.error { color: #f43f5e; }

.iframe-container {
    width: 100%;
    height: 460px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: var(--space-lg);
}
.cybe-ai-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
}

/* ============================================================
   ARENA / LEADERBOARD
   ============================================================ */
#leaderboard-feed { margin-top: var(--space-md); }

.lb-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-sm);
}
.lb-row:last-child { border-bottom: none; }

.lb-rank { font-size: var(--font-lg); min-width: 32px; text-align: center; }
.lb-avatar { width: 36px; height: 36px; border-radius: var(--radius-pill); object-fit: cover; }
.lb-info { flex: 1; }
.lb-name { font-weight: 700; }
.lb-rank-label { font-size: var(--font-xs); color: var(--text-secondary); }
.lb-xp { font-size: var(--font-xs); font-weight: 700; color: var(--accent-color); }

/* ============================================================
   MENU VIEW
   ============================================================ */
.menu-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}
.menu-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px var(--space-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.menu-link-item:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-color);
}
a.menu-link-item.logout-link { color: #f43f5e; }
a.menu-link-item.logout-link:hover { background: rgba(244, 63, 94, 0.1); border-color: #f43f5e; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay,
.status-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-md);
    backdrop-filter: blur(4px);
}

.modal-card,
.status-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-active);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}
.modal-header h2 { font-size: var(--font-lg); font-weight: 700; }

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
    line-height: 1;
}
.close-btn:hover { background: var(--border-color); color: var(--text-primary); }

.form-group {
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-secondary);
}
.optional-tag {
    font-weight: 400;
    color: var(--text-muted);
    font-size: var(--font-2xs);
    margin-left: 4px;
}
.form-group input {
    padding: 10px var(--space-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--font-sm);
    transition: border-color var(--transition-fast), background var(--transition-fast);
    width: 100%;
    font-family: inherit;
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--accent-subtle);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-error {
    font-size: var(--font-xs);
    color: #f43f5e;
    margin-bottom: var(--space-sm);
    padding: 8px 12px;
    background: rgba(244, 63, 94, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Status modals */
.status-card {
    text-align: center;
    padding: var(--space-xl);
}
.status-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}
.status-card h3 { font-size: var(--font-lg); font-weight: 700; margin-bottom: var(--space-sm); }
.status-card p  { color: var(--text-secondary); font-size: var(--font-sm); margin-bottom: var(--space-lg); }
.status-close   { min-width: 140px; }

/* ============================================================
   BOTTOM NAVIGATION BAR
   ============================================================ */
.bottom-nav-bar {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0;
    width: 100%;
    height: 72px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    overflow: hidden;
}

.bottom-nav-scroll-container {
    display: flex;
    overflow-x: auto;
    height: 100%;
    padding: 0 var(--space-xs);
    gap: 4px;
    align-items: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.bottom-nav-scroll-container::-webkit-scrollbar { display: none; }

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    height: 100%;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    gap: 3px;
    transition: color var(--transition-fast);
}
.nav-item:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
    border-radius: var(--radius-sm);
}

.icon-3d-box {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background var(--transition-smooth),
        border-color var(--transition-smooth),
        transform var(--transition-smooth),
        box-shadow var(--transition-smooth);
}
.icon-3d-box img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    transition: filter var(--transition-smooth);
}

.nav-item span {
    font-size: var(--font-2xs);
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* ── Nav Style 1: Elastic Lift (default) ── */
body[data-nav-style="style-1"] .nav-item.active {
    color: var(--accent-color);
}
body[data-nav-style="style-1"] .nav-item.active .icon-3d-box {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.18) translateY(-5px);
    box-shadow: 0 8px 22px var(--accent-glow);
}
body[data-nav-style="style-1"] .nav-item.active .icon-3d-box img {
    filter: brightness(0) invert(1);
}

/* ── Nav Style 2: Cyber Glow Pulse ── */
body[data-nav-style="style-2"] .nav-item.active {
    color: var(--accent-color);
}
body[data-nav-style="style-2"] .nav-item.active .icon-3d-box {
    background: transparent;
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow), inset 0 0 8px var(--accent-subtle);
    animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent-glow); }
    50%       { box-shadow: 0 0 22px var(--accent-glow), 0 0 8px var(--accent-color); }
}

/* ── Nav Style 3: XP Pill Glider ── */
body[data-nav-style="style-3"] .nav-item.active {
    color: var(--accent-color);
    background: var(--accent-subtle);
    border-radius: var(--radius-pill);
}
body[data-nav-style="style-3"] .nav-item.active .icon-3d-box {
    background: var(--accent-color);
    border-color: transparent;
}
body[data-nav-style="style-3"] .nav-item.active .icon-3d-box img {
    filter: brightness(0) invert(1);
}

/* ── Nav Style 4: Neon Border ── */
body[data-nav-style="style-4"] .nav-item.active {
    color: var(--accent-color);
}
body[data-nav-style="style-4"] .nav-item.active .icon-3d-box {
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 2px var(--accent-subtle), inset 0 0 6px var(--accent-subtle);
}

/* ── Nav Style 5: Liquid Glass Active ── */
body[data-nav-style="style-5"] .nav-item.active {
    color: #fff;
}
body[data-nav-style="style-5"] .nav-item.active .icon-3d-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    @keyframes pulse { from { opacity: 1; } }
    @keyframes glowPulse { from { box-shadow: 0 0 10px var(--accent-glow); } }
}
