/**
 * Blueva Design System - Design Tokens
 * Professional Neotech Design System
 * 
 * This file contains all design tokens including colors, spacing, typography,
 * and theming variables. It's framework-agnostic and can be used across
 * different implementations (HTML/CSS, React, Vue, PHP templates, etc.)
 */

:root {
  /* ========================================
     COLOR PALETTE - NEOTECH PROFESSIONAL
     ======================================== */
  
  /* Primary Brand Colors */
  --color-brand-cyan: #06b6d4;
  --color-brand-blue: #3b82f6;
  --color-brand-dark-blue: #1d4ed8;
  
  /* Neutral Colors - Dark Theme Base */
  --color-neutral-900: #0a0a0a;
  --color-neutral-800: #1a1a1a;
  --color-neutral-700: #2a2a2a;
  --color-neutral-600: #3a3a3a;
  --color-neutral-500: #5a5a5a;
  --color-neutral-400: #7a7a7a;
  --color-neutral-300: #9a9a9a;
  --color-neutral-200: #c0c0c0;
  --color-neutral-100: #e0e0e0;
  --color-neutral-50: #f5f5f5;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-dark: #059669;
  --color-warning: #f59e0b;
  --color-warning-dark: #d97706;
  --color-error: #ef4444;
  --color-error-dark: #dc2626;
  --color-info: #3b82f6;
  --color-info-dark: #2563eb;
  
  /* Status Colors */
  --color-featured: #fbbf24;
  --color-featured-dark: #f59e0b;
  --color-free: #10b981;
  --color-legacy: #6b7280;
  --color-coming-soon: #9ca3af;
  
  /* ========================================
     THEME VARIABLES - DARK (DEFAULT)
     ======================================== */
  
  --theme-bg-primary: #000000;
  --theme-bg-secondary: rgba(15, 23, 42, 0.8);
  --theme-bg-tertiary: rgba(30, 41, 59, 0.6);
  --theme-bg-elevated: rgba(15, 23, 42, 0.95);
  
  --theme-text-primary: #ffffff;
  --theme-text-secondary: rgba(255, 255, 255, 0.8);
  --theme-text-tertiary: rgba(255, 255, 255, 0.6);
  --theme-text-muted: rgba(255, 255, 255, 0.4);
  
  --theme-border-subtle: rgba(59, 130, 246, 0.2);
  --theme-border-medium: rgba(59, 130, 246, 0.3);
  --theme-border-strong: rgba(59, 130, 246, 0.5);
  
  --theme-accent-primary: var(--color-brand-cyan);
  --theme-accent-secondary: var(--color-brand-blue);
  
  --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --theme-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --theme-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  
  /* Glassmorphism */
  --theme-glass-bg: rgba(15, 23, 42, 0.7);
  --theme-glass-border: rgba(148, 163, 184, 0.2);
  --theme-glass-blur: 18px;
  
  /* ========================================
     SPACING SYSTEM - 8px BASE
     ======================================== */
  
  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* ========================================
     TYPOGRAPHY SYSTEM
     ======================================== */
  
  /* Font Families */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", "Courier New", monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */
  --text-7xl: 4.5rem;      /* 72px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* ========================================
     LAYOUT & CONTAINERS
     ======================================== */
  
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  --navbar-height: 64px;
  --navbar-height-compact: 56px;
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px */
  --radius-3xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* ========================================
     TRANSITIONS & ANIMATIONS
     ======================================== */
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ========================================
     Z-INDEX LAYERS
     ======================================== */
  
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;
  --z-navbar: 9999;
  
  /* ========================================
     GRADIENTS
     ======================================== */
  
  --gradient-brand: linear-gradient(135deg, var(--color-brand-cyan) 0%, var(--color-brand-blue) 50%, var(--color-brand-dark-blue) 100%);
  --gradient-brand-alt: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-brand-cyan) 50%, var(--color-brand-dark-blue) 100%);
  --gradient-success: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
  --gradient-warning: linear-gradient(135deg, var(--color-warning) 0%, var(--color-warning-dark) 100%);
  
  /* ========================================
     BLUR & EFFECTS
     ======================================== */
  
  --blur-sm: 8px;
  --blur-md: 12px;
  --blur-lg: 16px;
  --blur-xl: 24px;
}

/* ========================================
   LIGHT THEME
   ======================================== */

[data-theme="light"] {
  --theme-bg-primary: #ffffff;
  --theme-bg-secondary: rgba(248, 250, 252, 0.95);
  --theme-bg-tertiary: rgba(241, 245, 249, 0.9);
  --theme-bg-elevated: rgba(255, 255, 255, 0.98);
  
  --theme-text-primary: #0f172a;
  --theme-text-secondary: rgba(15, 23, 42, 0.8);
  --theme-text-tertiary: rgba(15, 23, 42, 0.6);
  --theme-text-muted: rgba(15, 23, 42, 0.4);
  
  --theme-border-subtle: rgba(59, 130, 246, 0.15);
  --theme-border-medium: rgba(59, 130, 246, 0.25);
  --theme-border-strong: rgba(59, 130, 246, 0.4);
  
  --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --theme-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --theme-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  --theme-glass-bg: rgba(255, 255, 255, 0.8);
  --theme-glass-border: rgba(148, 163, 184, 0.3);
  --theme-glass-blur: 16px;
}

