/* ============================================================
   STYLE.CSS – Global stylesheet master import
   Simulador Examen CR
   ============================================================ */

@import url('variables.css');
@import url('reset.css');
@import url('typography.css');
@import url('layout.css');
@import url('animations.css');
@import url('components.css');
@import url('utilities.css');
@import url('responsive.css');
@import url('simulator.css');

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  /* safe-area for iPhone notch / Dynamic Island */
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    height           var(--anim-duration-base) var(--anim-easing),
    background       var(--anim-duration-base) var(--anim-easing),
    box-shadow       var(--anim-duration-base) var(--anim-easing),
    border-color     var(--anim-duration-base) var(--anim-easing);
}

[data-theme="dark"] .header {
  background: rgba(17, 24, 39, 0.88);
  border-color: var(--border);
}

.header.scrolled {
  height: var(--header-height-shrunk);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  background: rgba(248, 250, 252, 0.95);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(17, 24, 39, 0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: opacity var(--anim-duration-fast) var(--anim-easing);
}
.logo:hover { opacity: 0.8; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Logo text: hide on very small phones to save space */
.logo-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
}
@media (max-width: 359px) {
  .logo-text { display: none; }
}

/* Desktop Nav — hidden by default (mobile-first), shown at md via responsive.css */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    color            var(--anim-duration-fast) var(--anim-easing),
    background-color var(--anim-duration-fast) var(--anim-easing);
}
.nav-link:hover {
  color: var(--nav-hover-text);
  background: var(--nav-hover);
}
.nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.nav-link.active { color: var(--color-primary); font-weight: var(--font-weight-semibold); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--anim-duration-fast) var(--anim-easing);
}
.theme-toggle:hover { background: var(--color-bg-subtle); color: var(--color-text); }

/* Hamburger */
.hamburger {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--color-text-muted);
}
.hamburger:hover { background: var(--color-bg-subtle); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition: transform var(--anim-duration-base) var(--anim-easing),
              opacity var(--anim-duration-base) var(--anim-easing);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--anim-duration-base) var(--anim-easing-out),
    visibility var(--anim-duration-base) var(--anim-easing-out);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Drawer — slides in from right */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 85vw);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: max(var(--space-8), env(safe-area-inset-bottom, var(--space-8)));
  padding-right: env(safe-area-inset-right, 0px);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  z-index: calc(var(--z-overlay) + 10);
  transform: translateX(100%);
  visibility: hidden;
  transition:
    transform   var(--anim-duration-base) var(--anim-easing-out),
    visibility  var(--anim-duration-base) var(--anim-easing-out);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
}

/* Drawer header */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background-color var(--anim-duration-fast) var(--anim-easing);
}
.nav-mobile-close:hover { background: var(--nav-hover); color: var(--nav-hover-text); }
.nav-mobile-close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Drawer nav links */
.nav-mobile .nav-link {
  display: flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  border-radius: 0;
  min-height: 52px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}
.nav-mobile .nav-link:hover {
  background: var(--nav-hover);
  color: var(--nav-hover-text);
}
.nav-mobile .nav-link:last-of-type { border-bottom: none; }

/* Drawer footer with CTA */
.nav-mobile-footer {
  margin-top: auto;
  padding: var(--space-6);
  flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* On mobile the hero handles its own top offset. On tablet+ it's overridden by responsive.css */
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-12);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-20));
    padding-bottom: var(--space-20);
  }
}

/* Subtle grid/mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.07) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr 1fr; align-items: center; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}
[data-theme="dark"] .hero-badge {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.3);
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 500px;
  margin-bottom: var(--space-8);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero-trust-avatars {
  display: flex;
  margin-right: var(--space-1);
}
.hero-trust-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--color-primary-light), #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}
.hero-trust-avatar:first-child { margin-left: 0; }
.hero-trust-text { font-size: var(--text-sm); color: var(--color-text-muted); }
.hero-trust-text strong { color: var(--color-text); }

/* Hero Visual / Stats Panel */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-stats-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.hero-stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #8B5CF6);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.hero-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-mini-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.hero-mini-card .badge { font-size: 10px; }

/* ============================================================
   SECTIONS – Home page
   ============================================================ */

