/**
 * ═══════════════════════════════════════════════════════════════════════════
 * VELLUNOX OFFICIAL THEME
 * Clean, Modern, Professional Design
 * Cyan/Purple gradient accents on dark background
 * ═══════════════════════════════════════════════════════════════════════════
 */

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

/* ═══════════════════════════════════════════════════════════════════════════
   CSS VARIABLES - Official Vellunox Colors
   UNIVERSAL THEME SYSTEM v2.0 - Better Contrast & Readability
   Last Updated: 2026-02-12
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  /* Primary Colors - Brighter for better visibility */
  --primary: #22d3ee;
  --primary-light: #67e8f9;
  --primary-dark: #06b6d4;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #4ade80;
  --success-light: #86efac;
  --warning: #fbbf24;
  --warning-light: #fcd34d;
  --danger: #f87171;
  --danger-light: #fca5a5;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #22d3ee, #f59e0b);
  --gradient-text: linear-gradient(135deg, #22d3ee, #f59e0b);
  --gradient-glow: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(0, 119, 182, 0.2));
  --gradient-gold: linear-gradient(135deg, #fbbf24, #f59e0b);
  
  /* Backgrounds - Slightly lighter for better contrast */
  --bg-dark: #0d1117;
  --bg-primary: #0d1117;
  --bg-card: #161b22;
  --bg-secondary: #1c2128;
  --bg-elevated: #262c36;
  --bg-hover: #30363d;
  
  /* Text Colors - Higher contrast for readability */
  --text-primary: #f0f6fc;
  --text-secondary: #c9d1d9;
  --text-muted: #8b949e;
  --text-bright: #ffffff;
  
  /* Borders - More visible */
  --border: rgba(48, 54, 61, 0.8);
  --border-light: rgba(48, 54, 61, 1);
  --border-hover: rgba(34, 211, 238, 0.5);
  --border-accent: rgba(34, 211, 238, 0.3);
  
  /* Effects */
  --glow: 0 0 20px rgba(34, 211, 238, 0.3);
  --glow-strong: 0 0 40px rgba(34, 211, 238, 0.5);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  /* Typography - Better readability */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  /* Font Sizes - BIGGER & BOLDER for impact */
  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;
  --text-5xl: 4.5rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   4K HDR / P3 WIDE-GAMUT COLOR PALETTE
   Unlocks richer, more vibrant colors on displays that support Display P3
   (Apple Retina, modern OLED panels, 4K HDR monitors).
   sRGB values in :root above serve as the universal fallback.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (color-gamut: p3) {
  :root {
    --primary: color(display-p3 0.08 0.84 0.95);
    --primary-light: color(display-p3 0.35 0.92 0.98);
    --primary-dark: color(display-p3 0.01 0.72 0.85);
    --accent: color(display-p3 0.98 0.65 0.02);
    --accent-light: color(display-p3 0.99 0.78 0.12);
    --success: color(display-p3 0.22 0.88 0.52);
    --success-light: color(display-p3 0.48 0.94 0.68);
    --warning: color(display-p3 0.99 0.78 0.12);
    --warning-light: color(display-p3 0.99 0.84 0.28);
    --danger: color(display-p3 0.98 0.42 0.42);
    --danger-light: color(display-p3 0.99 0.62 0.62);

    --gradient-primary: linear-gradient(135deg, color(display-p3 0.08 0.84 0.95), color(display-p3 0.98 0.65 0.02));
    --gradient-text: linear-gradient(135deg, color(display-p3 0.08 0.84 0.95), color(display-p3 0.98 0.65 0.02));
    --gradient-glow: linear-gradient(135deg, color(display-p3 0.08 0.84 0.95 / 0.2), color(display-p3 0 0.47 0.72 / 0.2));
    --gradient-gold: linear-gradient(135deg, color(display-p3 0.99 0.78 0.12), color(display-p3 0.98 0.65 0.02));

    --border-hover: color(display-p3 0.08 0.84 0.95 / 0.5);
    --border-accent: color(display-p3 0.08 0.84 0.95 / 0.3);

    --glow: 0 0 20px color(display-p3 0.08 0.84 0.95 / 0.3);
    --glow-strong: 0 0 40px color(display-p3 0.08 0.84 0.95 / 0.5);
  }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BASE STYLES - Universal Application
   ═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Account for fixed header */
body.has-header {
  padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
h2 { font-size: var(--text-4xl); font-weight: 700; }
h3 { font-size: var(--text-3xl); font-weight: 700; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: var(--text-base);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Better text selection */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: var(--text-bright);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════════════════════════════════ */
.gradient-text,
h1 span,
.hero h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINERS
   ═══════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS - Enhanced Visibility
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-bright);
}

.card-body {
  color: var(--text-secondary);
}

.card-footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS - Clear & Accessible
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  letter-spacing: 0.01em;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #000;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
  color: #000;
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(34, 211, 238, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--primary);
  background: rgba(34, 211, 238, 0.05);
}

.btn-success {
  background: var(--success);
  color: #000;
  font-weight: 700;
}

.btn-success:hover {
  background: var(--success-light);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
}

.btn-danger:hover {
  background: var(--danger-light);
}

.btn-warning {
  background: var(--warning);
  color: #000;
  font-weight: 700;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS - Better Readability
   ═══════════════════════════════════════════════════════════════════════════ */
input,
textarea,
select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Checkbox & Radio improvements */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLES - Better Readability
   ═══════════════════════════════════════════════════════════════════════════ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

th {
  text-align: left;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-light);
}

td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-base);
  color: var(--text-primary);
}

