/* ============================================================
   GameToolsHQ � Premium Dark Theme Design System v4.0
   ============================================================ */

/* === CSS Variables / Design Tokens === */
:root {
  /* Core palette � deeper, richer darks */
  --bg-primary: #080c16;
  --bg-secondary: #0c1222;
  --bg-tertiary: #111827;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-glass: rgba(15, 23, 42, 0.45);
  --bg-glass-strong: rgba(15, 23, 42, 0.75);
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.07);

  /* Surfaces */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-raised: rgba(255, 255, 255, 0.06);
  --surface-overlay: rgba(8, 12, 22, 0.92);

  /* Borders */
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(139, 92, 246, 0.5);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Brand colors � Cyan ? Violet ? Pink */
  --primary: #8B5CF6;
  --primary-light: #A78BFA;
  --primary-dark: #7C3AED;
  --primary-glow: rgba(139, 92, 246, 0.35);

  --secondary: #06B6D4;
  --secondary-light: #22D3EE;
  --secondary-dark: #0891B2;

  --accent: #EC4899;
  --accent-light: #F472B6;

  /* Status */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #06B6D4;
  --info-bg: rgba(6, 182, 212, 0.1);

  /* Gradients � tri-tone brand signature */
  --gradient-primary: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 50%, #EC4899 100%);
  --gradient-warm: linear-gradient(135deg, #EC4899 0%, #F59E0B 100%);
  --gradient-cool: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
  --gradient-fire: linear-gradient(135deg, #EF4444 0%, #EC4899 100%);
  --gradient-aurora: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 35%, #EC4899 70%, #F59E0B 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(6,182,212,0.1) 0%, rgba(139,92,246,0.1) 50%, rgba(236,72,153,0.1) 100%);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Shadows � deeper, more premium */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-glow-lg: 0 0 60px var(--primary-glow);
  --shadow-colored: 0 8px 30px rgba(139, 92, 246, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Orbitron', 'Inter', sans-serif;

  /* Animation � snappier */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 350ms;

  /* Layout */
  --max-width: 1280px;
  --header-height: 72px;

  /* Z-index layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 500;
  --z-toast: 700;
  --z-tooltip: 800;
  --z-widget: 900;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.9);
  --bg-hover: rgba(0, 0, 0, 0.03);
  --bg-active: rgba(0, 0, 0, 0.06);
  --surface: rgba(0, 0, 0, 0.03);
  --surface-raised: rgba(0, 0, 0, 0.05);
  --surface-overlay: rgba(255, 255, 255, 0.97);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-colored: 0 8px 30px rgba(139, 92, 246, 0.08);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; background-color: transparent; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }

/* === FIX: Select/Option dropdown white backgrounds === */
select,
select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}
[data-theme="light"] select,
[data-theme="light"] select option {
  background-color: #ffffff;
  color: #1a1d26;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-secondary) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* === Utility Classes === */
.container { width: min(var(--max-width), calc(100vw - 40px)); margin-inline: auto; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-animated {
  background: linear-gradient(90deg, #06B6D4, #8B5CF6, #EC4899, #F59E0B, #10B981, #06B6D4);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Animations === */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px var(--primary-glow); } 50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(6, 182, 212, 0.15); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@keyframes borderGlow { 0%,100%{border-color:rgba(139,92,246,0.3)} 50%{border-color:rgba(6,182,212,0.5)} }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 60% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotateGradient { 0%{--angle:0deg} 100%{--angle:360deg} }
@keyframes breathe { 0%,100%{box-shadow:0 0 0 0 rgba(139,92,246,0.2)} 50%{box-shadow:0 0 0 12px rgba(139,92,246,0)} }
@keyframes borderRotate { 0%{--border-angle:0deg} 100%{--border-angle:360deg} }
@keyframes floatSubtle { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }
@keyframes meshGradient { 0%{background-position:0% 50%} 25%{background-position:50% 0%} 50%{background-position:100% 50%} 75%{background-position:50% 100%} 100%{background-position:0% 50%} }
@keyframes countUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
@keyframes sparkle { 0%,100%{opacity:0;transform:scale(0)} 50%{opacity:1;transform:scale(1)} }
@keyframes pageEnter { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes cardShine { 0%{left:-100%} 100%{left:200%} }

/* Page transition animation */
.page-enter { animation: pageEnter 0.5s var(--ease) forwards; }
main { animation: pageEnter 0.4s var(--ease) both; }

.animate-fade-up { opacity: 0; animation: fadeUp 0.7s var(--ease) forwards; }
.animate-slide-right { opacity: 0; animation: slideInRight 0.5s var(--ease) forwards; }
.animate-pop { opacity: 0; animation: popIn 0.5s var(--ease-bounce) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal — cards start hidden, become visible when IntersectionObserver fires */
.feature-card:not(.animate-fade-up),
.bento-card:not(.animate-fade-up),
.testimonial-card:not(.animate-fade-up),
.pricing-card:not(.animate-fade-up),
.tool-category:not(.animate-fade-up),
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.feature-card.visible,
.bento-card.visible,
.testimonial-card.visible,
.pricing-card.visible,
.tool-category.visible,
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children within grids */
.feature-card:nth-child(2),
.bento-card:nth-child(2),
.testimonial-card:nth-child(2),
.pricing-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3),
.bento-card:nth-child(3),
.testimonial-card:nth-child(3),
.pricing-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4),
.bento-card:nth-child(4),
.testimonial-card:nth-child(4) { transition-delay: 0.24s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .feature-card, .bento-card, .testimonial-card, .pricing-card, .tool-category, .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  main { animation: none; }
}

/* === Glass Card === */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
  transition: none;
}
.glass:hover::after {
  animation: cardShine 0.8s ease forwards;
}
.glass-strong {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* === Background Effects === */
.particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.orb-1 { width: 600px; height: 600px; background: #8B5CF6; top: -200px; right: -200px; animation: float 20s ease-in-out infinite; }
.orb-2 { width: 500px; height: 500px; background: #06B6D4; bottom: -150px; left: -150px; animation: float 25s ease-in-out infinite reverse; }
.orb-3 { width: 400px; height: 400px; background: #EC4899; top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float 30s ease-in-out infinite; }

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .bg-orb { opacity: 0.08; }
[data-theme="light"] .grid-overlay { background-image: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px); }
[data-theme="light"] .particle-canvas { opacity: 0.3; }

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: all var(--duration-normal) var(--ease);
}

.site-header.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  box-shadow: var(--shadow-lg);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon svg { width: 36px; height: 36px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.02em; }
.brand-text small { font-size: 0.7rem; color: var(--text-secondary); letter-spacing: 0.05em; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav-link {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* User menu */
.user-menu { position: relative; }
.avatar-btn { position: relative; display: flex; align-items: center; }
.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--gradient-primary);
  color: #fff;
}
.avatar-lg { width: 44px; height: 44px; font-size: 1rem; }
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--text-muted); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(0.98);
  transition: all var(--duration-normal) var(--ease);
  z-index: var(--z-dropdown);
}

.dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dropdown-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
}
.dropdown-name { font-weight: 600; font-size: 0.95rem; }
.dropdown-plan { font-size: 0.8rem; color: var(--text-secondary); }
.dropdown-divider { height: 1px; background: var(--border); margin: var(--space-xs) 0; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  width: 100%;
  text-align: left;
}
.dropdown-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: var(--danger-bg); color: var(--danger); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-sticky) - 1);
  background: var(--surface-overlay);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-slow) var(--ease);
  padding-top: calc(var(--header-height) + var(--space-lg));
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  width: 100%;
  text-align: left;
}
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--bg-hover); color: var(--text-primary); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: var(--space-sm) 0; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}

.btn-icon-svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 12px var(--primary-glow);
  border: 1px solid rgba(139,92,246,0.2);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--primary-glow); filter: brightness(1.1); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--primary); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-hover); }

.btn-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-glass:hover { background: var(--bg-glass-strong); border-color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e55555; }

.btn-success { background: var(--success); color: var(--text-inverse); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

.btn-glow { animation: glow 3s ease-in-out infinite; }
.btn-glow:hover { animation: none; box-shadow: var(--shadow-glow-lg); }

.btn-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease);
}
.btn-icon:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-icon svg { width: 18px; height: 18px; }

/* Theme toggle icons */
.icon-sun, .icon-moon { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* === Command Strip === */
.command-strip {
  margin-top: var(--header-height);
  padding: var(--space-sm) 0;
  background: rgba(139, 92, 246, 0.05);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: var(--z-base);
}

.command-strip-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.command-pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.command-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--success);
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.command-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.command-meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* === Hero === */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  z-index: var(--z-base);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.12), transparent 60%),
              radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6,182,212,0.08), transparent 50%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(236,72,153,0.06), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(12px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(139, 92, 246, 0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.hero-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4), transparent);
}

.hero-stat { text-align: center; transition: transform 0.3s var(--ease); }
.hero-stat:hover { transform: scale(1.08); }
.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); opacity: 0.5; }

/* Hero Showcase Cards */
.hero-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin-inline: auto;
}

.showcase-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  cursor: default;
}
.showcase-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}
.showcase-card:hover .showcase-icon {
  transform: scale(1.1) rotate(-5deg);
}

.showcase-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.showcase-card h4 { font-size: 0.85rem; font-weight: 600; }
.showcase-card p { font-size: 0.72rem; color: var(--text-muted); }

.showcase-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.showcase-badge.live { background: var(--success-bg); color: var(--success); }
.showcase-badge.new { background: var(--info-bg); color: var(--info); }
.showcase-badge.pro { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }

/* Background color utils */
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #22D3EE; }
.bg-green { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.bg-red { background: rgba(239, 68, 68, 0.15); color: #F87171; }
.bg-orange { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.bg-pink { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.bg-yellow { background: rgba(234, 179, 8, 0.15); color: #FACC15; }

/* === Glass Effect === */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease);
}
.glass:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
}

/* === Trust Strip === */
.trust-strip {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: var(--z-base);
  background: rgba(139, 92, 246, 0.02);
  overflow: hidden;
}
.trust-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.06), transparent 70%);
  pointer-events: none;
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
}

.trust-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  opacity: 0.4;
  transition: all var(--duration-normal) var(--ease);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  position: relative;
}
.trust-logo:hover {
  opacity: 1;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139,92,246,0.1);
}

/* === Sections === */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
  z-index: var(--z-base);
}

.section-dark { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.18);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
  animation: floatSubtle 4s ease-in-out infinite;
  position: relative;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.01em;
}
.section-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease);
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), var(--shadow-colored), 0 0 40px rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.25);
}
.feature-card:hover::before { opacity: 0.06; }
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 4px 20px rgba(139,92,246,0.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
  background: rgba(139,92,246,0.1);
  color: var(--primary-light);
  font-size: 1.2rem;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
}
.feature-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  filter: blur(8px);
  transition: opacity 0.3s;
}
.feature-card:hover .feature-icon::after { opacity: 0.3; }
.feature-icon svg { width: 24px; height: 24px; }

.bg-gradient-purple { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.05)); color: #A78BFA; }
.bg-gradient-blue { background: linear-gradient(135deg, rgba(0,100,255,0.2), rgba(0,100,255,0.05)); color: #74b9ff; }
.bg-gradient-cyan { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(6,182,212,0.05)); color: #22D3EE; }
.bg-gradient-red { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.05)); color: #ff9f9f; }
.bg-gradient-green { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(16,185,129,0.05)); color: #69f0ae; }
.bg-gradient-orange { background: linear-gradient(135deg, rgba(255,165,2,0.2), rgba(255,165,2,0.05)); color: #ffc078; }
.bg-gradient-pink { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(236,72,153,0.05)); color: #F472B6; }
.bg-gradient-yellow { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.05)); color: #ffe066; }

.feature-card h3 { font-size: 1.05rem; margin-bottom: var(--space-sm); }
.feature-card > p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-md); }

.feature-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag-pro { background: rgba(139, 92, 246, 0.1); color: var(--primary-light); border-color: rgba(139, 92, 246, 0.3); }

/* === AI Section === */
.section-ai { overflow: hidden; }

.ai-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.ai-content .section-badge { margin-bottom: var(--space-md); }
.ai-content .section-title { text-align: left; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.ai-content .section-subtitle { text-align: left; margin: 0 0 var(--space-xl); max-width: none; }

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ai-features-list li {
  display: flex;
  gap: var(--space-md);
}

.ai-check {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-features-list strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.ai-features-list p { font-size: 0.85rem; color: var(--text-secondary); }

/* AI Chat Preview */
.ai-chat-preview {
  padding: 0;
  overflow: hidden;
  max-width: 440px;
  margin-left: auto;
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.08), 0 0 0 1px rgba(139, 92, 246, 0.05);
  transition: all var(--duration-normal) var(--ease);
}
.ai-chat-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.14), 0 0 0 1px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.ai-avatar {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-md);
  color: var(--primary-light);
}
.ai-chat-header strong { font-size: 0.9rem; }
.ai-chat-header small { font-size: 0.75rem; color: var(--success); }

.ai-chat-messages {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-height: 320px;
  overflow-y: auto;
}

.ai-msg {
  max-width: 90%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}