/* Section header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  transition: all var(--anim-duration-base) var(--anim-easing);
}
.benefit-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-200);
  transform: translateY(-3px);
}
.benefit-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--color-primary-50);
  color: var(--color-primary);
}
[data-theme="dark"] .benefit-icon-wrap {
  background: rgba(37,99,235,0.12);
}
.benefit-title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.benefit-desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* How it works */
.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  flex-shrink: 0;
}
.step-title { font-size: var(--text-base); font-weight: var(--font-weight-semibold); color: var(--color-text); }
.step-desc  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: var(--leading-relaxed); }

/* Stats counter section */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary), #7C3AED);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  position: relative;
}
.counter-item {}
.counter-value {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.counter-label { font-size: var(--text-sm); opacity: 0.8; font-weight: var(--font-weight-medium); }

/* FAQ */
.faq-section { max-width: 720px; margin-inline: auto; }

/* CTA */
.cta-section {
  text-align: center;
  padding: var(--space-20) var(--space-6);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
}
.cta-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.cta-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-actions { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}
/* Footer responsive rules are in responsive.css (mobile-first) */

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 260px;
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--anim-duration-fast) var(--anim-easing);
}
.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-50);
}
[data-theme="dark"] .social-link:hover { background: rgba(37,99,235,0.12); }

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--anim-duration-fast) var(--anim-easing);
}
.footer-link:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.footer-copyright { font-size: var(--text-sm); color: var(--color-text-subtle); }
.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}
.footer-bottom-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--anim-duration-fast) var(--anim-easing);
}
.footer-bottom-link:hover { color: var(--color-text); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content {
  display: block;
}
/* Ensure the first section of any page clears the fixed header */
.main-content > section:first-child {
  padding-top: calc(var(--header-height) + var(--space-8));
}
@media (min-width: 768px) {
  .main-content > section:first-child {
    padding-top: calc(var(--header-height) + var(--space-12));
  }
}

/* ============================================================
   SECTION BACKGROUND VARIANTS
   ============================================================ */
.bg-white  { background-color: var(--color-surface); }
.bg-subtle { background-color: var(--color-bg-subtle); }

/* ============================================================
   THEME TRANSITION — smooth switch without FOUC
   ============================================================ */
html {
  transition:
    background-color var(--anim-duration-base) var(--anim-easing),
    color            var(--anim-duration-base) var(--anim-easing);
}

[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }

/* ============================================================
   SIM COUNTER — used by InfiniteMode
   ============================================================ */
.sim-counter {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ============================================================
   SCORE DONUT (ResultsScreen)
   ============================================================ */
.score-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.score-donut {
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.08));
}

.donut-score-text {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-sans);
  dominant-baseline: middle;
}

.donut-grade-text {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-sans);
  dominant-baseline: middle;
}

.donut-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   RESULTS ENCOURAGEMENT
   ============================================================ */
.results-encouragement {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
  max-width: 380px;
  margin-inline: auto;
}

/* ============================================================
   CATEGORY BARS (shared by ResultsScreen + Dashboard)
   ============================================================ */
.cat-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.cat-bar-item {}

.cat-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.cat-bar-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.cat-bar-pct {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
}