/* ========================================
   AUTO THEME (Respects system preference)
   ======================================== */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: rgba(248, 250, 252, 0.95);
    --theme-bg-tertiary: rgba(241, 245, 249, 0.9);
    --theme-bg-elevated: rgba(255, 255, 255, 0.98);
    
    --theme-text-primary: #0f172a;
    --theme-text-secondary: rgba(15, 23, 42, 0.8);
    --theme-text-tertiary: rgba(15, 23, 42, 0.6);
    --theme-text-muted: rgba(15, 23, 42, 0.4);
    
    --theme-border-subtle: rgba(59, 130, 246, 0.15);
    --theme-border-medium: rgba(59, 130, 246, 0.25);
    --theme-border-strong: rgba(59, 130, 246, 0.4);
    
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --theme-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --theme-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    --theme-glass-bg: rgba(255, 255, 255, 0.8);
    --theme-glass-border: rgba(148, 163, 184, 0.3);
    --theme-glass-blur: 16px;
  }
}

/* ========================================
   UTILITY CLASSES - BASE
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-lg {
  max-width: var(--container-2xl);
}

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for accessibility */
.focus-visible:focus-visible {
  outline: 2px solid var(--theme-accent-primary);
  outline-offset: 2px;
}
/**
 * Base Styles & Reset
 * Professional foundation for the Blueva design system
 */

/* ========================================
   RESET & NORMALIZATION
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background-color: var(--theme-bg-primary);
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--theme-text-primary);
  background: var(--theme-bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Add padding for fixed navbar */
body {
  padding-top: var(--navbar-height);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
}

h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
}

h3 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
}

h4 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
}

h5 {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
}

h6 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
}

p {
  margin-bottom: var(--space-4);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--theme-accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--theme-accent-secondary);
}

strong, b {
  font-weight: var(--font-semibold);
}

em, i:not(.icon) {
  font-style: italic;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--theme-bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--theme-text-primary);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--theme-bg-tertiary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  border: 1px solid var(--theme-border-subtle);
}

pre code {
  background: transparent;
  padding: 0;
}

/* ========================================
   LISTS
   ======================================== */

ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--theme-text-secondary);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

/* ========================================
   IMAGES & MEDIA
   ======================================== */

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  fill: currentColor;
}

/* ========================================
   BUTTONS
   ======================================== */

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ========================================
   FORMS
   ======================================== */

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--theme-accent-primary);
  outline-offset: 2px;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent-secondary);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent-primary) var(--theme-bg-secondary);
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
  background: var(--theme-accent-primary);
  color: white;
}

::-moz-selection {
  background: var(--theme-accent-primary);
  color: white;
}

/* ========================================
   FOCUS VISIBLE (ACCESSIBILITY)
   ======================================== */

*:focus-visible {
  outline: 2px solid var(--theme-accent-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ========================================
   REDUCED MOTION (ACCESSIBILITY)
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================
   HIGH CONTRAST MODE (ACCESSIBILITY)
   ======================================== */

@media (prefers-contrast: high) {
  :root {
    --theme-border-subtle: var(--theme-border-strong);
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing utilities */
.mt-0 { margin-top: var(--space-0); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: var(--space-0); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--theme-text-primary); }
.text-secondary { color: var(--theme-text-secondary); }
.text-tertiary { color: var(--theme-text-tertiary); }
.text-muted { color: var(--theme-text-muted); }

/* Display utilities */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Max width utilities */
.max-w-full { max-width: 100%; }
.max-w-screen-sm { max-width: var(--container-sm); }
.max-w-screen-md { max-width: var(--container-md); }
.max-w-screen-lg { max-width: var(--container-lg); }
.max-w-screen-xl { max-width: var(--container-xl); }
.max-w-screen-2xl { max-width: var(--container-2xl); }

/* Responsive utilities */
@media (max-width: 768px) {
  .hidden-mobile { display: none; }
}

@media (min-width: 769px) {
  .hidden-desktop { display: none; }
}

/* ========================================
   TEXT GRADIENT
   ======================================== */

.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   VIDEO CONTAINER
   ======================================== */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: var(--theme-bg-secondary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--theme-shadow-xl);
}

.video-container iframe,
.video-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
/**
 * Unified Navigation Bar Component
 * Professional, fixed navbar with glassmorphism on scroll
 * Replaces the large header + bottom menu pattern
 */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--theme-bg-elevated);
  border-bottom: 1px solid var(--theme-border-subtle);
  z-index: var(--z-navbar);
  transition: all var(--transition-base);
}

/* Glassmorphism state when scrolled */
.navbar--scrolled {
  background: var(--theme-glass-bg);
  backdrop-filter: blur(var(--theme-glass-blur));
  -webkit-backdrop-filter: blur(var(--theme-glass-blur));
  border-bottom-color: var(--theme-glass-border);
  box-shadow: var(--theme-shadow-md);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-2xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo Section */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--theme-text-primary);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.8;
}

.navbar__logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar__logo-text {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
}

/* Navigation Links */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--theme-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  position: relative;
}

.navbar__link:hover {
  color: var(--theme-text-primary);
  background: var(--theme-bg-tertiary);
}

.navbar__link--active {
  color: var(--theme-accent-primary);
  background: rgba(6, 182, 212, 0.1);
}

.navbar__link--active:hover {
  background: rgba(6, 182, 212, 0.15);
}

.navbar__link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Actions Section (Right side) */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* CTA Button */
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--gradient-brand);
  color: white;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

/* Theme Toggle */
.navbar__theme-toggle {
  display: flex;
  align-items: center;
  padding: var(--space-2);
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--theme-text-secondary);
}

.navbar__theme-toggle:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
  color: var(--theme-text-primary);
}

.navbar__theme-icon {
  width: 20px;
  height: 20px;
}

/* User Area */
.navbar__user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.navbar__user-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--theme-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.navbar__user-button:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
  color: var(--theme-text-primary);
}

.navbar__user-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

/* Notifications */
.navbar__notifications {
  position: relative;
}

.navbar__notifications-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--theme-text-secondary);
}

.navbar__notifications-button:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
  color: var(--theme-text-primary);
}

