/* ============================================================
   NOVA THEME — Style System
   CrozenX FiveM Web Platform
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    /* These are set inline by PHP via the theme color system */
    --primary-color: #8b5cf6;
    --accent-color:  #ec4899;
    --primary-rgb:   139,92,246;
    --accent-rgb:    236,72,153;
    --theme-gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));

    /* Nova dark background system */
    --nova-bg:         #05050a;
    --nova-surface:    #0c0c15;
    --nova-surface2:   #121220;
    --nova-card:       rgba(255,255,255,0.03);
    --nova-card-hover: rgba(255,255,255,0.06);
    --nova-border:     rgba(255,255,255,0.07);
    --nova-border-hover: rgba(255,255,255,0.18);

    /* Text */
    --nova-text:       #f0f0f8;
    --nova-text-muted: rgba(255,255,255,0.45);
    --nova-text-dim:   rgba(255,255,255,0.25);

    /* Glows */
    --glow-primary: rgba(var(--primary-rgb), 0.25);
    --glow-accent:  rgba(var(--accent-rgb), 0.20);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow:   0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Navbar */
    --navbar-height: 70px;

    /* Misc */
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;
    --border-color: var(--nova-border);
    --text-muted: var(--nova-text-muted);
    --bg-color: var(--nova-bg);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--nova-bg);
    color: var(--nova-text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Desktop zoom — same as classic theme */
@media (min-width: 1024px) {
    body {
        zoom: 0.8;
        -moz-transform: scale(0.8);
        -moz-transform-origin: top center;
    }
}

/* ── Particle Canvas Background ──────────────────────────── */
#nova-particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -3;
    pointer-events: none;
}

/* Background mesh gradient */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 15% 10%, rgba(var(--primary-rgb), 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(var(--accent-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(0,0,0,0) 0%, var(--nova-bg) 100%);
    z-index: -2;
    pointer-events: none;
}

/* ── Video BG (Compatibility) ────────────────────────────── */
.video-bg-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; overflow: hidden; pointer-events: none; }
.video-bg-container video { width: 100%; height: 100%; object-fit: cover; }
.video-bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background: linear-gradient(to bottom, rgba(5,5,10,0.85) 0%, rgba(5,5,10,0.20) 15%, rgba(5,5,10,0.70) 100%);
    pointer-events: none;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Rajdhani', 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Gradient text utility */
.gradient-text {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--nova-surface); }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.7); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nova-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1rem;
    background: rgba(5,5,10,0.15);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nova-navbar.scrolled {
    background: rgba(5,5,10,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--nova-border);
    box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

/* Brand */
.nova-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}
.nova-brand:hover { transform: scale(1.03); }
.nova-brand img { height: 42px; width: auto; max-width: 250px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(var(--primary-rgb),0.4)); transition: filter var(--transition-normal); }
.nova-brand:hover img { filter: drop-shadow(0 0 12px rgba(var(--primary-rgb),0.7)); }
.nova-brand-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav links */
.nova-nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.2rem;
    margin-left: auto;
    list-style: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
.nova-nav-links li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nova-nav-link {
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}
.nova-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nova-nav-link.active { color: var(--primary-color); }
.nova-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%; height: 2px;
    background: var(--theme-gradient);
    border-radius: 2px;
    transition: transform var(--transition-normal);
}
.nova-nav-link:hover::after, .nova-nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* Dropdown */
.nova-dropdown { position: relative; }
.nova-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(12,12,21,0.97);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--primary-rgb),0.1);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
}
.nova-dropdown:hover .nova-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nova-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.nova-dropdown-item:hover { background: rgba(var(--primary-rgb),0.12); color: #fff; }
.nova-dropdown-item i { color: var(--primary-color); width: 16px; text-align: center; }

/* Nav Actions */
.nova-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

/* Hamburger (mobile) */
.nova-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition-normal);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--nova-border);
    margin-left: auto;
}
.nova-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all var(--transition-normal); }
.nova-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nova-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nova-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.nova-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5,5,10,0.97);
    backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nova-mobile-menu.open { transform: translateX(0); }
