/* ================================================================
   CommunicGel — Global Styles
   Clear Purple glassmorphism design
================================================================ */

/* ── Google Font: Outfit ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  /* Backgrounds — light lavender / white */
  --bg-deep:      #f3eeff;
  --bg-mid:       #ede8ff;
  --bg-surface:   rgba(147, 51, 234, 0.06);
  --bg-surface-2: rgba(147, 51, 234, 0.10);
  --border:       rgba(147, 51, 234, 0.15);
  --border-2:     rgba(147, 51, 234, 0.25);

  /* Text — dark for readability on light bg */
  --text-primary:   #1e0a3c;
  --text-secondary: rgba(30, 10, 60, 0.68);
  --text-muted:     rgba(30, 10, 60, 0.45);

  /* Accent — soft medium purple */
  --accent:         #7c3aed;
  --accent-light:   #a78bfa;
  --accent-glow:    rgba(124, 58, 237, 0.20);

  /* Gradients */
  --grad-purple: linear-gradient(135deg, #7c3aed, #c4b5fd);
  --grad-blue:   linear-gradient(135deg, #1d4ed8, #93c5fd);
  --grad-green:  linear-gradient(135deg, #15803d, #86efac);
  --grad-amber:  linear-gradient(135deg, #b45309, #fcd34d);
  --grad-accent: linear-gradient(135deg, #7c3aed 0%, #a78bfa 60%, #c4b5fd 100%);

  /* Glass — white-tinted panels */
  --glass-bg:     rgba(255, 255, 255, 0.60);
  --glass-border: rgba(147, 51, 234, 0.18);
  --glass-blur:   blur(24px) saturate(160%);

  /* Shape */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows — soft purple tint */
  --shadow-sm:  0 4px 16px rgba(124,58,237,0.10);
  --shadow-md:  0 8px 32px rgba(124,58,237,0.15);
  --shadow-lg:  0 20px 60px rgba(124,58,237,0.20);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Motion */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Italic Typography ── */
.italic-title {
  font-family: 'Playfair Display', 'Outfit', serif;
  font-style: italic;
}
.italic-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
}
.italic-desc {
  font-style: italic;
}
.italic-badge {
  font-style: italic;
}
.italic-text {
  font-style: italic;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: linear-gradient(160deg, #f8f4ff 0%, #ede8ff 40%, #e9d5ff 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Animated background orbs ── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float linear infinite;
}

.orb-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #c4b5fd, #a78bfa);
  top: -220px; left: -180px;
  animation-duration: 22s;
  animation-name: float1;
  opacity: 0.45;
}
.orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #ddd6fe, #c4b5fd);
  top: 30%; right: -150px;
  animation-duration: 18s;
  animation-name: float2;
  opacity: 0.35;
}
.orb-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #e9d5ff, #d8b4fe);
  bottom: 10%; left: 20%;
  animation-duration: 26s;
  animation-name: float3;
  opacity: 0.40;
}
.orb-4 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f3e8ff, #e9d5ff);
  bottom: -100px; right: 10%;
  animation-duration: 20s;
  animation-name: float1;
  opacity: 0.30;
}

@keyframes float1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, 30px) scale(1.05); }
  66%  { transform: translate(-20px, 50px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes float2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, 40px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes float3 {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(30px, -40px) rotate(5deg) scale(1.04); }
  75%  { transform: translate(-30px, 20px) rotate(-3deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* ── Screens ── */
.screen {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
}
.screen.active { display: block; animation: screenIn var(--transition-slow) ease both; }
.screen.screen-exit { animation: screenOut 0.3s ease forwards; }
.screen.screen-enter { animation: screenIn 0.4s ease both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}

/* ════════════════════════════════════
   NAVBAR
════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { border-radius: 8px; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.logo-accent { color: var(--accent-light); }

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav-ghost {
  padding: 8px 18px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-nav-ghost:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.btn-nav-cta {
  padding: 10px 22px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(109,40,217,0.35);
}
.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(147,51,234,0.55);
}

/* ════════════════════════════════════
   WELCOME SCREEN
════════════════════════════════════ */
.welcome-hero-section {
  padding: 50px 24px 80px;
  max-width: 1020px;
  margin: 0 auto;
}

.welcome-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 52px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.badge-sparkle { font-size: 1rem; }

.welcome-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.welcome-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 44px;
}

/* Feature cards grid */
.welcome-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
  text-align: left;
}

.wf-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.wf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}

.wf-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.violet-glow { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }
.blue-glow   { background: rgba(29, 78, 216, 0.12);  color: #1d4ed8; }
.green-glow  { background: rgba(21, 128, 61, 0.12);  color: #15803d; }

.wf-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.wf-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps section */
.welcome-steps-wrapper {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 44px;
}

.welcome-steps-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.welcome-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ws-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
}

.ws-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}

.ws-step-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ws-step-text span {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.welcome-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pulse-glow {
  animation: buttonPulse 3s ease infinite;
}
@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(124,58,237,0.40); }
  50%       { box-shadow: 0 10px 36px rgba(124,58,237,0.70); }
}

