/* =============================================
   BAROMÈTRE FACILITATION - Design System v2
   Mulish + Playfair Display
   ============================================= */

/* --- 1. VARIABLES --- */
:root {
  --deep-navy: #0B1120;
  --dark-surface: #0f1a2e;
  --neon-cyan: #00F0FF;
  --neon-magenta: #FF0055;
  --burn-orange: #FF5500;
  --accent-yellow: #ffde59;
  --off-white: #EAEAEA;
  --text-secondary: #94a3b8;
  --success: #22c55e;
  --error: #ef4444;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Compatibility aliases for admin page */
  --bg-main: var(--deep-navy);
  --bg-cards: var(--dark-surface);
  --primary: #1f3a8b;
  --primary-light: #3b82f6;
  --accent: var(--accent-yellow);
  --accent-hover: #ffe680;
  --text-main: var(--off-white);
  --glass-bg: var(--glass);
  --glass-bg-hover: var(--glass-hover);
  --glass-border: var(--border-glass);
  --glass-border-hover: var(--border-glass-hover);
  --radius: var(--radius-md);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --transition: 300ms ease-in-out;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--deep-navy);
  color: var(--off-white);
  font-family: 'Mulish', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, .serif { font-family: 'Playfair Display', serif; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; margin-bottom: 2rem; letter-spacing: -1px; }
h1 em, h2 em { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--neon-cyan); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 1rem; }

.label-upper {
  font-family: 'Mulish', sans-serif;
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 3px; font-weight: 700; color: var(--neon-cyan);
}

a { color: var(--neon-cyan); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--off-white); }

/* --- 4. LAYOUT --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* --- 5. GLASS CARDS --- */
.card {
  background: var(--glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}
.card:hover {
  background: var(--glass-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

/* --- 6. BUTTONS --- */
.btn-elite {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 48px;
  background: transparent; border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: 'Mulish', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  cursor: pointer; transition: all 0.4s ease;
  position: relative; overflow: hidden; text-decoration: none;
  border-radius: var(--radius-sm);
}
.btn-elite::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0%; height: 100%; background: var(--neon-cyan);
  transition: width 0.4s ease; z-index: -1;
}
.btn-elite:hover::before { width: 100%; }
.btn-elite:hover { color: var(--deep-navy); box-shadow: 0 0 30px rgba(0, 240, 255, 0.3); }

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 48px;
  background: var(--accent-yellow); border: none;
  color: var(--deep-navy);
  font-family: 'Mulish', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  cursor: pointer; transition: all 0.4s ease; text-decoration: none;
  border-radius: var(--radius-sm);
}
.btn-accent:hover {
  background: #ffe680;
  box-shadow: 0 0 40px rgba(255, 222, 89, 0.3);
  transform: translateY(-2px); color: var(--deep-navy);
}
.btn-glow { box-shadow: 0 0 20px rgba(255, 222, 89, 0.15); }
.btn-glow:hover { box-shadow: 0 0 50px rgba(255, 222, 89, 0.35); }
.btn-xl { padding: 22px 56px; font-size: 0.95rem; letter-spacing: 3px; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 48px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--off-white);
  font-family: 'Mulish', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  cursor: pointer; transition: all 0.4s ease; text-decoration: none;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05); color: var(--off-white);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 48px;
  background: var(--primary); border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  color: var(--off-white);
  font-family: 'Mulish', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem;
  cursor: pointer; transition: all 0.4s ease; text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 24px; font-size: 0.75rem; }

.btn-danger {
  padding: 8px 16px; background: transparent;
  border: 1px solid var(--neon-magenta); color: var(--neon-magenta);
  font-family: 'Mulish', sans-serif; font-weight: 700; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.3s ease; border-radius: var(--radius-sm);
}
.btn-danger:hover { background: var(--neon-magenta); color: white; }