.cat-bar-sub {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ============================================================
   TREND CHART (Dashboard)
   ============================================================ */
.trend-chart-wrap {
  overflow-x: auto;
}

.chart-label {
  font-size: 11px;
  fill: var(--text-secondary);
  font-family: var(--font-sans);
}

.chart-label--threshold {
  fill: var(--color-warning);
  font-weight: 600;
}

.chart-grid {
  stroke: var(--color-border);
  stroke-width: 1;
}

.chart-threshold {
  stroke: var(--color-warning);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.chart-caption {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  text-align: center;
  margin-top: var(--space-2);
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.dashboard-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.dashboard-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

/* KPI grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}

.dash-kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: box-shadow var(--anim-duration-base) var(--anim-easing);
}

.dash-kpi-card:hover {
  box-shadow: var(--shadow-md);
}

.dash-kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}

.dash-kpi-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1;
}

.dash-kpi-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Two-column layout for streak + errors cards */
.dash-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.dash-section-title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.dash-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* Streak bar */
.streak-bar {
  margin-top: var(--space-4);
}

.streak-dots {
  display: flex;
  gap: var(--space-2);
  justify-content: space-between;
}

.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.streak-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  border: 2px solid var(--color-border);
  transition: all var(--anim-duration-base) var(--anim-easing);
}

.streak-dot--active {
  background: var(--color-warning);
  border-color: var(--color-warning);
  box-shadow: 0 0 8px rgba(245,158,11,0.4);
}

.streak-day-label {
  font-size: 10px;
  color: var(--color-text-subtle);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

/* Achievements */
.achievements-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.achievement {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--anim-duration-fast) var(--anim-easing);
}

.achievement--earned {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

[data-theme="dark"] .achievement--earned {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.3);
}

.achievement--locked {
  opacity: 0.55;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

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

.achievement-body {
  flex: 1;
  min-width: 0;
}

.achievement-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.achievement-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* History list */
.history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  flex-wrap: wrap;
}

.history-row-left,
.history-row-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.history-mode {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.history-score {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.history-date {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

/* ============================================================
   TEXT COLOR UTILITIES (used in dashboard + results)
   ============================================================ */
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-error   { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-neutral { color: var(--color-text-muted); }

/* ============================================================
   DASHBOARD PAGE (home.js) — Mobile-First
   ============================================================ */

/* spacing helpers for dashboard */
.section-padding-top { padding-top: calc(var(--header-height) + var(--space-8)); }
.section-padding-sm  { padding-top: var(--space-6); padding-bottom: 0; }

/* ── Dash Page shell ── */
.dash-page {
  min-height: 100vh;
  background: var(--color-bg);
}

/* ── Hero / Greeting ── */
.dash-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.dash-hero__country-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-200);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  width: fit-content;
}
[data-theme="dark"] .dash-hero__country-chip {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.3);
}

.dash-hero__flag { font-size: 1.125rem; line-height: 1; }
.dash-hero__country-name { font-size: var(--text-sm); }

.dash-hero__title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.15;
  margin: 0;
}

.dash-hero__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: calc(var(--space-1) * -1) 0 0;
}

.dash-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  justify-content: center;
  transition: transform var(--anim-duration-fast) var(--anim-easing-spring),
              box-shadow var(--anim-duration-fast) var(--anim-easing);
}
.dash-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,58,138,0.3);
}
[data-theme="dark"] .dash-hero__cta:hover {
  box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}

/* desktop: side-by-side */
@media (min-width: 640px) {
  .dash-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .dash-hero__cta { width: auto; }
  .dash-hero__cta-group { flex-direction: row; }
}

/* CTA group: stacks on mobile, row on tablet+ */
.dash-hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .dash-hero__cta-group {
    flex-direction: row;
    width: auto;
  }
}

/* ── Top Grid: streak + KPIs ── */
.dash-top-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Streak Card ── */
.dash-streak-card {
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .dash-streak-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 60%, #3b82f6 100%);
}
.dash-streak-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
  pointer-events: none;
}

.dash-streak-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.dash-streak-card__icon { font-size: 1.25rem; line-height: 1; }
.dash-streak-card__title {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.dash-streak-card__value {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.dash-streak-card__sub {
  font-size: var(--text-xs);
  opacity: 0.75;
  margin: 0;
}

/* ── KPI Row ── */
.dash-kpis-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.dash-kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  transition: box-shadow var(--anim-duration-base) var(--anim-easing),
              transform var(--anim-duration-base) var(--anim-easing);
}
.dash-kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dash-kpi-card--alert {
  border-color: var(--color-danger);
  background: var(--color-error-bg);
}
[data-theme="dark"] .dash-kpi-card--alert {
  background: rgba(239,68,68,0.07);
}

.dash-kpi-card__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}
.dash-kpi-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1;
}

/* Tablet: streak + kpis side by side */
@media (min-width: 640px) {
  .dash-top-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .dash-streak-card { flex: 0 0 220px; }
  .dash-kpis-row { flex: 1; grid-template-columns: repeat(4, 1fr); }
}

/* ── Readiness Card ── */
.dash-readiness-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}

.dash-readiness-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dash-readiness-card__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-1);
}

.dash-readiness-card__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.dash-readiness-card__pct {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  flex-shrink: 0;
}

.dash-progress-track {
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.dash-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-success);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.dash-readiness-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ── Last Activity ── */
.dash-section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

.dash-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.dash-section-caption {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: var(--space-1) 0 0;
}

.dash-last-activity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  flex-wrap: wrap;
  transition: box-shadow var(--anim-duration-base) var(--anim-easing);
}
.dash-last-activity:hover { box-shadow: var(--shadow-md); }