.nova-mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}
.nova-mobile-menu-link:hover { color: #fff; background: rgba(var(--primary-rgb),0.1); border-color: rgba(var(--primary-rgb),0.2); }
.nova-mobile-menu-link i { color: var(--primary-color); width: 20px; text-align: center; }
.nova-mobile-actions { margin-top: auto; display: flex; flex-direction: column; gap: 0.8rem; }

/* Mobile Back Button */
.nova-mobile-back {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.nova-mobile-back:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   STAT BAR
   ============================================================ */
.nova-stat-bar {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 2rem;
    background: rgba(5,5,10,0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nova-border);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
}
.nova-stat-bar::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: var(--theme-gradient);
    opacity: 0.4;
}

.nova-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.nova-stat-item:hover { color: #fff; }

.nova-stat-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}
.nova-stat-dot.online { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.7); animation: pulse-dot 2s infinite; }
.nova-stat-dot.offline { background: #ef4444; }

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.nova-stat-icon { font-size: 0.85rem; }
.nova-stat-icon.ems { color: #10b981; }
.nova-stat-icon.pd  { color: #60a5fa; }
.nova-stat-icon.unit { color: #f59e0b; }
.nova-stat-icon.top { color: #fbbf24; }

.nova-stat-val { font-family: 'Rajdhani', sans-serif; font-size: 0.95rem; color: #fff; font-weight: 700; }
.nova-stat-lbl { color: var(--nova-text-muted); font-size: 0.72rem; font-weight: 500; }

/* Page offset for fixed bars */
.nova-page-content {
    padding-top: calc(var(--navbar-height) + 48px);
}
.nova-page-content.no-statbar {
    padding-top: var(--navbar-height);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background var(--transition-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--theme-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb),0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(var(--primary-rgb),0.5); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid var(--nova-border-hover);
    backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.3); }

.btn-ghost { background: rgba(var(--primary-rgb),0.1); color: var(--primary-color); border: 1px solid rgba(var(--primary-rgb),0.25); }
.btn-ghost:hover { background: rgba(var(--primary-rgb),0.18); }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 100px; }

/* ============================================================
   CARDS
   ============================================================ */
.nova-card {
    background: var(--nova-card);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.nova-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),0.04), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.nova-card:hover::before { opacity: 1; }
.nova-card:hover {
    border-color: rgba(var(--primary-rgb),0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(var(--primary-rgb),0.08);
}

/* Glass card variant */
.nova-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
}

/* ============================================================
   HERO SECTION (index.php)
   ============================================================ */
.nova-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--navbar-height) + 60px);
}

.nova-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem;
    background: rgba(var(--primary-rgb),0.1);
    border: 1px solid rgba(var(--primary-rgb),0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb),0.3); }
    50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb),0); }
}

.nova-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1.0;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}
.nova-hero-title .hero-word-1 {
    background: var(--theme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(var(--primary-rgb),0.4));
}

.nova-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--nova-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.nova-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* ============================================================
   ANNOUNCEMENT (Pendulum — compatible)
   ============================================================ */
.announcement-clip-wrapper { width: 100%; overflow: hidden; position: relative; z-index: 10; }
.announcement-rope-container { display: flex; justify-content: center; position: relative; z-index: 999; padding-top: 0.8rem; width: 100%; min-height: 60px; }
.announcement-swing-box { position: relative; transform-origin: top center; animation: pendulumSwing 4s ease-in-out infinite; display: inline-flex; justify-content: center; cursor: default; }
.announcement-swing-box.falling { animation: annCollapse 0.5s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.announcement-swing-box.appearing { animation: annAppear 0.52s cubic-bezier(0, 0.55, 0.45, 1) forwards; }

@keyframes pendulumSwing { 0% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } 100% { transform: rotate(-1.5deg); } }
@keyframes annCollapse { 0% { transform: scale(1) rotate(0deg); opacity: 1; } 15% { transform: scale(1.04) rotate(-2deg); opacity: 1; } 100% { transform: scale(0) rotate(12deg); opacity: 0; } }
@keyframes annAppear { 0% { transform: scale(0) rotate(-8deg); opacity: 0; } 80% { transform: scale(1.05) rotate(1deg); opacity: 1; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

.ann-rope { position: absolute; top: -18px; width: 2px; height: 20px; background: linear-gradient(to bottom, rgba(255,255,255,0.25), rgba(255,255,255,0.07)); }
.ann-rope-left { left: 30%; }
.ann-rope-right { right: 30%; }

.announcement-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(var(--primary-rgb),0.12);
    border: 1px solid rgba(var(--primary-rgb),0.3);
    border-radius: 100px;
    padding: 0.5rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--nova-text);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb),0.15), inset 0 1px 0 rgba(255,255,255,0.06);
    max-width: 90vw;
}
.ann-icon { color: var(--primary-color); animation: iconPulse 2s ease-in-out infinite; }
@keyframes iconPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.ann-dots { display: flex; gap: 5px; margin-left: 0.4rem; }
.ann-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); transition: all 0.3s; cursor: pointer; }
.ann-dot.active { background: var(--primary-color); box-shadow: 0 0 6px rgba(var(--primary-rgb),0.6); }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.nova-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.nova-feature-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.nova-feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--theme-gradient);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}
.nova-feature-card:hover {
    border-color: rgba(var(--primary-rgb),0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.04);
}
.nova-feature-card:hover::after { transform: scaleX(1); }

