/*
 * AUTOLAC 2026 â DESIGN SYSTEM
 * Tokens de design: cores, tipografia, espacamentos, sombras.
 * Edite as variaveis em :root {} para alterar o visual do site inteiro.
 * WMI Solutions v1.0.0
 */

/* ============================================
   AUTOLAC DESIGN SYSTEM â CSS TOKENS
   v1.0 | WMI Solutions
   ============================================ */

:root {
  /* --- CORES BASE --- */
  --color-bg-deep:        #020818;
  --color-bg-dark:        #050A1F;
  --color-bg-navy:        #0A1628;
  --color-bg-mid:         #0D1B3E;
  --color-bg-elevated:    #111D40;

  /* --- AZUIS (MARCA) --- */
  --color-blue-900:       #1E3A8A;
  --color-blue-700:       #1D4ED8;
  --color-blue-600:       #2563EB;
  --color-blue-500:       #3B82F6;
  --color-blue-400:       #60A5FA;
  --color-blue-300:       #93C5FD;
  --color-blue-200:       #BFDBFE;

  /* --- CIANO (ACENTO) --- */
  --color-cyan-500:       #06B6D4;
  --color-cyan-400:       #22D3EE;
  --color-cyan-300:       #67E8F9;
  --color-cyan-glow:      #00D4FF;

  /* --- NEUTROS --- */
  --color-white:          #FFFFFF;
  --color-gray-100:       #F1F5F9;
  --color-gray-300:       #CBD5E1;
  --color-gray-400:       #94A3B8;
  --color-gray-500:       #64748B;
  --color-gray-600:       #475569;
  --color-gray-700:       #334155;

  /* --- SEMÃNTICAS --- */
  --color-success:        #10B981;
  --color-success-light:  rgba(16,185,129,0.15);
  --color-warning:        #F59E0B;
  --color-warning-light:  rgba(245,158,11,0.15);
  --color-error:          #EF4444;
  --color-error-light:    rgba(239,68,68,0.15);
  --color-info:           #3B82F6;
  --color-info-light:     rgba(59,130,246,0.15);

  /* --- GRADIENTES --- */
  --gradient-brand:       linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --gradient-text:        linear-gradient(90deg, #60A5FA 0%, #00D4FF 100%);
  --gradient-hero:        linear-gradient(135deg, #1D4ED8 0%, #0891B2 50%, #1D4ED8 100%);
  --gradient-glow:        linear-gradient(135deg, rgba(37,99,235,0.4) 0%, rgba(6,182,212,0.4) 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(96,165,250,0.3), rgba(0,212,255,0.1));
  --gradient-overlay:     linear-gradient(180deg, transparent 0%, rgba(2,8,24,0.8) 100%);

  /* --- GLASS / TRANSPARÃNCIAS --- */
  --glass-bg:             rgba(255,255,255,0.04);
  --glass-bg-hover:       rgba(255,255,255,0.07);
  --glass-bg-active:      rgba(37,99,235,0.15);
  --glass-border:         rgba(255,255,255,0.08);
  --glass-border-hover:   rgba(96,165,250,0.3);
  --glass-border-brand:   rgba(37,99,235,0.4);
  --glass-blur:           blur(20px);
  --glass-blur-heavy:     blur(40px);

  /* --- SOMBRAS --- */
  --shadow-sm:            0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:            0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:            0 8px 40px rgba(0,0,0,0.5);
  --shadow-blue-sm:       0 0 15px rgba(37,99,235,0.2);
  --shadow-blue-md:       0 0 30px rgba(37,99,235,0.3);
  --shadow-blue-lg:       0 0 60px rgba(37,99,235,0.4);
  --shadow-cyan:          0 0 30px rgba(0,212,255,0.25);
  --shadow-button:        0 4px 20px rgba(37,99,235,0.4);
  --shadow-button-hover:  0 8px 30px rgba(37,99,235,0.6);

  /* --- TIPOGRAFIA --- */
  --font-family:          'Poppins', sans-serif;
  --font-weight-light:    300;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;

  --font-size-xs:         0.625rem;   /* 10px */
  --font-size-sm:         0.75rem;    /* 12px */
  --font-size-base:       0.875rem;   /* 14px */
  --font-size-md:         1rem;       /* 16px */
  --font-size-lg:         1.125rem;   /* 18px */
  --font-size-xl:         1.25rem;    /* 20px */
  --font-size-2xl:        1.5rem;     /* 24px */
  --font-size-3xl:        1.875rem;   /* 30px */
  --font-size-4xl:        2.25rem;    /* 36px */
  --font-size-5xl:        3rem;       /* 48px */
  --font-size-6xl:        3.75rem;    /* 60px */

  --line-height-tight:    1.2;
  --line-height-snug:     1.35;
  --line-height-normal:   1.5;
  --line-height-relaxed:  1.7;

  /* --- ESPAÃAMENTOS --- */
  --space-1:   0.25rem;   /* 4px  */
  --space-2:   0.5rem;    /* 8px  */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

  /* --- BORDER RADIUS --- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* --- ANIMAÃÃES --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 350ms cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--color-bg-deep);
  color: var(--color-white);
  line-height: var(--line-height-normal);
  font-size: var(--font-size-base);
  overflow-x: hidden;
}

/* ============================================
   AURORA BACKGROUND
   ============================================ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-bg::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: aurora1 20s ease-in-out infinite;
}
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation: aurora2 25s ease-in-out infinite;
}
@keyframes aurora1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(100px,80px) scale(1.1); }
  66%      { transform: translate(-60px,120px) scale(0.9); }
}
@keyframes aurora2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-80px,-60px) scale(1.15); }
  66%      { transform: translate(60px,-100px) scale(0.95); }
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--space-16) 0;
}

.section + .section {
  border-top: 1px solid var(--glass-border);
}

/* ============================================
   NAVEGAÃÃO LATERAL (sticky)
   ============================================ */
.ds-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 1;
}

.ds-nav {
  position: sticky;
  top: var(--space-8);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.ds-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--glass-border);
}

.ds-nav-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  letter-spacing: 0.05em;
}