tr:hover {
  background: var(--bg-hover);
}

/* Zebra striping for better row distinction */
tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(0, 212, 255, 0.15);
  color: var(--primary);
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 80px 20px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRIDS
   ═══════════════════════════════════════════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ICON BOXES
   ═══════════════════════════════════════════════════════════════════════════ */
.icon-box {
  width: 60px;
  height: 60px;
  background: var(--gradient-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
}

.icon-box.lg {
  width: 80px;
  height: 80px;
}

.icon-box.lg svg {
  width: 36px;
  height: 36px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LISTS
   ═══════════════════════════════════════════════════════════════════════════ */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS
   ═══════════════════════════════════════════════════════════════════════════ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ALERTS / NOTICES
   ═══════════════════════════════════════════════════════════════════════════ */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-info {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--primary);
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════════════════ */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════════════════ */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-elevated) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--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; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LOGO/EMBLEM SYSTEM - Perfect Fit for Any Space
   Natural proportions preserved (emblem is shield shape, not square)
   ═══════════════════════════════════════════════════════════════════════════ */
.logo img,
.nav-logo img,
.sidebar-header img,
header .logo img,
nav .logo img,
.header .logo img,
footer .logo img,
.footer .logo img,
img[src*="vellunox-emblem"],
img[src*="vellunox-logo"] {
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block;
}

/* Logo container sizes - use these classes to control logo size */
.logo, .vx-logo, .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img, .nav-logo img {
  width: 42px !important;
  height: auto !important;
}

/* VX header logo — larger, natural aspect ratio (shield shape) */
.vx-logo img {
  height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Sidebar logo */
.sidebar .logo img,
.sidebar-header img {
  width: 40px !important;
  height: auto !important;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

/* Header/Nav logo */
header .logo img,
nav .logo img,
.header .logo img {
  width: 44px !important;
  height: auto !important;
}

/* Hero/large logo */
.hero .logo img,
.logo-lg img,
.logo.large img {
  width: 80px !important;
  height: 80px !important;
}

/* Small logo variant */
.logo-sm img,
.logo.small img {
  width: 32px !important;
  height: 32px !important;
}

/* Favicon/tiny */
.logo-xs img {
  width: 24px !important;
  height: 24px !important;
}

/* Footer logo - proportional to header (88px); footer 64px for consistency */
footer .logo img,
.footer .logo img,
.vx-footer-logo img {
  width: 64px !important;
  height: 64px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AI HINTS SYSTEM - Subtle, Non-Intrusive Tips
   ═══════════════════════════════════════════════════════════════════════════ */
.vx-hint {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 320px;
  background: linear-gradient(135deg, rgba(10, 10, 18, 0.95), rgba(18, 18, 26, 0.98));
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 212, 255, 0.1);
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.vx-hint.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vx-hint-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.vx-hint-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.vx-hint-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.vx-hint-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.vx-hint-close:hover {
  opacity: 1;
  color: var(--danger);
}

.vx-hint-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vx-hint-action {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.vx-hint-action:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.vx-hint-dismiss {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
}

.vx-hint-dismiss:hover {
  color: var(--text-secondary);
}

/* Progress bar for auto-dismiss */
.vx-hint-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 0 0 12px 12px;
  animation: hintProgress 8s linear forwards;
}

@keyframes hintProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Stacked hints */
.vx-hint:nth-child(2) { bottom: 100px; }
.vx-hint:nth-child(3) { bottom: 180px; }

/* ═══════════════════════════════════════════════════════════════════════════
   UNIVERSAL CONTRAST FIXES - Apply to all pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* Ensure all text has good contrast */
body, html {
  color: var(--text-primary);
}

/* Secondary text should still be readable */
.text-secondary,
.text-muted,
[class*="muted"],
[class*="secondary"] {
  color: var(--text-secondary) !important;
}

/* Links always visible */
a:not(.btn) {
  color: var(--primary);
}

a:not(.btn):hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Better list readability */
ul, ol {
  color: var(--text-secondary);
}

li {
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

/* Code blocks */
code, pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--primary);
}

code {
  padding: 0.2em 0.4em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* Small text should still be readable */
small, .small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Better placeholder text */
::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD SPECIFIC - Common patterns
   ═══════════════════════════════════════════════════════════════════════════ */

/* Stat cards */
.stat-value, 
[class*="stat-value"],
[class*="metric-value"] {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-bright);
}

.stat-label,
[class*="stat-label"],
[class*="metric-label"] {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Section headers */
.section-title,
[class*="section-title"] {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: var(--space-4);
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  color: var(--text-muted);
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

/* Loading states */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - GLOBAL CROSS-PLATFORM SUPPORT
   Breakpoints: Mobile (<640px), Tablet (640-1024px), Desktop (>1024px)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base mobile-first typography */
html {
  font-size: 16px;
}

/* Large screens - slightly larger base */
@media (min-width: 1400px) {
  html {
    font-size: 17px;
  }
}

/* Small screens - slightly smaller to fit more content */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TABLET RESPONSIVE (640px - 1024px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Reduce padding on containers */
  .container,
  [class*="container"] {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Grid columns adjust */
  .grid-cols-4,
  [class*="grid-cols-4"] {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3,
  [class*="grid-cols-3"] {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Hero sections */
  .hero-headline,
  [class*="hero"] h1 {
    font-size: 2.5rem;
  }
  
  /* Flex layouts stack */
  .flex-row-tablet-stack {
    flex-direction: column;
  }
  
  /* Hide elements on tablet */
  .hide-tablet {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (<640px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Tighter padding on mobile */
  .container,
  [class*="container"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Single column grids */
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2,
  [class*="grid-cols"] {
    grid-template-columns: 1fr;
  }
  
  /* Smaller hero text */
  .hero-headline,
  [class*="hero"] h1,
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Full width buttons on mobile */
  .btn-mobile-full,
  .cta-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  /* Stack flex items */
  .flex-mobile-stack,
  .flex-row {
    flex-direction: column;
  }
  
  /* Hide elements on mobile */
  .hide-mobile {
    display: none !important;
  }
  
  /* Show elements only on mobile */
  .show-mobile {
    display: block !important;
  }
  
  /* Smaller stat values */
  .stat-value,
  [class*="stat-value"] {
    font-size: 1.75rem;
  }
  
  /* Card spacing */
  .card,
  [class*="card"] {
    padding: 1rem;
  }
  
  /* Video containers maintain aspect ratio */
  .video-card,
  [class*="video"] {
    min-height: 200px;
  }
  
  /* Navigation adjustments */
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Modal and popup sizing */
  .modal,
  .popup,
  [class*="modal"] {
    width: 95%;
    max-width: 95%;
    margin: 1rem;
  }
  
  /* Table horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  /* Pricing cards stack */
  .pricing-grid,
  [class*="pricing"] {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Feature grids */
  .feature-grid,
  [class*="feature"] {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERY SMALL SCREENS (<400px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  html {
    font-size: 14px;
  }
  
  .hero-headline,
  h1 {
    font-size: 1.75rem;
  }
  
  /* Extra tight padding */
  .container,
  [class*="container"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  /* Smaller buttons */
  .btn,
  button,
  [class*="btn"] {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LARGE DESKTOP (>1400px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-headline,
  h1 {
    font-size: 5rem;
    font-weight: 800;
  }
  
  /* More grid columns for large screens */
  .grid-cols-4-xl {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid-cols-5-xl {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  nav, footer, .chat-widget, .no-print {
    display: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY - REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════ */
@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
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-contrast: high) {
  :root {
    --border: #fff;
    --text-secondary: #fff;
    --text-muted: #ccc;
  }
  
  .card,
  [class*="card"] {
    border-width: 2px;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE PREFERENCE (already dark, but ensure consistency)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: light) {
  /* Site is dark-themed by design, but respect system preference */
  body.force-light {
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: #ffffff;
    --text-bright: #111827;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOUCH DEVICE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  button,
  .btn,
  [class*="btn"],
  a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects that don't work on touch */
  .hover-lift:hover,
  .hover-glow:hover {
    transform: none;
  }
  
  /* Active states instead of hover */
  .btn:active,
  button:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAFE AREAS (iPhone notch, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer,
  .bottom-nav,
  .chat-widget {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
  
  .header,
  .top-nav {
    padding-top: env(safe-area-inset-top);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME CONSISTENCY HELPERS - Use classes, not forced overrides
   These provide consistent styling when applied, without breaking page layouts
   ═══════════════════════════════════════════════════════════════════════════ */

/* Consistent button styling - use .vx-btn class */
.vx-btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  cursor: pointer;
}

.vx-btn-primary {
  background: var(--gradient-primary);
  color: var(--text-bright);
  border: none;
}

.vx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

/* Consistent card styling - use .vx-card class */
.vx-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}

/* Consistent form styling - use .vx-input class */
.vx-input {
  font-family: var(--font-body);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.vx-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

/* Section spacing utilities */
.vx-section {
  padding: 80px 20px;
}

.vx-section-sm {
  padding: 40px 20px;
}

.vx-section-lg {
  padding: 120px 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   THEME VERSION & SYSTEM INFO
   Last Updated: 2026-02-13
   Version: 2.2.0
   Changes: Added theme enforcement for cross-page consistency
   ═══════════════════════════════════════════════════════════════════════════ */