.navbar__notifications-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-error);
  color: white;
  font-size: 10px;
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--theme-bg-primary);
}

/* Mobile Menu Toggle */
.navbar__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--theme-text-secondary);
}

.navbar__mobile-toggle:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
}

.navbar__mobile-toggle-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Menu */
.navbar__mobile-menu {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--theme-bg-elevated);
  padding: var(--space-6);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
  z-index: calc(var(--z-navbar) - 1);
}

.navbar__mobile-menu--open {
  transform: translateX(0);
}

.navbar__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.navbar__mobile-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  color: var(--theme-text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
}

.navbar__mobile-link:hover {
  color: var(--theme-text-primary);
  background: var(--theme-bg-tertiary);
}

.navbar__mobile-link--active {
  color: var(--theme-accent-primary);
  background: rgba(6, 182, 212, 0.1);
}

.navbar__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--theme-border-subtle);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .navbar__nav {
    display: none;
  }
  
  .navbar__mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .navbar__container {
    padding: 0 var(--space-4);
  }
  
  .navbar__cta {
    display: none;
  }
  
  .navbar__logo-text {
    display: none;
  }
}

/* Accessibility - Keyboard Navigation */
.navbar__link:focus-visible,
.navbar__cta:focus-visible,
.navbar__theme-toggle:focus-visible,
.navbar__user-button:focus-visible,
.navbar__notifications-button:focus-visible,
.navbar__mobile-toggle:focus-visible {
  outline: 2px solid var(--theme-accent-primary);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.navbar__skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--theme-accent-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: calc(var(--z-navbar) + 1);
}

.navbar__skip-link:focus {
  top: var(--space-2);
}
/**
 * Reusable Component Library
 * Professional, consistent components for the Blueva design system
 */

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button variants */
.btn--primary {
  background: var(--gradient-brand);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.btn--secondary {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
  border-color: var(--theme-border-subtle);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--theme-bg-secondary);
  border-color: var(--theme-border-medium);
}

.btn--outline {
  background: transparent;
  color: var(--theme-text-primary);
  border-color: var(--theme-border-strong);
}

.btn--outline:hover:not(:disabled) {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-accent-primary);
  color: var(--theme-accent-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--theme-text-secondary);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-primary);
}

.btn--success {
  background: var(--gradient-success);
  color: white;
}

.btn--warning {
  background: var(--gradient-warning);
  color: white;
}

.btn--danger {
  background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
  color: white;
}

/* Button sizes */
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--full {
  width: 100%;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--theme-border-medium);
  box-shadow: var(--theme-shadow-lg);
}

.card__header {
  margin-bottom: var(--space-4);
}

.card__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-2);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--theme-text-tertiary);
}

.card__body {
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
}

.card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--theme-border-subtle);
}

/* Card variants */
.card--elevated {
  background: var(--theme-bg-elevated);
  box-shadow: var(--theme-shadow-md);
}

.card--interactive {
  cursor: pointer;
}

.card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-shadow-xl);
}

.card--featured {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.card--featured:hover::before {
  opacity: 1;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge--primary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-brand-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge--success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge--warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge--error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--neutral {
  background: var(--theme-bg-tertiary);
  color: var(--theme-text-secondary);
  border: 1px solid var(--theme-border-subtle);
}

.badge--featured {
  background: var(--gradient-warning);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge--free {
  background: var(--gradient-success);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge--category {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-brand-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge--sale {
  background: var(--gradient-error, linear-gradient(135deg, #ef4444, #dc2626));
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ========================================
   INPUTS & FORMS
   ======================================== */

.input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--theme-text-primary);
  background: var(--theme-bg-tertiary);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.input:hover {
  border-color: var(--theme-border-medium);
}

.input:focus {
  outline: none;
  border-color: var(--theme-accent-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.input::placeholder {
  color: var(--theme-text-muted);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 20px;
  padding-right: var(--space-10);
}

/* ========================================
   SECTION CONTAINERS
   ======================================== */

.section {
  padding: var(--space-20) 0;
}

.section--sm {
  padding: var(--space-12) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--text-xl);
  color: var(--theme-text-secondary);
  max-width: 42rem;
  margin: 0 auto;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   VIDEO CONTAINER
   ======================================== */

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--theme-bg-secondary);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  height: 1px;
  background: var(--theme-border-subtle);
  margin: var(--space-8) 0;
}

.divider--gradient {
  background: linear-gradient(90deg, transparent, var(--theme-border-medium), transparent);
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--theme-border-subtle);
  border-top-color: var(--theme-accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   TOOLTIP
   ======================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip__content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: var(--theme-bg-elevated);
  color: var(--theme-text-primary);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  box-shadow: var(--theme-shadow-lg);
  border: 1px solid var(--theme-border-subtle);
  z-index: var(--z-tooltip);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */

.glass {
  background: var(--theme-glass-bg);
  backdrop-filter: blur(var(--theme-glass-blur));
  -webkit-backdrop-filter: blur(var(--theme-glass-blur));
  border: 1px solid var(--theme-glass-border);
}

.glass--strong {
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--theme-bg-secondary);
  border-top: 1px solid var(--theme-border-subtle);
  padding: var(--space-20) 0 var(--space-8);
}

.footer__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-16);
}

.footer__brand {
  max-width: 400px;
}

.footer__logo {
  width: 80px;
  height: auto;
  margin-bottom: var(--space-4);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  opacity: 1;
}

.footer__description {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--theme-text-primary);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-2);
}

.footer__disclaimer {
  font-size: var(--text-xs);
  color: var(--theme-text-tertiary);
  line-height: var(--leading-relaxed);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
}

.footer__column-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--theme-text-secondary);
  text-decoration: none;
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--theme-accent-primary);
}