.ds-nav-logo .logo-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-300);
  letter-spacing: 0.05em;
}

.ds-nav-section {
  margin-bottom: var(--space-4);
}

.ds-nav-section-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-2);
}

.ds-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.ds-nav a:hover {
  background: var(--glass-bg-hover);
  color: var(--color-blue-400);
}

/* ============================================
   HERO COVER
   ============================================ */
.hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue-300);
  margin-bottom: var(--space-5);
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-cyan-glow);
  box-shadow: 0 0 8px var(--color-cyan-glow);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--color-gray-400);
  max-width: 560px;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.hero-meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

.meta-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-blue-500);
}

.hero-grid-deco {
  position: absolute;
  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;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: var(--space-10);
}

.section-number {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-blue-400);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-number::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--gradient-brand);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--font-size-md);
  color: var(--color-gray-400);
  max-width: 600px;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   TOKEN CARDS (Cores)
   ============================================ */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.token-group-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.color-swatch {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-sm);
}

.swatch-preview {
  height: 64px;
  width: 100%;
}

.swatch-info {
  padding: var(--space-3);
}

.swatch-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-300);
  margin-bottom: var(--space-1);
}

.swatch-value {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  font-family: 'Courier New', monospace;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
.type-specimen {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-4);
}

.type-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--glass-border);
}
.type-row:last-child { border-bottom: none; }

.type-meta {
  min-width: 160px;
  flex-shrink: 0;
}

.type-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue-400);
  margin-bottom: var(--space-1);
}

.type-spec {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  font-family: monospace;
}

.type-sample { color: var(--color-white); }

/* ============================================
   ESPAÃAMENTO
   ============================================ */
.spacing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.spacing-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.spacing-bar {
  height: 24px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  opacity: 0.7;
}

.spacing-info {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
}

.spacing-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-300);
  min-width: 80px;
  font-family: monospace;
}

.spacing-px {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
  min-width: 48px;
}

/* ============================================
   COMPONENTES â BOTÃES
   ============================================ */
.component-section {
  margin-bottom: var(--space-12);
}