/* --- 7. NAVIGATION --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.nav-logo {
  font-family: 'Mulish', sans-serif; font-weight: 800;
  font-size: 0.9rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--off-white); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Mulish', sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-secondary); transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--neon-cyan); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--off-white); margin: 5px 0; transition: all 0.3s ease; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(11, 17, 32, 0.95); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.5rem;
    transform: translateY(-100%); opacity: 0; transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
}

/* --- 8. HERO --- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; z-index: 1; padding-top: 80px;
}
.hero-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: -1; overflow: hidden;
}
.hero-bg canvas { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; filter: contrast(1.2) saturate(1.2); }
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, var(--deep-navy) 75%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--neon-cyan); margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 8px; height: 8px; background: var(--neon-cyan);
  border-radius: 50%; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
}

.hero-subtitle { max-width: 600px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 2.5rem; line-height: 1.7; }
.hero-stats { margin-bottom: 3rem; }
.hero-counter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem); font-weight: 700;
  color: var(--accent-yellow); line-height: 1; margin-bottom: 0.5rem;
}
.hero-counter-label {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-secondary);
}
.hero-ctas { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-mouse { width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 15px; position: relative; }
.scroll-wheel {
  width: 4px; height: 8px; background: var(--neon-cyan); border-radius: 2px;
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

/* --- 9. SECTIONS --- */
.section { padding: 120px 0; position: relative; }
.section-dark { background: linear-gradient(180deg, #080C15 0%, var(--deep-navy) 100%); }
.section-border { border-top: 1px solid var(--border-glass); }
.section-gradient { background: linear-gradient(180deg, var(--deep-navy) 0%, #080C15 100%); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .label-upper { display: block; margin-bottom: 1rem; }
.section-cta { padding: 100px 0; background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.03) 0%, transparent 70%); }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-card {
  background: var(--glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 2.5rem; transition: all 0.4s ease;
}
.why-card:hover {
  background: var(--glass-hover); border-color: var(--border-glass-hover);
  transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.why-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.06);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.why-card h3 { font-family: 'Mulish', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.why-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Steps grid */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; padding: 2rem; }
.step-number {
  font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 240, 255, 0.3);
  margin-bottom: 1.5rem; line-height: 1;
}
.step-card h3 { font-family: 'Mulish', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem; }
.step-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* --- 10. FORM ELEMENTS --- */
.form-input {
  width: 100%; padding: 16px 20px;
  background: var(--glass); border: 1px solid var(--border-glass);
  color: var(--off-white); font-family: 'Mulish', sans-serif; font-size: 1rem;
  transition: all 0.3s ease; outline: none; border-radius: var(--radius-sm);
}
.form-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }
.form-input::placeholder { color: var(--text-secondary); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* --- 11. SURVEY --- */
.survey-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.survey-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 17, 32, 0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 40px; display: flex; align-items: center; justify-content: space-between;
}
.survey-progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.1); margin: 0 20px; overflow: hidden; border-radius: 2px; }
.survey-progress-fill { height: 100%; background: var(--neon-cyan); transition: width 0.5s ease; border-radius: 2px; }
.survey-progress-text { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-secondary); font-weight: 700; min-width: 60px; text-align: right; }

.survey-question {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 100px 40px 60px; min-height: 100vh;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.survey-question.active { opacity: 1; transform: translateY(0); }
.survey-question.exit-up { opacity: 0; transform: translateY(-30px); }

.survey-bloc-intro { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--neon-cyan); margin-bottom: 1rem; }
.survey-question-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700;
  text-align: center; max-width: 700px; margin-bottom: 3rem; line-height: 1.3;
}
.survey-options { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 600px; }
.survey-option {
  padding: 18px 24px;
  background: var(--glass); border: 1px solid var(--border-glass);
  color: var(--off-white); font-family: 'Mulish', sans-serif; font-size: 1rem;
  cursor: pointer; transition: all 0.3s ease; text-align: left;
  display: flex; align-items: center; gap: 12px; border-radius: var(--radius-sm);
}
.survey-option:hover { background: var(--glass-hover); border-color: var(--neon-cyan); transform: translateX(5px); }
.survey-option.selected { background: rgba(0, 240, 255, 0.1); border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.1); }