.ai-msg.bot { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.user { background: rgba(139, 92, 246, 0.15); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg.typing { padding: var(--space-md); }

.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: var(--radius-full);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.ai-chat-input {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
}
.ai-chat-input input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  outline: none;
}

/* === Bento Grid === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.bento-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}
.bento-card:hover .bento-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.3));
}

.bento-lg { grid-column: span 2; }

.bento-icon { font-size: 2rem; margin-bottom: var(--space-md); transition: all 0.3s var(--ease); }
.bento-card h3 { font-size: 1.15rem; margin-bottom: var(--space-sm); }
.bento-card > p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

.bento-purple::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: var(--primary); filter: blur(100px); opacity: 0.08; pointer-events: none; }
.bento-blue::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: #3B82F6; filter: blur(100px); opacity: 0.08; pointer-events: none; }
.bento-cyan::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: var(--secondary); filter: blur(100px); opacity: 0.08; pointer-events: none; }
.bento-green::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: var(--success); filter: blur(100px); opacity: 0.08; pointer-events: none; }
.bento-orange::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: #F59E0B; filter: blur(100px); opacity: 0.08; pointer-events: none; }
.bento-red::after { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: var(--danger); filter: blur(100px); opacity: 0.08; pointer-events: none; }

.bento-metric { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); }
.bento-metric-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bento-metric-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* === Testimonials === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.testimonial-card:hover::before {
  opacity: 0.25;
  transform: scale(1.1) rotate(-5deg);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.testimonial-stars { color: #F59E0B; font-size: 1rem; margin-bottom: var(--space-md); letter-spacing: 2px; }
.testimonial-card > p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-lg); font-style: italic; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author small { font-size: 0.78rem; color: var(--text-muted); }

/* === CTA Section === */
.section-cta { padding: var(--space-3xl) 0 var(--space-4xl); }

.cta-card {
  text-align: center;
  padding: var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 80px rgba(139, 92, 246, 0.1);
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.06), transparent 70%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: var(--space-md); }
.cta-card > p { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin-inline: auto; margin-bottom: var(--space-xl); }

.cta-buttons { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.cta-note { font-size: 0.82rem; color: var(--text-muted); }

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: var(--space-3xl);
  position: relative;
  z-index: var(--z-base);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.footer-brand .brand { margin-bottom: var(--space-md); }
.footer-brand > p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: var(--space-lg); max-width: 320px; }

.social-links { display: flex; gap: var(--space-sm); }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: all var(--duration-fast) var(--ease);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: rgba(139,92,246,0.1); border-color: var(--primary); color: var(--primary-light); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(139,92,246,0.15); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-col h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); }
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease);
}
.footer-col a:hover { color: var(--primary-light); padding-left: 6px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}
.status-indicator.online { background: var(--success); box-shadow: 0 0 6px var(--success); }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  transition: transform var(--duration-normal) var(--ease-bounce);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* === AI Widget === */
.ai-widget {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-widget);
}

.ai-widget-toggle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
}
.ai-widget-toggle:hover { transform: scale(1.05); box-shadow: var(--shadow-xl), var(--shadow-glow-lg); }
.ai-widget-toggle.active { background: var(--primary); transform: rotate(45deg) scale(1.05); }
.ai-widget-toggle svg { width: 24px; height: 24px; }

.ai-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--success);
  color: var(--text-inverse);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ai-widget-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all var(--duration-normal) var(--ease);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ai-widget-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ai-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.ai-widget-title { display: flex; align-items: center; gap: var(--space-sm); }
.ai-avatar-sm { font-size: 1.3rem; }
.ai-widget-title strong { font-size: 0.9rem; }
.ai-widget-title small { font-size: 0.72rem; color: var(--success); display: block; }
.ai-widget-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.ai-widget-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.ai-widget-messages,
.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 200px;
}

.ai-widget-input,
.ai-input-area {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}
.ai-widget-input input,
.ai-input-area input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  outline: none;
  font-size: 0.85rem;
}
.ai-widget-input input:focus,
.ai-input-area input:focus { border-color: var(--primary); }
.ai-widget-input .btn svg,
.ai-input-area .btn svg { width: 16px; height: 16px; }

.ai-widget-suggestions {
  display: flex;
  gap: var(--space-xs);
  padding: 0 var(--space-md) var(--space-md);
  flex-wrap: wrap;
}
.ai-suggestion {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
}
.ai-suggestion:hover { border-color: var(--primary); color: var(--primary-light); }

/* AI Widget Quick Actions */
.ai-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ai-quick-btn {
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--primary-light);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ai-quick-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.ai-quick-btn i { font-size: 0.65rem; }

.ai-welcome p { font-size: 0.82rem; line-height: 1.5; }
.ai-welcome p:first-child { color: var(--primary-light); margin-bottom: 2px; }

.ai-msg.bot p {
  word-break: break-word;
  line-height: 1.55;
}
.ai-msg.bot ul, .ai-msg.bot ol {
  padding-left: 1.2em;
  margin: 4px 0;
}
.ai-msg.bot li { margin-bottom: 3px; }
.ai-msg.bot strong { color: var(--primary-light); }

/* Activity loading/empty state */
.activity-loading, .activity-empty {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.activity-loading i { font-size: 1.5rem; color: var(--primary-light); margin-bottom: 0.5rem; }

/* === Command Palette === */
.cmd-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease);
}
.cmd-palette-overlay.open,
.cmd-palette-overlay.active { opacity: 1; visibility: visible; }

.cmd-palette {
  width: min(560px, calc(100vw - 40px));
  max-height: 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: transform var(--duration-normal) var(--ease);
}
.cmd-palette-overlay.open .cmd-palette,
.cmd-palette-overlay.active .cmd-palette { transform: translateY(0) scale(1); }

.cmd-palette-search {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.cmd-palette-search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.cmd-palette-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
}
.cmd-palette-search input::placeholder { color: var(--text-muted); }
.cmd-palette-search kbd {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cmd-palette-results {
  overflow-y: auto;
  padding: var(--space-sm);
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.cmd-item:hover, .cmd-item.active { background: var(--bg-hover); color: var(--text-primary); }
.cmd-item kbd { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); background: var(--surface); padding: 2px 8px; border-radius: var(--radius-sm); font-family: inherit; }
.cmd-icon { width: 24px; text-align: center; font-size: 1.1rem; flex-shrink: 0; }
.cmd-empty { padding: var(--space-lg); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

.cmd-result {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.cmd-result:hover, .cmd-result.selected { background: var(--bg-hover); color: var(--text-primary); }
.cmd-result-icon { width: 20px; text-align: center; }
.cmd-result-meta { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); }

/* === Notification Center === */
.notification-center {
  position: fixed;
  top: calc(var(--header-height) + var(--space-md));
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.3s var(--ease);
  pointer-events: auto;
}
.notification-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notification-title { font-size: 0.88rem; font-weight: 600; }
.notification-message { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.notification-close { align-self: flex-start; font-size: 1.2rem; color: var(--text-muted); }

/* === Card === */
.card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* ============================================================
   TOOLS PAGE
   ============================================================ */
.tools-hero { padding: var(--space-3xl) 0; }
.tools-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--space-md); }
.tools-hero > p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: var(--space-lg); max-width: 600px; }

.tools-stats {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-2xl);
  width: fit-content;
}
.tools-stat h4 { font-family: var(--font-display); font-size: 1.2rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tools-stat p { font-size: 0.78rem; color: var(--text-muted); }

.tools-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-xl);
}

.tool-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: start;
}

.tool-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tool-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  border: 1px solid transparent;
  width: 100%;
  text-align: left;
}
.tool-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.tool-nav-item.active {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary-light);
  border-color: rgba(139, 92, 246, 0.2);
}
.tool-nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.tool-nav-badge { margin-left: auto; padding: 1px 6px; border-radius: var(--radius-full); font-size: 0.65rem; font-weight: 700; }
.tool-nav-badge.pro-badge { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }
.tool-nav-badge.new-badge { background: var(--success-bg); color: var(--success); }
.tool-nav-badge.free-badge { background: var(--info-bg); color: var(--info); }

.tool-panel {
  display: none;
  animation: fadeUp 0.4s var(--ease);
}
.tool-panel.active { display: block; }

.tool-header {
  margin-bottom: var(--space-xl);
}
.tool-header h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--space-sm); }
.tool-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* Forms */
.form-grid {
  display: grid;
  gap: var(--space-md);
}
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: var(--space-xs); }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }

.form-input, .form-select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
  width: 100%;
}
.form-input:hover, .form-select:hover { border-color: var(--primary-glow); background: var(--bg-tertiary); }
.form-input:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background: var(--bg-tertiary); }
.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 8px;
}

.form-range {
  width: 100%;
  accent-color: var(--primary);
}

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-output {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.metric-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.metric-card h4 { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-xs); }
.metric-card p { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.action-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.saved-profiles-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.profile-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.profile-item:hover { border-color: var(--primary); background: var(--bg-hover); }

/* Crosshair Preview */
.crosshair-preview-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.crosshair-canvas {
  width: 100%;
  aspect-ratio: 16/9;
  background: #1a1a2e;
  border-radius: var(--radius-lg);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.crosshair-line {
  position: absolute;
  transform: translate(-50%, -50%);
}
.crosshair-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-full);
}

/* Aim Trainer — Premium Design */
.aim-arena {
  width: 100%;
  aspect-ratio: 16/9;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(139,92,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 50%),
    radial-gradient(circle at center, #1a1a2e, #0d0d1a);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid rgba(139,92,246,0.2);
  user-select: none;
  box-shadow: 
    0 0 40px rgba(139,92,246,0.08),
    inset 0 0 80px rgba(0,0,0,0.3);
  transition: border-color 0.3s ease;
}
.aim-arena::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(139,92,246,0.03) 49px, rgba(139,92,246,0.03) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(139,92,246,0.03) 49px, rgba(139,92,246,0.03) 50px);
  pointer-events: none;
  z-index: 0;
}
.aim-arena::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: rgba(139,92,246,0.15);
  pointer-events: none;
  z-index: 0;
  font-family: var(--font-mono);
}

.aim-target {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #ff8a8a, var(--danger) 60%, #cc3333);
  border: 3px solid rgba(255, 255, 255, 0.4);
  cursor: crosshair;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255,107,107,0.2), inset 0 0 8px rgba(255,255,255,0.15);
  animation: aimTargetSpawn 0.15s var(--ease);
  z-index: 5;
  transition: box-shadow 0.1s ease;
}
.aim-target:hover {
  box-shadow: 0 0 25px rgba(255, 107, 107, 0.8), 0 0 50px rgba(255,107,107,0.3), inset 0 0 10px rgba(255,255,255,0.2);
}
.aim-target::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 60%; height: 60%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  transform: translate(-50%,-50%);
}
.aim-target::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 25%; height: 25%;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 4px rgba(255,255,255,0.3);
}

@keyframes aimTargetSpawn {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes aimHitFlash {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.aim-stats-bar {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
}
.aim-stat { text-align: center; }
.aim-stat-value { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; }
.aim-stat-label { font-size: 0.72rem; color: var(--text-muted); }

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.leaderboard-rank { width: 28px; height: 28px; border-radius: var(--radius-full); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; background: var(--surface-raised); }
.leaderboard-rank.gold { background: rgba(255, 217, 61, 0.15); color: #F59E0B; }
.leaderboard-rank.silver { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; }
.leaderboard-rank.bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }
.leaderboard-score { margin-left: auto; font-family: var(--font-mono); font-weight: 700; }

/* Roulette */
.roulette-display {
  width: 100%;
  padding: var(--space-3xl);
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--primary-light);
  margin: var(--space-lg) 0;
  transition: all var(--duration-normal) var(--ease);
}
.roulette-display.spinning { animation: pulse 0.3s infinite; }

/* -- Tools page: sidebar / grid / result (new classes) -- */
.tools-section { padding-bottom: var(--space-3xl); }

.tools-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: start;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
}
.sidebar-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: height var(--duration-normal) var(--ease);
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-link:hover::before { height: 60%; }
.sidebar-link.active {
  background: rgba(139,92,246,0.1);
  color: var(--primary-light);
  border-color: rgba(139,92,246,0.2);
  font-weight: 600;
}
.sidebar-link.active::before { height: 70%; }
.sidebar-link i { width: 20px; text-align: center; }

.tools-content { min-width: 0; }

.tool-body { margin-top: var(--space-xl); }

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.tool-icon.gradient-bg {
  background: var(--gradient-primary);
  box-shadow: 0 4px 20px var(--primary-glow), 0 0 0 1px rgba(139,92,246,0.2);
  animation: breathe 3s ease-in-out infinite;
}
.tool-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  border-radius: inherit;
}

.tool-title { margin: 0; }
.tool-desc { margin: 0; }

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.tool-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tool-result {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  animation: fadeSlideUp 0.4s var(--ease);
  border: 1px solid rgba(139,92,246,0.15);
  background: rgba(10,14,26,0.6);
  backdrop-filter: blur(8px);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
}
.result-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease);
}
.result-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(139,92,246,0.15); }
.result-card:hover::before { opacity: 1; }
.result-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}
.result-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.result-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}
.result-section-title i {
  color: var(--primary-light);
}

.crosshair-preview-area {
  width: 100%;
  max-width: 420px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1a1a2e;
}
.crosshair-preview-area canvas {
  display: block;
  width: 100%;
  height: auto;
}

.form-color {
  height: 42px;
  cursor: pointer;
  padding: 4px;
}