.component-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.component-title::before {
  content: '';
  width: 3px; height: 20px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.component-desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  margin-bottom: var(--space-6);
}

.component-demo {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

/* BOTÃES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Tamanhos */
.btn-sm  { font-size: var(--font-size-xs);  padding: var(--space-2)  var(--space-4);  border-radius: var(--radius-md); }
.btn-md  { font-size: var(--font-size-sm);  padding: var(--space-3)  var(--space-6);  border-radius: var(--radius-lg); }
.btn-lg  { font-size: var(--font-size-base); padding: var(--space-4) var(--space-8);  border-radius: var(--radius-lg); }
.btn-xl  { font-size: var(--font-size-md);  padding: var(--space-5)  var(--space-10); border-radius: var(--radius-xl); }

/* Variantes */
.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
  filter: brightness(1.1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--glass-bg);
  color: var(--color-blue-400);
  border: 1px solid var(--glass-border-brand);
  backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
  background: var(--glass-bg-active);
  border-color: var(--color-blue-400);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gray-300);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: var(--glass-bg-hover);
  color: var(--color-white);
  border-color: var(--glass-border-hover);
}

.btn-danger {
  background: linear-gradient(135deg, #DC2626, #EF4444);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239,68,68,0.5);
}

.btn-success {
  background: linear-gradient(135deg, #059669, #10B981);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(16,185,129,0.3);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.5);
}

.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
}

/* Shimmer (CTA especial) */
.btn-shimmer {
  background: var(--gradient-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%    { left: -100%; }
  100%  { left: 200%; }
}
.btn-shimmer:hover { transform: translateY(-2px); box-shadow: var(--shadow-button-hover); }

/* ============================================
   CARDS GLASSMORPHISM
   ============================================ */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-card-border);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue-md);
}

.card:hover::before { opacity: 0.05; }

.card-glow {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-blue-sm), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.card-glow::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 70%);
  pointer-events: none;
}

.card-glow:hover {
  border-color: rgba(37,99,235,0.5);
  box-shadow: var(--shadow-blue-md);
  transform: translateY(-4px);
}

.card-flat {
  background: var(--color-bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

.card-flat:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-blue-sm);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--glass-bg-active);
  border: 1px solid var(--glass-border-brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
}

.card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-400);
  line-height: var(--line-height-relaxed);
}

/* Carte grid de cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.badge-blue {
  background: rgba(37,99,235,0.15);
  color: var(--color-blue-300);
  border: 1px solid rgba(37,99,235,0.25);
}

.badge-cyan {
  background: rgba(6,182,212,0.12);
  color: var(--color-cyan-300);
  border: 1px solid rgba(6,182,212,0.25);
}

.badge-success {
  background: var(--color-success-light);
  color: #6EE7B7;
  border: 1px solid rgba(16,185,129,0.25);
}

.badge-warning {
  background: var(--color-warning-light);
  color: #FCD34D;
  border: 1px solid rgba(245,158,11,0.25);
}

.badge-error {
  background: var(--color-error-light);
  color: #FCA5A5;
  border: 1px solid rgba(239,68,68,0.25);
}

.badge-neutral {
  background: rgba(255,255,255,0.05);
  color: var(--color-gray-300);
  border: 1px solid var(--glass-border);
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================
   INPUTS & FORMULÃRIOS
   ============================================ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-300);
}

.input-label span {
  color: var(--color-error);
  margin-left: 3px;
}

.input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-white);
  width: 100%;
  transition: all var(--transition-base);
  outline: none;
}

.input::placeholder { color: var(--color-gray-600); }

.input:focus {
  border-color: var(--color-blue-500);
  background: rgba(37,99,235,0.07);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.input.error {
  border-color: var(--color-error);
  background: rgba(239,68,68,0.05);
}

.input.error:focus {
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.input.success {
  border-color: var(--color-success);
}

.input-hint {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

.input-hint.error { color: var(--color-error); }
.input-hint.success { color: var(--color-success); }

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  pointer-events: none;
}

.input-wrapper .input {
  padding-left: calc(var(--space-4) + 20px + var(--space-2));
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

select.input option {
  background: var(--color-bg-mid);
  color: var(--color-white);
}

.inputs-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ============================================
   ALERTAS / TOASTS
   ============================================ */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border-left: 3px solid;
}