.survey-option-marker {
  width: 20px; height: 20px; border: 2px solid var(--border-glass);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.survey-option-marker-square { border-radius: 4px; }
.survey-option.selected .survey-option-marker { border-color: var(--neon-cyan); background: var(--neon-cyan); }
.survey-option.selected .survey-option-marker::after { content: ''; width: 8px; height: 8px; background: var(--deep-navy); border-radius: 50%; }
.survey-option.selected .survey-option-marker-square::after { border-radius: 2px; }

.survey-nav { display: flex; gap: 1rem; margin-top: 2rem; }
.survey-nav-btn {
  padding: 12px 32px; background: transparent;
  border: 1px solid var(--border-glass); color: var(--text-secondary);
  font-family: 'Mulish', sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 2px;
  cursor: pointer; transition: all 0.3s ease; border-radius: var(--radius-sm);
}
.survey-nav-btn:hover { border-color: var(--off-white); color: var(--off-white); }
.survey-nav-btn.primary { border-color: var(--neon-cyan); color: var(--neon-cyan); }
.survey-nav-btn.primary:hover { background: var(--neon-cyan); color: var(--deep-navy); }
.survey-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.survey-hint { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 1rem; letter-spacing: 1px; }

.survey-end {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.survey-end-count {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5rem); font-weight: 700;
  color: var(--accent-yellow); line-height: 1; margin: 2rem 0 0.5rem;
}

/* --- 12. DASHBOARD --- */

/* Dashboard Hero */
.dash-hero { padding: 120px 0 60px; position: relative; overflow: hidden; }
.dash-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.dash-hero-bg canvas { width: 100%; height: 100%; }
.dash-hero-content { text-align: center; margin-bottom: 3rem; }

/* KPI Cards */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.kpi-card {
  background: var(--glass); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 1.5rem; text-align: center;
  transition: all 0.4s ease; position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.kpi-cyan::before { background: var(--neon-cyan); }
.kpi-orange::before { background: var(--burn-orange); }
.kpi-yellow::before { background: var(--accent-yellow); }
.kpi-magenta::before { background: var(--neon-magenta); }
.kpi-card:hover { transform: translateY(-4px); background: var(--glass-hover); border-color: var(--border-glass-hover); box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.kpi-icon { margin-bottom: 0.75rem; opacity: 0.7; }
.kpi-cyan .kpi-icon { color: var(--neon-cyan); }
.kpi-orange .kpi-icon { color: var(--burn-orange); }
.kpi-yellow .kpi-icon { color: var(--accent-yellow); }
.kpi-magenta .kpi-icon { color: var(--neon-magenta); }
.kpi-value { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: 0.25rem; }
.kpi-cyan .kpi-value { color: var(--neon-cyan); }
.kpi-orange .kpi-value { color: var(--burn-orange); }
.kpi-yellow .kpi-value { color: var(--accent-yellow); }
.kpi-magenta .kpi-value { color: var(--neon-magenta); }
.kpi-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); font-weight: 600; }

/* Block Navigation */
.dash-block-nav {
  position: sticky; top: 65px; z-index: 50;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass); padding: 0 40px;
}
.block-nav-inner {
  max-width: 1400px; margin: 0 auto; display: flex; gap: 0;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.block-nav-inner::-webkit-scrollbar { display: none; }
.block-nav-btn {
  padding: 16px 20px; background: none; border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary); font-family: 'Mulish', sans-serif;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; cursor: pointer; transition: all 0.3s ease;
  white-space: nowrap; flex-shrink: 0;
}
.block-nav-btn:hover { color: var(--off-white); }
.block-nav-btn.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }

/* Block sections */
.dash-block-section { padding: 3rem 0 1rem; max-width: 1400px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.dash-block-header {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-glass);
}
.dash-block-number {
  font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(0, 240, 255, 0.25); line-height: 1; flex-shrink: 0;
}
.dash-block-title { font-family: 'Mulish', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--off-white); margin: 0; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 1.5rem; }

/* Chart Cards */
.chart-card {
  background: var(--glass); border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 2rem; border-radius: var(--radius-lg); transition: all 0.4s ease;
}
.chart-card:hover { border-color: var(--border-glass-hover); background: var(--glass-hover); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.chart-card-wide { grid-column: 1 / -1; }
.chart-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.chart-card-title {
  font-family: 'Mulish', sans-serif; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--neon-cyan); font-weight: 700; flex: 1; min-width: 200px;
}
.chart-card-badge {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 10px; background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 100px;
  color: var(--neon-cyan); white-space: nowrap; flex-shrink: 0;
}
.text-badge { background: rgba(255, 85, 0, 0.08); border-color: rgba(255, 85, 0, 0.2); color: var(--burn-orange); }
.chart-card-count { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* Donut chart layout */
.chart-donut-wrap { display: flex; align-items: center; gap: 2rem; }
.chart-donut-canvas { flex-shrink: 0; width: 180px; height: 180px; }
.chart-donut-canvas canvas { max-width: 100%; max-height: 100%; }
.chart-donut-legend { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { flex: 1; color: var(--off-white); line-height: 1.3; }
.legend-value { font-weight: 700; color: var(--off-white); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Bar charts */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { font-size: 0.8rem; color: var(--off-white); min-width: 180px; flex-shrink: 0; line-height: 1.3; }
.bar-track { flex: 1; height: 26px; background: rgba(255,255,255,0.04); position: relative; overflow: hidden; border-radius: 4px; }
.bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--neon-cyan), rgba(0,240,255,0.5));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; border-radius: 4px;
}
.bar-value { font-size: 0.8rem; font-weight: 700; color: var(--off-white); min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.bar-value span { color: var(--text-secondary); font-weight: 400; }

/* Word cloud */
.word-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; align-items: center; }
.word-tag {
  padding: 4px 12px; background: rgba(0,240,255,0.04);
  border: 1px solid rgba(0,240,255,0.1); border-radius: 100px;
  font-weight: 700; color: var(--tag-color, var(--neon-cyan));
  transition: all 0.3s ease; line-height: 1.4;
}
.word-tag:hover { background: rgba(0,240,255,0.1); border-color: rgba(0,240,255,0.3); transform: scale(1.05); }