/* aim-overlay: SINGLE canonical definition — see line ~4219 */

.aim-hud {
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(139,92,246,0.25);
  z-index: 15;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  min-width: 280px;
  justify-content: center;
}
.aim-stat {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.aim-stat.hit { color: #4ade80; }
.aim-stat.hit i { color: #4ade80; }
.aim-stat.miss { color: #f87171; }
.aim-stat.miss i { color: #f87171; }

.roulette-card {
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
}
.roulette-agent-name {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: var(--space-sm);
}
.roulette-role {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}
.roulette-tip {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-style: italic;
}

.name-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.name-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.name-item:hover { border-color: var(--primary); background: var(--bg-hover); }
.ai-names-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* ── Avatar Generator ── */
.avatar-gen-usage {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}
.avatar-usage-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.avatar-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}
.avatar-gen-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease);
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}
.avatar-gen-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,92,246,0.15);
}
.avatar-gen-preview {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  overflow: hidden;
}
.avatar-gen-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}
.avatar-gen-initials {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px currentColor;
}
.avatar-gen-info {
  padding: var(--space-md) var(--space-lg);
}
.avatar-gen-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}
.avatar-gen-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.avatar-gen-sig {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-sm);
}
.avatar-gen-actions {
  display: flex;
  gap: var(--space-sm);
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}

.dpi-comparison {
  margin-top: var(--space-lg);
}
.pro-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.pro-card {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pro-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: var(--space-xs); }
.pro-card p { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }

.keybind-table {
  width: 100%;
}
.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.kb-table th, .kb-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.kb-table th { font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; }
.kb-table td code {
  font-family: var(--font-mono);
  background: rgba(139,92,246,0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--primary-light);
}

.kb-tip {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(0,206,201,0.05);
  border-left: 3px solid var(--success);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ai-response {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.1);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ai-response h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}
.ai-response ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin: var(--space-sm) 0;
}
.ai-response li { margin-bottom: var(--space-xs); }

@media (max-width: 768px) {
  .tool-grid-2 { grid-template-columns: 1fr; }
  .tool-grid-3 { grid-template-columns: 1fr; }
  .name-list { grid-template-columns: 1fr; }
  .pro-comparison-grid { grid-template-columns: repeat(2, 1fr); }
  .aim-hud { gap: var(--space-sm); padding: var(--space-xs) var(--space-md); font-size: 0.75rem; }
}

/* Tag results */
.tag-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  counter-reset: tag-counter;
}

.tag-result {
  counter-increment: tag-counter;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.tag-result::before { content: counter(tag-counter); font-weight: 800; color: var(--text-muted); font-size: 0.75rem; }
.tag-result:hover { border-color: var(--primary); }

/* Pro lock overlay */
.pro-lock {
  position: relative;
}
.pro-lock::after {
  content: '?? Pro Feature';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  font-weight: 700;
  color: var(--primary-light);
  font-size: 0.9rem;
  z-index: 10;
}
.pro-unlocked .pro-lock::after { display: none; }

/* ── Tools v3.0 — New Component Styles ── */

/* Hero chips */
.tools-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
}
.hero-chip i { color: var(--primary-light); }
.hero-chip:hover { border-color: var(--primary); transform: translateY(-1px); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

/* Sidebar search */
.sidebar-search {
  margin-bottom: var(--space-md);
}
.sidebar-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  transition: all var(--duration-fast) var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%238892a8' viewBox='0 0 24 24'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='%238892a8' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}
.sidebar-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Sidebar categories */
.sidebar-category {
  margin-bottom: var(--space-md);
}
.sidebar-cat-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
}
.sidebar-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.sidebar-badge.pro {
  background: rgba(139,92,246,0.15);
  color: var(--primary-light);
}
.sidebar-badge.new {
  background: rgba(0,206,201,0.12);
  color: var(--success);
}

/* Tool header enhanced — Premium v2 */
.tool-header-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xs);
}
.tool-header-text h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tool-header-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: var(--space-xs) 0 0;
  line-height: 1.5;
}
.tool-badges {
  display: flex;
  gap: 6px;
  margin-top: var(--space-xs);
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.tool-badge.free { background: rgba(6,182,212,0.1); color: var(--secondary); border-color: rgba(6,182,212,0.15); }
.tool-badge.ai { background: rgba(139,92,246,0.1); color: var(--primary-light); border-color: rgba(139,92,246,0.15); }
.tool-badge.premium { background: rgba(236,72,153,0.1); color: var(--accent); border-color: rgba(236,72,153,0.15); }
.tool-badge.new-tag { background: rgba(0,206,201,0.1); color: var(--success); border-color: rgba(0,206,201,0.15); }

/* Tool actions bar */
.tool-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Result hero card */
.result-hero-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(6,182,212,0.05));
  border: 1px solid rgba(139,92,246,0.2);
  margin-bottom: var(--space-lg);
}
.result-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.result-hero-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Result grid variants */
.result-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.result-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* Sensitivity visual bar */
.sens-visual-bar {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.sens-bar-track {
  position: relative;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  overflow: visible;
  margin: var(--space-sm) 0;
}
.sens-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 0%;
}
.sens-bar-marker {
  position: absolute;
  top: -24px;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(139,92,246,0.15);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.sens-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* AI insight box */
.ai-insight-box {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.12);
}
.ai-insight-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-light);
}
.ai-insight-content i { font-size: 1.1rem; }
.ai-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(139,92,246,0.12);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
}
.ai-insight-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ai-insight-text ul { list-style: disc; padding-left: var(--space-lg); margin: var(--space-xs) 0; }
.ai-insight-text li { margin-bottom: var(--space-xs); }
.ai-loading {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.ai-loading i {
  margin-right: 6px;
  color: var(--primary-light);
  animation: pulse 1.5s ease infinite;
}

/* Pro gating */
.pro-gate {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(236,72,153,0.04));
  border: 1px dashed rgba(139,92,246,0.25);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.pro-gate-inner {
  max-width: 360px;
  margin: 0 auto;
}
.pro-gate-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}
.pro-gate h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}
.pro-gate-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: var(--space-sm) 0 var(--space-lg);
}
.pro-content { display: none; }

/* Profiles list */
.profiles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.profile-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease);
}
.profile-item:hover { border-color: var(--primary); }
.profile-info strong { display: block; font-size: 0.92rem; }
.profile-game { font-size: 0.78rem; color: var(--text-muted); }
.profile-stats {
  display: flex;
  gap: var(--space-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-left: auto;
}
.profile-stats span { display: flex; align-items: center; gap: 4px; }
.profile-stats i { font-size: 0.7rem; color: var(--text-muted); }
.profile-actions {
  display: flex;
  gap: var(--space-xs);
}
.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.empty-state i { font-size: 1.5rem; margin-bottom: var(--space-sm); display: block; }

/* Tracking arena — Premium */
.tracking-arena {
  width: 100%;
  aspect-ratio: 16/9;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(6,182,212,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.06) 0%, transparent 50%),
    radial-gradient(circle at center, #1a1a2e, #0d0d1a);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
  border: 1px solid rgba(6,182,212,0.2);
  user-select: none;
  box-shadow: 0 0 40px rgba(6,182,212,0.08), inset 0 0 80px rgba(0,0,0,0.3);
}
.track-target {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #66d9ff, var(--secondary) 60%, #0099cc);
  border: 3px solid rgba(255,255,255,0.4);
  box-shadow: 0 0 20px rgba(6,182,212,0.6), 0 0 40px rgba(6,182,212,0.2);
  transition: background 0.15s, box-shadow 0.15s;
  display: none;
  z-index: 5;
}
.track-target.on-target {
  background: radial-gradient(circle at 35% 35%, #88ff88, var(--success) 60%, #00cc44);
  box-shadow: 0 0 25px rgba(0,206,201,0.7);
  border-color: rgba(255,255,255,0.5);
}
.track-target::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 30%; height: 30%;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: translate(-50%,-50%);
}
/* aim-overlay duplicate removed — canonical def at ~4219 */
.aim-overlay-content {
  text-align: center;
  max-width: 380px;
}
.aim-overlay-icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(139,92,246,0.3));
}
.aim-hit-flash {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(74,222,128,0.35);
  border: 2px solid rgba(74,222,128,0.6);
  pointer-events: none;
  animation: aimHitFlash 0.35s var(--ease) forwards;
  z-index: 6;
}
.aim-miss-flash {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: rgba(248,113,113,0.5);
  border: 2px solid rgba(248,113,113,0.7);
  pointer-events: none;
  animation: aimHitFlash 0.4s var(--ease) forwards;
  z-index: 6;
}

/* Performance tracker */
.perf-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.perf-summary-card {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.perf-summary-card .perf-icon {
  font-size: 1.3rem;
  color: var(--primary-light);
  margin-bottom: var(--space-sm);
}
.perf-summary-card .perf-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}
.perf-summary-card .perf-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}
.perf-chart-area {
  margin: var(--space-lg) 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
}
.perf-chart-area canvas {
  width: 100%;
  height: 180px;
}
.perf-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.perf-history-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.perf-history-item i { color: var(--primary-light); width: 20px; text-align: center; }
.perf-hist-score { margin-left: auto; font-weight: 700; color: var(--text-primary); }

/* Crosshair lab layout */
.crosshair-lab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.crosshair-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.crosshair-import-row {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.crosshair-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 500px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}
.crosshair-controls::-webkit-scrollbar { width: 4px; }
.crosshair-controls::-webkit-scrollbar-track { background: transparent; }
.crosshair-controls::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 4px; }
.crosshair-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.ch-controls-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-md);
}
.ch-controls-section:last-child { border-bottom: none; }
.ch-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.ch-section-title i { font-size: 0.7rem; }
.ch-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* Import Modal */
.ch-import-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.ch-import-inner {
  width: 100%;
  max-width: 520px;
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}
.ch-import-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.ch-import-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.ch-import-help {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.15);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.ch-import-help p { margin-bottom: var(--space-xs); }
.ch-import-help p:last-child { margin-bottom: 0; }
.ch-import-help code {
  background: rgba(139,92,246,0.15);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* Gallery game badge */
.gallery-game-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-top: 2px;
}
.gallery-card-actions .btn-xs {
  padding: 3px 8px !important;
  font-size: 0.7rem !important;
}

/* Copy button copied state */
.btn-copy.copied {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: #10B981;
}

/* CS2 Crosshair */
.cs2-crosshair-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.cs2-preview-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cs2-preview-box canvas {
  display: block;
  width: 100%;
  height: auto;
}
.cs2-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.cs2-presets-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}
.cs2-preset {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.cs2-preset:hover { border-color: var(--primary); color: var(--text-primary); }
.cs2-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.cs2-toggles {
  display: flex;
  gap: var(--space-lg);
}

/* Gallery */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.gallery-filter {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.gallery-filter:hover { border-color: var(--primary); color: var(--text-primary); }
.gallery-filter.active {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.3);
  color: var(--primary-light);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--duration-normal) var(--ease);
}
.gallery-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gallery-canvas {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-card-info {
  padding: var(--space-sm) var(--space-md);
}
.gallery-card-info strong { font-size: 0.85rem; display: block; }
.gallery-author { font-size: 0.72rem; color: var(--text-muted); }
.gallery-card-actions {
  display: flex;
  gap: var(--space-xs);
  padding: 0 var(--space-md) var(--space-sm);
}

/* FOV visual */
.fov-visual {
  margin-top: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-md);
}
.fov-visual canvas {
  display: block;
  width: 100%;
  height: auto;
}

/* Code block */
.code-block {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.5;
  margin: var(--space-md) 0;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }

/* Name generation */
.name-checks {
  display: flex;
  gap: var(--space-lg);
}

/* Roulette card revamp */
.roulette-display {
  display: grid;
  place-items: center;
}
.roulette-card {
  padding: var(--space-2xl);
  text-align: center;
  border-radius: var(--radius-xl);
}
.agent-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--primary-light);
}
.agent-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
}
.role-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: rgba(139,92,246,0.1);
  color: var(--primary-light);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: var(--space-sm) 0;
}

/* Pro card enhancements */
.pro-card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}
.pro-name { font-weight: 700; font-size: 0.88rem; display: block; margin-bottom: 4px; }
.pro-edpi { font-family: var(--font-mono); font-size: 1rem; font-weight: 800; display: block; }
.pro-diff { font-size: 0.72rem; font-weight: 700; display: block; margin-top: 4px; }
.pro-diff.high { color: var(--danger); }
.pro-diff.low { color: var(--success); }

/* Warmup routine */
.warmup-routine h4 {
  font-family: var(--font-display);
  margin-bottom: var(--space-lg);
}
.warmup-phase {
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.warmup-phase h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--primary-light);
}
.warmup-phase ul { padding-left: var(--space-lg); }
.warmup-phase li { margin-bottom: var(--space-xs); font-size: 0.88rem; color: var(--text-secondary); }

/* Mousepad results */
.mp-results { margin-top: var(--space-lg); }

/* Stretched res */
.str-results { margin-top: var(--space-lg); }