.dash-last-activity__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.dash-last-activity__body {
  flex: 1;
  min-width: 0;
}

.dash-last-activity__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin: 0 0 2px;
}

.dash-last-activity__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.dash-last-activity__btn {
  flex-shrink: 0;
}

/* ── Categories Grid ── */
.dash-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .dash-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .dash-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.dash-cat-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  transition:
    box-shadow var(--anim-duration-base) var(--anim-easing),
    transform  var(--anim-duration-base) var(--anim-easing),
    border-color var(--anim-duration-base) var(--anim-easing);
  outline: none;
}
.dash-cat-card:hover,
.dash-cat-card:focus-visible {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary-200);
}

.dash-cat-card__icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.dash-cat-card__body { flex: 1; min-width: 0; }

.dash-cat-card__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-cat-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.dash-cat-progress__track {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-cat-progress__fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s var(--anim-easing);
}

.dash-cat-progress__label {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  min-width: 50px;
  text-align: right;
}

.dash-cat-card__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* ── Tip of the Day ── */
.dash-tip-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}

.dash-tip-card__icon {
  font-size: 1.375rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dash-tip-card__body { flex: 1; }

.dash-tip-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-warning);
  margin-bottom: var(--space-2);
}

.dash-tip-card__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ============================================================
   MODES PAGE (modos.js) — Mobile-First
   ============================================================ */

/* Page header */
.modes-page-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .modes-page-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ── Mini Stats Bar ── */
.modes-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
}

@media (min-width: 640px) {
  .modes-stats-bar {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-6);
  }
}

.modes-stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  flex: 1;
  min-width: 60px;
}

.modes-stats-bar__value {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1;
}

.modes-stats-bar__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.modes-stats-bar__divider {
  display: none;
}

@media (min-width: 640px) {
  .modes-stats-bar__label {
    white-space: nowrap;
  }
  .modes-stats-bar__divider {
    display: block;
    width: 1px;
    height: 32px;
    background: var(--color-border);
    flex-shrink: 0;
  }
}

/* ── Modes Grid ── */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mode Card ── */
.modes-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition:
    box-shadow   var(--anim-duration-base) var(--anim-easing),
    transform    var(--anim-duration-base) var(--anim-easing),
    border-color var(--anim-duration-base) var(--anim-easing);
  position: relative;
}
.modes-card:hover:not(.modes-card--locked),
.modes-card:focus-visible:not(.modes-card--locked) {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
  border-color: var(--mode-color, var(--color-primary));
}
[data-theme="dark"] .modes-card:hover:not(.modes-card--locked) {
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.modes-card--locked {
  cursor: default;
  opacity: 0.6;
}

/* Thin accent bar at top */
.modes-card__accent-bar {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
  transition: height var(--anim-duration-base) var(--anim-easing);
}
.modes-card:hover:not(.modes-card--locked) .modes-card__accent-bar {
  height: 4px;
}

.modes-card__body {
  padding: var(--space-5) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Header: icon + title */
.modes-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.modes-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--anim-duration-base) var(--anim-easing-spring);
}
.modes-card:hover:not(.modes-card--locked) .modes-card__icon-wrap {
  transform: scale(1.08);
}

.modes-card__title-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding-top: var(--space-1);
}

.modes-card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
  line-height: 1.2;
}

.modes-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid;
  width: fit-content;
}

.modes-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
  flex: 1;
}

/* Feature list */
.modes-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modes-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.modes-card__check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Footer with CTA */
.modes-card__footer {
  padding: 0 var(--space-6) var(--space-5);
  flex-shrink: 0;
}

.modes-card__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    opacity  var(--anim-duration-fast) var(--anim-easing),
    transform var(--anim-duration-fast) var(--anim-easing-spring),
    box-shadow var(--anim-duration-fast) var(--anim-easing);
}
.modes-card__btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.modes-card__btn--locked {
  background: var(--color-bg-subtle) !important;
  color: var(--color-text-muted) !important;
  cursor: not-allowed;
  border: 1px solid var(--color-border);
}

/* ============================================================
   DASHBOARD — Quick Mode Chips
   ============================================================ */

.dash-mode-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .dash-mode-quick-grid { grid-template-columns: repeat(4, 1fr); }
}