.nova-feature-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    background: rgba(var(--primary-rgb),0.1);
    border: 1px solid rgba(var(--primary-rgb),0.2);
    transition: all var(--transition-normal);
}
.nova-feature-card:hover .nova-feature-icon {
    background: rgba(var(--primary-rgb),0.2);
    box-shadow: 0 0 20px rgba(var(--primary-rgb),0.3);
    transform: scale(1.1);
}
.nova-feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.nova-feature-card p { font-size: 0.82rem; color: var(--nova-text-muted); line-height: 1.6; }

/* ============================================================
   GALLERY / IMAGE SLIDER
   ============================================================ */
.nova-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--nova-border);
}
.nova-gallery-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.nova-gallery-slide { flex: 0 0 100%; }
.nova-gallery-slide img { width: 100%; height: 400px; object-fit: cover; }
.nova-gallery-btn {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(5,5,10,0.8);
    border: 1px solid var(--nova-border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #fff; font-size: 0.9rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(8px);
}
.nova-gallery-btn:hover { background: var(--primary-color); border-color: var(--primary-color); transform: translateY(-50%) scale(1.1); }
.nova-gallery-btn.prev { left: 16px; }
.nova-gallery-btn.next { right: 16px; }
.nova-gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 1rem; }
.nova-gallery-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nova-border-hover); cursor: pointer; transition: all 0.3s; }
.nova-gallery-dot.active { background: var(--primary-color); width: 20px; border-radius: 4px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.nova-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.nova-section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.nova-section-header .overline {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}
.nova-section-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.nova-section-header p { color: var(--nova-text-muted); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* Divider line */
.nova-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--nova-border), transparent);
    margin: 1rem 0;
}

/* ============================================================
   SHOP / PRODUCTS
   ============================================================ */
.nova-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}
.nova-product-card {
    background: var(--nova-card);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.nova-product-card:hover {
    border-color: rgba(var(--primary-rgb),0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.nova-product-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--nova-surface2); position: relative; }
.nova-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.nova-product-card:hover .nova-product-thumb img { transform: scale(1.08); }
.nova-product-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.nova-product-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem; border-radius: 100px;
    background: rgba(var(--primary-rgb),0.12); color: var(--primary-color);
    border: 1px solid rgba(var(--primary-rgb),0.2);
    margin-bottom: 0.6rem; width: fit-content;
}
.nova-product-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.nova-product-desc { font-size: 0.78rem; color: var(--nova-text-muted); flex: 1; line-height: 1.5; margin-bottom: 1rem; }
.nova-product-footer { display: flex; align-items: center; justify-content: space-between; }
.nova-product-price { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--primary-color); }

/* ============================================================
   FORMS (Login, Register, etc.)
   ============================================================ */