/* Button extras */
.btn-copy {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-copy:hover { background: rgba(139,92,246,0.2); }
.btn-xs {
  padding: 5px 12px !important;
  font-size: 0.78rem !important;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.val-display {
  display: inline-block;
  min-width: 28px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 700;
}

/* Tool tip text */
.tool-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-tip i { color: var(--warning); margin-right: 4px; }
.tool-tip code {
  font-family: var(--font-mono);
  background: rgba(139,92,246,0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--primary-light);
}

/* ─ Responsive tools v3 ─ */
@media (max-width: 900px) {
  .tools-layout { grid-template-columns: 1fr; }
  .tools-sidebar {
    position: fixed;
    top: 0; left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    transition: left 0.3s var(--ease);
    overflow-y: auto;
    padding-top: var(--space-xl);
  }
  .tools-sidebar.open { left: 0; box-shadow: var(--shadow-xl); }
  .crosshair-lab-layout,
  .cs2-crosshair-wrap { grid-template-columns: 1fr; }
  .crosshair-controls { max-height: none; }
  .perf-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .result-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-sidebar-toggle { display: flex !important; }
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  transition: all 0.3s var(--ease);
  z-index: 10;
}
.mobile-sidebar-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.mobile-sidebar-toggle i {
  font-size: 1rem;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}
@media (max-width: 600px) {
  .perf-summary-grid { grid-template-columns: 1fr; }
  .result-grid-3 { grid-template-columns: 1fr; }
  .result-grid-4 { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .crosshair-checks,
  .cs2-toggles,
  .name-checks { flex-direction: column; gap: var(--space-sm); }
  .profile-stats { flex-direction: column; gap: var(--space-xs); font-size: 0.75rem; }
  .tools-hero-chips { gap: var(--space-xs); }
  .hero-chip { font-size: 0.72rem; padding: 4px 10px; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero { text-align: center; padding: var(--space-3xl) 0 var(--space-2xl); }
.pricing-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: var(--space-md); }

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  margin: var(--space-xl) 0;
}
.pricing-toggle span { font-size: 0.9rem; color: var(--text-secondary); }
.pricing-toggle span.active-toggle { color: var(--text-primary); font-weight: 600; }

.toggle-switch {
  width: 52px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease);
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  transition: transform var(--duration-normal) var(--ease);
}
.toggle-switch.active { background: var(--primary-glow); }
.toggle-switch.active::after { transform: translateX(24px); }

.save-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin-inline: auto;
}

.plan-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-card.featured {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: var(--shadow-glow);
}

.plan-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-sm); }
.plan-price { font-family: var(--font-display); margin-bottom: var(--space-lg); }
.plan-price .amount { font-size: 2.8rem; font-weight: 900; }
.plan-price .period { font-size: 0.9rem; color: var(--text-secondary); }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.plan-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.plan-feature .check { color: var(--success); font-weight: 700; }
.plan-feature .cross { color: var(--text-muted); }

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-2xl);
}
.comparison-table th, .comparison-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.comparison-table th { font-weight: 600; color: var(--text-primary); }
.comparison-table td { color: var(--text-secondary); }
.comparison-table thead th { font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 700px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}
.faq-question svg { width: 20px; height: 20px; color: var(--text-muted); transition: transform var(--duration-normal) var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease);
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: var(--space-lg); font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   AUTH PAGES (Login / Register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-4xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15), rgba(6,182,212,0.08), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  width: min(480px, 100%);
  padding: var(--space-2xl) var(--space-xl);
  animation: popIn 0.6s var(--ease-bounce) forwards;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.auth-brand .brand-icon svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px var(--primary-glow));
  animation: floatSubtle 3s ease-in-out infinite;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.auth-form { display: flex; flex-direction: column; gap: var(--space-md); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.social-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-btn i, .social-btn span { position: relative; z-index: 1; }

.password-strength {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface);
  overflow: hidden;
  margin-top: var(--space-xs);
}
.password-strength-fill,
.password-strength-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease), background var(--duration-normal) var(--ease);
  width: 0;
}
.strength-weak { background: var(--danger); width: 25%; }
.strength-fair { background: var(--warning); width: 50%; }
.strength-good { background: var(--info); width: 75%; }
.strength-strong { background: var(--success); width: 100%; }

.auth-footer { text-align: center; margin-top: var(--space-lg); font-size: 0.85rem; color: var(--text-secondary); }
.auth-footer a { color: var(--primary-light); font-weight: 600; }

/* Auth Perks Row */
.auth-perks {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-md) 0;
}
.auth-perk {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.auth-perk i {
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .auth-perks { flex-direction: column; align-items: center; gap: var(--space-sm); }
}

.form-error { color: var(--danger); font-size: 0.82rem; display: none; padding: var(--space-sm) var(--space-md); background: var(--danger-bg); border-radius: var(--radius-md); }
.form-error.visible { display: block; }

/* ============================================================
   ACCOUNT / DASHBOARD PAGE
   ============================================================ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
  align-self: start;
}

.dashboard-user-card {
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  text-align: center;
}
.dashboard-user-card .avatar { width: 64px; height: 64px; font-size: 1.5rem; margin: 0 auto var(--space-md); }
.dashboard-user-card h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.dashboard-user-card .plan-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plan-badge.free { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }
.plan-badge.pro { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }

.dashboard-nav { display: flex; flex-direction: column; gap: var(--space-xs); }
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  width: 100%;
  text-align: left;
}
.dashboard-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dashboard-nav-item.active { background: rgba(139, 92, 246, 0.1); color: var(--primary-light); }
.dashboard-nav-item svg { width: 18px; height: 18px; }

.dashboard-content { min-width: 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
.stat-card-value { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; }
.stat-card-change { font-size: 0.75rem; margin-top: var(--space-xs); }
.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

.chart-container {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-lg); }
.chart-header h3 { font-size: 1.1rem; }

.chart-placeholder {
  width: 100%;
  height: 250px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.activity-icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; font-size: 1rem; }
.activity-text { flex: 1; }
.activity-text strong { font-size: 0.88rem; display: block; }
.activity-text small { font-size: 0.78rem; color: var(--text-muted); }
.activity-time { font-size: 0.78rem; color: var(--text-muted); }

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.achievement-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--duration-normal) var(--ease);
}
.achievement-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.achievement-card.locked { opacity: 0.5; }
.achievement-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.achievement-name { font-size: 0.88rem; font-weight: 600; margin-bottom: var(--space-xs); }
.achievement-desc { font-size: 0.78rem; color: var(--text-muted); }

/* Settings form */
.settings-section {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}
.settings-section h3 { font-size: 1.1rem; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--border); }

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.admin-header h1 { font-family: var(--font-display); font-size: 1.6rem; }

.admin-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}

.admin-tab {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.admin-tab:hover { color: var(--text-primary); }
.admin-tab.active { background: var(--primary); color: #fff; }

.admin-panel { display: none; animation: fadeUp 0.3s var(--ease); }
.admin-panel.active { display: block; }

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th, .data-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th { font-weight: 600; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table tr:hover td { background: var(--bg-hover); }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-badge.active { background: var(--success-bg); color: var(--success); }
.status-badge.inactive { background: var(--danger-bg); color: var(--danger); }
.status-badge.pending { background: var(--warning-bg); color: var(--warning); }

.role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.role-badge.admin { background: rgba(139, 92, 246, 0.15); color: var(--primary-light); }
.role-badge.pro { background: rgba(0, 210, 255, 0.15); color: var(--secondary); }
.role-badge.user { background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border); }

/* Search / Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.search-input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  flex: 1;
  min-width: 200px;
}
.search-input svg { width: 16px; height: 16px; color: var(--text-muted); }
.search-input input { flex: 1; background: transparent; border: none; outline: none; font-size: 0.88rem; color: var(--text-primary); }

.filter-select {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--text-primary);
}
.filter-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
}
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--duration-fast) var(--ease);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   COMMUNITY PAGE — Premium v3.1
   ============================================================ */
.community-hero {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.community-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, rgba(6,182,212,0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}

/* Pulse badge + live dot */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: breathe 2s ease-in-out infinite;
  flex-shrink: 0;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: auto;
}

/* Community Stats Grid */
.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.community-stat-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  overflow: hidden;
}
.community-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.community-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease);
}
.community-stat-card:hover::before { opacity: 1; }
.community-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.community-stat-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
  stroke: #fff;
}
.community-stat-icon.online-pulse {
  animation: breathe 2s ease-in-out infinite;
}
.community-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.community-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.community-stat-bar {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  margin-top: var(--space-xs);
  overflow: hidden;
}
.community-stat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.5s var(--ease);
}

/* Two-Column Layout */
.community-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.community-col { min-width: 0; }

/* Section Header */
.community-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.community-section-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  flex-shrink: 0;
}
.community-section-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: #fff;
}
.community-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.community-section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Activity Feed (kept + enhanced) */
.activity-feed { padding: 0; overflow: hidden; max-height: 480px; overflow-y: auto; }
.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease);
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--surface-hover); }
.activity-item strong { color: var(--text-primary); }
.activity-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.activity-dot.live {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: breathe 2s ease-in-out infinite;
}
.activity-loading { padding: var(--space-xl); text-align: center; color: var(--text-muted); }

/* Leaderboard Table */
.leaderboard-table { padding: 0; overflow: hidden; }
.leaderboard-header {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease);
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: var(--surface-hover); }
.leaderboard-row .rank { font-weight: 700; text-align: center; }
.leaderboard-row .player {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.leaderboard-row .score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary-light);
}
.leaderboard-row .accuracy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.leaderboard-row.gold { background: rgba(255, 215, 0, 0.04); }
.leaderboard-row.silver { background: rgba(192, 192, 192, 0.04); }
.leaderboard-row.bronze { background: rgba(205, 127, 50, 0.04); }
.leaderboard-row.gold:hover { background: rgba(255, 215, 0, 0.08); }

/* Pro Cards v2 */
.pro-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.pro-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
  position: relative;
}
.pro-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pro-card-game-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 0 0 var(--radius-lg) 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pro-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  padding-top: var(--space-md);
}
.pro-card-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pro-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.pro-team {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.pro-rank {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.pro-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.pro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-sm);
  border-right: 1px solid var(--border);
}
.pro-stat:last-child { border-right: none; }
.pro-stat-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-light);
}
.pro-stat-key {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Tournament Cards v2 */
.tournament-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.tournament-card-v2 {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}
.tournament-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tournament-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}
.tournament-game-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tournament-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.tournament-status.live { color: #fff; }
.tournament-body {
  padding: var(--space-lg);
}
.tournament-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.tournament-body > p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.tournament-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.tournament-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.tournament-detail svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.tournament-detail.prize {
  color: var(--success);
  font-weight: 600;
}
.tournament-detail.prize svg { opacity: 1; color: var(--success); stroke: var(--success); }

/* Community CTA */
.community-cta {
  text-align: center;
}
.community-cta-icon {
  margin: 0 auto var(--space-lg);
}
.community-cta-icon svg {
  width: 64px;
  height: 64px;
}

/* Badge SM (shared) */
.badge-sm {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Legacy community classes (preserved for compatibility) */
.community-tabs { display: flex; gap: var(--space-xs); justify-content: center; margin-bottom: var(--space-2xl); }
.community-tab { padding: var(--space-sm) var(--space-lg); border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border); transition: all var(--duration-fast) var(--ease); }
.community-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.community-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Tournament legacy */
.tournament-game { font-size: 2rem; }
.tournament-info h3 { font-size: 1.1rem; margin-bottom: var(--space-xs); }
.tournament-info p { font-size: 0.85rem; color: var(--text-secondary); }
.tournament-prize { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--success); }
.tournament-date { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-xs); }

/* ============================================================
   BLOG PAGE — Premium v3.1
   ============================================================ */
.blog-hero {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.blog-hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroGlowPulse 6s ease-in-out infinite;
}

/* Featured Article */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-featured-img {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.blog-featured-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.blog-featured-overlay svg {
  width: 120px;
  height: 120px;
  opacity: 0.4;
  animation: spinSlow 30s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.blog-featured-badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.blog-featured-content {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}
.blog-featured-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}
.blog-featured-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Category Tags */
.blog-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}
.cat-guides { background: rgba(139,92,246,0.12); color: var(--primary-light); }
.cat-tips { background: rgba(236,72,153,0.12); color: var(--accent); }
.cat-news { background: rgba(6,182,212,0.12); color: var(--secondary); }
.cat-esports { background: rgba(16,185,129,0.12); color: var(--success); }

/* Blog Meta Row */
.blog-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.blog-author-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}
.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Blog Filters v2 */
.blog-filters-v2 {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.blog-filter-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--surface-hover);
}
.blog-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.blog-filter-btn svg { opacity: 0.7; }
.blog-filter-btn.active svg { opacity: 1; }

/* Blog Grid v2 */
.blog-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Blog Card v2 */
.blog-card-v2 {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}
.blog-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  position: relative;
  height: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-md);
}
.blog-card-cat {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: #fff;
}
.blog-card-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.blog-card-body {
  padding: var(--space-lg);
}
.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}
.blog-card-body > p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Newsletter Card v2 */
.newsletter-card {
  text-align: center;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
}
.newsletter-icon {
  margin: 0 auto var(--space-lg);
}
.newsletter-icon svg {
  width: 56px;
  height: 56px;
}
.newsletter-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}
.newsletter-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form-v2 {
  max-width: 520px;
  margin: 0 auto;
}
.newsletter-input-row {
  display: flex;
  gap: var(--space-sm);
}
.newsletter-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast) var(--ease);
}
.newsletter-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.newsletter-input-wrap .form-input {
  border: none;
  background: transparent;
  padding-left: 0;
  box-shadow: none !important;
}
.newsletter-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Legacy blog classes (preserved for compat) */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.blog-card { border-radius: var(--radius-xl); background: var(--bg-glass); border: 1px solid var(--border); overflow: hidden; transition: all var(--duration-normal) var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-cover { width: 100%; height: 200px; background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)); display: grid; place-items: center; font-size: 3rem; }
.blog-body { padding: var(--space-lg); }
.blog-category { display: inline-block; padding: 2px 10px; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; background: rgba(139, 92, 246, 0.1); color: var(--primary-light); margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.blog-title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.blog-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--space-md); }
.blog-meta { display: flex; align-items: center; gap: var(--space-md); font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
  min-height: calc(100vh - var(--header-height));
  align-items: start;
}