.dash-mode-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: var(--chip-bg, var(--color-bg-subtle));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition:
    box-shadow   var(--anim-duration-base) var(--anim-easing),
    transform    var(--anim-duration-base) var(--anim-easing),
    border-color var(--anim-duration-base) var(--anim-easing);
  text-align: center;
}
.dash-mode-chip:hover:not(.dash-mode-chip--locked) {
  border-color: var(--chip-color, var(--color-primary));
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
[data-theme="dark"] .dash-mode-chip:hover:not(.dash-mode-chip--locked) {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.dash-mode-chip--locked {
  opacity: 0.45;
  pointer-events: none;
}

.dash-mode-chip__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.dash-mode-chip__name {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

.dash-mode-chip__count {
  display: inline-block;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  border-radius: var(--radius-full);
  vertical-align: middle;
  margin-left: 2px;
}

/* ============================================================
   GLOBAL HOME — Premium Landing Page (route: /)
   ============================================================ */

.gh-page {
  display: flex;
  flex-direction: column;
}

/* ── Hero ──────────────────────────────────────────────────── */
.gh-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + var(--space-12)) var(--space-4) var(--space-12);
}

.gh-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: flex-start;
}

@media (min-width: 960px) {
  .gh-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-16);
  }
  .gh-hero__copy { flex: 1 1 50%; }
  .gh-hero__visual { flex: 1 1 50%; }
}

/* Decorative orbs */
.gh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.gh-hero__inner { position: relative; z-index: 1; }
.gh-orb--1 {
  width: 480px;
  height: 480px;
  background: rgba(37,99,235,0.12);
  top: -100px;
  right: -120px;
}
.gh-orb--2 {
  width: 320px;
  height: 320px;
  background: rgba(6,182,212,0.08);
  bottom: -80px;
  left: 30%;
}
[data-theme="dark"] .gh-orb--1 { background: rgba(59,130,246,0.10); }
[data-theme="dark"] .gh-orb--2 { background: rgba(34,211,238,0.06); }

/* Eyebrow */
.gh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-5);
}
[data-theme="dark"] .gh-eyebrow {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
}

/* Headline */
.gh-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1.08;
  margin: 0 0 var(--space-5);
}
.gh-headline--accent {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .gh-headline--accent {
  background: linear-gradient(135deg, #60A5FA 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Sub */
.gh-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 520px;
  margin: 0 0 var(--space-8);
}

/* ── Country pick ─────────────────────────────────────────── */
.gh-pick__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.gh-country-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .gh-country-row { flex-direction: row; flex-wrap: wrap; }
}

.gh-country-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  text-align: left;
  outline: none;
  transition:
    box-shadow   var(--anim-duration-base) var(--anim-easing),
    transform    var(--anim-duration-base) var(--anim-easing),
    border-color var(--anim-duration-base) var(--anim-easing);
  flex: 1 1 240px;
  min-width: 0;
}
.gh-country-btn:hover,
.gh-country-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15), var(--shadow-md);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
[data-theme="dark"] .gh-country-btn:hover {
  box-shadow: 0 0 0 3px rgba(96,165,250,0.2), var(--shadow-md);
}

.gh-country-btn__flag {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.gh-country-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.gh-country-btn__name {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
.gh-country-btn__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.gh-country-btn__arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform var(--anim-duration-base) var(--anim-easing);
}
.gh-country-btn:hover .gh-country-btn__arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* ── Visual card (hero right column) ─────────────────────── */
.gh-hero__visual {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.gh-visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-xl, 0 20px 60px -10px rgba(0,0,0,0.18));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
[data-theme="dark"] .gh-visual-card {
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.45);
}

.gh-vc-modes {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.gh-vc-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  padding: 3px var(--space-3);
}