@media (max-width: 768px) {
  .welcome-card { padding: 36px 20px; }
  .welcome-steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ════════════════════════════════════
   HERO SECTION
════════════════════════════════════ */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 80px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(109,40,217,0.15);
  border: 1px solid rgba(109,40,217,0.4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(109,40,217,0.40);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(147,51,234,0.65);
}
.btn-primary:active { transform: translateY(-1px) scale(1); }

.btn-primary.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Ghost button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 20px 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: fit-content;
}
.stat-item { text-align: center; padding: 0 24px; }
.stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.stat-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual: animated bandage mockup */
.hero-visual {
  flex: 0 0 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bandage-mockup {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(109,40,217,0.3);
  animation: ringPulse 3s ease infinite;
}
.bm-ring-1 { width: 260px; height: 260px; animation-delay: 0s; }
.bm-ring-2 { width: 200px; height: 200px; animation-delay: 0.8s; border-color: rgba(109,40,217,0.5); }
.bm-ring-3 { width: 140px; height: 140px; animation-delay: 1.6s; border-color: rgba(109,40,217,0.7); }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.04); opacity: 1; }
}

.bm-center {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  background: var(--grad-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(109,40,217,0.5), 0 0 120px rgba(109,40,217,0.2);
  animation: centerPulse 4s ease infinite;
}
@keyframes centerPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(109,40,217,0.5), 0 0 120px rgba(109,40,217,0.2); }
  50%       { box-shadow: 0 0 80px rgba(109,40,217,0.7), 0 0 160px rgba(109,40,217,0.3); }
}