.checkout-summary { position: sticky; top: calc(var(--header-height) + var(--space-xl)); }
.checkout-summary h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--space-lg); }

.checkout-plan {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
}
.checkout-total .total-price { font-family: var(--font-display); font-size: 1.6rem; }

.coupon-input {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.coupon-input input { flex: 1; }

.payment-form h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--space-lg); }
.payment-methods { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.payment-method {
  flex: 1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 2px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease);
  cursor: pointer;
}
.payment-method.active { border-color: var(--primary); background: rgba(139, 92, 246, 0.05); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-showcase { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .tools-layout { grid-template-columns: 1fr; }
  .tool-sidebar { display: none; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); margin-top: var(--space-xl); }
  .ai-showcase { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: flex; }

  .hero-title { font-size: 2rem; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-md); padding: var(--space-md); }
  .hero-stat-divider { display: none; }
  .hero-showcase { grid-template-columns: 1fr 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }

  .cta-card { padding: var(--space-2xl); }

  .ai-widget-panel { width: calc(100vw - 40px); right: -10px; }

  .crosshair-preview-container { grid-template-columns: 1fr; }
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }

  .tag-results { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-showcase { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .social-auth { grid-template-columns: 1fr; }
  .aim-stats-bar { flex-wrap: wrap; }
}

/* ============================================================
   COMMUNITY + BLOG RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .community-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .community-two-col { grid-template-columns: 1fr; }
  .pro-settings-grid { grid-template-columns: repeat(2, 1fr); }
  .tournament-grid-v2 { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .community-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .community-stat-value { font-size: 1.5rem; }
  .community-section-header { flex-wrap: wrap; gap: var(--space-sm); }
  .live-indicator { margin-left: 0; }
  .pro-settings-grid { grid-template-columns: 1fr; }
  .tournament-grid-v2 { grid-template-columns: 1fr; }
  .blog-grid-v2 { grid-template-columns: 1fr; }
  .blog-filters-v2 { gap: var(--space-xs); }
  .blog-filter-btn { padding: var(--space-xs) var(--space-md); font-size: 0.8rem; }
  .newsletter-input-row { flex-direction: column; }
  .newsletter-input-row .btn { width: 100%; }
  .leaderboard-header,
  .leaderboard-row { grid-template-columns: 40px 1fr auto auto; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .community-stats-grid { grid-template-columns: 1fr; }
  .community-stat-card { flex-direction: row; text-align: left; gap: var(--space-md); }
  .community-stat-bar { display: none; }
  .pro-stats-row { grid-template-columns: repeat(2, 1fr); }
  .pro-stat { border-bottom: 1px solid var(--border); }
  .pro-stat:nth-child(2) { border-right: none; }
  .pro-stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   TOOL-SPECIFIC COMPONENTS (Gap Fill)
   ============================================================ */

/* --- Sensitivity Converter --- */
.result-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.convert-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  padding: var(--space-md) 0;
  opacity: 0.6;
}

.metric-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.metric-display:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Profiles --- */
.profiles-grid {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: border-color 0.2s ease;
}
.profile-card:hover { border-color: var(--border-strong); }
.profile-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: 0.88rem;
}
.profile-info strong { color: var(--text-primary); }
.profile-info span { color: var(--text-secondary); font-size: 0.82rem; }
.profile-delete { color: var(--danger); opacity: 0.6; }
.profile-delete:hover { opacity: 1; }

/* --- FOV Calculator --- */
.fov-visual {
  position: relative;
  width: 100%;
  height: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: var(--space-md);
}
.fov-cone {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 120px solid transparent;
  border-right: 120px solid transparent;
  border-bottom: 160px solid rgba(139, 92, 246, 0.15);
  transition: border-left-width 0.3s ease, border-right-width 0.3s ease;
}
.fov-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
  z-index: 2;
}

/* --- Crosshair Lab --- */
.crosshair-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.preset-grid .btn { font-size: 0.8rem; }

/* --- Aim Trainer — CANONICAL overlay definition --- */
.aim-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  gap: var(--space-sm);
}
.aim-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.aim-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 340px;
  line-height: 1.5;
}
.aim-timer {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- Leaderboard (Tools page) --- */
.leaderboard-entry {
  display: grid;
  grid-template-columns: 40px 1fr 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  transition: border-color 0.2s ease;
}
.leaderboard-entry:hover { border-color: var(--primary); }
.leaderboard-entry:first-child { border-color: rgba(255, 217, 61, 0.3); }
.lb-rank {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-light);
}
.lb-score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.lb-detail { color: var(--text-secondary); font-size: 0.82rem; }
.lb-date { color: var(--text-muted); font-size: 0.78rem; }

/* --- AI Coach --- */
.coach-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.coach-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.coach-section h4 i { color: var(--primary); }
.coach-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.coach-stat:last-child { border-bottom: none; }
.coach-stat strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.coach-insight {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  line-height: 1.6;
}
.coach-placeholder {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}
.coach-results { margin-top: var(--space-lg); }

/* --- Roulette Agent --- */
.roulette-agent {
  text-align: center;
  padding: var(--space-xl);
}
.roulette-agent.spinning { animation: pulse 0.4s infinite alternate; }
.roulette-agent.final { animation: scaleIn 0.4s var(--ease); }
.agent-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  color: var(--primary-light);
}
.roulette-result { margin-top: var(--space-lg); }

/* --- Name Forge --- */
.name-results {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.name-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  transition: border-color 0.2s ease;
}
.name-result:hover { border-color: var(--primary); }
.name-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* --- DPI Analyzer --- */
.dpi-test-area {
  width: 100%;
  height: 200px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
  position: relative;
  overflow: hidden;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: border-color 0.2s ease;
  user-select: none;
}
.dpi-test-area:hover { border-color: var(--primary); }
.dpi-test-area:active { border-color: var(--accent); background: rgba(139, 92, 246, 0.05); }
.dpi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}

/* --- Keybind Optimizer --- */
.keybind-row {
  display: grid;
  grid-template-columns: 150px auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.keybind-row:last-child { border-bottom: none; }
.keybind-action {
  font-weight: 600;
  color: var(--text-primary);
}
.keybind-key {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-light);
  display: inline-block;
  min-width: 40px;
  text-align: center;
  box-shadow: 0 2px 0 var(--border);
}
.keybind-tip {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* --- Analytics Bars (Admin) --- */
.analytics-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.analytics-bar-label {
  min-width: 120px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.analytics-bar-track {
  flex: 1;
  height: 24px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}
.analytics-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  min-width: 32px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  align-items: center;
}
.admin-filter-bar input,
.admin-filter-bar select {
  max-width: 240px;
}

/* ============================================================
   DASHBOARD / ACCOUNT EXTRAS
   ============================================================ */

.dashboard-tab { display: none; }
.dashboard-tab.active { display: block; animation: fadeSlideUp 0.3s var(--ease); }

.dashboard-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.dashboard-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto var(--space-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
  margin-bottom: var(--space-sm);
  transition: transform var(--duration-fast) var(--ease);
}
.stat-card:hover .stat-icon { transform: scale(1.1); }
.stat-info { flex: 1; }
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.achievement-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
}
.achievement-card.unlocked .achievement-status { color: var(--success); }
.achievement-card.locked .achievement-status { color: var(--text-muted); }

/* ============================================================
   AUTH FORM EXTRAS
   ============================================================ */

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap input {
  padding-left: 2.8rem;
}
.input-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: var(--space-xs);
  transition: color 0.2s ease;
}
.password-toggle:hover { color: var(--text-primary); }

.strength-bar {
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-sm);
}
.strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.3s ease, background 0.3s ease;
  background: var(--danger);
}
.strength-text {
  font-size: 0.75rem;
  margin-top: var(--space-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.form-link {
  font-size: 0.85rem;
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.form-link:hover { color: var(--primary); text-decoration: underline; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ============================================================
   COMMUNITY EXTRAS
   ============================================================ */

.community-panel {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.post-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-meta strong { font-size: 0.9rem; color: var(--text-primary); }
.post-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.post-actions {
  display: flex;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}
.post-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.post-actions button:hover { background: var(--bg-hover); color: var(--text-primary); }
.post-actions button.liked { color: var(--accent); }
.post-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   BLOG EXTRAS
   ============================================================ */

.blog-card-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.blog-card-image div {
  width: 100%;
  height: 100%;
}
.blog-card-body {
  padding: var(--space-lg);
}
.blog-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================================
   CHECKOUT EXTRAS
   ============================================================ */

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.checkout-plan-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}
.checkout-plan-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.checkout-total-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
}

.payment-option {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.payment-option:hover { border-color: var(--border-strong); }
.payment-option.active {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary-light);
}

/* ============================================================
   RESPONSIVE � Checkout / Tools extras
   ============================================================ */

@media (max-width: 768px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .keybind-row { grid-template-columns: 1fr; gap: var(--space-xs); }
  .leaderboard-entry { grid-template-columns: 40px 1fr auto; }
  .leaderboard-entry .lb-detail { display: none; }
  .admin-filter-bar { flex-direction: column; }
  .admin-filter-bar input,
  .admin-filter-bar select { max-width: 100%; }
}

/* ============================================================
   DASHBOARD PAGE  (account.php)
   ============================================================ */
.dashboard-page { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.dashboard-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.dashboard-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dashboard-actions {
  display: flex;
  gap: var(--space-sm);
}

.dashboard-tabs {
  display: flex;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dash-tab {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.dash-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.dash-tab.active { background: var(--primary); color: #fff; }

.dash-panel { display: none; animation: fadeUp 0.3s var(--ease); }
.dash-panel.active { display: block; }

.recent-activity {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-top: var(--space-xl);
}
.recent-activity h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: var(--space-xl) 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}
.settings-grid h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sub-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.sub-plan-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sub-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sub-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.plan-badge.large {
  font-size: 0.9rem;
  padding: var(--space-xs) var(--space-md);
}

.danger-zone {
  border-color: rgba(255,71,87,0.2) !important;
}
.danger-zone h3 {
  color: var(--danger);
}
.danger-zone p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.avatar-xl {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

/* ============================================================
   ADMIN PAGE EXTRAS  (admin.php)
   ============================================================ */
.admin-page { padding-top: var(--space-2xl); padding-bottom: var(--space-3xl); }

.admin-section {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.admin-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th,
.admin-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table tr:hover td {
  background: var(--bg-hover);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.form-sm option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ============================================================
   CHECKOUT EXTRAS 2  (checkout.php — premium design)
   ============================================================ */
.checkout-page { padding-top: var(--space-2xl); }

/* Progress Steps */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-3xl);
  padding: 0 var(--space-xl);
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.progress-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 var(--space-sm);
  margin-bottom: 20px;
  transition: background 0.3s;
}
.progress-step.completed .step-num {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
}
.progress-step.completed .step-label { color: var(--primary); }
.progress-line.completed { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.progress-step.active .step-num {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.15);
}
.progress-step.active .step-label { color: var(--text-primary); }

/* Checkout Section Header */
.checkout-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.checkout-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.checkout-section-header h2 i { color: var(--primary); }
.security-badges { display: flex; gap: var(--space-xs); }
.sec-badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 0.65rem;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Order Plan Card */
.order-plan-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(139,92,246,0.2);
  margin-bottom: var(--space-lg);
}
.order-plan-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.order-plan-info { flex: 1; min-width: 0; }
.order-plan-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.order-plan-info p { font-size: 0.82rem; color: var(--text-muted); }
.order-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Order Features */
.order-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.order-feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.order-feature i { color: #10B981; font-size: 0.75rem; }

.order-divider { height: 1px; background: var(--border); margin: var(--space-md) 0; }
.order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  padding: var(--space-md) 0;
}
.total-price { font-family: var(--font-display); font-size: 1.6rem; }
.order-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}
.order-note i { color: var(--secondary); margin-right: 4px; }

/* Coupon */
.coupon-section { display: flex; gap: var(--space-sm); align-items: flex-start; }
.coupon-section .input-icon-wrap { flex: 1; }
.coupon-result {
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(0,206,201,0.08);
  color: var(--success);
  margin-top: var(--space-sm);
}

/* Payment Methods */
.payment-methods { display: flex; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.payment-method {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.active {
  border-color: var(--primary);
  background: rgba(139,92,246,0.08);
  color: var(--primary);
}
.payment-method i { font-size: 1.1rem; }

/* PayPal CTA */
.paypal-cta {
  text-align: center;
  padding: var(--space-xl) 0;
}
.paypal-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070ba, #003087);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  color: #fff;
}
.paypal-cta p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}
.btn-paypal {
  width: 100%;
  background: linear-gradient(135deg, #0070ba, #003087) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}
.btn-paypal:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0,112,186,0.3); }

/* Trust Grid */
.checkout-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.trust-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  display: grid;
  place-items: center;
  color: #10B981;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================================
   COMMUNITY PAGE EXTRAS (community.php � new classes)
   ============================================================ */
.leaderboard {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-lg);
}

.leaderboard-header,
.leaderboard-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 100px;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
}

.leaderboard-header {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}

.leaderboard-row {
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-fast) var(--ease);
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row:hover { background: var(--bg-hover); }

.leaderboard-row .rank { font-weight: 800; font-size: 1.1rem; }
.leaderboard-row .player { font-weight: 600; display: flex; align-items: center; gap: var(--space-sm); }
.leaderboard-row .score { font-family: var(--font-mono); font-weight: 700; color: var(--primary-light); }
.leaderboard-row .accuracy { font-family: var(--font-mono); color: var(--success); }

.leaderboard-row.gold { background: rgba(245,158,11,0.06); border-left: 3px solid #ffd700; }
.leaderboard-row.silver { background: rgba(192,192,192,0.06); border-left: 3px solid #c0c0c0; }
.leaderboard-row.bronze { background: rgba(205,127,50,0.06); border-left: 3px solid #cd7f32; }

.pro-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.pro-setting-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}

.pro-player-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.pro-player-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
.pro-player-header .text-muted {
  font-size: 0.82rem;
}

.pro-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  text-align: center;
}
.pro-stats .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: var(--space-xs);
}
.pro-stats .value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: block;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.tournament-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease);
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.tournament-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(139,92,246,0.1);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.tournament-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.tournament-meta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}
.tournament-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* ============================================================
   BLOG EXTRAS 2  (blog.php � new classes)
   ============================================================ */
.blog-filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.blog-img {
  width: 100%;
  height: 180px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.blog-img .blog-category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.blog-content {
  padding: var(--space-lg);
}
.blog-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  line-height: 1.4;
}
.blog-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* ============================================================
   INSTALL PAGE  (install.php)
   ============================================================ */
.install-hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.install-status {
  margin-top: var(--space-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--success);
  min-height: 1.4em;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.install-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: left;
  transition: all var(--duration-normal) var(--ease);
  border: 2px solid transparent;
}
.install-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.install-card.highlight { border-color: var(--primary); box-shadow: var(--shadow-glow); }

.install-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(139,92,246,0.1);
  color: var(--primary-light);
  margin-bottom: var(--space-lg);
}