/* Footer responsive styles */
@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer__links {
    grid-template-columns: 1fr;
  }
}
/**
 * Store Page Styles
 * Professional product browsing with filtering
 */

/* ========================================
   STORE HEADER
   ======================================== */

.store-header {
  padding: var(--space-20) 0 var(--space-12);
  text-align: center;
  background: linear-gradient(180deg, var(--theme-bg-secondary) 0%, var(--theme-bg-primary) 100%);
}

.store-header__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.store-header__description {
  font-size: var(--text-xl);
  color: var(--theme-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   FILTERS BAR
   ======================================== */

.store-filters {
  padding: var(--space-8) 0;
  background: var(--theme-bg-primary);
  border-bottom: 1px solid var(--theme-border-subtle);
  position: sticky;
  top: var(--navbar-height);
  z-index: var(--z-sticky);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  color: var(--theme-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
  color: var(--theme-text-primary);
}

.filter-btn--active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(59, 130, 246, 0.15));
  border-color: var(--theme-accent-primary);
  color: var(--theme-accent-primary);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--theme-bg-tertiary);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-lg);
  min-width: 280px;
  transition: all var(--transition-fast);
}

.search-box:focus-within {
  border-color: var(--theme-accent-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-box svg {
  color: var(--theme-text-tertiary);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--theme-text-primary);
  font-size: var(--text-sm);
  outline: none;
}

.search-input::placeholder {
  color: var(--theme-text-muted);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.store-products {
  padding: var(--space-16) 0;
}

.products-section {
  margin-bottom: var(--space-20);
}

.products-section:last-child {
  margin-bottom: 0;
}

.products-section__header {
  margin-bottom: var(--space-8);
}

.products-section__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-2);
}

.products-section__title a {
  color: inherit;
  text-decoration: none;
}

.products-section__subtitle {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
  margin-bottom: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--theme-bg-secondary);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  text-decoration: none;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(59, 130, 246, 0.03) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--theme-border-medium);
  box-shadow: var(--theme-shadow-lg);
}

/* Badge positioning */
.product-card__badges {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
  z-index: 2;
}

/* Image */
.product-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--theme-bg-tertiary);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

/* Content */
.product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card__name {
  color: var(--theme-accent-primary);
}

.product-card__description {
  font-size: var(--text-sm);
  color: var(--theme-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  flex: 1;
}

/* Meta info */
.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--theme-border-subtle);
}

.product-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--theme-text-tertiary);
}

.product-card__meta-item svg {
  width: 14px;
  height: 14px;
}

/* Footer */
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
  color: var(--theme-accent-primary);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all var(--transition-fast);
}

.product-card:hover .product-card__cta {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
}

.product-card__cta svg {
  width: 16px;
  height: 16px;
}

/* Card variants */
.product-card--featured {
  border-color: rgba(251, 191, 36, 0.3);
}

.product-card--featured::before {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.product-card--coming-soon {
  opacity: 0.7;
}

.product-card--coming-soon:hover {
  transform: none;
  cursor: not-allowed;
}

/* Hidden state for filtering */
.product-card--hidden {
  display: none;
}

/* Empty state */
.products-empty {
  text-align: center;
  padding: var(--space-20) 0;
}

.products-empty__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--theme-text-muted);
}

.products-empty__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-2);
}

.products-empty__description {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .store-header {
    padding: var(--space-16) 0 var(--space-8);
  }
  
  .store-header__title {
    font-size: 2.5rem;
  }
  
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    justify-content: center;
  }
  
  .search-box {
    min-width: auto;
    width: 100%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .store-filters {
    position: relative;
    top: 0;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    flex: 1;
    justify-content: center;
  }
  
  .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .product-card__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.4s ease-out backwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .product-card {
    animation: none;
  }
}

/* ==========================================================================
   NAMELESSMC SPECIFIC OVERRIDES
   These styles override Fomantic UI defaults to match the Blueva concept design.
   Everything above is a direct copy from the concept site CSS files.
   ========================================================================== */

/* --- NamelessMC Body & Pusher: Make transparent so our background shows --- */
body.blueva-theme {
  font-family: var(--font-primary) !important;
  background: var(--theme-bg-primary) !important;
  background-color: var(--theme-bg-primary) !important;
  color: var(--theme-text-primary) !important;
  padding-top: var(--navbar-height) !important;
  padding-bottom: 0 !important;
}

/* Remove any Fomantic UI pusher/wrapper backgrounds that cause white areas */
body.blueva-theme .pusher,
body.blueva-theme.pushable > .pusher,
body.blueva-theme > .pusher,
body.blueva-theme .pushable > .pusher,
body.blueva-theme #wrapper,
body.blueva-theme .wrapper,
body.blueva-theme main,
body.blueva-theme #main-content,
body.blueva-theme .page-content,
body.blueva-theme .store-products,
body.blueva-theme .products-section {
  background: transparent !important;
  background-color: transparent !important;
}

/* --- Remove Blueva1 animated background (particles + gradients) --- */
.blueva-background,
.blueva-gradient-overlay,
.blueva-particles,
.blueva-particle {
  display: none !important;
}

/* --- Fomantic UI general resets for our theme --- */
body.blueva-theme .ui.segment {
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: none !important;
  color: var(--theme-text-primary) !important;
}

/* ========================================================================
   PAGE CONTENT LAYOUT
   All NamelessMC pages render content after {include navbar.tpl}.
   These rules constrain page-level content to a centered max-width layout.
   
   Uses descendant selectors (not >) to work even if NamelessMC's runtime
   injects wrapper elements (e.g. .pusher, #wrapper).
   
   Fomantic UI's .ui.container sets fixed `width` at breakpoints, so we
   must override `width` (not just `max-width`) to take control.
   ======================================================================== */