/* Orbiting color dots */
.bm-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
}
.bm-dot-violet { background: #8b5cf6; top: 20px; left: 50%; transform: translateX(-50%); animation: orbitDot 8s linear infinite; }
.bm-dot-bleu   { background: #3b82f6; animation: orbitDot 8s linear 2s infinite; right: 20px; top: 50%; transform: translateY(-50%); }
.bm-dot-vert   { background: #22c55e; bottom: 20px; left: 50%; transform: translateX(-50%); animation: orbitDot 8s linear 4s infinite; }
.bm-dot-jaune  { background: #f59e0b; left: 20px; top: 50%; transform: translateY(-50%); animation: orbitDot 8s linear 6s infinite; }

@keyframes orbitDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ════════════════════════════════════
   COLOR GUIDE SECTION
════════════════════════════════════ */
.guide-section {
  padding: 80px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 48px; }

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(109,40,217,0.15);
  border: 1px solid rgba(109,40,217,0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.color-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.guide-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}
.guide-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.gc-swatch {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gc-icon { font-size: 2.6rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }

.gc-body { padding: 20px; }

.gc-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.06em;
  margin-bottom: 10px;
}
.gc-badge.normal   { background: rgba(109,40,217,0.2); color: #a78bfa; border: 1px solid rgba(109,40,217,0.4); }
.gc-badge.warning  { background: rgba(29,78,216,0.2);  color: #93c5fd; border: 1px solid rgba(29,78,216,0.4); }
.gc-badge.danger   { background: rgba(21,128,61,0.2);  color: #86efac; border: 1px solid rgba(21,128,61,0.4); }
.gc-badge.critical { background: rgba(180,83,9,0.2);   color: #fcd34d; border: 1px solid rgba(180,83,9,0.5); }

.gc-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.gc-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.gc-action {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════
   HOME CTA + FOOTER
════════════════════════════════════ */
.home-cta-section {
  padding: 40px 64px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-cta-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(109,40,217,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.home-cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.home-cta-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.home-footer {
  padding: 24px 64px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.legal-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 8px;
}
.footer-credits {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════
   DIAGNOSTIC SCREEN
════════════════════════════════════ */
.diag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(5, 5, 20, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-back:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.diag-header-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* DB status pill */
.header-db-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
}
.db-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}
.db-dot.ready  { background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: blink 2s ease infinite; }
.db-dot.loading { background: #f59e0b; animation: blink 0.5s ease infinite; }
.db-dot.error  { background: #ef4444; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Diagnostic main container */
.diag-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.diag-question {
  text-align: center;
  padding: 8px 0;
}
.diag-question h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.diag-question p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Method Tabs ── */
.method-tabs {
  display: flex;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 6px;
}

.method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.method-tab:hover { color: var(--text-secondary); background: var(--bg-surface-2); }
.method-tab.active {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 4px 16px rgba(109,40,217,0.35);
}
.tab-icon { font-size: 1rem; }

/* ── Method Panels ── */
.method-panel {
  display: none;
  animation: panelIn 0.3s ease both;
}
.method-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* ── Color Selector (Manual) ── */
.color-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.color-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 18px;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.color-select-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  transition: var(--transition);
}
.color-select-btn:hover {
  border-color: var(--border-2);
  background: var(--bg-surface-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.color-select-btn.selected {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.color-select-btn.selected#btn-violet { border-color: #8b5cf6; box-shadow: 0 0 0 1px #8b5cf6, 0 8px 32px rgba(109,40,217,0.4); }
.color-select-btn.selected#btn-bleu   { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6, 0 8px 32px rgba(29,78,216,0.4); }
.color-select-btn.selected#btn-vert   { border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e, 0 8px 32px rgba(21,128,61,0.4); }
.color-select-btn.selected#btn-jaune  { border-color: #f59e0b; box-shadow: 0 0 0 1px #f59e0b, 0 8px 32px rgba(180,83,9,0.4); }

.cs-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: var(--transition);
  position: relative;
}
.color-select-btn:hover .cs-circle { transform: scale(1.08); }
.color-select-btn.selected .cs-circle { transform: scale(1.12); }

.cs-check {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition);
}
.color-select-btn.selected .cs-check { opacity: 1; transform: scale(1); }

.cs-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.cs-status-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.normal-lbl   { background: rgba(109,40,217,0.2); color: #a78bfa; }
.warning-lbl  { background: rgba(29,78,216,0.2);  color: #93c5fd; }
.danger-lbl   { background: rgba(21,128,61,0.2);  color: #86efac; }
.critical-lbl { background: rgba(180,83,9,0.2);   color: #fcd34d; }

/* ── Camera Panel ── */
.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--glass-bg);
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  gap: 14px;
}

.cam-placeholder-icon { font-size: 3rem; }
.camera-placeholder h3 { font-size: 1.2rem; font-weight: 700; }
.camera-placeholder p { font-size: 0.9rem; color: var(--text-secondary); max-width: 360px; line-height: 1.6; }

.btn-start-cam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(109,40,217,0.4);
  margin-top: 8px;
}
.btn-start-cam:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,40,217,0.55); }

.camera-active { display: flex; flex-direction: column; gap: 16px; }

.camera-preview-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  max-height: 360px;
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#camera-canvas { display: none; }

/* Camera overlay UI */
.cam-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.cam-target-outer {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  animation: targetPulse 2.5s ease infinite;
}
.cam-target-inner {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,0.1);
}
@keyframes targetPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(1.05); opacity: 1; }
}

.cam-target-label {
  position: absolute;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.cam-cross-h, .cam-cross-v {
  position: absolute;
  background: rgba(255,255,255,0.25);
}
.cam-cross-h { width: 40px; height: 1px; }
.cam-cross-v { width: 1px; height: 40px; }

/* Live detection bar */
.live-detection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.live-swatch-wrap { display: flex; align-items: center; gap: 12px; }

.live-swatch {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  transition: background 0.5s ease;
  flex-shrink: 0;
}

.live-text { display: flex; flex-direction: column; gap: 2px; }
.live-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.live-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); transition: color 0.4s ease; }

.cam-controls { display: flex; gap: 8px; align-items: center; }

.btn-capture {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(109,40,217,0.3);
}
.btn-capture:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(109,40,217,0.5); }

.btn-stop-cam {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.btn-stop-cam:hover { background: rgba(239,68,68,0.2); color: #f87171; border-color: rgba(239,68,68,0.4); }

/* ── Text Panel ── */
.text-panel-wrapper { display: flex; flex-direction: column; gap: 16px; }

.text-input-row { display: flex; gap: 10px; }

.color-text-field {
  flex: 1;
  padding: 14px 18px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}
.color-text-field::placeholder { color: var(--text-muted); }
.color-text-field:focus {
  border-color: rgba(109,40,217,0.6);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.2);
  background: rgba(255,255,255,0.07);
}

.btn-analyze-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(109,40,217,0.3);
  white-space: nowrap;
}
.btn-analyze-text:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(109,40,217,0.5); }

.suggestion-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sugg-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.sugg-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.sugg-chip:hover { border-color: var(--border-2); background: var(--bg-surface-2); color: var(--text-primary); transform: translateY(-1px); }
.chip-violet:hover { border-color: rgba(109,40,217,0.6); color: #a78bfa; }
.chip-bleu:hover   { border-color: rgba(59,130,246,0.6); color: #93c5fd; }
.chip-vert:hover   { border-color: rgba(34,197,94,0.6);  color: #86efac; }
.chip-jaune:hover  { border-color: rgba(245,158,11,0.6); color: #fcd34d; }

.text-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: #fca5a5;
  animation: shakeX 0.4s ease;
}
@keyframes shakeX {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ════════════════════════════════════
   DIAGNOSIS RESULT CARD
════════════════════════════════════ */
.diagnosis-result {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  animation: resultSlideIn 0.4s ease both;
}
.diagnosis-result.hidden { display: none !important; }

@keyframes resultSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.result-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.result-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 20px currentColor;
  transition: background 0.5s ease;
}

.result-header-text { display: flex; flex-direction: column; gap: 4px; }

.result-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.06em;
}
.badge-normal   { background: rgba(109,40,217,0.2); color: #a78bfa; border: 1px solid rgba(109,40,217,0.4); }
.badge-warning  { background: rgba(29,78,216,0.2);  color: #93c5fd; border: 1px solid rgba(29,78,216,0.4); }
.badge-danger   { background: rgba(21,128,61,0.2);  color: #86efac; border: 1px solid rgba(21,128,61,0.4); }
.badge-critical { background: rgba(180,83,9,0.25);  color: #fcd34d; border: 1px solid rgba(245,158,11,0.5); }

.result-color-name { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }

/* Medical status line */
.result-medical {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255,255,255,0.2);
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.result-medical svg { flex-shrink: 0; margin-top: 1px; }

/* Message box */
.result-message-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.result-message-box p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Instructions */
.result-instructions h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.result-instructions p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Validate button */
.btn-validate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.btn-validate:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,0.4); }
.btn-validate:active { transform: translateY(0); }

/* ════════════════════════════════════
   TIMER SECTION
════════════════════════════════════ */
.timer-section.hidden { display: none !important; }
.timer-section { animation: resultSlideIn 0.5s ease both; }

.timer-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.timer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(109,40,217,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.timer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timer-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.timer-svg { display: block; }

.timer-track { stroke: rgba(255,255,255,0.08); }
.timer-arc {
  stroke: url(#timerGrad);
  stroke: #6d28d9;
  transition: stroke-dashoffset 1s linear;
}

.timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.timer-countdown {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.timer-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timer-next-wrap {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}
.timer-next-wrap strong { color: var(--text-primary); }

/* Timer expired state */
.timer-card.timer-expired { animation: urgentPulse 1s ease infinite; border-color: rgba(239,68,68,0.5); }
.timer-card.timer-expired .timer-countdown { color: #f87171; }

@keyframes urgentPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0.15); }
}

.btn-new-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-new-check:hover { background: var(--grad-accent); color: white; border-color: transparent; box-shadow: 0 4px 20px rgba(109,40,217,0.4); }

/* ════════════════════════════════════
   HISTORY SECTION
════════════════════════════════════ */
.history-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.history-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-clear-hist {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-clear-hist:hover { background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.4); }

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}
.empty-illus { font-size: 2.5rem; filter: grayscale(0.5); opacity: 0.5; }
.history-empty p { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.history-empty span { font-size: 0.82rem; color: var(--text-muted); }

.history-list { display: flex; flex-direction: column; }

.history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  border-left: 3px solid transparent;
  animation: histRowIn 0.3s ease both;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: var(--bg-surface-2); }

@keyframes histRowIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hist-color-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hist-info { flex: 1; min-width: 0; }
.hist-color-name { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.hist-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hist-times { text-align: right; flex-shrink: 0; }
.hist-timestamp { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.hist-next { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ════════════════════════════════════
   LEGAL NOTICE
════════════════════════════════════ */
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 24px 32px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-notice svg { flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════
   NOTIFICATION TOAST
════════════════════════════════════ */
.notif-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(124,58,237,0.20), 0 0 0 1px rgba(124,58,237,0.15);
  backdrop-filter: blur(20px);
  max-width: calc(100vw - 48px);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.notif-toast.hidden { display: none !important; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toast-emoji { font-size: 1.4rem; flex-shrink: 0; }
.toast-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.toast-text strong { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.toast-text span { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.toast-btn-yes {
  padding: 8px 16px;
  background: var(--grad-accent);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}
.toast-btn-yes:hover { filter: brightness(1.15); }

.toast-btn-no {
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.toast-btn-no:hover { background: var(--bg-surface-2); color: var(--text-primary); }

/* ════════════════════════════════════
   UTILITY
════════════════════════════════════ */
.hidden { display: none !important; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-section { flex-direction: column; padding: 48px 32px; gap: 40px; }
  .hero-visual { display: none; }
  .guide-section { padding: 60px 24px; }
  .home-cta-section { padding: 24px 24px 60px; }
  .home-cta-card { padding: 40px 32px; }
  .home-footer { padding: 20px 24px 40px; }
}

@media (max-width: 600px) {
  .navbar { padding: 12px 16px; }
  .btn-nav-cta { padding: 8px 14px; font-size: 0.8rem; }
  .hero-section { padding: 32px 20px; }
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 12px; width: 100%; }
  .stat-sep { width: 100%; height: 1px; }
  .stat-item { padding: 0; }
  .guide-section { padding: 40px 16px; }
  .color-guide-grid { grid-template-columns: 1fr; }
  .home-cta-card { padding: 32px 20px; }
  .diag-container { padding: 24px 16px 48px; }
  .color-selector-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cs-circle { width: 60px; height: 60px; }
  .method-tab span:not(.tab-icon) { display: none; }
  .live-detection-bar { flex-direction: column; gap: 12px; }
  .cam-controls { width: 100%; justify-content: center; }
}