/* Question preview */
.gh-vc-question {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.gh-vc-q__counter {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}
.gh-vc-q__text {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: var(--leading-snug);
  margin: 0;
}
.gh-vc-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.gh-vc-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}
.gh-vc-opt--correct {
  border-color: var(--color-success);
  background: var(--color-success-subtle, rgba(34,197,94,0.06));
}
.gh-vc-opt--chosen {
  border-color: var(--color-danger);
  background: var(--color-danger-subtle, rgba(239,68,68,0.06));
  opacity: 0.7;
}
.gh-vc-opt__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm, 4px);
  background: var(--color-bg-subtle);
  font-weight: var(--font-weight-bold);
  font-size: 11px;
  flex-shrink: 0;
}
.gh-vc-opt--correct .gh-vc-opt__letter { background: var(--color-success); color: #fff; }
.gh-vc-opt--chosen  .gh-vc-opt__letter { background: var(--color-danger);  color: #fff; }
.gh-vc-opt__text { color: var(--color-text); }

/* Feedback strip */
.gh-vc-feedback {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-success-subtle, rgba(34,197,94,0.08));
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
}
.gh-vc-fb__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: bold;
  flex-shrink: 0;
}
.gh-vc-fb__text {
  font-size: var(--text-xs);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

/* Card footer */
.gh-vc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}
.gh-vc-streak { display: flex; align-items: center; gap: var(--space-1); }
.gh-vc-pct { font-size: var(--text-lg); font-weight: var(--font-weight-bold); }

/* ── Stats Bar ─────────────────────────────────────────────── */
.gh-stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.gh-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.gh-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.gh-stat__val {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.gh-stat__label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

.gh-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ── Features Grid ─────────────────────────────────────────── */
.gh-features {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.gh-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 480px) {
  .gh-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .gh-features__grid { grid-template-columns: repeat(4, 1fr); }
}

.gh-feat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    box-shadow var(--anim-duration-base) var(--anim-easing),
    transform  var(--anim-duration-base) var(--anim-easing),
    border-color var(--anim-duration-base) var(--anim-easing);
}
.gh-feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.gh-feat-card__icon {
  font-size: 2rem;
  line-height: 1;
}
.gh-feat-card__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}
.gh-feat-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Bottom CTA ───────────────────────────────────────────── */
.gh-bottom-cta {
  padding: var(--space-16) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.gh-bottom-cta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: flex-start;
}
@media (min-width: 768px) {
  .gh-bottom-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.gh-bottom-cta__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 var(--space-2);
}
.gh-bottom-cta__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

/* Compact variant for bottom CTA */
.gh-country-row--compact { gap: var(--space-3); }
.gh-country-btn--sm {
  padding: var(--space-3) var(--space-5);
  flex: 0 1 auto;
  gap: var(--space-3);
}
.gh-country-btn--sm .gh-country-btn__flag { font-size: 1.6rem; }

/* ============================================================
   SETTINGS SIDEBAR
   ============================================================ */

/* ── Gear button in header ────────────────────────────────── */
.header-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    color         var(--anim-duration-fast) var(--anim-easing),
    background    var(--anim-duration-fast) var(--anim-easing),
    border-color  var(--anim-duration-fast) var(--anim-easing),
    transform     var(--anim-duration-base) var(--anim-easing);
}
.header-settings-btn:hover,
.header-settings-btn[aria-expanded="true"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(37,99,235,0.06);
}
.header-settings-btn[aria-expanded="true"] svg {
  animation: spin-slow 3s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Overlay ──────────────────────────────────────────────── */
.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: calc(var(--z-header) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim-duration-base) var(--anim-easing);
}
.settings-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Sidebar panel ────────────────────────────────────────── */
.settings-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100dvh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  z-index: var(--z-header);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* Start off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.settings-sidebar.open {
  transform: translateX(0);
}
[data-theme="dark"] .settings-sidebar {
  box-shadow: -8px 0 32px rgba(0,0,0,0.35);
}

/* Header row */
.settings-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
  /* Align vertically with the app header */
  min-height: var(--header-height);
}
.settings-sidebar__title {
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
.settings-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background var(--anim-duration-fast) var(--anim-easing), color var(--anim-duration-fast) var(--anim-easing);
}
.settings-sidebar__close:hover {
  background: var(--color-bg-subtle);
  color: var(--color-text);
}

/* Section block */
.settings-sidebar__section {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.settings-sidebar__section-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-3);
}