.alert-icon { font-size: var(--font-size-xl); flex-shrink: 0; margin-top: 1px; }

.alert-content { flex: 1; }

.alert-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 4px;
}

.alert-message {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
}

.alert-info {
  background: rgba(59,130,246,0.08);
  border-color: var(--color-blue-500);
  color: var(--color-blue-300);
}
.alert-info .alert-message { color: var(--color-gray-400); }

.alert-success {
  background: rgba(16,185,129,0.08);
  border-color: var(--color-success);
  color: #6EE7B7;
}
.alert-success .alert-message { color: var(--color-gray-400); }

.alert-warning {
  background: rgba(245,158,11,0.08);
  border-color: var(--color-warning);
  color: #FCD34D;
}
.alert-warning .alert-message { color: var(--color-gray-400); }

.alert-error {
  background: rgba(239,68,68,0.08);
  border-color: var(--color-error);
  color: #FCA5A5;
}
.alert-error .alert-message { color: var(--color-gray-400); }

.alerts-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================
   TABELA
   ============================================ */
.table-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

thead tr {
  background: rgba(37,99,235,0.08);
  border-bottom: 1px solid var(--glass-border);
}

thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
}

tbody tr {
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-fast);
}

tbody tr:last-child { border-bottom: none; }

tbody tr:hover {
  background: var(--glass-bg-hover);
}

tbody td {
  padding: var(--space-4) var(--space-5);
  color: var(--color-gray-300);
}

.td-main {
  font-weight: var(--font-weight-medium);
  color: var(--color-white) !important;
}

/* ============================================
   DIVIDER / SEPARADORES
   ============================================ */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: var(--space-8) 0;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.divider-label span {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================
   STAT CARDS (MÃ©tricas)
   ============================================ */
.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue-sm);
}

.stat-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
}

.stat-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-2);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-delta {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-delta.down { color: var(--color-error); }

.stat-card .stat-bg-icon {
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 72px;
  opacity: 0.04;
  pointer-events: none;
}

/* ============================================
   TAGS / CHIPS
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-gray-300);
  cursor: default;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip:hover {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-brand);
  color: var(--color-blue-300);
}

/* ============================================
   TOKENS CODE BLOCK
   ============================================ */
.code-block {
  background: #020818;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  overflow-x: auto;
  position: relative;
}

.code-block pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--font-size-xs);
  line-height: 1.8;
  color: var(--color-gray-400);
  white-space: pre;
}

.code-block .code-comment { color: var(--color-gray-600); }
.code-block .code-var     { color: #60A5FA; }
.code-block .code-val     { color: #34D399; }
.code-block .code-punct   { color: var(--color-gray-500); }

.code-copy-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  color: var(--color-gray-400);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-copy-btn:hover {
  background: var(--glass-bg-active);
  color: var(--color-blue-300);
  border-color: var(--glass-border-brand);
}

/* ============================================
   RADIUS SHOWCASE
   ============================================ */
.radius-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.radius-item {
  text-align: center;
}

.radius-box {
  width: 100%;
  aspect-ratio: 1;
  background: var(--glass-bg-active);
  border: 1px solid var(--glass-border-brand);
  margin-bottom: var(--space-2);
}

.radius-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-300);
  font-family: monospace;
}

.radius-val {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

/* ============================================
   EFEITOS / SHADOWS
   ============================================ */
.shadow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.shadow-demo {
  background: var(--color-bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.shadow-demo .shadow-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-300);
  font-family: monospace;
  margin-bottom: var(--space-1);
}

.shadow-demo .shadow-desc {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

/* ============================================
   FOOTER DO DESIGN SYSTEM
   ============================================ */
.ds-footer {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-12) 0;
  text-align: center;
  margin-top: var(--space-16);
  position: relative;
  z-index: 1;
}

.ds-footer-logo {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-3);
}