.nova-form-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
}
.nova-form-box {
    width: 100%;
    max-width: 440px;
    background: rgba(12,12,21,0.9);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--primary-rgb),0.05);
}
.nova-form-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.nova-form-logo img { height: 50px; margin-bottom: 0.8rem; }
.nova-form-logo h2 { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; font-weight: 800; }
.nova-form-logo p { font-size: 0.82rem; color: var(--nova-text-muted); margin-top: 0.3rem; }

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--nova-border);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    color: var(--nova-text);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-fast);
    outline: none;
}
.form-control:focus { border-color: rgba(var(--primary-rgb),0.5); background: rgba(var(--primary-rgb),0.05); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1); }
.form-control::placeholder { color: var(--nova-text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.nova-profile-banner { height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--theme-gradient); position: relative; }
.nova-profile-banner img { width: 100%; height: 100%; object-fit: cover; }
.nova-profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--nova-bg); overflow: hidden; position: relative; }
.nova-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TABLES
   ============================================================ */
.nova-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--nova-border); }
.nova-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.nova-table thead { background: rgba(var(--primary-rgb),0.08); }
.nova-table th { padding: 0.9rem 1.2rem; text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-color); border-bottom: 1px solid var(--nova-border); }
.nova-table td { padding: 0.85rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.85); }
.nova-table tr:last-child td { border-bottom: none; }
.nova-table tbody tr:hover { background: rgba(var(--primary-rgb),0.04); }

/* ============================================================
   BADGES / TAGS
   ============================================================ */
.nova-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.7rem; border-radius: 100px; font-size: 0.72rem; font-weight: 700; }
.nova-badge-primary { background: rgba(var(--primary-rgb),0.15); color: var(--primary-color); border: 1px solid rgba(var(--primary-rgb),0.25); }
.nova-badge-success { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.nova-badge-danger  { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.nova-badge-warning { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.nova-badge-info    { background: rgba(6,182,212,0.12); color: #06b6d4; border: 1px solid rgba(6,182,212,0.25); }

/* Alert blocks */
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-size: 0.88rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; border: 1px solid transparent; }
.alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #10b981; }
.alert-danger   { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #ef4444; }
.alert-warning  { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.25); color: #f59e0b; }
.alert-info     { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.25); color: #06b6d4; }

/* ============================================================
   FOOTER
   ============================================================ */
.nova-footer {
    position: relative;
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--nova-border);
    overflow: hidden;
}
.nova-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--theme-gradient);
    opacity: 0.4;
}
.nova-footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.nova-footer-brand {}
.nova-footer-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.nova-footer-logo img { height: 36px; }
.nova-footer-logo span { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; background: var(--theme-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nova-footer-desc { font-size: 0.82rem; color: var(--nova-text-muted); line-height: 1.7; max-width: 280px; margin-bottom: 1.5rem; }
.nova-social-links { display: flex; gap: 0.6rem; }
.nova-social-btn {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--nova-card);
    border: 1px solid var(--nova-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--nova-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}
.nova-social-btn:hover { background: rgba(var(--primary-rgb),0.15); color: var(--primary-color); border-color: rgba(var(--primary-rgb),0.3); transform: translateY(-2px); }

.nova-footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.2rem; }
.nova-footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.nova-footer-link { font-size: 0.85rem; color: var(--nova-text-muted); transition: color var(--transition-fast); text-decoration: none; display: flex; align-items: center; gap: 0.4rem; }
.nova-footer-link:hover { color: #fff; }
.nova-footer-link::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--primary-rgb),0.5); flex-shrink: 0; }