/* --- ALL top-level .ui.container elements --- */
/* This is the primary wrapper used by category, changelog, versions, reviews,
   and most resource sub-pages. Override Fomantic's fixed width. */
body.blueva-theme .ui.container {
  width: auto !important;
  max-width: var(--container-2xl) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
  background: transparent !important;
}

/* --- Top-level segments (resource overview, profile header) --- */
body.blueva-theme > .ui.padded.segment,
body.blueva-theme > .ui.segment,
body.blueva-theme .pusher > .ui.padded.segment,
body.blueva-theme .pusher > .ui.segment,
body.blueva-theme .pusher > #wrapper > .ui.padded.segment,
body.blueva-theme .pusher > #wrapper > .ui.segment {
  width: auto !important;
  max-width: var(--container-2xl) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: var(--space-8) !important;
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-2xl) !important;
}

/* --- Top-level grids (user settings #user, profile #profile) --- */
body.blueva-theme > .ui.grid#user,
body.blueva-theme > .ui.grid#profile,
body.blueva-theme .pusher > .ui.grid#user,
body.blueva-theme .pusher > .ui.grid#profile,
body.blueva-theme .pusher > #wrapper > .ui.grid#user,
body.blueva-theme .pusher > #wrapper > .ui.grid#profile {
  width: auto !important;
  max-width: var(--container-2xl) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
  margin-bottom: var(--space-8) !important;
}

/* --- Top-level headers (user pages: settings, messaging, alerts, members) --- */
body.blueva-theme > h2.ui.header,
body.blueva-theme .pusher > h2.ui.header,
body.blueva-theme .pusher > #wrapper > h2.ui.header {
  width: auto !important;
  max-width: var(--container-2xl) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--space-8) !important;
  padding-right: var(--space-8) !important;
}

/* Vertical spacing for all page-level elements */
body.blueva-theme > .ui.container,
body.blueva-theme > .ui.padded.segment,
body.blueva-theme > .ui.segment,
body.blueva-theme > .ui.grid,
body.blueva-theme > h2.ui.header,
body.blueva-theme > .ui.centered.row {
  margin-top: var(--space-6) !important;
  margin-bottom: var(--space-4) !important;
}

/* === NESTED ELEMENT RESETS ===
   Prevent the .ui.container rule above from affecting nested containers
   inside segments, grids, footer, etc. These need tighter selectors. */

/* Containers nested inside segments: no extra padding/width constraint */
body.blueva-theme .ui.segment .ui.container,
body.blueva-theme .ui.padded.segment .ui.container {
  max-width: none !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

/* Containers inside footer: footer has its own layout */
body.blueva-theme footer .ui.container,
body.blueva-theme .footer .ui.container {
  max-width: var(--container-2xl) !important;
  width: auto !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

/* Containers inside the navbar: no constraint */
body.blueva-theme .navbar .ui.container,
body.blueva-theme nav .ui.container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Grids inside containers/segments: no page-level constraint */
body.blueva-theme .ui.container .ui.grid,
body.blueva-theme .ui.segment .ui.grid,
body.blueva-theme .ui.padded.segment .ui.grid {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Segments nested inside containers (changelog/versions/reviews inner content) */
body.blueva-theme .ui.container > .ui.padded.segment,
body.blueva-theme .ui.container > .ui.segment {
  width: auto !important;
  max-width: none !important;
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-2xl) !important;
}

/* Headers inside containers/segments/grids: no page-level constraint */
body.blueva-theme .ui.container .ui.header,
body.blueva-theme .ui.segment .ui.header,
body.blueva-theme .ui.grid .ui.header {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.blueva-theme .ui.grid {
  background: transparent !important;
}

body.blueva-theme .ui.menu {
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}

body.blueva-theme .ui.menu .item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.menu .active.item {
  color: var(--theme-accent-primary) !important;
  background: rgba(6, 182, 212, 0.1) !important;
}

body.blueva-theme .ui.menu .item:hover {
  color: var(--theme-text-primary) !important;
  background: var(--theme-bg-tertiary) !important;
}

/* Fomantic buttons */
body.blueva-theme .ui.button {
  background: var(--theme-bg-tertiary) !important;
  color: var(--theme-text-primary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-primary) !important;
  transition: all var(--transition-fast) !important;
}

body.blueva-theme .ui.button:hover {
  background: var(--theme-bg-secondary) !important;
  border-color: var(--theme-border-medium) !important;
}

body.blueva-theme .ui.primary.button,
body.blueva-theme .ui.blue.button {
  background: var(--gradient-brand) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3) !important;
}

body.blueva-theme .ui.primary.button:hover,
body.blueva-theme .ui.blue.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4) !important;
}

body.blueva-theme .ui.green.button {
  background: var(--gradient-success) !important;
  color: white !important;
  border: none !important;
}

body.blueva-theme .ui.teal.button {
  background: var(--gradient-brand) !important;
  color: white !important;
  border: none !important;
}