/* Text responses */
.text-responses { display: flex; flex-direction: column; gap: 10px; max-height: 350px; overflow-y: auto; }
.text-response {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm); border-left: 3px solid var(--burn-orange);
  transition: all 0.3s ease;
}
.text-response:hover { background: rgba(255,255,255,0.04); }
.text-response .quote-icon { flex-shrink: 0; margin-top: 2px; }
.text-response p { font-size: 0.85rem; color: var(--off-white); line-height: 1.6; font-style: italic; }
.text-responses::-webkit-scrollbar { width: 4px; }
.text-responses::-webkit-scrollbar-track { background: transparent; }
.text-responses::-webkit-scrollbar-thumb { background: var(--border-glass); border-radius: 2px; }

/* Cross data tables */
.cross-table-wrap { overflow-x: auto; }
.cross-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.cross-table th {
  font-family: 'Mulish', sans-serif; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--neon-cyan); text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--border-glass); font-weight: 700;
}
.cross-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--off-white); }
.cross-table tr:hover td { background: var(--glass-hover); }
.cross-group-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.cross-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.cross-bar-track { height: 8px; background: rgba(255,255,255,0.04); border-radius: 4px; overflow: hidden; }
.cross-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* Gate progress */
.gate-container { display: flex; flex-direction: column; align-items: center; }
.gate-icon { margin-bottom: 2rem; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.gate-progress { width: 100%; max-width: 400px; margin: 2rem 0; }
.gate-progress-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.gate-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--neon-cyan), var(--accent-yellow));
  border-radius: 4px; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); width: 0%;
}
.gate-progress-markers { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.6rem; color: var(--text-secondary); letter-spacing: 1px; }

/* --- 13. ADMIN --- */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table th {
  font-family: 'Mulish', sans-serif; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--neon-cyan); text-align: left; padding: 12px 8px;
  border-bottom: 1px solid var(--border-glass); white-space: nowrap;
}
.admin-table td {
  padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--off-white); max-width: 150px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.admin-table tr:hover td { background: var(--glass-hover); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-box {
  width: 100%; max-width: 400px; padding: 3rem;
  background: var(--glass); border: 1px solid var(--border-glass);
  text-align: center; border-radius: var(--radius-lg);
}

/* --- 14. FOOTER --- */
.footer { padding: 60px 0 40px; text-align: center; border-top: 1px solid var(--border-glass); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-brand { font-family: 'Mulish', sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--off-white); opacity: 0.6; }
.footer-mark { font-size: 0.7rem; color: var(--text-secondary); opacity: 0.4; }
.footer-text { font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-secondary); font-weight: 700; opacity: 0.5; }

/* --- 15. ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* --- 16. GRID BACKGROUND --- */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Loading spinner */
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border-glass); border-top-color: var(--neon-cyan);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Manifesto */
.manifesto-text { font-size: 1.2rem; max-width: 800px; margin: 0 auto; border-left: 2px solid var(--burn-orange); padding-left: 40px; line-height: 1.9; }

/* --- 17. RESPONSIVE --- */
@media (max-width: 1024px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-elite, .hero-ctas .btn-accent, .hero-ctas .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .why-grid, .steps-grid { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .bar-label { min-width: 120px; font-size: 0.75rem; }
  .bar-value { min-width: 60px; font-size: 0.7rem; }
  .chart-donut-wrap { flex-direction: column; align-items: center; }
  .chart-donut-canvas { width: 150px; height: 150px; }
  .survey-question { padding: 80px 20px 40px; }
  .survey-progress { padding: 12px 20px; }
  .dash-block-nav { padding: 0 20px; }
  .dash-block-section { padding-left: 20px; padding-right: 20px; }
  .dash-hero { padding: 100px 0 40px; }
  .manifesto-text { padding-left: 20px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .bar-row { flex-wrap: wrap; }
  .bar-label { min-width: 100%; font-size: 0.8rem; }
  .bar-track { flex: 1; }
  .kpi-row { grid-template-columns: 1fr; }
  .kpi-value { font-size: 2rem; }
}

/* --- 18. UTILITY --- */
.text-cyan { color: var(--neon-cyan); }
.text-magenta { color: var(--neon-magenta); }
.text-orange { color: var(--burn-orange); }
.text-yellow { color: var(--accent-yellow); }
.text-accent { color: var(--accent-yellow); }
.text-primary { color: var(--primary-light); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.hidden { display: none !important; }