.nova-footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.78rem;
    color: var(--nova-text-dim);
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 80px; /* mobile bottom nav clearance */
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 980;
    background: rgba(5,5,10,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--nova-border);
    padding: 0.4rem 0.5rem;
    gap: 0.2rem;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0.4rem);
}
.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--nova-text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 1;
}
.mobile-bottom-nav a i { font-size: 1.1rem; transition: transform var(--transition-normal); }
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--primary-color); }
.mobile-bottom-nav a.active i,
.mobile-bottom-nav a:hover i { transform: translateY(-2px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   BALANCE BADGE (navbar)
   ============================================================ */
.nova-balance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 100px;
    background: rgba(var(--primary-rgb),0.1);
    border: 1px solid rgba(var(--primary-rgb),0.25);
    color: var(--nova-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}
.nova-balance-badge:hover { background: rgba(var(--primary-rgb),0.18); }
.nova-balance-badge i { color: var(--primary-color); }

/* Compat: Legacy class aliases used in PHP pages */
.balance-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 100px; background: rgba(var(--primary-rgb),0.1); border: 1px solid rgba(var(--primary-rgb),0.25); color: var(--nova-text); font-size: 0.82rem; font-weight: 600; text-decoration: none; transition: all var(--transition-fast); }
.balance-badge:hover { background: rgba(var(--primary-rgb),0.18); }
.balance-badge i { color: var(--primary-color); }

/* ============================================================
   PAGINATION
   ============================================================ */
.nova-pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; }
.nova-page-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--nova-card); border: 1px solid var(--nova-border); color: var(--nova-text-muted); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition-fast); text-decoration: none; }
.nova-page-btn:hover { background: rgba(var(--primary-rgb),0.1); color: var(--primary-color); border-color: rgba(var(--primary-rgb),0.3); }
.nova-page-btn.active { background: var(--theme-gradient); color: #fff; border-color: transparent; }

/* ============================================================
   WIKI / CHARACTER CARDS
   ============================================================ */
.nova-char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.nova-char-card { background: var(--nova-card); border: 1px solid var(--nova-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-slow); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.nova-char-card:hover { border-color: rgba(var(--primary-rgb),0.35); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.nova-char-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--nova-surface2); }
.nova-char-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nova-char-card:hover .nova-char-photo img { transform: scale(1.06); }
.nova-char-info { padding: 0.9rem; }
.nova-char-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.2rem; }
.nova-char-meta { font-size: 0.75rem; color: var(--nova-text-muted); }

/* ============================================================
   WHEEL (Çarkıfelek)
   ============================================================ */
.nova-wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 2rem; }

/* ============================================================
   NOTIFICATION TOASTS
   ============================================================ */
#notif-container { position: fixed; top: 80px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@keyframes notif-slide-in  { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes notif-slide-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.notif-toast { pointer-events: all; min-width: 320px; max-width: 380px; background: rgba(10,10,20,.97); border: 1px solid rgba(var(--primary-rgb),.3); border-radius: 16px; padding: 1rem 1.2rem; display: flex; align-items: flex-start; gap: 0.9rem; animation: notif-slide-in .35s cubic-bezier(.22,1,.36,1); font-size: .87rem; box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px rgba(var(--primary-rgb),.05); }
.notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.notif-body { flex: 1; }
.notif-title { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.notif-msg { color: rgba(255,255,255,.65); line-height: 1.4; }
.notif-close { background: none; border: none; color: rgba(255,255,255,.35); cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; flex-shrink: 0; transition: color .15s; }
.notif-close:hover { color: #fff; }

/* ============================================================
   DESKTOP ONLY / MOBILE ONLY
   ============================================================ */
.desktop-only { display: initial; }
.mobile-only  { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nova-nav-links { display: none; }
    .nova-nav-actions .desktop-only { display: none; }
    .nova-hamburger { display: flex; }
    .nova-mobile-back { display: flex; }
    .nova-stat-bar { gap: 1rem; font-size: 0.72rem; overflow-x: auto; justify-content: flex-start; padding: 0.5rem 1rem; }
    .nova-stat-item .nova-stat-lbl { display: none; }
    .nova-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .mobile-bottom-nav { display: flex; }
    .desktop-only { display: none; }
    .mobile-only  { display: initial; }
    .nova-page-content { padding-top: calc(var(--navbar-height) + 44px); }
    .nova-footer-bottom { padding-bottom: 80px; }
}

@media (max-width: 600px) {
    .nova-hero-title { font-size: clamp(2.2rem, 12vw, 4rem); }
    .nova-hero-actions { gap: 0.8rem; }
    .nova-section { padding: 3rem 1rem; }
    .nova-form-box { padding: 1.8rem 1.2rem; }
}

/* ============================================================
   SPONSOR BANNER
   ============================================================ */
.sponsor-banner-container { background: rgba(5,5,10,0.8); padding: 8px 12px; display: flex; justify-content: center; gap: 12px; border-bottom: 1px solid var(--nova-border); position: fixed; top: var(--navbar-height); left: 0; right: 0; z-index: 995; backdrop-filter: blur(10px); }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--nova-text-muted); }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.w-full { width: 100%; }

/* ============================================================
   NOVA HERO WORD COLOR (compatible with PHP hero-word-1)
   ============================================================ */
.hero-word-1, .hero-word-1 .hl {
    background: var(--theme-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