/* ── Global Home button ───────────────────────────────────── */
.settings-global-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  transition:
    background     var(--anim-duration-fast) var(--anim-easing),
    border-color   var(--anim-duration-fast) var(--anim-easing),
    box-shadow     var(--anim-duration-fast) var(--anim-easing),
    transform      var(--anim-duration-base) var(--anim-easing);
}
.settings-global-btn:hover {
  background: rgba(37,99,235,0.06);
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.12);
  transform: translateX(2px);
}
.settings-global-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
  flex-shrink: 0;
}
.settings-global-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-global-btn__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
.settings-global-btn__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.settings-global-btn__arrow {
  color: var(--color-text-muted);
  transition: transform var(--anim-duration-base) var(--anim-easing), color var(--anim-duration-fast) var(--anim-easing);
}
.settings-global-btn:hover .settings-global-btn__arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* ── Language options ─────────────────────────────────────── */
.settings-lang-options {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.settings-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-subtle);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    color         var(--anim-duration-fast) var(--anim-easing),
    background    var(--anim-duration-fast) var(--anim-easing),
    border-color  var(--anim-duration-fast) var(--anim-easing);
}
.settings-lang-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.settings-lang-pill.active {
  border-color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
}
[data-theme="dark"] .settings-lang-pill.active {
  background: rgba(96,165,250,0.12);
}

/* ── Theme buttons ────────────────────────────────────────── */
.settings-theme-row {
  display: flex;
  gap: var(--space-2);
}
.settings-theme-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-subtle);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  cursor: pointer;
  transition:
    color         var(--anim-duration-fast) var(--anim-easing),
    background    var(--anim-duration-fast) var(--anim-easing),
    border-color  var(--anim-duration-fast) var(--anim-easing);
}
.settings-theme-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}
.settings-theme-btn[aria-pressed="true"] {
  border-color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  color: var(--color-primary);
}
[data-theme="dark"] .settings-theme-btn[aria-pressed="true"] {
  background: rgba(96,165,250,0.12);
}

/* ── Profile button ───────────────────────────────────────── */
.settings-profile-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition:
    background     var(--anim-duration-fast) var(--anim-easing),
    border-color   var(--anim-duration-fast) var(--anim-easing),
    transform      var(--anim-duration-base) var(--anim-easing);
}
.settings-profile-btn:hover {
  background: var(--color-surface);
  border-color: var(--color-text-muted);
  transform: translateX(2px);
}
.settings-profile-btn__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.settings-profile-btn__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-profile-btn__label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
.settings-profile-btn__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Sidebar footer ───────────────────────────────────────── */
.settings-sidebar__footer {
  margin-top: auto;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.settings-sidebar__footer-text {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */

.about-page {
  display: flex;
  flex-direction: column;
}

/* ── Hero ──────────────────────────────────────────────────── */
.about-hero {
  padding: calc(var(--header-height) + var(--space-12)) 0 var(--space-12);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.about-hero__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-hero__title {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
.about-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ── Content Grid ──────────────────────────────────────────── */
.about-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 720px;
  margin: 0 auto;
}

/* ── Card ──────────────────────────────────────────────────── */
.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.about-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}
.about-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}
.about-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}
.about-card__text strong {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

/* ── Lists ─────────────────────────────────────────────────── */
.about-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
.about-list__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* ── Links & Contact ───────────────────────────────────────── */
.about-email-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--anim-duration-fast) var(--anim-easing);
  width: fit-content;
}
.about-email-link:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-linkedin-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-text);
  transition:
    background     var(--anim-duration-fast) var(--anim-easing),
    border-color   var(--anim-duration-fast) var(--anim-easing),
    transform      var(--anim-duration-base) var(--anim-easing),
    box-shadow     var(--anim-duration-fast) var(--anim-easing);
  margin-top: var(--space-2);
}
.about-linkedin-btn:hover {
  background: var(--color-surface);
  border-color: #0077B5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.15);
  transform: translateY(-2px);
}
[data-theme="dark"] .about-linkedin-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}
.about-linkedin-btn svg:first-child {
  color: #0077B5;
  flex-shrink: 0;
}
.about-linkedin-btn > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-linkedin-btn__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}
.about-linkedin-btn__handle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.about-linkedin-btn svg:last-child {
  color: var(--color-text-muted);
  transition: transform var(--anim-duration-base) var(--anim-easing);
}
.about-linkedin-btn:hover svg:last-child {
  transform: translateX(3px);
  color: var(--color-text);
}

/* ── Thanks Card ───────────────────────────────────────────── */
.about-thanks-section {
  padding-bottom: var(--space-16);
}
.about-thanks-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.about-thanks-card__emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: var(--space-4);
}
.about-thanks-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
}
.about-thanks-card__sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}