.install-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.install-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: 0;
}
.install-steps li {
  counter-increment: step;
  display: flex;
  gap: var(--space-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.install-steps li::before {
  content: counter(step);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.install-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ============================================================
   PRICING EXTRAS  (pricing.php � new classes)
   ============================================================ */
.pricing-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
}

.pricing-featured {
  border-color: var(--primary);
  background: rgba(139,92,246,0.05);
  box-shadow: var(--shadow-glow), 0 0 0 1px rgba(139,92,246,0.15);
  transform: scale(1.03);
}
.pricing-featured:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: var(--shadow-glow-lg), 0 20px 60px rgba(139, 92, 246, 0.2);
}
.pricing-featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  opacity: 0.12;
  z-index: -1;
  transition: opacity 0.3s;
}
.pricing-featured:hover::after {
  opacity: 0.18;
}

.pricing-card .plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: glow 3s ease-in-out infinite;
}

.plan-header { margin-bottom: var(--space-lg); }

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: rgba(139,92,246,0.1);
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
.billing-toggle span { font-size: 0.9rem; font-weight: 600; }

.yearly-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,206,201,0.12);
  color: var(--success);
}

.current-plan-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(139,92,246,0.12);
  color: var(--primary-light);
  margin-left: var(--space-sm);
}

.pricing-comparison {
  max-width: 900px;
  margin: var(--space-3xl) auto 0;
}
.pricing-comparison h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.pricing-faq {
  max-width: 700px;
  margin: var(--space-3xl) auto 0;
}

.pricing-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* ============================================================
   SHARED UTILITIES
   ============================================================ */
.btn-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }

.billing-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease);
}
.billing-label.active { color: var(--text-primary); }

.toggle-knob {
  display: block;
  width: 100%;
  height: 100%;
}

.comparison-table-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-lg);
}

.plan-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.plan-features li i.fa-check { color: var(--success); }
.plan-features li i.fa-times { color: var(--text-muted); }
.plan-features li.disabled { opacity: 0.5; }

.pricing-cards-section { padding-bottom: var(--space-3xl); }

/* ============================================================
   RESPONSIVE � New pages
   ============================================================ */
@media (max-width: 768px) {
  .dashboard-header { flex-direction: column; text-align: center; }
  .dashboard-profile { flex-direction: column; text-align: center; }
  .dashboard-tabs { gap: 2px; padding: var(--space-xs); }
  .dash-tab { font-size: 0.78rem; padding: var(--space-xs) var(--space-sm); }
  .settings-grid { grid-template-columns: 1fr; }
  .pro-settings-grid { grid-template-columns: 1fr; }
  .pro-stats { grid-template-columns: repeat(2, 1fr); }
  .tournament-grid { grid-template-columns: 1fr; }
  .leaderboard-header,
  .leaderboard-row { grid-template-columns: 50px 1fr 80px; }
  .leaderboard-header span:last-child,
  .leaderboard-row span:last-child { display: none; }
  .install-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .checkout-trust-grid { grid-template-columns: 1fr; }
  .checkout-progress { gap: 0; }
  .progress-line { width: 40px; }
  .order-features { grid-template-columns: 1fr; }
  .order-plan-card { flex-direction: column; text-align: center; }
  .billing-toggle { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .dashboard-name { font-size: 1.2rem; }
  .admin-table { font-size: 0.78rem; }
  .admin-table th, .admin-table td { padding: var(--space-sm); }
  .blog-filters { gap: var(--space-xs); }
  .filter-btn { padding: var(--space-xs) var(--space-md); font-size: 0.8rem; }
}

/* ============================================================
   CS2 CROSSHAIR GENERATOR
   ============================================================ */
.cs2-crosshair-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.cs2-preview-box {
  position: sticky;
  top: var(--space-lg);
}
.cs2-controls .form-group { margin-bottom: var(--space-md); }
.cs2-controls .form-label-val {
  float: right;
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  font-weight: 600;
}
.code-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--primary);
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cs2-crosshair-wrap {
    grid-template-columns: 1fr;
  }
  .cs2-preview-box {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================================
   WARMUP ROUTINE
   ============================================================ */
.warmup-routine h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.warmup-phase {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.warmup-phase h5 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}
.warmup-phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.warmup-phase ul li {
  padding: var(--space-xs) 0;
  padding-left: var(--space-md);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.warmup-phase ul li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.75rem;
}
.warmup-tip {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.loading-text {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-xl);
  animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================================
   MOUSEPAD & STRETCHED RES CALCULATORS
   ============================================================ */
.mp-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
}
.mp-stat {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.mp-stat-val {
  font-family: 'Orbitron', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}
.mp-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mp-rec, .mp-tip {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.mp-rec strong, .mp-tip strong { color: var(--text-primary); }

.str-results h4 { color: var(--text-primary); margin-bottom: var(--space-sm); }
.str-results h5 { color: var(--text-primary); margin-bottom: var(--space-sm); font-size: 0.95rem; }

/* ============================================================
   MOBILE BOTTOM NAVIGATION (App-like)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-xs) 0;
  padding-bottom: env(safe-area-inset-bottom, var(--space-xs));
  z-index: 9999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}
.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-xs) var(--space-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav .nav-item i {
  font-size: 1.15rem;
  margin-bottom: 1px;
}
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
  color: var(--primary);
}
.mobile-bottom-nav .nav-item.active i {
  text-shadow: 0 0 12px rgba(139,92,246,0.5);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 70px;
  }
  .site-header .main-nav { display: none; }
  .site-footer { margin-bottom: 65px; }

  /* Tool sidebar mobile: slide-in panel */
  .tools-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -280px !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 1000 !important;
    background: var(--bg-primary) !important;
    border-right: 1px solid var(--border) !important;
    transition: left 0.3s var(--ease) !important;
    overflow-y: auto !important;
    padding: var(--space-xl) var(--space-lg) !important;
    flex-direction: column !important;
    display: flex !important;
    border-radius: 0 !important;
  }
  .tools-sidebar.open {
    left: 0 !important;
    box-shadow: var(--shadow-xl) !important;
  }
  .sidebar-category { white-space: normal !important; }
  .tools-content { padding: var(--space-md) !important; }
  .tools-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   RESPONSIVE � Global Mobile Enhancements
   ============================================================ */
@media (max-width: 480px) {
  .hero-section { padding: var(--space-xl) var(--space-md); }
  .hero-title { font-size: 1.6rem; }
  .hero-desc { font-size: 0.9rem; }
  .hero-badge { font-size: 0.72rem; }
  .section-title { font-size: 1.4rem; }
  .btn { font-size: 0.85rem; padding: var(--space-sm) var(--space-md); }
  .btn-sm { font-size: 0.78rem; }
  .tool-header { flex-direction: column; text-align: center; }
  .tool-icon { margin: 0 auto var(--space-sm); }
  .tool-title { font-size: 1.1rem; }
  .mp-stat-grid { grid-template-columns: 1fr 1fr; }
  .mp-stat-val { font-size: 1.1rem; }
  .cs2-crosshair-wrap { grid-template-columns: 1fr; }
  .form-label { font-size: 0.82rem; }
  .form-input, .form-select { font-size: 0.88rem; }
  .kb-table { font-size: 0.78rem; }
  .kb-table th, .kb-table td { padding: var(--space-xs) var(--space-sm); }
}

/* ============================================================
   SETUP WIZARD (install.php)
   ============================================================ */
.setup-wizard {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  min-height: 80vh;
}

.setup-progress {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-md);
}
.setup-progress-bar {
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.setup-steps-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
}
.step-dot span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
}
.step-dot small {
  font-size: 0.68rem;
  font-weight: 500;
}
.step-dot.active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 16px rgba(139,92,246,0.4);
}
.step-dot.active { color: var(--text-primary); }
.step-dot.completed span {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}
.step-dot.completed { color: #10B981; }

.setup-step { display: none; }
.setup-step.active { display: block; animation: fadeUp 0.4s ease; }

.setup-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
}
.setup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--primary);
}
.setup-success-icon { color: #10B981; background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(6,182,212,0.15)); }
.setup-title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--space-md); }
.setup-desc { color: var(--text-secondary); margin-bottom: var(--space-xl); line-height: 1.6; }