/* Form inputs */
body.blueva-theme .ui.input > input,
body.blueva-theme .ui.form input[type="text"],
body.blueva-theme .ui.form input[type="email"],
body.blueva-theme .ui.form input[type="password"],
body.blueva-theme .ui.form input[type="url"],
body.blueva-theme .ui.form input[type="number"],
body.blueva-theme .ui.form textarea,
body.blueva-theme .ui.form select {
  background: var(--theme-bg-tertiary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  color: var(--theme-text-primary) !important;
  border-radius: var(--radius-lg) !important;
  font-family: var(--font-primary) !important;
}

body.blueva-theme .ui.input > input:focus,
body.blueva-theme .ui.form input:focus,
body.blueva-theme .ui.form textarea:focus {
  border-color: var(--theme-accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important;
}

/* Form text contrast (supports both dark and light themes) */
body.blueva-theme .ui.form .field > label,
body.blueva-theme .ui.form .inline.field > label,
body.blueva-theme .ui.form .inline.fields > label,
body.blueva-theme .ui.checkbox label,
body.blueva-theme .ui.checkbox + label,
body.blueva-theme .ui.radio.checkbox label,
body.blueva-theme .ui.horizontal.divider {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.horizontal.divider:before,
body.blueva-theme .ui.horizontal.divider:after {
  border-top-color: var(--theme-border-subtle) !important;
}


/* Ensure plain headings and helper text stay theme-aware on account/resources forms */
body.blueva-theme #user-settings .ui.form,
body.blueva-theme #login .ui.form,
body.blueva-theme #login .ui.horizontal.divider,
body.blueva-theme .ui.container .ui.padded.segment > h2:not(.ui.header),
body.blueva-theme .ui.container .ui.padded.segment > h3:not(.ui.header),
body.blueva-theme .ui.container .ui.segment > h2:not(.ui.header),
body.blueva-theme .ui.container .ui.segment > h3:not(.ui.header) {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme #user-settings .ui.form .field > label,
body.blueva-theme #login .ui.form .field > label,
body.blueva-theme #user-settings .ui.checkbox label,
body.blueva-theme #login .ui.checkbox label,
body.blueva-theme #user-settings .ui.radio.checkbox label,
body.blueva-theme #login .ui.radio.checkbox label {
  color: var(--theme-text-secondary) !important;
}

/* Labels */
body.blueva-theme .ui.label {
  background: var(--theme-bg-tertiary) !important;
  color: var(--theme-text-primary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-full) !important;
}

/* Dividers */
body.blueva-theme .ui.divider {
  border-color: var(--theme-border-subtle) !important;
}

/* Headers */
body.blueva-theme .ui.header {
  color: var(--theme-text-primary) !important;
  font-family: var(--font-heading) !important;
}

/* Messages */
body.blueva-theme .ui.message {
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  color: var(--theme-text-primary) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: none !important;
}

body.blueva-theme .ui.negative.message,
body.blueva-theme .ui.error.message {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

body.blueva-theme .ui.positive.message,
body.blueva-theme .ui.success.message {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

body.blueva-theme .ui.info.message {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Cards */
body.blueva-theme .ui.card,
body.blueva-theme .ui.cards > .card {
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-2xl) !important;
  box-shadow: none !important;
  color: var(--theme-text-primary) !important;
}

/* Tables */
body.blueva-theme .ui.table {
  background: var(--theme-bg-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  color: var(--theme-text-primary) !important;
  border-radius: var(--radius-xl) !important;
}

body.blueva-theme .ui.table thead th {
  background: var(--theme-bg-tertiary) !important;
  color: var(--theme-text-primary) !important;
  border-color: var(--theme-border-subtle) !important;
}

body.blueva-theme .ui.table td {
  border-color: var(--theme-border-subtle) !important;
  color: var(--theme-text-primary) !important;
}

/* Modals */
body.blueva-theme .ui.modal {
  background: var(--theme-bg-elevated) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-2xl) !important;
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.modal > .header {
  background: transparent !important;
  color: var(--theme-text-primary) !important;
  border-bottom: 1px solid var(--theme-border-subtle) !important;
}

body.blueva-theme .ui.modal > .content {
  background: transparent !important;
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.modal > .actions {
  background: transparent !important;
  border-top: 1px solid var(--theme-border-subtle) !important;
}

/* Dropdowns */
body.blueva-theme .ui.dropdown .menu {
  background: var(--theme-bg-elevated) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--theme-shadow-lg) !important;
}

body.blueva-theme .ui.dropdown .menu > .item {
  color: var(--theme-text-secondary) !important;
  border: none !important;
}

body.blueva-theme .ui.dropdown .menu > .item:hover {
  background: var(--theme-bg-tertiary) !important;
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.dropdown .menu > .header {
  color: var(--theme-text-primary) !important;
}

/* Pagination */
body.blueva-theme .ui.pagination.menu .item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.pagination.menu .active.item {
  background: var(--gradient-brand) !important;
  color: white !important;
}

/* Tabular menu */
body.blueva-theme .ui.tabular.menu {
  border-bottom-color: var(--theme-border-subtle) !important;
}

body.blueva-theme .ui.tabular.menu .item {
  border: none !important;
  color: var(--theme-text-secondary) !important;
  background: transparent !important;
}

body.blueva-theme .ui.tabular.menu .active.item {
  color: var(--theme-accent-primary) !important;
  border-bottom: 2px solid var(--theme-accent-primary) !important;
  background: transparent !important;
}

/* Lists */
body.blueva-theme .ui.list .item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.list .header {
  color: var(--theme-text-primary) !important;
}

/* Text & links */
body.blueva-theme a {
  color: var(--theme-accent-primary);
}

body.blueva-theme a:hover {
  color: var(--theme-accent-secondary);
}

/* Breadcrumb */
body.blueva-theme .ui.breadcrumb {
  color: var(--theme-text-tertiary) !important;
}

body.blueva-theme .ui.breadcrumb a {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.breadcrumb .active.section {
  color: var(--theme-text-primary) !important;
}

/* Accordion */
body.blueva-theme .ui.accordion .title {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.accordion .content {
  color: var(--theme-text-secondary) !important;
}

/* Forum-specific */
body.blueva-theme .forum_post {
  background: transparent !important;
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .forum_post img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

/* Star rating */
body.blueva-theme .star-rating span {
  color: var(--color-featured) !important;
  cursor: pointer;
}

/* --- Search box form inside search-box --- */
.search-box form {
  display: contents;
}

/* --- Alias: template uses product-grid, concept uses products-grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* --- Product card stats (template uses product-card__stats / product-stat) --- */
.product-card__stats {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--theme-border-subtle);
}

.product-stat {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--theme-text-tertiary);
}

.product-stat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* --- Product card header (version badge) --- */
.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.product-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: 0;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card:hover .product-card__title a {
  color: var(--theme-accent-primary);
}

.product-card__version {
  font-size: var(--text-xs);
  color: var(--theme-text-tertiary);
  background: var(--theme-bg-tertiary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

/* --- Price styling --- */
.price--current {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price--original {
  font-size: var(--text-sm);
  color: var(--color-error);
  text-decoration: line-through;
  margin-right: var(--space-2);
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: var(--space-20) 0;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--theme-text-muted);
  display: block;
}

.empty-state__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--theme-text-primary);
  margin-bottom: var(--space-2);
}

.empty-state__description {
  font-size: var(--text-base);
  color: var(--theme-text-secondary);
}

/* --- Navbar link override: only active link gets accent color --- */
.navbar__link {
  color: var(--theme-text-secondary) !important;
}

.navbar__link:hover {
  color: var(--theme-text-primary) !important;
}

.navbar__link--active,
.navbar__link--active:hover {
  color: var(--theme-accent-primary) !important;
}

/* --- Footer link colors: concept uses --theme-text-secondary, not accent --- */
.footer__link {
  color: var(--theme-text-secondary) !important;
}

.footer__link:hover {
  color: var(--theme-accent-primary) !important;
}

/* --- Sort Dropdown Override --- */
body.blueva-theme #sort-dropdown {
  display: inline-flex !important;
  align-items: center !important;
  gap: var(--space-2) !important;
  background: transparent !important;
  color: var(--theme-text-secondary) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  font-size: var(--text-sm) !important;
  font-weight: var(--font-medium) !important;
  padding: var(--space-2) var(--space-4) !important;
  box-shadow: none !important;
}

body.blueva-theme #sort-dropdown:hover {
  background: var(--theme-bg-secondary) !important;
  border-color: var(--theme-border-medium) !important;
  color: var(--theme-text-primary) !important;
}

body.blueva-theme #sort-dropdown .menu {
  background: var(--theme-bg-elevated) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--theme-shadow-lg) !important;
}

body.blueva-theme #sort-dropdown .menu .item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme #sort-dropdown .menu .item:hover {
  background: var(--theme-bg-tertiary) !important;
  color: var(--theme-text-primary) !important;
}

/* --- NamelessMC User Section (floating below navbar, popup pattern) --- */
.nameless-user-section {
  position: fixed;
  top: calc(var(--navbar-height) + var(--space-2));
  right: var(--space-4);
  z-index: calc(var(--z-navbar) - 1);
  background: var(--theme-bg-elevated);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2);
  backdrop-filter: blur(var(--theme-glass-blur));
  -webkit-backdrop-filter: blur(var(--theme-glass-blur));
  box-shadow: var(--theme-shadow-lg);
}

.nameless-user-section #user-section-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* User section buttons */
.user-section-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--theme-text-secondary);
  background: transparent;
  border: 1px solid var(--theme-border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.user-section-btn:hover {
  background: var(--theme-bg-tertiary);
  border-color: var(--theme-border-medium);
  color: var(--theme-text-primary);
}

.user-section-btn--icon {
  padding: var(--space-2);
}

.user-section-btn--icon i.icon {
  margin: 0 !important;
  font-size: 1rem;
}

.user-section-btn--primary {
  background: var(--gradient-brand);
  color: white;
  border-color: transparent;
}

.user-section-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--theme-shadow-md);
  color: white;
}