.ds-footer p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-500);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }

  .ds-layout { grid-template-columns: 1fr; }
  .ds-nav    { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .radius-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .inputs-demo { grid-template-columns: 1fr; }
  .shadow-grid { grid-template-columns: 1fr; }
  .radius-grid { grid-template-columns: repeat(2,1fr); }
  .component-demo { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2rem; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }


  /* Noise texture overlay (inspired by Infinify) */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: 9999;
  }

  /* Section tag (mono badge beside title - Infinify pattern) */
  .section-tag {
    display: inline-flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-xs);
    color: var(--color-cyan-400);
    background: rgba(6,182,212,0.08);
    padding: 2px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(6,182,212,0.2);
    font-weight: 500;
    letter-spacing: 0.05em;
    vertical-align: middle;
    margin-left: var(--space-3);
  }

  /* ââ TOGGLE SWITCH ââ */
  .toggle-row { display: flex; align-items: center; gap: var(--space-3); }
  .toggle {
    position: relative;
    width: 48px; height: 26px;
    flex-shrink: 0;
  }
  .toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
  .toggle-track {
    position: absolute; inset: 0;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
  }
  .toggle-track::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-gray-500);
    top: 3px; left: 3px;
    transition: transform var(--transition-spring), background var(--transition-base);
  }
  .toggle input:checked ~ .toggle-track {
    background: rgba(37,99,235,0.35);
    border-color: var(--color-blue-500);
  }
  .toggle input:checked ~ .toggle-track::after {
    transform: translateX(22px);
    background: var(--color-blue-400);
    box-shadow: 0 0 8px rgba(37,99,235,0.5);
  }
  .toggle-label { font-size: var(--font-size-sm); color: var(--color-gray-300); }

  /* ââ CHECKBOX ââ */
  .checkbox-wrap { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
  .checkbox-wrap input { display: none; }
  .checkbox-box {
    width: 20px; height: 20px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--glass-border);
    background: var(--glass-bg);
    display: grid; place-items: center;
    transition: all var(--transition-base);
    flex-shrink: 0;
  }
  .checkbox-box svg { display: none; }
  .checkbox-wrap input:checked ~ .checkbox-box {
    background: var(--color-blue-600);
    border-color: var(--color-blue-500);
    box-shadow: 0 0 10px rgba(37,99,235,0.35);
  }
  .checkbox-wrap input:checked ~ .checkbox-box svg { display: block; }
  .checkbox-label { font-size: var(--font-size-sm); color: var(--color-gray-300); }

  /* ââ PROGRESS BAR ââ */
  .progress-stack { display: flex; flex-direction: column; gap: var(--space-4); }
  .progress-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .progress-label { font-size: var(--font-size-sm); color: var(--color-gray-300); font-weight: 500; }
  .progress-value { font-size: var(--font-size-xs); color: var(--color-gray-500); font-family: monospace; }
  .progress-track {
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--glass-border);
  }
  .progress-track-lg { height: 10px; }
  .progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-brand);
    transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
    position: relative;
  }
  .progress-fill::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 20px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: var(--radius-full);
  }
  .progress-fill.success { background: linear-gradient(90deg, #059669, #10B981); }
  .progress-fill.warning { background: linear-gradient(90deg, #D97706, #F59E0B); }
  .progress-fill.danger  { background: linear-gradient(90deg, #DC2626, #EF4444); }

  /* ââ TABS ââ */
  .tab-list {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: var(--radius-lg);
    width: fit-content;
    margin-bottom: var(--space-5);
  }
  .tab-item {
    padding: 7px 18px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
    border: none;
    background: transparent;
  }
  .tab-item:hover { color: var(--color-gray-300); background: var(--glass-bg-hover); }
  .tab-item.active {
    background: rgba(37,99,235,0.2);
    color: var(--color-blue-300);
    border: 1px solid rgba(37,99,235,0.25);
    box-shadow: 0 0 12px rgba(37,99,235,0.15);
  }
  .tab-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
    line-height: var(--line-height-relaxed);
    display: none;
  }
  .tab-panel.active { display: block; }

  /* ââ TOOLTIP ââ */
  .tooltip-wrap { position: relative; display: inline-block; }
  .tooltip-wrap .tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--color-bg-elevated);
    color: var(--color-gray-200);
    font-size: var(--font-size-xs);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms, transform 150ms;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    font-family: var(--font-family);
    z-index: 100;
  }
  .tooltip-wrap .tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--glass-border);
  }
  .tooltip-wrap:hover .tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ââ AVATAR ââ */
  .avatar {
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--font-family);
    font-weight: 700;
    border: 2px solid var(--color-bg-dark);
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    background: var(--gradient-brand);
    color: #fff;
  }
  .avatar-xs  { width: 24px;  height: 24px;  font-size: 9px; }
  .avatar-sm  { width: 32px;  height: 32px;  font-size: 11px; }
  .avatar-md  { width: 40px;  height: 40px;  font-size: 14px; }
  .avatar-lg  { width: 56px;  height: 56px;  font-size: 18px; }
  .avatar-xl  { width: 72px;  height: 72px;  font-size: 24px; }
  .avatar-online::after {
    content: '';
    position: absolute;
    width: 30%; height: 30%;
    min-width: 8px; min-height: 8px;
    background: var(--color-success);
    border: 2px solid var(--color-bg-dark);
    border-radius: 50%;
    bottom: 1%; right: 1%;
  }
  .avatar-stack { display: flex; }
  .avatar-stack .avatar { margin-left: -10px; border-color: var(--color-bg-deep); }
  .avatar-stack .avatar:first-child { margin-left: 0; }

  /* ââ MODAL ââ */
  .modal-preview {
    background: rgba(2,8,24,0.7);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
  }
  .modal-box {
    background: var(--color-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg), var(--shadow-blue-md);
    backdrop-filter: var(--glass-blur);
  }
  .modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
  .modal-title { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); }
  .modal-close {
    width: 30px; height: 30px;
    border-radius: var(--radius-md);
    background: var(--glass-bg-hover);
    border: 1px solid var(--glass-border);
    color: var(--color-gray-400);
    font-size: var(--font-size-base);
    cursor: pointer;
    display: grid; place-items: center;
    transition: all var(--transition-fast);
  }
  .modal-close:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--color-error); }
  .modal-body { font-size: var(--font-size-sm); color: var(--color-gray-400); line-height: var(--line-height-relaxed); margin-bottom: var(--space-6); }
  .modal-footer { display: flex; gap: var(--space-3); justify-content: flex-end; }

  /* ââ SKELETON ââ */
  .skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(255,255,255,0.07) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-md);
    animation: skeleton-wave 1.8s infinite;
  }
  @keyframes skeleton-wave {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  .skeleton-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
  }
  .skeleton-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }


  /* ============================================
     SEÃÃES ALTERNADAS â TEMA CLARO
     ============================================ */
  .section-light {
    background: #F0F6FF;
    border-radius: 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-light .section-header h2,
  .section-light .section-header p,
  .section-light .section-number,
  .section-light .component-title,
  .section-light .token-group-label {
    color: #0F172A !important;
  }

  .section-light .section-header p,
  .section-light .component-desc {
    color: #475569 !important;
  }

  .section-light .section-number {
    color: #1D4ED8 !important;
  }

  .section-light .type-specimen,
  .section-light .component-demo,
  .section-light .code-block,
  .section-light .table-wrapper {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
  }

  .section-light .type-sample { color: #0F172A !important; }

  .section-light .color-swatch {
    border-color: #CBD5E1 !important;
    background: #fff !important;
  }
  .section-light .swatch-name { color: #1E293B !important; }
  .section-light .swatch-value { color: #64748B !important; }

  .section-light .spacing-name { color: #1E293B !important; }
  .section-light .spacing-px   { color: #64748B !important; }

  .section-light .radius-name { color: #1E293B !important; }
  .section-light .radius-val  { color: #64748B !important; }
  .section-light .radius-box  { background: rgba(37,99,235,0.08) !important; border-color: rgba(37,99,235,0.2) !important; }

  .section-light .shadow-demo {
    background: #ffffff !important;
    border-color: #E2E8F0 !important;
  }
  .section-light .shadow-name { color: #1E293B !important; }
  .section-light .shadow-desc { color: #64748B !important; }

  .section-light .card,
  .section-light .card-glow,
  .section-light .card-flat {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .card h3,
  .section-light .card-glow h3 { color: #0F172A !important; }
  .section-light .card p,
  .section-light .card-glow p  { color: #475569 !important; }
  .section-light .card-icon    { background: rgba(37,99,235,0.08) !important; border-color: rgba(37,99,235,0.2) !important; }

  .section-light .badge-neutral {
    background: rgba(0,0,0,0.05) !important;
    color: #475569 !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .chip {
    background: rgba(0,0,0,0.04) !important;
    color: #334155 !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .chip:hover {
    background: rgba(37,99,235,0.08) !important;
    border-color: rgba(37,99,235,0.3) !important;
    color: #1D4ED8 !important;
  }

  .section-light .input {
    background: #fff !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
  }
  .section-light .input-label { color: #334155 !important; }
  .section-light .input-hint  { color: #64748B !important; }

  .section-light .stat-card {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .stat-label { color: #64748B !important; }

  .section-light .table-wrapper { overflow: hidden; }
  .section-light thead tr { background: rgba(37,99,235,0.05) !important; }
  .section-light thead th { color: #475569 !important; }
  .section-light tbody td { color: #334155 !important; }
  .section-light .td-main  { color: #0F172A !important; }
  .section-light tbody tr:hover { background: rgba(37,99,235,0.03) !important; }

  .section-light .code-block pre  { color: #334155 !important; }
  .section-light .code-comment    { color: #94A3B8 !important; }
  .section-light .code-var        { color: #1D4ED8 !important; }
  .section-light .code-val        { color: #059669 !important; }
  .section-light .code-punct      { color: #64748B !important; }

  .section-light .section-number::after { background: linear-gradient(90deg,#2563EB,#06B6D4) !important; }

  .section-light .divider-label::before,
  .section-light .divider-label::after { background: #CBD5E1 !important; }
  .section-light .divider-label span { color: #94A3B8 !important; }

  .section-light .progress-track { background: rgba(0,0,0,0.06) !important; border-color: #CBD5E1 !important; }
  .section-light .tab-list { background: rgba(0,0,0,0.04) !important; border-color: #CBD5E1 !important; }
  .section-light .tab-item { color: #64748B !important; }
  .section-light .tab-item:hover { background: rgba(37,99,235,0.06) !important; color: #334155 !important; }
  .section-light .tab-panel { background: #fff !important; border-color: #CBD5E1 !important; color: #475569 !important; }

  .section-light .toggle-track { background: rgba(0,0,0,0.08) !important; border-color: #CBD5E1 !important; }
  .section-light .toggle-label { color: #334155 !important; }
  .section-light .checkbox-box  { background: #fff !important; border-color: #CBD5E1 !important; }
  .section-light .checkbox-label { color: #334155 !important; }

  .section-light .skeleton { background: linear-gradient(90deg,#E2E8F0 25%,#F1F5F9 50%,#E2E8F0 75%) !important; }
  .section-light .skeleton-card { background: #fff !important; border-color: #CBD5E1 !important; }

  .section-light .modal-preview { background: rgba(226,232,240,0.6) !important; border-color: #CBD5E1 !important; }
  .section-light .modal-box { background: #fff !important; border-color: #CBD5E1 !important; box-shadow: 0 8px 40px rgba(0,0,0,0.12) !important; }
  .section-light .modal-title { color: #0F172A !important; }
  .section-light .modal-body  { color: #475569 !important; }
  .section-light .modal-close { background: #F1F5F9 !important; border-color: #CBD5E1 !important; color: #64748B !important; }

  .section-light + .section,
  .section + .section-light {
    border-top-color: #E2E8F0 !important;
  }


  /* Light section full-bleed within main column */
  main .section-light {
    margin-left: calc(-1 * var(--space-6));
    margin-right: calc(-1 * var(--space-6));
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    border-radius: var(--radius-xl);
  }


  /* ââ ICONS ââ */
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: var(--space-3);
  }
  .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    user-select: none;
  }
  .icon-item:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue-sm);
  }
  .icon-item svg {
    width: 24px; height: 24px;
    stroke: var(--color-blue-400);
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }
  .icon-name {
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    color: var(--color-gray-500);
    line-height: 1.3;
    word-break: break-word;
  }

  /* Light variant */
  .section-light .icon-item {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .icon-item:hover {
    border-color: rgba(37,99,235,0.4) !important;
    background: rgba(37,99,235,0.04) !important;
    box-shadow: 0 0 12px rgba(37,99,235,0.12) !important;
  }
  .section-light .icon-item svg { stroke: #2563EB; }
  .section-light .icon-name { color: #94A3B8 !important; }

  /* Icon size showcase */
  .icon-size-row {
    display: flex;
    align-items: flex-end;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
  }
  .icon-size-item { text-align: center; }
  .icon-size-item svg { stroke: var(--color-blue-400); fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; display: block; margin: 0 auto var(--space-2); }
  .icon-size-label { font-size: 0.65rem; color: var(--color-gray-500); font-family: monospace; }

  /* Icon color variants */
  .icon-colors-row {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    padding: var(--space-6);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
  }
  .icon-color-item {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  }
  .icon-color-item svg { width: 28px; height: 28px; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.75; }
  .icon-color-label { font-size: 0.6rem; color: var(--color-gray-500); font-family: monospace; }

  .icon-group-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: var(--space-6) 0 var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .icon-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
  }
  .section-light .icon-group-label { color: #64748B !important; }
  .section-light .icon-group-label::after { background: #E2E8F0 !important; }
  .section-light .icon-size-row,
  .section-light .icon-colors-row {
    background: #ffffff !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .icon-size-item svg  { stroke: #2563EB; }
  .section-light .icon-size-label     { color: #94A3B8 !important; }


  /* Ensure card-glow and card text are visible in light sections */
  .section-light .card-glow {
    background: #ffffff !important;
    border-color: rgba(37,99,235,0.2) !important;
    box-shadow: 0 0 20px rgba(37,99,235,0.08) !important;
  }
  .section-light .card-glow::after {
    display: none;
  }
  .section-light .card h3,
  .section-light .card-glow h3,
  .section-light .card-flat h3 {
    color: #0F172A !important;
  }
  .section-light .card p,
  .section-light .card-glow p,
  .section-light .card-flat p {
    color: #475569 !important;
  }
  .section-light .component-title {
    color: #0F172A !important;
  }
  .section-light .component-title::before {
    background: linear-gradient(135deg,#2563EB,#06B6D4) !important;
  }
  /* Stat card in light */
  .section-light .stat-card {
    background: #ffffff !important;
    border-color: #E2E8F0 !important;
  }
  .section-light .stat-label { color: #64748B !important; }
  .section-light .stat-delta { color: #059669 !important; }
  .section-light .stat-delta.down { color: #DC2626 !important; }
  .section-light .stat-bg-icon { opacity: 0.06 !important; color: #1E3A8A; }
  /* Buttons inside light sections keep their own colors */
  .section-light .btn-primary,
  .section-light .btn-secondary,
  .section-light .btn-ghost,
  .section-light .btn-shimmer { /* preserve */ }
  .section-light .btn-ghost {
    color: #334155 !important;
    border-color: #CBD5E1 !important;
  }
  .section-light .btn-ghost:hover {
    background: rgba(37,99,235,0.06) !important;
    color: #1D4ED8 !important;
  }
  /* Alert in light */
  .section-light .alert-info    { background: rgba(37,99,235,0.06)  !important; }
  .section-light .alert-success { background: rgba(16,185,129,0.06) !important; }
  .section-light .alert-warning { background: rgba(245,158,11,0.06) !important; }
  .section-light .alert-error   { background: rgba(239,68,68,0.06)  !important; }
  .section-light .alert-title   { color: inherit !important; }
  .section-light .alert-message { color: #475569 !important; }
  /* Code block in light */
  .section-light .code-block { background: #F8FAFC !important; border-color: #E2E8F0 !important; }
  .section-light .code-copy-btn {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #64748B !important;
  }