.setup-checklist {
  text-align: left;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.check-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  background: var(--bg-secondary);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.5;
  border-left: 3px solid transparent;
  transition: border-color 0.2s;
}
.check-item i { flex-shrink: 0; margin-top: 2px; }
.check-item.check-pass { border-left-color: #10B981; }
.check-item.check-fail { border-left-color: #EF4444; background: rgba(239,68,68,0.06); }
.check-item.check-warn { border-left-color: #F59E0B; background: rgba(245,158,11,0.06); }
.check-item.check-info { border-left-color: #60A5FA; }
.check-detail { color: var(--text-muted); }
.check-hint { padding: 0 var(--space-md) var(--space-sm) 2.2rem; }
.check-hint code {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: #A78BFA;
  word-break: break-all;
}

.setup-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.setup-db-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: left;
}
.db-stat {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}
.db-stat i { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.db-stat strong { display: block; color: var(--text-primary); }
.db-stat span { color: var(--text-muted); font-size: 0.78rem; }

.setup-option { text-align: left; margin-bottom: var(--space-lg); }
.setup-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--space-xs); }

.setup-terminal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  text-align: left;
}
.terminal-header {
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #EF4444; }
.terminal-dot.yellow { background: #F59E0B; }
.terminal-dot.green { background: #10B981; }
.terminal-title { margin-left: auto; font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.terminal-body {
  padding: var(--space-md);
  background: #0a0e1a;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #10B981;
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.7;
}
.terminal-line { opacity: 0; animation: termLine 0.3s ease forwards; }
@keyframes termLine { to { opacity: 1; } }
.terminal-success { color: #10B981; font-weight: 700; }
.terminal-error { color: #EF4444; font-weight: 600; }
.terminal-warn { color: #F59E0B; }
.terminal-info { color: #60A5FA; }
.terminal-hint { color: #F59E0B; font-size: 0.75rem; padding-left: 1rem; }
.terminal-header { color: #A78BFA; font-weight: 700; letter-spacing: 0.05em; }
.terminal-progress { color: #22D3EE; font-family: var(--font-mono); }
.terminal-elapsed { color: var(--text-muted); font-size: 0.75rem; }
.terminal-success-banner {
  color: #10B981;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  padding: 0.5rem 0;
  background: rgba(16,185,129,0.08);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
  animation: bannerPulse 2s ease infinite;
}
.terminal-error-banner {
  color: #EF4444;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  padding: 0.5rem 0;
  background: rgba(239,68,68,0.08);
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}
@keyframes bannerPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(16,185,129,0.15); }
}
.terminal-cursor { color: #A78BFA; animation: blink 1s step-end infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }

/* Password strength bar */
.password-strength-bar-wrap {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
  background: #EF4444;
}
.password-strength-label {
  font-size: 0.72rem;
  margin-top: 4px;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Confetti animation */
@keyframes confettiFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

.setup-form {
  text-align: left;
  max-width: 460px;
  margin: 0 auto;
}
.password-wrap {
  position: relative;
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
}
.admin-preview {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}
.preview-name { font-weight: 700; font-size: 1.1rem; }
.preview-role { font-size: 0.78rem; color: var(--text-muted); }
.form-error { color: #EF4444; font-size: 0.82rem; margin-top: var(--space-sm); display: none; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  -webkit-tap-highlight-color: transparent;
}
.toggle-label input { display: none; }
.toggle-switch {
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 12px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.3s;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}
.toggle-label input:checked + .toggle-switch {
  background: var(--primary);
}
.toggle-label input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.theme-selector {
  display: flex;
  gap: var(--space-sm);
}
.theme-option {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all 0.2s;
}
.theme-option.active { border-color: var(--primary); background: rgba(139,92,246,0.1); }
.theme-option:hover { border-color: var(--primary); }

.config-group { margin-bottom: var(--space-xl); }
.config-group h3 { font-size: 0.95rem; margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.feature-toggles { display: flex; flex-direction: column; gap: var(--space-xs); }

.setup-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: left;
}
.summary-item {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}
.summary-item i { font-size: 1.2rem; color: #10B981; flex-shrink: 0; }
.summary-item strong { display: block; }
.summary-item span { font-size: 0.78rem; color: var(--text-muted); }

.setup-launch-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.setup-already-done {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
}

.btn-success { background: #10B981 !important; border-color: #10B981 !important; }
.btn-success:hover { background: #059669 !important; }

/* ============================================================
   ADMIN PANEL � COMPLETE (admin.php)
   ============================================================ */
.admin-header {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.admin-header-left h1 { font-family: var(--font-display); font-size: 1.4rem; display: flex; align-items: center; gap: var(--space-sm); }
.admin-header-left p { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.admin-header-actions { display: flex; gap: var(--space-sm); }
.btn-text-desktop { display: inline; }

.admin-tabs {
  display: flex;
  gap: var(--space-xs);
  margin: var(--space-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.admin-tab i { font-size: 0.9rem; }
.admin-tab:hover { color: var(--text-primary); border-color: var(--primary); }
.admin-tab.active {
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.1));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.admin-tab-content { display: none; animation: fadeUp 0.3s ease; }
.admin-tab-content.active { display: block; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.admin-chart-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}
.admin-chart-card.full-width { grid-column: 1 / -1; }
.admin-chart-card h3 {
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}

.chart-container { min-height: 160px; }
.chart-lg { min-height: 200px; }

/* Bar Chart */
.mini-chart.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 140px;
  padding-bottom: 24px;
  position: relative;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 12px;
}
.bar-fill {
  width: 100%;
  max-width: 24px;
  min-height: 3px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}
.bar-label {
  position: absolute;
  bottom: 0;
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-legend {
  margin-top: var(--space-sm);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Donut Chart */
.plan-dist-visual {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.dist-ring { width: 120px; height: 120px; flex-shrink: 0; }
.dist-ring svg { width: 100%; height: 100%; }
.dist-legend { flex: 1; }
.dist-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: 0.85rem;
}
.dist-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dist-item strong { margin-left: auto; }
.dist-item small { color: var(--text-muted); width: 50px; text-align: right; }

/* Admin User Actions bar */
.admin-user-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}
.search-wrap {
  position: relative;
}
.search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.search-wrap input {
  padding-left: 36px;
  min-width: 200px;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.78rem;
}
.btn-icon-sm:hover { color: var(--primary); border-color: var(--primary); }
.btn-icon-sm.btn-danger:hover { color: #EF4444; border-color: #EF4444; }

.admin-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.user-count { font-size: 0.82rem; color: var(--text-muted); }
.bulk-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.stat-mini {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.email-text { font-size: 0.82rem; color: var(--text-secondary); }
.user-name-link { color: var(--primary); font-weight: 500; }
.user-name-link:hover { text-decoration: underline; }

/* Activity Log */
.admin-activity-feed, .admin-logs-list {
  max-height: 500px;
  overflow-y: auto;
}
.log-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.log-item:hover { background: var(--bg-hover); }
.log-item:last-child { border-bottom: none; }
.log-icon { flex-shrink: 0; font-size: 1rem; margin-top: 2px; }
.log-content { flex: 1; min-width: 0; }
.log-message { font-size: 0.88rem; line-height: 1.4; }
.log-meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
  flex-wrap: wrap;
}
.log-meta > span { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.badge-sm {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Settings */
.admin-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.admin-settings-grid .admin-section {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}
.admin-settings-grid h2 {
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.settings-form { display: flex; flex-direction: column; gap: var(--space-md); }
.admin-danger-zone { border: 1px solid rgba(239,68,68,0.3); }
.admin-danger-zone h2 { color: #EF4444; }
.admin-settings-save {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Top Users List */
.top-user-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}
.top-user-item:last-child { border-bottom: none; }
.top-rank { font-weight: 700; font-size: 0.82rem; color: var(--primary); width: 28px; }
.top-name { flex: 1; font-size: 0.88rem; }
.top-stat { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Achievement stats */
.achieve-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
}
.achieve-name { font-size: 0.82rem; width: 100px; text-transform: capitalize; flex-shrink: 0; }
.achieve-bar-wrap { flex: 1; height: 8px; background: var(--bg-secondary); border-radius: 4px; overflow: hidden; }
.achieve-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; transition: width 0.5s ease; min-width: 2px; }
.achieve-count { font-size: 0.78rem; font-weight: 700; width: 24px; text-align: right; }
.achievement-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  margin: 2px;
  text-transform: capitalize;
}

/* Admin Modal */
.admin-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 10001;
  place-items: center;
  padding: var(--space-lg);
}
.admin-modal-overlay.active { display: grid; }
.admin-modal {
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.admin-modal-header h3 { font-size: 1.1rem; display: flex; align-items: center; gap: var(--space-sm); }

.modal-user-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.modal-user-header h4 { font-size: 1.2rem; }
.modal-user-header p { color: var(--text-muted); font-size: 0.85rem; }
.modal-badges { display: flex; gap: var(--space-sm); margin-top: var(--space-xs); }

.modal-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.modal-stat {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
}
.modal-stat i { font-size: 1rem; color: var(--primary); display: block; margin-bottom: var(--space-xs); }
.modal-stat span { font-size: 0.72rem; color: var(--text-muted); display: block; }
.modal-stat strong { font-size: 1.1rem; display: block; margin-top: 2px; }

.modal-section { margin-bottom: var(--space-lg); }
.modal-section h5 { font-size: 0.9rem; margin-bottom: var(--space-sm); display: flex; align-items: center; gap: var(--space-sm); }
.modal-achievements { display: flex; flex-wrap: wrap; gap: 4px; }
.modal-activity { max-height: 250px; overflow-y: auto; }

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-type { flex-shrink: 0; }
.activity-item small { margin-left: auto; color: var(--text-muted); font-size: 0.7rem; white-space: nowrap; }

/* ═══════════════════════════════════════════════
   ADMIN DATABASE TAB
   ═══════════════════════════════════════════════ */
.db-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}
.db-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.db-info-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.2s;
}
.db-info-item:hover { border-color: var(--primary); }
.db-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}
.db-info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.db-status-warn { color: #F59E0B !important; }

/* Schema checks */
.db-checks-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  max-height: 400px;
  overflow-y: auto;
}
.db-check-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.db-check-item:hover { border-color: var(--primary); }
.db-check-icon { font-size: 1rem; flex-shrink: 0; }
.db-check-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.db-check-name code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(139,92,246,0.1);
  color: var(--primary);
}
.db-check-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.badge-ok {
  background: rgba(16,185,129,0.12);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.25);
}
.badge-err {
  background: rgba(239,68,68,0.12);
  color: #EF4444;
  border: 1px solid rgba(239,68,68,0.25);
}
.badge-pending {
  background: rgba(245,158,11,0.12);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.25);
}
.check-pass { border-left: 3px solid #10B981; }
.check-fail { border-left: 3px solid #EF4444; }

/* Row counts grid */
.db-counts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.db-count-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.25s;
}
.db-count-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139,92,246,0.1);
}
.db-count-num {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'JetBrains Mono', monospace;
}
.db-count-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  font-weight: 600;
}

/* Migrations */
.db-migrations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.db-migrations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.db-migration-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.db-migration-item:hover { border-color: var(--primary); }
.mig-applied { border-left: 3px solid #10B981; }
.mig-pending { border-left: 3px solid #F59E0B; }
.db-mig-info { flex: 1; min-width: 0; }
.db-mig-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}
.db-mig-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.db-mig-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.db-mig-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}
.btn-sm.btn-migrate {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-sm.btn-migrate:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-sm.btn-migrate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.db-loading, .db-empty, .db-error {
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.db-error { color: #EF4444; }

/* ============================================================
   RESPONSIVE — Setup Wizard + Admin + Full Mobile App
   ============================================================ */
@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-charts-row { grid-template-columns: 1fr; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .db-info-bar { grid-template-columns: repeat(2, 1fr); }
  .db-counts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* --- Setup Wizard Mobile --- */
  .setup-card { padding: var(--space-lg); margin: 0 var(--space-xs); }
  .setup-title { font-size: 1.3rem; }
  .setup-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .setup-db-info { grid-template-columns: 1fr; }
  .setup-summary { grid-template-columns: 1fr; }
  .setup-actions { flex-direction: column; align-items: stretch; }
  .setup-actions .btn { width: 100%; justify-content: center; }
  .setup-launch-btns { flex-direction: column; align-items: stretch; }
  .setup-launch-btns .btn { width: 100%; justify-content: center; }
  .setup-progress { padding: 0; }
  .step-dot small { display: none; }
  .step-dot span { width: 30px; height: 30px; font-size: 0.75rem; }
  .setup-terminal { margin-left: calc(-1 * var(--space-lg)); margin-right: calc(-1 * var(--space-lg)); border-radius: 0; }
  .theme-selector { flex-direction: column; }
  .setup-form { max-width: 100%; }
  .admin-preview { flex-direction: column; text-align: center; }

  /* --- Admin Panel Mobile --- */
  .admin-header { flex-direction: column; align-items: stretch; text-align: center; }
  .admin-header-left h1 { justify-content: center; font-size: 1.2rem; }
  .admin-header-actions { justify-content: center; }
  .btn-text-desktop { display: none; }
  .admin-tabs { gap: var(--space-xs); padding: 0 var(--space-xs); }
  .admin-tab { padding: var(--space-sm) var(--space-md); font-size: 0.78rem; }
  .admin-tab span { display: none; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .admin-chart-card { padding: var(--space-md); }

  /* Admin Database Mobile */
  .db-info-bar { grid-template-columns: 1fr 1fr; }
  .db-counts-grid { grid-template-columns: repeat(2, 1fr); }
  .db-migration-item { flex-direction: column; align-items: flex-start; }
  .db-mig-actions { width: 100%; justify-content: space-between; margin-top: var(--space-sm); }

  /* Admin Table Mobile */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--space-md)); padding: 0 var(--space-md); }
  .admin-table { min-width: 600px; }
  .admin-user-actions { flex-wrap: wrap; gap: var(--space-xs); }
  .search-wrap input { min-width: 150px; width: 100%; }
  .admin-table-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .bulk-actions { justify-content: center; }

  /* Admin Modal � Full screen on mobile */
  .admin-modal-overlay { padding: 0; align-items: flex-end; }
  .admin-modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-lg);
  }
  .modal-user-header { flex-direction: column; text-align: center; gap: var(--space-sm); }
  .modal-stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }

  /* Admin Settings Mobile */
  .admin-settings-grid { grid-template-columns: 1fr; }

  /* Activity Log Mobile */
  .log-item { padding: var(--space-sm); gap: var(--space-sm); }
  .log-message { font-size: 0.82rem; }
  .log-meta { gap: var(--space-sm); }

  /* Donut chart responsive */
  .plan-dist-visual { flex-direction: column; align-items: center; }
  .dist-ring { width: 100px; height: 100px; }
}

@media (max-width: 480px) {
  /* Ultra-compact setup */
  .setup-card { padding: var(--space-md); border-radius: var(--radius-lg); }
  .setup-icon { width: 52px; height: 52px; font-size: 1.3rem; }
  .setup-title { font-size: 1.15rem; }
  .setup-desc { font-size: 0.82rem; }
  .check-item { font-size: 0.82rem; padding: var(--space-sm); }
  .db-stat { font-size: 0.78rem; padding: var(--space-sm); }
  .terminal-body { font-size: 0.72rem; min-height: 140px; }
  .toggle-label { font-size: 0.82rem; }
  .toggle-switch { width: 38px; height: 20px; }
  .toggle-switch::after { width: 14px; height: 14px; }
  .toggle-label input:checked + .toggle-switch::after { transform: translateX(18px); }

  /* Ultra-compact admin */
  .admin-header-left h1 { font-size: 1.05rem; }
  .admin-tab { padding: var(--space-xs) var(--space-sm); font-size: 0.72rem; min-height: 40px; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: var(--space-sm); }
  .stat-card .stat-value { font-size: 1.3rem; }
  .stat-card .stat-label { font-size: 0.68rem; }
  .admin-chart-card { padding: var(--space-sm); }
  .admin-chart-card h3 { font-size: 0.85rem; }
  .bar-label { font-size: 0.5rem; }
  .dist-item { font-size: 0.78rem; }

  .admin-modal { padding: var(--space-md); }
  .modal-stat { padding: var(--space-sm); }
  .modal-stat strong { font-size: 0.95rem; }
  .modal-stat span { font-size: 0.65rem; }
  .achievement-tag { font-size: 0.68rem; padding: 3px 8px; }
  .activity-item { font-size: 0.78rem; padding: var(--space-xs) var(--space-sm); }

  .top-user-item { font-size: 0.82rem; padding: var(--space-xs) var(--space-sm); }
  .achieve-name { width: 80px; font-size: 0.75rem; }
}

/* ============================================================
   FULL APP-LIKE MOBILE EXPERIENCE
   ============================================================ */

/* Safe area padding for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 6px); }
}

/* Smooth touch interactions */
* { -webkit-tap-highlight-color: transparent; }

/* Touch-optimized form elements */
@media (max-width: 768px) {
  input, select, textarea, .form-input, .form-select {
    font-size: 16px !important; /* Prevent zoom on iOS */
    min-height: 44px;
  }
  .btn, button, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  select.form-sm, .admin-table select {
    min-height: 36px;
    font-size: 14px !important;
  }

  /* App-like page transitions */
  main, .container { transition: opacity 0.15s ease; }

  /* Better scrolling */
  .glass-card, .admin-section, .card, .setup-card {
    -webkit-overflow-scrolling: touch;
  }

  /* Pull-to-refresh style header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 999;
  }
}

/* Standalone app mode enhancements (PWA) */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top, 20px); }
  .install-hero, .install-section { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .ai-widget, .command-strip,
  .bg-orb, .grid-overlay, .particle-canvas, .toast,
  .notification-center, .cmd-palette-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   v3.0 MASSIVE UPGRADE — Tools Hero, Aim Modes, Account, OAuth
   ============================================================ */

/* ── Tools Hero v2 ── */
.tools-hero-v2 {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.tools-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.tools-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}
.tools-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
.tools-hero-glow.glow-1 { width: 300px; height: 300px; top: -50px; left: 10%; background: var(--primary); }
.tools-hero-glow.glow-2 { width: 250px; height: 250px; bottom: -50px; right: 15%; background: var(--secondary); animation-delay: 2s; }
.tools-hero-glow.glow-3 { width: 200px; height: 200px; top: 30%; right: 30%; background: var(--accent); animation-delay: 4s; opacity: 0.25; }
@keyframes glowPulse {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0.5; }
}
.tools-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.tools-hero-left { flex: 1; }
.tools-hero-right { flex-shrink: 0; }
.tools-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
}
.hero-stat-item {
  text-align: center;
  padding: var(--space-md);
}
.hero-stat-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}
.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .tools-hero-content { flex-direction: column; text-align: center; }
  .tools-hero-right { width: 100%; }
  .tools-hero-stats { max-width: 320px; margin: 0 auto; }
  .tools-hero-chips { justify-content: center; }
}

/* ── Aim Mode Info Bar — Premium ── */
.aim-mode-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  border: 1px solid var(--border);
  background: rgba(139,92,246,0.03);
  transition: all 0.3s ease;
}
.aim-mode-icon { 
  font-size: 1.4rem; 
  color: var(--primary-light);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(139,92,246,0.1);
}
.aim-mode-details strong { 
  color: var(--text-primary); 
  font-size: 0.95rem;
  display: block;
}
.aim-mode-details p { font-size: 0.82rem; color: var(--text-muted); margin: 2px 0 0; }
.aim-mode-diff { margin-left: auto; display: flex; gap: 4px; }
.diff-star {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}
.diff-star.active { background: var(--primary); box-shadow: 0 0 8px rgba(139,92,246,0.5); }

/* ── Mode Preview Chips — Premium ── */
.aim-mode-preview {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}
.mode-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mode-chip i { font-size: 0.7rem; }
.mode-chip:hover { 
  border-color: var(--primary); 
  color: var(--primary-light); 
  background: rgba(139,92,246,0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.1);
}
.mode-chip.active {
  background: rgba(139,92,246,0.15);
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 15px rgba(139,92,246,0.2);
}

/* ── Dust2 Arena Theme — Premium ── */
.aim-arena[data-theme="dust2"] {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(210,180,120,0.3) 0%, transparent 50%),
    linear-gradient(180deg, #c2a36e 0%, #b8955c 30%, #a07c46 60%, #8a6b3a 100%);
  border-color: rgba(138,107,58,0.6);
  box-shadow: 
    0 0 40px rgba(138,107,58,0.15),
    inset 0 -40px 60px rgba(0,0,0,0.15);
}
.aim-arena[data-theme="dust2"]::before { display: none; }
.aim-arena[data-theme="dust2"]::after { display: none; }
.dust2-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: none;
}
.dust2-overlay * { pointer-events: none; }
.aim-arena[data-theme="dust2"] .dust2-overlay { display: block; }

.dust2-crate {
  position: absolute;
  background: linear-gradient(135deg, #6b4e2a, #5a3f1e);
  border: 2px solid #4a3318;
  border-radius: 3px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  pointer-events: none;
}
.dust2-crate::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  pointer-events: none;
}
.dust2-crate-1 { width: 80px; height: 60px; bottom: 0; left: 3%; }
.dust2-crate-2 { width: 60px; height: 45px; bottom: 0; right: 3%; }
.dust2-crate-3 { width: 50px; height: 40px; top: 15%; left: 50%; }
.dust2-wall {
  position: absolute;
  background: linear-gradient(180deg, #9e8a6a, #8a7656);
  border: 2px solid #6b5c44;
  pointer-events: none;
}
.dust2-wall-1 { width: 18px; height: 100%; top: 0; left: 25%; }
.dust2-wall-2 { width: 14px; height: 55%; bottom: 0; right: 28%; }
.dust2-barrel {
  position: absolute;
  width: 35px; height: 45px;
  bottom: 0; left: 60%;
  background: linear-gradient(180deg, #5a5a5a, #3a3a3a);
  border-radius: 4px 4px 0 0;
  border: 2px solid #2a2a2a;
  pointer-events: none;
}
.dust2-door-frame {
  position: absolute;
  width: 65px; height: 100%;
  top: 0; right: 2%;
  border-left: 5px solid #7a6a52;
  border-right: 5px solid #7a6a52;
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

/* Dust2 target peek animations */
@keyframes peekFromCover-left {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes peekFromCover-right {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes hideIntoCover-left {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}
@keyframes hideIntoCover-right {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.aim-target-dust2 {
  background: radial-gradient(circle at 35% 35%, #ff6b6b, #cc3333 60%, #991111);
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 0 20px rgba(255,50,50,0.7), 0 0 40px rgba(255,50,50,0.3);
  z-index: 4;
}
.aim-target-dust2::before {
  border-color: rgba(255,200,200,0.2);
}

/* ── Headshot Arena Theme — Premium ── */
.aim-arena[data-theme="headshot"] {
  background: 
    radial-gradient(ellipse at 50% 100%, rgba(100,20,20,0.15) 0%, transparent 60%),
    radial-gradient(circle at center, #1a1a2e, #0d0d1a);
  border-color: rgba(255,50,50,0.15);
}
.aim-arena[data-theme="headshot"]::after {
  content: '⊕';
  color: rgba(255,50,50,0.08);
  font-size: 2rem;
}
.headshot-silhouettes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.headshot-silhouette {
  position: absolute;
  width: 50px;
  height: 130px;
  background: linear-gradient(180deg, rgba(100,100,130,0.35), rgba(80,80,110,0.1));
  border-radius: 25px 25px 8px 8px;
  border: 1px solid rgba(100,100,150,0.2);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.headshot-silhouette::before {
  content: '';
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(100,100,130,0.3);
  border: 1px solid rgba(100,100,150,0.25);
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}
.aim-target-head {
  background: radial-gradient(circle at 35% 35%, #ff4444, #cc0000 60%, #880000);
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 18px rgba(255,0,0,0.6), 0 0 35px rgba(255,0,0,0.25);
  z-index: 4;
}
.aim-target-head::before {
  border-color: rgba(255,200,200,0.25);
}

/* ── Account Dashboard v2 ── */
.dashboard-header-v2 {
  position: relative;
  padding: var(--space-xl) var(--space-2xl);
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.dash-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dash-header-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(139,92,246,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6,182,212,0.1) 0%, transparent 50%);
}
.dash-header-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.dashboard-profile-v2 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.avatar-ring {
  position: relative;
  width: 80px; height: 80px;
  flex-shrink: 0;
}
.avatar-progress-ring {
  position: absolute;
  inset: -5px;
  width: 90px; height: 90px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
}
.ring-fill {
  fill: none;
  stroke: url(#avatarGradient);
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 1s ease;
}
.avatar-ring .avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-info-v2 { flex: 1; }
.plan-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(6,182,212,0.15));
  color: var(--primary-light);
  border: 1px solid rgba(139,92,246,0.2);
}
.profile-level-bar {
  margin-top: var(--space-sm);
  max-width: 300px;
}
.level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.level-xp { color: var(--primary-light); }
.level-bar {
  height: 6px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.level-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width 1s ease;
}
.dashboard-actions-v2 {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-sm);
  margin-left: auto;
}
@media (max-width: 768px) {
  .dashboard-profile-v2 { flex-direction: column; text-align: center; }
  .dashboard-actions-v2 { margin: var(--space-md) auto 0; }
  .profile-level-bar { max-width: 100%; margin: var(--space-sm) auto 0; }
}

/* ── Stats Grid v2 ── */
.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-card-v2 {
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease);
}
.stat-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.2);
}
.stat-card-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--stat-color, var(--primary));
  border-radius: 4px 0 0 4px;
  transition: width 0.3s, opacity 0.3s;
}
.stat-card-v2:hover::before {
  width: 6px;
  opacity: 0.9;
}
.stat-card-v2::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--stat-color, var(--primary)) 5%, transparent), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.stat-card-v2:hover::after { opacity: 1; }
.stat-icon-v2 {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--stat-color, var(--primary));
  background: color-mix(in srgb, var(--stat-color, var(--primary)) 12%, transparent);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.stat-card-v2:hover .stat-icon-v2 {
  transform: scale(1.1);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--stat-color, var(--primary)) 25%, transparent);
}
.stat-value-v2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label-v2 {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.stat-trend {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: 0.65rem;
  color: var(--text-muted);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .stats-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Quick Actions ── */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  position: relative;
  overflow: hidden;
}
.quick-action::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}
.quick-action:hover {
  color: var(--primary-light);
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(139,92,246,0.15);
}
.quick-action:hover::before { opacity: 0.06; }
.quick-action i { font-size: 1.3rem; position: relative; z-index: 1; transition: transform 0.3s; }
.quick-action:hover i { transform: scale(1.15); }
.quick-action span { font-size: 0.82rem; font-weight: 500; position: relative; z-index: 1; }
@media (max-width: 600px) {
  .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Activity Timeline ── */
.activity-timeline {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.timeline-header h3 { font-size: 1rem; }
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ── OAuth Button Styles ── */
.social-auth {
  display: flex;
  gap: var(--space-sm);
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.social-btn .fab { font-size: 1.1rem; position: relative; z-index: 1; }
.social-btn .fa-google { color: #4285F4; }
.social-btn .fa-discord { color: #5865F2; }
.social-btn .fa-steam { color: #1b2838; }
[data-theme="dark"] .social-btn .fa-steam { color: #c7d5e0; }

/* Brand-specific hover colors */
.social-btn:has(.fa-google):hover { border-color: #4285F4; background: rgba(66,133,244,0.06); box-shadow: 0 4px 20px rgba(66,133,244,0.15); }
.social-btn:has(.fa-discord):hover { border-color: #5865F2; background: rgba(88,101,242,0.06); box-shadow: 0 4px 20px rgba(88,101,242,0.15); }
.social-btn:has(.fa-steam):hover { border-color: #66c0f4; background: rgba(102,192,244,0.06); box-shadow: 0 4px 20px rgba(102,192,244,0.15); }

.social-btn.oauth-ready {
  border-color: rgba(139,92,246,0.3);
  animation: breathe 3s ease-in-out infinite;
}
.social-btn.oauth-ready:hover {
  border-color: var(--primary);
  background: rgba(139,92,246,0.05);
  animation: none;
}
.social-btn.oauth-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.social-btn.oauth-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ── OAuth Admin Settings ── */
.oauth-provider-group {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.oauth-provider-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

/* ── AI Status Indicator ── */
.ai-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  margin: 4px 0 6px;
}
.ai-status-indicator.online {
  background: rgba(16,185,129,0.1);
  color: #10B981;
  border: 1px solid rgba(16,185,129,0.2);
}
.ai-status-indicator.offline {
  background: rgba(245,158,11,0.1);
  color: #F59E0B;
  border: 1px solid rgba(245,158,11,0.2);
}
.ai-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Activity Timeline Items ── */
.activity-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  position: relative;
}
.activity-timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content {
  flex: 1;
  min-width: 0;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}
.timeline-content small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Print fix ── */
@media print {
  .site-header, .site-footer, .ai-widget, .command-strip,
  .bg-orb, .grid-overlay, .particle-canvas, .toast,
  .notification-center, .cmd-palette-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