.user-section-btn--account {
  border: none;
}

/* Constrain avatar image inside account button */
.user-section-btn--account img {
  width: 28px !important;
  height: 28px !important;
  border-radius: var(--radius-full);
  object-fit: cover;
}

/* Popup styling for user section (messages, alerts, account) */
body.blueva-theme .ui.popup {
  background: var(--theme-bg-elevated) !important;
  border: 1px solid var(--theme-border-subtle) !important;
  color: var(--theme-text-primary) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--theme-shadow-lg) !important;
}

body.blueva-theme .ui.popup::before {
  background: var(--theme-bg-elevated) !important;
  border-color: var(--theme-border-subtle) !important;
}

body.blueva-theme .ui.popup .ui.header {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.popup .ui.list .item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.popup .ui.list .item:hover {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.popup .ui.divider {
  border-color: var(--theme-border-subtle) !important;
}

body.blueva-theme .ui.popup .ui.list a.item {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.popup .ui.list a.item:hover {
  color: var(--theme-accent-primary) !important;
}

/* Responsive: on small screens */
@media (max-width: 768px) {
  .nameless-user-section {
    top: calc(var(--navbar-height-compact) + var(--space-2));
    right: var(--space-2);
    padding: var(--space-1);
  }
}

/* --- Sidebar --- */
.resources-sidebar {
  display: none;
}

/* ==========================================================================
   DARK MODE TEXT COLOR FIXES
   Fomantic UI has hardcoded dark text colors. Override ALL text-bearing 
   elements to use theme variables so text is visible in dark mode.
   ========================================================================== */

/* Text color inside Fomantic UI components (scoped to avoid unintended overrides) */
body.blueva-theme .ui.segment,
body.blueva-theme .ui.container,
body.blueva-theme .ui.grid,
body.blueva-theme .ui.card,
body.blueva-theme .ui.list,
body.blueva-theme .ui.items,
body.blueva-theme .ui.table,
body.blueva-theme .ui.feed,
body.blueva-theme .ui.comments {
  color: var(--theme-text-primary) !important;
}

/* Statistics (views, downloads, ratings) */
body.blueva-theme .ui.statistic > .value,
body.blueva-theme .ui.statistic > .label,
body.blueva-theme .ui.statistics .statistic > .value,
body.blueva-theme .ui.statistics .statistic > .label {
  color: var(--theme-text-primary) !important;
}

/* Sub headers and meta text (dates, category, description snippets) */
body.blueva-theme .sub.header,
body.blueva-theme .ui.sub.header {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .meta,
body.blueva-theme .ui.meta,
body.blueva-theme .item .meta,
body.blueva-theme .content .meta {
  color: var(--theme-text-tertiary) !important;
}

body.blueva-theme .description,
body.blueva-theme .item .description,
body.blueva-theme .content .description {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .extra,
body.blueva-theme .item .extra,
body.blueva-theme .content .extra {
  color: var(--theme-text-tertiary) !important;
}

/* Items list (resource listings, profile items) */
body.blueva-theme .ui.items > .item > .content > .header {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.items > .item > .content > .meta {
  color: var(--theme-text-tertiary) !important;
}

body.blueva-theme .ui.items > .item > .content > .description {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.items > .item > .content > .extra {
  color: var(--theme-text-tertiary) !important;
}

/* Feed (activity, updates) */
body.blueva-theme .ui.feed > .event > .content .summary,
body.blueva-theme .ui.feed > .event > .content .date,
body.blueva-theme .ui.feed > .event > .content .extra {
  color: var(--theme-text-secondary) !important;
}

/* Comments */
body.blueva-theme .ui.comments .comment .author,
body.blueva-theme .ui.comments .comment .text {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.comments .comment .metadata {
  color: var(--theme-text-tertiary) !important;
}

/* Profile page specific */
body.blueva-theme .ui.card > .content,
body.blueva-theme .ui.card > .content > .header,
body.blueva-theme .ui.cards > .card > .content > .header {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.card > .content > .meta,
body.blueva-theme .ui.cards > .card > .content > .meta,
body.blueva-theme .ui.card > .content > .description,
body.blueva-theme .ui.cards > .card > .content > .description {
  color: var(--theme-text-secondary) !important;
}

body.blueva-theme .ui.card > .extra.content,
body.blueva-theme .ui.cards > .card > .extra.content {
  color: var(--theme-text-tertiary) !important;
  border-top-color: var(--theme-border-subtle) !important;
}

/* Segment text (resource detail sections) */
body.blueva-theme .ui.segment p,
body.blueva-theme .ui.segment span,
body.blueva-theme .ui.segment .header,
body.blueva-theme .ui.segment .sub.header {
  color: var(--theme-text-primary) !important;
}

body.blueva-theme .ui.segment .meta,
body.blueva-theme .ui.segment .description {
  color: var(--theme-text-secondary) !important;
}

/* Tables - hover state */
body.blueva-theme .ui.table tr:hover td {
  background: var(--theme-bg-tertiary) !important;
}

/* Label detail text */
body.blueva-theme .ui.label .detail {
  color: var(--theme-text-secondary) !important;
}

/* Colored labels should keep their colors */
body.blueva-theme .ui.primary.label,
body.blueva-theme .ui.blue.label {
  background: var(--theme-accent-primary) !important;
  color: white !important;
}

body.blueva-theme .ui.green.label {
  background: var(--color-success) !important;
  color: white !important;
}

body.blueva-theme .ui.red.label {
  background: var(--color-error) !important;
  color: white !important;
}

body.blueva-theme .ui.yellow.label,
body.blueva-theme .ui.orange.label {
  background: var(--color-warning) !important;
  color: #0f172a !important;
}

/* User section popup labels (notification counts) should stay red */
body.blueva-theme .user-section-btn .ui.label,
body.blueva-theme .nameless-user-section .ui.label {
  background: var(--color-error) !important;
  color: white !important;
}

/* --- Scrollbar styling --- */
body.blueva-theme ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.blueva-theme ::-webkit-scrollbar-track {
  background: var(--theme-bg-secondary);
}

body.blueva-theme ::-webkit-scrollbar-thumb {
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
}

body.blueva-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--theme-accent-secondary);
}

/* Selection */
body.blueva-theme ::selection {
  background: var(--theme-accent-primary);
  color: white;
}

/* Fix Fomantic UI icon rendering - the base.css reset overrides icon font-style */
body.blueva-theme i.icon,
body.blueva-theme i[class*="icon"] {
  font-family: Icons !important;
  font-style: normal !important;
  font-weight: normal !important;
  text-decoration: inherit !important;
  -webkit-font-smoothing: antialiased !important;
  display: inline-block !important;
  speak: none !important;
  backface-visibility: hidden;
}


/* Resources payment UI dark-mode contrast fixes */
body.dark #user .ui.form .field > label,
body.dark #user .ui.form .ui.checkbox label,
body.dark #user .ui.form .ui.checkbox + label,
body.dark #user .ui.form .ui.radio.checkbox label,
body.dark .ui.container .ui.padded.segment .ui.form .ui.radio.checkbox label,
body.dark .ui.container .ui.padded.segment .ui.form .field > label,
[data-theme="dark"] #user .ui.form .field > label,
[data-theme="dark"] #user .ui.form .ui.checkbox label,
[data-theme="dark"] #user .ui.form .ui.checkbox + label,
[data-theme="dark"] #user .ui.form .ui.radio.checkbox label,
[data-theme="dark"] .ui.container .ui.padded.segment .ui.form .ui.radio.checkbox label,
[data-theme="dark"] .ui.container .ui.padded.segment .ui.form .field > label {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.dark #user .ui.form .ui.dividing.header,
body.dark .ui.container .ui.padded.segment .ui.form > .field > label:first-child,
[data-theme="dark"] #user .ui.form .ui.dividing.header,
[data-theme="dark"] .ui.container .ui.padded.segment .ui.form > .field > label:first-child {
  color: #ffffff !important;
}
