:root {
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Accessibility: Screen Reader Only */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  --bg: #f5f7fc;
  --bg-subtle: #edf1fb;
  --surface: #ffffff;
  --surface-alt: #f9fbff;

  --ink: #1f2937;
  --ink-subtle: #374151;
  --muted: #6b7280;
  --muted-soft: #828899;

  --border: #d7dde7;
  --border-strong: #c1c7d6;

  --accent: #3a7bff;
  --accent-dark: #1f53d5;
  --accent-contrast: #ffffff;
  --accent-light: #ffffff;
  --accent-50: #f1f5ff;
  --accent-100: #dfe9ff;
  --accent-200: #c2d6ff;
  --accent-300: #97baff;

  --success: #0f9d58;
  --danger: #d64248;

  --dash-bg: #eef3ff;
  --card-bg: var(--surface);
  --stroke: var(--border);

  /* Sizing for dashboard classification cards (pre-zoom values so rendered size hits 394.56 x 741.98) */
  --subtest-class-width: 493.2px;
  --subtest-class-height: 927.475px;
  --classification-score-width: 120px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 55px rgba(15, 23, 42, 0.14);

  --transition: 160ms ease;
  --focus-ring: 0 0 0 3px rgba(58, 123, 255, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(126deg, var(--accent-light), #cde8fa);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  zoom: 0.8;
}

@supports not (zoom: 0.8) {
  body {
    transform: scale(0.8);
    transform-origin: top center;
    width: 125%;
  }
  html {
    overflow-x: hidden;
  }
}

/* Dark surface gradient */

main {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

strong {
  color: var(--ink-subtle);
}

em {
  color: var(--ink-subtle);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

.wrap {
  width: min(1600px, calc(100% - 48px));
  margin: 56px auto 80px;
}

@media (max-width: 900px) {
  .wrap {
    width: min(100%, calc(100% - 32px));
    margin: 44px auto 64px;
  }
}

/* Optional wide mode */
body.wideMode .wrap {
  width: min(2000px, 96vw);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 6vw, 36px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(215, 221, 231, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand .bullet {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #6e9bff);
  box-shadow: 0 0 0 4px rgba(58, 123, 255, 0.22);
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.05em;
}

.brand .muted {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), color var(--transition),
    background var(--transition);
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-200);
  color: var(--ink-subtle);
}

.pill:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.pill:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.pill.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 8px 20px rgba(58, 123, 255, 0.18);
}

.pill.pill-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 12px 30px rgba(58, 123, 255, 0.25);
}

.pill.pill-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.pill.small {
  padding: 7px 14px;
  font-size: 0.9rem;
}

.pill.block {
  width: 100%;
}

.title {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.subtitle {
  margin: -6px 0 24px;
  text-align: center;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-subtle);
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

p + p {
  margin-top: 12px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(209, 217, 230, 0.9);
  padding: clamp(26px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
}

.card > :last-child {
  margin-bottom: 0;
}

.card + .card {
  margin-top: 22px;
}

.take-intro {
  display: grid;
  gap: 10px;
  text-align: center;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.take-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.take-groups {
  display: grid;
  gap: clamp(16px, 2.5vw, 24px);
}

.take-card {
  --take-color: var(--accent);
  --take-card-tint: rgba(58, 123, 255, 0.12);
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 26px);
  border-radius: var(--radius);
  border: 1px solid rgba(210, 217, 232, 0.9);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    var(--take-card-tint)
  );
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.take-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-left: 6px solid var(--take-color);
  pointer-events: none;
}

.take-card-header h3 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  color: var(--ink);
}

.take-card-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.take-options {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.take-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-subtle);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

.take-option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
}

.take-option.is-active {
  background: var(--take-color);
  color: var(--accent-contrast);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.take-option.is-active:hover {
  transform: translateY(0);
}

.take-card--verbal {
  --take-color: #ec4899;
  --take-card-tint: rgba(236, 72, 153, 0.12);
}

.take-card--fluid {
  --take-color: #0ea5e9;
  --take-card-tint: rgba(14, 165, 233, 0.12);
}

.take-card--quant {
  --take-color: #14b8a6;
  --take-card-tint: rgba(20, 184, 166, 0.12);
}

.take-card--visual {
  --take-color: #a855f7;
  --take-card-tint: rgba(168, 85, 247, 0.12);
}

.take-card--memory {
  --take-color: #22c55e;
  --take-card-tint: rgba(34, 197, 94, 0.12);
}

.take-card--speed {
  --take-color: #6366f1;
  --take-card-tint: rgba(99, 102, 241, 0.12);
}

.take-detail {
  --take-active: var(--accent);
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(210, 217, 232, 0.9);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 32px);
}

.take-detail-body {
  display: grid;
  gap: 16px;
}

.take-detail-domain {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--take-active);
}

.take-detail-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--ink);
}

.take-detail-description {
  margin: 0;
  color: var(--ink-subtle);
  line-height: 1.6;
}

.take-detail-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.take-detail-meta li {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--ink-subtle);
}

.take-detail-meta li strong {
  color: var(--ink);
  margin-right: 6px;
}

.take-detail-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.take-detail-notes li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.take-detail-notes li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--take-active);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.take-detail-note {
  margin: 0;
  color: var(--muted);
}

.take-detail-start {
  align-self: flex-start;
  padding-inline: 28px;
  font-weight: 700;
  border: none;
  background: var(--take-active);
  color: var(--accent-contrast);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
  transition: transform var(--transition), box-shadow var(--transition),
    opacity var(--transition);
}

.take-detail-start:hover {
  color: var(--accent-contrast);
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
}

.take-detail-start:focus-visible {
  box-shadow: var(--focus-ring);
}

@media (max-width: 1100px) {
  .take-layout {
    grid-template-columns: 1fr;
  }

  .take-detail {
    position: static;
  }
}

@media (max-width: 720px) {
  .take-card {
    padding: 18px;
  }

  .take-detail {
    padding: 20px;
  }

  .take-detail-start {
    width: 100%;
    justify-content: center;
  }
}

.list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-subtle);
}

.list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), #6e9bff);
  box-shadow: 0 0 0 2px rgba(58, 123, 255, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.kv {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.kv li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid rgba(209, 217, 230, 0.7);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  color: var(--ink-subtle);
}

.kv li span:last-child {
  color: var(--accent-dark);
}

.stack {
  display: grid;
  gap: 14px;
  margin: 28px auto 0;
  width: min(720px, 100%);
}

.testbtn span {
  position: relative;
  z-index: 1;
}

.center {
  text-align: center;
}

.small {
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.muted {
  color: var(--muted);
}

.mt8 {
  margin-top: 8px;
}

.mt16 {
  margin-top: 16px;
}

.display {
  font-weight: 800;
  font-size: clamp(42px, 8vw, 64px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-50);
  color: var(--accent-dark);
}

.site-footer {
  margin-top: 48px;
  padding: clamp(32px, 4vw, 44px) 0;
  background: linear-gradient(
    160deg,
    rgba(226, 233, 248, 0.65),
    rgba(245, 248, 255, 0.9)
  );
  border-top: 1px solid rgba(209, 217, 230, 0.6);
}

.footer-grid {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footerbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 6vw, 36px);
  font-size: 0.85rem;
  color: var(--muted);
  background: rgba(237, 241, 251, 0.8);
  border-top: 1px solid rgba(215, 221, 231, 0.7);
}

.footerbar span:first-child {
  font-weight: 600;
  letter-spacing: 0.08em;
}

.panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.panel.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.panel.fadeonce {
  animation: fadeInUp 260ms ease;
}

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

.val-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin: 12px 0 4px;
}

.val-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(209, 217, 230, 0.9);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.val-card img {
  width: 100%;
  height: auto;
  display: block;
}

.val-card figcaption {
  padding: 16px 18px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-alt);
}

.slim {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(209, 217, 230, 0.9);
}

.slim thead th {
  background: var(--accent-50);
  color: var(--ink-subtle);
  font-weight: 700;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(209, 217, 230, 0.7);
}

.slim tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(209, 217, 230, 0.6);
  color: var(--muted);
}

.slim tbody tr:nth-child(even) td {
  background: var(--surface-alt);
}

.slim tbody tr:last-child td {
  border-bottom: none;
}

.topbar-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px clamp(18px, 6vw, 36px);
  background: rgba(245, 248, 255, 0.92);
  border-bottom: 1px solid rgba(215, 221, 231, 0.8);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
}

.crumbs {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
}

.crumbs a {
  color: var(--accent-dark);
}

.intro-wrap {
  margin-top: 24px;
}

.intro-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(209, 217, 230, 0.9);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3vw, 32px);
}

.intro-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

.demo {
  background: var(--surface-alt);
  border: 1px dashed rgba(164, 176, 201, 0.7);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-subtle);
}

.demo .token {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  margin: 0 1px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.demo .token:hover {
  background: rgba(58, 123, 255, 0.08);
  border-color: rgba(58, 123, 255, 0.2);
}

.demo .token.selected {
  background: var(--surface);
  border-color: rgba(58, 123, 255, 0.45);
  box-shadow: 0 4px 14px rgba(58, 123, 255, 0.18);
}

.toolbar {
  margin-top: 18px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

@media (max-width: 720px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}

.timer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink-subtle);
}

.timepill {
  min-width: 120px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(209, 217, 230, 0.9);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition);
}

.progresswrap {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: var(--accent-50);
  border: 1px solid rgba(209, 217, 230, 0.9);
  overflow: hidden;
}

.pg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #6e9bff);
  transition: width var(--transition);
}

.pg-pin {
  position: absolute;
  top: -6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(58, 123, 255, 0.3);
  transform: translateX(-50%);
  transition: left var(--transition);
}

.pg-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.qa-card {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.stem {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}

.options {
  display: grid;
  gap: 10px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(209, 217, 230, 0.9);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition), background var(--transition);
}

.opt:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-200);
}

.opt input[type="radio"] {
  accent-color: var(--accent);
  transform: scale(1.1);
}

.opt input[type="radio"]:checked + label {
  color: var(--accent-dark);
  font-weight: 600;
}

.opt label {
  flex: 1;
  cursor: pointer;
  color: var(--ink-subtle);
}

.foot-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.foot-actions .pill[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.panel-para {
  display: grid;
  gap: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.passage {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink-subtle);
}

.token {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  margin: 0 1px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
    box-shadow var(--transition);
}

.token:hover {
  background: rgba(58, 123, 255, 0.08);
  border-color: rgba(58, 123, 255, 0.2);
}

.token.selected {
  background: var(--surface);
  border-color: rgba(58, 123, 255, 0.45);
  box-shadow: 0 4px 14px rgba(58, 123, 255, 0.18);
}

.thanks {
  display: none;
}

.thanks.show {
  display: block;
}

.page-enter {
  animation: fadeInUp 220ms ease;
}

.controls {
  display: flex;
  gap: 10px;
}

.raw,
.score,
.ss,
.time {
  font-weight: 600;
  color: var(--ink-subtle);
}

#dashboard.panel {
  background: linear-gradient(
    160deg,
    rgba(238, 243, 255, 0.95),
    rgba(255, 255, 255, 0.94)
  );
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 44px);
  border: 1px solid rgba(203, 212, 230, 0.7);
  box-shadow: var(--shadow-md);
}

#dashboard .title {
  margin-bottom: 22px;
}

#dashboard .dash-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 26px;
}

@media (max-width: 1100px) {
  #dashboard .dash-hero {
    grid-template-columns: 1fr;
  }
}

#dashboard .hero {
  position: relative;
  overflow: hidden;
}
#dashboard .hero.iq-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#dashboard .hero .topline {
  font-weight: 800;
  color: var(--ink-subtle);
  margin-bottom: 6px;
}
#dashboard .iq-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
#dashboard .iq-row .suffix {
  font-weight: 700;
  color: var(--ink-subtle);
}
#dashboard .iq-row .ci {
  background: var(--accent-50);
  color: var(--accent-dark);
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

#dashboard .pct-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
#dashboard .quick-actions .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

#dashboard .comp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  #dashboard .comp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  #dashboard .comp-grid {
    grid-template-columns: 1fr;
  }
}

#dashboard .comp-card {
  border: 1px solid rgba(209, 217, 230, 0.9);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  display: grid;
  gap: 6px;
}
#dashboard .comp-card .label {
  font-weight: 700;
  color: var(--ink-subtle);
}
#dashboard .comp-card .value {
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
#dashboard .comp-card .value .number {
  line-height: 1;
}
#dashboard .comp-card .value .ci {
  font-size: 0.7em;
  color: var(--muted);
  font-weight: 600;
}
#dashboard .comp-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

#dashboard .interp {
  overflow: auto;
}
#dashboard .interp .band-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
#dashboard .interp .band {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
#dashboard .interp .band.you {
  outline: 3px solid rgba(58, 123, 255, 0.25);
  box-shadow: 0 8px 24px rgba(58, 123, 255, 0.15);
}
#dashboard .interp .band .t {
  font-weight: 800;
  color: var(--ink-subtle);
}
#dashboard .interp .band .p {
  color: var(--muted);
  font-size: 0.9rem;
}

#dashboard .grid2 {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

@media (max-width: 960px) {
  #dashboard .grid2 {
    grid-template-columns: 1fr;
  }
}

#dashboard .card {
  padding: clamp(22px, 3vw, 28px);
  border-radius: var(--radius);
  border: 1px solid rgba(203, 212, 230, 0.7);
  box-shadow: var(--shadow-xs);
}

#dashboard .bell {
  position: relative;
  height: 160px;
  border-radius: var(--radius);
  border: 1px solid rgba(209, 217, 230, 0.9);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--accent-50) 100%);
}

#dashboard .bell::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 26px;
  border-bottom: 1px solid rgba(176, 188, 209, 0.7);
}

#dashboard .bell .dot {
  position: absolute;
  bottom: 20px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--surface);
  transform: translateX(-50%);
  box-shadow: 0 6px 16px rgba(58, 123, 255, 0.3);
}

#dashboard #donutWrap svg text {
  font-size: 26px;
  font-weight: 800;
  fill: var(--ink);
}

#dashboard #donutWrap circle.track {
  stroke: var(--accent-100);
}

#dashboard #donutWrap circle.fill {
  stroke: var(--accent);
}

#dashboard .idx .bar,
#dashboard #subtestList .bar {
  position: relative;
  height: 16px;
  border: 1px solid rgba(209, 217, 230, 0.9);
  border-radius: 999px;
  background: var(--accent-50);
  overflow: hidden;
}

#dashboard .idx .fill,
#dashboard #subtestList .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #82e2e9);
}

#dashboard .row {
  display: grid;
  gap: 8px;
}

#dashboard .row.idx {
  margin: 0;
}

#dashboard #subtestList {
  max-height: 620px;
  overflow: auto;
  padding-right: 6px;
  display: grid;
  gap: 14px;
}

#dashboard #subtestList .row {
  background: var(--surface);
  border: 2px solid rgba(203, 212, 230, 0.7);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

#dashboard #subtestList .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

#dashboard #subtestList .head .pill.small {
  box-shadow: none;
}

#dashboard .muted {
  color: var(--muted);
}

#dashboard .badge {
  background: rgba(58, 123, 255, 0.12);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

nav .pill {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .tabs {
    width: 100%;
    justify-content: flex-start;
  }

  .footerbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .pill,
  .panel,
  .page-enter {
    transition: none !important;
    animation: none !important;
  }
}

/* Validity gallery: restore previous stacked look on validity/structure */
#validity .val-grid,
#structure .val-grid {
  grid-template-columns: 1fr;
  gap: 40px;
  width: min(85vw, 850px);
  margin: 24px auto 0;
}

#validity .val-card,
#structure .val-card {
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
}

/* Legacy Dashboard look (restored) */
#dashboard {
  --dash-bg: #f7f9fc;
  --ink: #212529;
  --muted: #6c757d;
  --accent: #4a90e2;
  --accent-light: #e9f2ff;
  --accent-50: #eef4ff;
  --accent-100: #e6ebff;
  --accent-200: #d6ddff;
  --accent-300: #c4ceff;
}
section#dashboard.panel {
  background: var(--dash-bg);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid #d1d5db;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
#dashboard .title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.4px;
  margin: 0 0 18px 0;
  color: var(--ink);
}
#dashboard .dash-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px 0;
}
#dashboard .grid2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
#dashboard #sec-profile.card-pair {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}
#dashboard #sec-profile.card-pair .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#dashboard #sec-profile.card-pair .card + .card {
  margin-top: 0;
}
#dashboard #sec-profile.card-pair #iqChart,
#dashboard #sec-profile.card-pair #profileChart {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}
#dashboard #sec-profile.card-pair #iqChart svg,
#dashboard #sec-profile.card-pair #profileChart svg {
  width: 100%;
  height: 100%;
}
#dashboard .card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 24px 28px;
}
#dashboard .display {
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
}
#dashboard .h4 {
  font-weight: 800;
  margin: 0;
}
#dashboard .muted {
  color: var(--muted);
}
#dashboard .center {
  text-align: center;
}
#dashboard .mt8 {
  margin-top: 8px;
}
#dashboard .mt16 {
  margin-top: 16px;
}

/* bell */
#dashboard .bell {
  position: relative;
  height: 140px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, var(--accent-50));
}
#dashboard .bell::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 22px;
  border-bottom: 1px solid #d1d5db;
  opacity: 0.6;
}
#dashboard .bell .dot {
  position: absolute;
  bottom: 16px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--stroke);
  transform: translateX(-50%);
}

/* donut */
#dashboard #donutWrap svg text {
  font-size: 24px;
  font-weight: 900;
  fill: var(--ink);
}
#dashboard #donutWrap circle.track {
  stroke: var(--accent-100);
}
#dashboard #donutWrap circle.fill {
  stroke: var(--accent);
}

/* index bars */
#dashboard .idx .bar {
  position: relative;
  height: 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--accent-50);
  overflow: hidden;
}
#dashboard .idx .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #62aee0);
}
#dashboard .row.idx {
  margin: 0;
}

/* subtests list */
#dashboard #subtestList {
  max-height: 640px;
  overflow: auto;
  padding-right: 8px;
}
#dashboard #subtestList .row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
#dashboard #subtestList .row + .row {
  margin-top: 12px;
}
#dashboard #subtestList .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#dashboard #subtestList .bar {
  position: relative;
  height: 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--accent-50);
  overflow: hidden;
}
#dashboard #subtestList .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #ade5ff);
}

/* Bell curve SVG styles (legacy) */
#dashboard .bell-svg .shade {
  fill: url(#shadegrad);
  stroke: #6f7bff;
  stroke-width: 1.4;
}
#dashboard .bell-svg .axis {
  stroke: #2b2b2b;
  stroke-width: 1.4;
}
#dashboard .bell-svg .tick {
  stroke: #2b2b2b;
  stroke-width: 1;
}
#dashboard .bell-svg .ticklbl {
  font: 12px/1 "IBM Plex Mono", monospace;
  fill: #333;
}
#dashboard .bell-svg .dot {
  fill: #111;
}
#dashboard .bell-svg .marker {
  stroke: #111;
  stroke-dasharray: 3 4;
  opacity: 0.75;
}

#dashboard #indexList {
  display: grid;
  gap: 10px;
  margin: 0;
  width: 100%;
}

#dashboard .classification-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#dashboard .classification-panel .h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}
#dashboard .classification-panel .classification-list {
  flex: 1 1 auto;
  overflow: auto;
}
#dashboard .classification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#dashboard .classification-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--classification-score-width, 120px) minmax(
      0,
      1fr
    );
  align-items: center;
  column-gap: 12px;
  font-size: 0.92rem;
  color: var(--ink-subtle);
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}
#dashboard .classification-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#dashboard .classification-list li.empty {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: none;
  padding: 8px 0 0;
  font-style: italic;
}
#dashboard .classification-list li.pending .label {
  color: var(--ink-subtle);
  font-weight: 500;
}
#dashboard .classification-list .idx-label {
  min-width: 0;
}
#dashboard .classification-list .range {
  min-width: 0;
  justify-self: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#dashboard .classification-list .label {
  min-width: 0;
  text-align: right;
  text-transform: capitalize;
}

#dashboard #sec-indices.grid2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: stretch;
}
#dashboard #sec-indices .card {
  height: 100%;
}
#dashboard #sec-indices .card + .card {
  margin-top: 0;
}

#dashboard #sec-subtests.grid2 {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
#dashboard #sec-subtests .card {
  height: 100%;
  flex: 1 1 auto;
}
#dashboard #sec-subtests .card + .card {
  margin-top: 0;
}
#dashboard #subtestClassCard {
  margin: 0;
  width: var(--subtest-class-width) !important;
  min-width: var(--subtest-class-width) !important;
  max-width: var(--subtest-class-width) !important;
  min-height: var(--subtest-class-height) !important;
  height: var(--subtest-class-height) !important;
  flex: 0 0 var(--subtest-class-width);
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  #dashboard #sec-indices.grid2 {
    grid-template-columns: 1fr;
  }
  #dashboard #sec-subtests.grid2 {
    flex-direction: column;
  }
  #dashboard #subtestClassCard {
    width: var(--subtest-class-width) !important;
    min-width: var(--subtest-class-width) !important;
    max-width: var(--subtest-class-width) !important;
    min-height: var(--subtest-class-height) !important;
    height: var(--subtest-class-height) !important;
    margin: 0;
    flex: none;
  }
}

/* Subtest table */
#dashboard .subtest-table {
  width: 100%;
  overflow: auto;
}
#dashboard .subtest-table .tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#dashboard .subtest-table th,
#dashboard .subtest-table td {
  padding: 10px 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
}
#dashboard .subtest-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #fff, #f9fbff);
  text-align: left;
  font-weight: 800;
  color: #334155;
  z-index: 1;
}
#dashboard .subtest-table tbody tr:nth-child(even) td {
  background: #fafcff;
}
#dashboard .subtest-table .perf {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-50);
  border: 1px solid #d1d5db;
  overflow: hidden;
  width: 100%;
  min-width: 260px;
}
#dashboard .subtest-table .perf .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #7cc3ff);
}
#dashboard .subtest-table td:nth-child(4) {
  width: 45%;
}
#dashboard .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid #d1d5db;
}

/* Insights */
#dashboard .insights {
  display: grid;
  gap: 10px;
}
#dashboard .insights .item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
#dashboard .insights .item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}
#dashboard .insights .item .text {
  color: var(--ink-subtle);
}

/* Subtest table */
#dashboard .subtest-table {
  width: 100%;
  overflow: auto;
}
#dashboard .subtest-table .tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#dashboard .subtest-table th,
#dashboard .subtest-table td {
  padding: 10px 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid #e5e7eb;
}
#dashboard .subtest-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #fff, #f9fbff);
  text-align: left;
  font-weight: 800;
  color: #334155;
  z-index: 1;
}
#dashboard .subtest-table tbody tr:nth-child(even) td {
  background: #fafcff;
}
#dashboard .subtest-table .perf {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-50);
  border: 1px solid #d1d5db;
  overflow: hidden;
  width: 100%;
  min-width: 260px;
}
#dashboard .subtest-table .perf .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--accent), #7cc3ff);
}

#dashboard .iq-card .display {
  font-size: clamp(72px, 10vw, 112px);
  line-height: 1;
}
#dashboard #donutWrap svg text {
  font-size: 32px;
}

/* Dashboard Wide Upgrade */
section#dashboard.panel {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 60%);
  border: 1px solid rgba(176, 196, 230, 0.55);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.12);
}

#dashboard .card.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(203, 212, 230, 0.7);
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.06);
}

#dashboard .interp .band {
  padding: 14px 12px;
}

#dashboard .subtest-table .tbl .group td {
  background: #f6f8ff;
  font-weight: 800;
}

/* =========================
   OVERVIEW / HERO SECTION
   ========================= */

#overview.panel {
  position: relative;
  padding: clamp(16px, 3vw, 24px);
  border-radius: 28px;
  background: radial-gradient(
      circle at 12% 18%,
      rgba(82, 141, 229, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 12%,
      rgba(111, 191, 255, 0.12),
      transparent 38%
    ),
    radial-gradient(circle at 24% 92%, rgba(61, 99, 183, 0.1), transparent 42%),
    linear-gradient(135deg, #eef5ff 0%, #f9fbff 100%);
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.12);
  overflow: hidden;
  isolation: isolate;
}

#overview.panel::before {
  content: "";
  position: absolute;
  inset: -30% 30% 18% -26%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(76, 141, 255, 0.18),
    transparent 55%
  );
  filter: blur(12px);
  opacity: 0.9;
  pointer-events: none;
}

#overview.panel::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 32px;
  background-image: linear-gradient(
      90deg,
      rgba(209, 217, 230, 0.14) 1px,
      transparent 1px
    ),
    linear-gradient(0deg, rgba(209, 217, 230, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}

.overview-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
      circle at 12% 6%,
      rgba(58, 123, 255, 0.1),
      transparent 32%
    ),
    radial-gradient(circle at 88% 22%, rgba(168, 85, 247, 0.1), transparent 36%),
    linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.96),
      rgba(247, 250, 255, 0.92)
    );
  border: 1px solid rgba(203, 212, 230, 0.9);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.12);
}

.overview-card::before {
  content: "";
  position: absolute;
  inset: -32% auto auto -18%;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 123, 255, 0.2), transparent 58%);
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

.overview-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background-image: linear-gradient(
      90deg,
      rgba(209, 217, 230, 0.18) 1px,
      transparent 1px
    ),
    linear-gradient(180deg, rgba(209, 217, 230, 0.18) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Hero layout */
.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .overview-hero {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 28px);
  }
}

.overview-hero-left {
  display: grid;
  gap: 18px;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.overview-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e8f1ff, #f8f5ff);
  border: 1px solid rgba(58, 123, 255, 0.26);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  backdrop-filter: blur(8px);
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.28);
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.overview-title {
  margin: 0;
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
  text-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.overview-gradient {
  background: linear-gradient(
    120deg,
    #0668fa 0%,
    #108df3 22%,
    #62b9f0 48%,
    #1479f5 70%,
    #2f6ecf 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 22px rgba(58, 123, 255, 0.25));
  background-size: 240% 240%;
  animation: overviewGradientFlow 10s linear infinite;
}

.overview-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: balance;
}

/* CTAs */
.overview-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
}

.overview-cta-main {
  background: linear-gradient(120deg, var(--accent), #1fb6ff, #7c3aed);
  border-color: transparent;
  color: var(--accent-contrast);
  box-shadow: 0 18px 38px rgba(58, 123, 255, 0.32);
  transition: transform var(--transition), box-shadow var(--transition),
    filter var(--transition);
}

.overview-cta-main:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 46px rgba(58, 123, 255, 0.34);
}

.overview-cta-main:active {
  transform: translateY(-1px);
}

.overview-cta-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-subtle);
  border: 1px solid rgba(58, 123, 255, 0.32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

/* Quick stats */
.overview-kv {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .overview-kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.overview-kv li {
  position: relative;
  padding: 14px 16px 14px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.96),
    rgba(244, 248, 255, 0.96)
  );
  border: 1px solid rgba(209, 217, 230, 0.9);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 4px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.overview-kv li span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

.overview-kv li strong {
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.overview-kv li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 8px;
  height: 36px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), #7c3aed);
  opacity: 0.25;
  transform-origin: top;
}

.overview-kv li:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  border-color: rgba(58, 123, 255, 0.28);
}

/* Right side visual + orbit */
.overview-hero-right {
  position: relative;
  min-height: 280px;
  max-width: 640px;
  margin-left: auto;
  display: grid;
  place-items: center;
  z-index: 1;
}

.overview-figure {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transform-origin: center;
  animation: floatCard 7s ease-in-out infinite;
}

.overview-figure::before {
  display: none;
}

.overview-figure::after {
  display: none;
}

.overview-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: none;
  background: transparent;
  padding: 0;
  transform: translateZ(0);
}

/* Fondeo decorativo */
.overview-orbit {
  position: absolute;
  inset: -36%;
  border-radius: 999px;
  background: radial-gradient(
      circle at 10% 0%,
      rgba(58, 123, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(168, 85, 247, 0.24),
      transparent 65%
    ),
    radial-gradient(circle at 0% 80%, rgba(14, 165, 233, 0.18), transparent 55%);
  opacity: 0.88;
  filter: blur(4px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: slowRotate 28s linear infinite;
}

@keyframes slowRotate {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.02);
  }
}

@keyframes overviewGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Stat chips flotantes */
.stat-chip {
  position: absolute;
  min-width: 170px;
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(209, 217, 230, 0.9);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 3px;
  font-size: 0.82rem;
  transform: translateZ(0);
  transition: transform var(--transition), box-shadow var(--transition),
    opacity var(--transition);
  animation: floatChip 9s ease-in-out infinite alternate;
}

.stat-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
}

.stat-chip--primary {
  top: 10%;
  right: -4%;
  border-left: 4px solid var(--accent);
  animation-delay: 0.4s;
}

.stat-chip--accent {
  bottom: 12%;
  left: -2%;
  border-left: 4px solid #0ea5e9;
  animation-delay: 0.8s;
}

.stat-chip--ghost {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.96;
  animation-delay: 1.2s;
}

.stat-label {
  font-weight: 700;
  color: var(--ink-subtle);
}

.stat-value {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent-dark);
}

.stat-sub {
  color: var(--muted);
}

/* Secciones inferiores del overview */
.overview-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.overview-section {
  animation: fadeInUp 320ms ease both;
}

.overview-columns {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .overview-columns {
    grid-template-columns: 1fr;
  }
}

/* Entrada suave cuando se abre la pestaña Overview */
#overview.panel.show .overview-hero-left,
#overview.panel.show .overview-hero-right {
  animation: fadeInUp 420ms ease;
  animation-fill-mode: both;
}

@media (max-width: 720px) {
  .overview-hero {
    gap: 18px;
  }

  .overview-hero-right {
    max-width: 100%;
    width: 100%;
  }

  .overview-cta-row .pill {
    flex: 1 1 auto;
    justify-content: center;
  }

  .stat-chip {
    position: static;
    width: 100%;
    max-width: none;
    transform: none;
    animation: none;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
  }
}

@keyframes floatChip {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

/* NEW OVERVIEW STYLES */
.overview-hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 2rem 0 4rem;
}

@media (max-width: 960px) {
  .overview-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
  }
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(209, 217, 230, 0.5);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-50);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.feature-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.overview-section-header {
  text-align: center;
  max-width: 700px;
  margin: 4rem auto 3rem;
}

.overview-section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.overview-section-header p {
  font-size: 1.1rem;
  color: var(--muted);
}

.overview-detail-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(209, 217, 230, 0.9);
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.overview-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.overview-hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.overview-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.overview-hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* =========================
   VALIDITY REDESIGN STYLES
   ========================= */

/* Hero Section */
.validity-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.validity-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

#validityCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Enhanced Floating Shapes with Multiple Animation Types */
.floating-shape {
  position: absolute;
  filter: blur(1px);
  will-change: transform, opacity;
  transition: filter 0.3s ease;
}

.floating-shape:hover {
  filter: blur(0.5px) brightness(1.5);
}

/* Primary orbit animation - smooth elliptical path */
.floating-shape.orbit {
  animation: floatOrbit var(--duration, 15s) cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes floatOrbit {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: var(--base-opacity, 0.4);
  }
  25% {
    transform: translate(30px, -40px) rotate(90deg) scale(1.15);
    opacity: calc(var(--base-opacity, 0.4) + 0.2);
  }
  50% {
    transform: translate(0, -25px) rotate(180deg) scale(1);
    opacity: var(--base-opacity, 0.4);
  }
  75% {
    transform: translate(-30px, -40px) rotate(270deg) scale(1.15);
    opacity: calc(var(--base-opacity, 0.4) + 0.2);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
    opacity: var(--base-opacity, 0.4);
  }
}

/* Pulsing glow animation */
.floating-shape.pulse {
  animation: floatPulse var(--duration, 8s) ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% {
    transform: scale(1);
    opacity: var(--base-opacity, 0.3);
    filter: blur(1px) drop-shadow(0 0 4px var(--glow-color, rgba(58, 123, 255, 0.5)));
  }
  50% {
    transform: scale(1.3);
    opacity: calc(var(--base-opacity, 0.3) + 0.35);
    filter: blur(0.5px) drop-shadow(0 0 15px var(--glow-color, rgba(58, 123, 255, 0.8)));
  }
}

/* Gentle drift animation */
.floating-shape.drift {
  animation: floatDrift var(--duration, 20s) ease-in-out infinite;
}

@keyframes floatDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(var(--start-rotation, 0deg));
  }
  33% {
    transform: translate(var(--drift-x, 50px), var(--drift-y, -30px)) rotate(calc(var(--start-rotation, 0deg) + 120deg));
  }
  66% {
    transform: translate(calc(var(--drift-x, 50px) * -0.5), calc(var(--drift-y, -30px) * 1.5)) rotate(calc(var(--start-rotation, 0deg) + 240deg));
  }
}

/* Wave motion animation */
.floating-shape.wave {
  animation: floatWave var(--duration, 12s) ease-in-out infinite;
}

@keyframes floatWave {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  25% {
    transform: translateY(-15px) translateX(20px) scale(1.05);
  }
  50% {
    transform: translateY(10px) translateX(0) scale(0.95);
  }
  75% {
    transform: translateY(-15px) translateX(-20px) scale(1.05);
  }
}

/* Sparkle animation for small particles */
.floating-shape.sparkle {
  animation: floatSparkle var(--duration, 3s) ease-in-out infinite;
}

@keyframes floatSparkle {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Legacy animation for backwards compatibility */
@keyframes floatShape {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
  100% {
    transform: translateY(0) rotate(360deg);
  }
}

.validity-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
  animation: badgeFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes badgeFloat {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-pill.glow {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 
    0 0 20px rgba(58, 123, 255, 0.4),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 8px rgba(58, 123, 255, 0.8);
  animation: badgeFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.validity-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.validity-title.animated-text {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
}

@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(8px);
  }
  60% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Enhanced scaleIn with subtle overshoot */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  70% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.text-gradient-anim {
  background: linear-gradient(90deg, #3a7bff, #a855f7, #ec4899, #0ea5e9, #3a7bff);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShine 6s ease-in-out infinite, textGlow 4s ease-in-out infinite;
}

@keyframes gradientShine {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(58, 123, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 40px rgba(168, 85, 247, 0.5), 0 0 60px rgba(58, 123, 255, 0.3);
  }
}

/* Legacy shine for backwards compatibility */
@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.validity-lead {
  font-size: 1.25rem;
  color: #ffffff !important;
  max-width: 700px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Symmetrical Layout Styles */
.validity-section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.centered-section {
  text-align: center;
}

/* Pillars */
.validity-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .validity-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-50) 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(58, 123, 255, 0.15);
}

.pillar-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.pillar-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.pillar-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Feature Rows */
.validity-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.validity-feature.reverse {
  direction: rtl;
}

.validity-feature.reverse .feature-content {
  direction: ltr;
}

@media (max-width: 900px) {
  .validity-feature,
  .validity-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    text-align: center;
  }

  .validity-feature .check-list {
    align-items: center;
  }
}

.feature-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-visual {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.feature-visual:hover {
  transform: scale(1.02);
}

.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Resources */
.validity-resources {
  padding: 3rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(209, 217, 230, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin: 0 auto;
}

.validity-resources h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.validity-resources p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.resource-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

.resource-btn:hover {
  background: linear-gradient(120deg, #0668fa 0%, #108df3 22%, #62b9f0 48%, #1479f5 70%, #2f6ecf 100%);
  background-size: 240% 240%;
  animation: overviewGradientFlow 3s linear infinite;
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(58, 123, 255, 0.3);
}

.mt-4 {
  margin-top: 1.5rem;
}
/* Decorative Background Elements */
.bento-visual {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.5;
  pointer-events: none;
}
/* =========================
   TEST STRUCTURE REDESIGN
   ========================= */

/* Structure Hero */
.structure-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.structure-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.structure-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.structure-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.structure-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.structure-title.animated-text {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
}

.text-gradient-structure {
  background: linear-gradient(90deg, #ec4899, #f59e0b, #f472b6, #fbbf24, #ec4899);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShine 6s ease-in-out infinite, structureGlow 4s ease-in-out infinite;
}

@keyframes structureGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    text-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(236, 72, 153, 0.3);
  }
}

.structure-lead {
  font-size: 1.25rem;
  color: #ffffff !important;
  max-width: 700px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Structure Sections */
.structure-section {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

/* Structure Pillars (5 Indices) */
.structure-pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.structure-card {
  flex: 1 1 340px;
  max-width: 400px;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.structure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.structure-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(58, 123, 255, 0.15);
}

.structure-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.structure-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

/* Structure Feature Rows (Blueprint & Process) */
.structure-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.structure-feature.reverse {
  direction: rtl;
}

.structure-feature.reverse .feature-content {
  direction: ltr;
}

@media (max-width: 900px) {
  .structure-feature,
  .structure-feature.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    text-align: center;
  }
}

.feature-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.feature-content p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-visual {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease;
}

.feature-visual:hover {
  transform: scale(1.02);
}

.feature-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mini List for Indices */
.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.index-list li {
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: rgba(241, 245, 249, 0.8);
  color: #64748b;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Structure Details Grid (Replaces Process Flow) */
.structure-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}

.structure-detail-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  /* Animation */
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered Animation Delays */
.structure-detail-card:nth-child(1) { animation-delay: 0.1s; }
.structure-detail-card:nth-child(2) { animation-delay: 0.2s; }
.structure-detail-card:nth-child(3) { animation-delay: 0.3s; }
.structure-detail-card:nth-child(4) { animation-delay: 0.4s; }
.structure-detail-card:nth-child(5) { animation-delay: 0.5s; }
.structure-detail-card:nth-child(6) { animation-delay: 0.6s; }

.structure-detail-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.detail-icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.detail-icon svg {
  width: 40px;
  height: 40px;
}

.detail-content h4 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.detail-content p {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 65ch;
}

@media (max-width: 768px) {
  .structure-detail-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
  }
}

/* =========================
   CREDITS SECTION REDESIGN
   ========================= */

.credits-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.credits-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

#creditsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.credits-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.credits-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.credits-title.animated-text {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
}

.text-gradient-credits {
  background: linear-gradient(90deg, #ec4899, #f59e0b, #f472b6, #fbbf24, #ec4899);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShine 6s ease-in-out infinite, creditsGlow 4s ease-in-out infinite;
}

@keyframes creditsGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    text-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(236, 72, 153, 0.3);
  }
}

.credits-lead {
  font-size: 1.25rem;
  color: #ffffff !important;
  max-width: 700px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.credits-section {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.credits-section.centered-section {
  display: flex;
  justify-content: center;
}

.credits-section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.credits-section-header h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Founder Card */
.founder-card {
  width: 100%;
  max-width: 800px;
  padding: 3rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.founder-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.founder-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(58, 123, 255, 0.3);
}

.founder-info h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

.role-badge {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-50);
  color: var(--accent-dark);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.founder-body p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--ink-subtle);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.founder-body p:last-child {
  margin-bottom: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}

.social-link:hover {
  color: #ff4500; /* Reddit color */
}

/* Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.timeline-card {
  position: relative;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.timeline-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.timeline-year {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(58, 123, 255, 0.1);
  position: absolute;
  top: -10px;
  right: 10px;
  line-height: 1;
  pointer-events: none;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  position: relative;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  position: relative;
}

/* Tech Stack */
.tech-stack {
  text-align: center;
  padding: 2.5rem;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  width: 100%;
}

.tech-stack h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-pill {
  padding: 0.5rem 1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink-subtle);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .founder-header {
    flex-direction: column;
    text-align: center;
  }
  
  .founder-card {
    padding: 2rem;
  }
  
  .credits-title {
    font-size: 3rem;
  }
}

/* Hearts Animation */
.floating-heart {
  position: absolute;
  animation: floatHeart linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatHeart {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(-50vh) rotate(180deg) scale(1.2);
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}

/* Timeline Polish */
.timeline-grid {
  position: relative;
}

/* Connecting Line */
.timeline-grid::before {
  content: "";
  position: absolute;
  top: 2rem;
  bottom: 2rem;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, transparent, var(--accent-200), transparent);
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 99px;
}

@media (max-width: 900px) {
  .timeline-grid::before {
    left: 2rem;
  }
}

.timeline-card {
  z-index: 1; /* Ensure cards are above the line */
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(58, 123, 255, 0.08);
}

.timeline-year {
  color: rgba(236, 72, 153, 0.15); /* Pink tint for year */
  font-family: var(--font-mono);
  letter-spacing: -0.05em;
}

/* Founder Card Polish */
.founder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), #ec4899);
}

.founder-avatar {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
  border: 4px solid #ffffff;
}

.role-badge {
  background: linear-gradient(135deg, var(--accent-50), #fff);
  border: 1px solid var(--accent-100);
  color: var(--accent-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* General Polish */
.credits-hero-content .badge-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* FAQ SECTION STYLES */
.faq-hero {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 20px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1e293b, #0f172a);
  color: #fff;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.faq-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  z-index: 0;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

.text-gradient-faq {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-section {
  margin-bottom: 60px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  margin: 10px 0;
  border-bottom: none;
  box-shadow: var(--shadow-xs);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 24px;
  color: var(--ink-subtle);
  line-height: 1.7;
  font-size: 1rem;
  animation: slideDown 0.3s ease-out;
}

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

/* Dark mode adjustments for FAQ if needed */
@media (prefers-color-scheme: dark) {
  /* Add specific dark mode overrides here if the global dark mode strategy requires it */
}


/* =========================
   FAQ HERO REDESIGN
   ========================= */

.faq-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.faq-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.faq-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.faq-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.faq-title.animated-text {
  animation: scaleIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: scale(0.9);
}

.text-gradient-faq {
  background: linear-gradient(to right, #3a7bff, #a855f7, #0ea5e9, #3a7bff);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 5s linear infinite;
}

.faq-lead {
  font-size: 1.25rem;
  color: #ffffff !important;
  max-width: 700px;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Floating Question Marks */
.floating-question {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatQuestion linear infinite;
  z-index: 0;
}

.floating-question svg {
  width: 100%;
  height: 100%;
}

@keyframes floatQuestion {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--opacity, 0.5);
  }
  90% {
    opacity: var(--opacity, 0.5);
  }
  100% {
    transform: translateY(-800px) rotate(calc(360deg * var(--rotate-dir, 1)));
    opacity: 0;
  }
}

/* TEST SELECTION SCREEN */
.take-selection {
  padding: 0;
  width: 100%;
  max-width: none;
  animation: fadeIn 0.6s ease-out;
}

/* Old header styles removed */

.take-selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.selection-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
  border: 2px solid rgba(200, 200, 200, 0.4);
  border-radius: 28px;
  padding: 44px 32px 32px;
  text-align: center;
  cursor: pointer;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

/* Gradient Border */
.selection-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 31px;
  padding: 3px;
  background: linear-gradient(
    135deg, 
    var(--card-color), 
    color-mix(in srgb, var(--card-color), white 40%), 
    var(--card-color)
  );
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  opacity: 0.8;
}

/* Subtle inner glow */
.selection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(
    ellipse at 50% 0%, 
    color-mix(in srgb, var(--card-color), white 85%) 0%, 
    transparent 60%
  );
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.selection-card:hover {
  border-color: var(--card-color);
}

/* Color Themes */
.selection-card--quick {
  --card-color: #22c55e;
  --card-gradient: linear-gradient(135deg, #22c55e, #16a34a);
}

.selection-card--optimized {
  --card-color: #3b82f6;
  --card-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
}

.selection-card--full {
  --card-color: #a855f7;
  --card-gradient: linear-gradient(135deg, #a855f7, #9333ea);
}

/* Level Badge */
.selection-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 100px;
  background: var(--card-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--card-color), transparent 50%);
  z-index: 2;
}

/* Icon Container */
.selection-icon {
  position: relative;
  width: 88px;
  height: 88px;
  background: var(--card-gradient);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #ffffff;
  box-shadow: 
    0 10px 30px -8px color-mix(in srgb, var(--card-color), transparent 40%),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  z-index: 1;
}

/* Typography */
.selection-card h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.selection-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--card-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--card-color), white 90%);
  border-radius: 100px;
}

.selection-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Feature List */
.selection-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  width: 100%;
  text-align: left;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
}

.selection-list li {
  padding: 6px 0;
  color: var(--ink-subtle);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}

.selection-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-color);
  box-shadow: 0 0 8px var(--card-color);
  flex-shrink: 0;
}

/* CTA Button */
.selection-cta {
  width: 100%;
  padding: 14px 24px;
  background: var(--card-gradient);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--card-color), transparent 50%);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.selection-cta svg {
  width: 18px;
  height: 18px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1000px) {
  .take-selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .take-selection-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}


/* =========================
   SELECTION HERO STYLES
   ========================= */

.selection-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
}

.selection-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.selection-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.selection-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.selection-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.selection-title.animated-text {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
}



.selection-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}

/* Floating Particles for Selection Hero */
.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: white;
  opacity: 0.1;
  animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

/* =====================================================
   STRUCTURE HERO STYLES
   ===================================================== */

.structure-hero {
  position: relative;
  text-align: center;
  padding: 6rem 1rem 5rem;
  max-width: 100%;
  margin: 0 auto 4rem;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
  width: 100%;
  box-sizing: border-box;
}

.structure-hero.dark-mode {
  background: radial-gradient(circle at 50% 50%, #1a1f35 0%, #0f111a 100%);
  color: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

#structureCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.structure-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.structure-title {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  margin: 0;
}

.structure-title.animated-text {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  filter: blur(8px);
}

.text-gradient-structure {
  background: linear-gradient(135deg, #3b82f6, #a855f7, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shine 8s linear infinite;
}

.structure-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  opacity: 0;
  transform: translateY(20px);
}


/* =====================================================
   PAYMENT MODAL
   ===================================================== */

.payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.payment-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.payment-modal-backdrop[hidden] {
  display: none;
}

.payment-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 32px 40px;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-modal::-webkit-scrollbar {
  display: none;
}

.payment-modal-backdrop.show .payment-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.payment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

/* Header */
.payment-header {
  text-align: center;
  margin-bottom: 20px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.payment-badge.badge-quick {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #166534;
}

.payment-badge.badge-optimized {
  background: linear-gradient(135deg, var(--accent-100), var(--accent-200));
  color: var(--accent-dark);
}

.payment-badge.badge-full {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #5b21b6;
}

.payment-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.payment-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Product Summary */
.payment-summary {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.payment-product {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.payment-product-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #6e9bff);
  color: white;
  box-shadow: 0 8px 20px rgba(58, 123, 255, 0.3);
}

.payment-product-icon.icon-quick {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.payment-product-icon.icon-optimized {
  background: linear-gradient(135deg, var(--accent), #6e9bff);
  box-shadow: 0 8px 20px rgba(58, 123, 255, 0.3);
}

.payment-product-icon.icon-full {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.payment-product-info {
  flex: 1;
}

.payment-product-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.payment-product-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.payment-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Features List */
.payment-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--ink-subtle);
  line-height: 1.4;
}

.payment-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Divider */
.payment-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin-bottom: 16px;
}

/* Coupon Section */
.coupon-section {
  margin-bottom: 16px;
}

.coupon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-toggle:hover {
  background: var(--accent-50);
  border-color: var(--accent-200);
}

.coupon-toggle svg {
  width: 18px;
  height: 18px;
}

.coupon-form {
  display: none;
  gap: 10px;
  margin-top: 12px;
}

.coupon-form.show {
  display: flex;
}

.coupon-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(58, 123, 255, 0.1);
}

.coupon-input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--muted);
}

.coupon-apply {
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.coupon-apply:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.coupon-apply:disabled {
  background: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.coupon-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.coupon-message.success {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  border: 1px solid #a7f3d0;
}

.coupon-message.error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #dc2626;
  border: 1px solid #fecaca;
}

.coupon-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Price with discount */
.payment-price-wrapper {
  text-align: right;
}

.payment-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.payment-price.discounted {
  color: #059669;
}

.payment-price-original {
  font-size: 1rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.payment-discount-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
  margin-top: 6px;
}

/* Free access button */
.free-access-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
}

.free-access-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
}

.free-access-btn svg {
  width: 22px;
  height: 22px;
}

/* PayPal Container */
.paypal-container {
  min-height: 55px;
  margin-bottom: 20px;
}

/* Security Note */
.payment-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.payment-secure svg {
  color: #22c55e;
}

/* Error State */
.payment-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.payment-error p {
  margin: 0;
  color: #dc2626;
  font-weight: 600;
}

/* Success State */
.payment-success {
  text-align: center;
  padding: 40px 20px;
}

.payment-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.payment-success h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.payment-success p {
  margin: 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 540px) {
  .payment-modal {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .payment-title {
    font-size: 1.5rem;
  }
  
  .payment-product {
    flex-wrap: wrap;
  }
  
  .payment-product-icon {
    width: 48px;
    height: 48px;
  }
  
  .payment-price {
    width: 100%;
    text-align: right;
    margin-top: 8px;
  }
}

/* =====================================================
   COGNITIVE PROFILE RADAR CHARTS
   Matches the exact design from reference image
   ===================================================== */

/* Card that contains the cognitive profile - flex for vertical centering */
/* Force equal heights for IQ Distribution and Cognitive Profile cards */
#dashboard #sec-profile {
  align-items: stretch;
}

#dashboard #sec-profile > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#dashboard #sec-profile > .card > #iqChart,
#dashboard #sec-profile > .card > .radar-chart-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  display: flex;
  flex-direction: column;
}

.profile-card .radar-chart-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-chart-container {
  width: 100%;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  margin: auto 0;
}

/* =====================================================
   COGNITIVE PROFILE BARS (New Design)
   ===================================================== */

.cognitive-profile-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 36px;
  padding: 24px 16px;
  width: 100%;
  min-height: 350px; /* Adjusted height */
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-radius: 14px;
  border: 2px solid var(--stroke);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.profile-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  /* animation: barEnter 0.5s ease-out backwards; */
}

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

.profile-bar-track {
  position: relative;
  width: 14px;
  height: 230px; /* Adjusted height */
  border-radius: 7px;
  background: transparent; /* No background track */
  /* overflow: hidden; Removed to allow indicator box-shadow/overlap if needed */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-bar-item:hover .profile-bar-track {
  transform: scaleY(1.02);
}

/* Floating CI Bar (Main visual element) */
.profile-bar-floating {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 7px;
  opacity: 1; /* Solid or high opacity */
  transition: all 0.3s ease;
  z-index: 1;
}

/* Placeholder for N/A items */
.profile-bar-placeholder {
  position: absolute;
  bottom: 45%; /* Centered roughly or where avg score would be */
  left: 0;
  right: 0;
  height: 14px;
  border-radius: 4px;
  background-color: #d1d5db;
  opacity: 0.5;
}

.profile-bar-indicator {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%); /* Center horizontally and vertically (move down by half height) */
  width: 18px;
  height: 18px;
  background: #1f2937;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  z-index: 2;
}

.profile-bar-item:hover .profile-bar-indicator {
  transform: translate(-50%, 50%) scale(1.15);
}

.profile-bar-score {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  line-height: 1;
}

.profile-bar-score.no-score {
  color: #9ca3af;
}

.profile-bar-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--font-sans);
}

.profile-bar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .cognitive-profile-bars {
    gap: 12px;
    padding: 16px 8px;
  }
  
  .profile-bar-track {
    width: 10px;
    height: 120px;
  }
  
  .profile-bar-indicator {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }
  
  .profile-bar-score {
    font-size: 0.9rem;
  }
  
  .profile-bar-label {
    font-size: 0.7rem;
  }
}


/* =====================================================
   REQUIREMENTS MODAL
   ===================================================== */

.requirements-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.requirements-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.requirements-modal-backdrop[hidden] {
  display: none;
}

.requirements-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 36px 40px;
  transform: scale(0.9) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.requirements-modal::-webkit-scrollbar {
  width: 6px;
}

.requirements-modal::-webkit-scrollbar-track {
  background: transparent;
}

.requirements-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.requirements-modal-backdrop.show .requirements-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.requirements-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.requirements-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

/* Header */
.requirements-header {
  text-align: center;
  margin-bottom: 28px;
}

.requirements-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 24px;
  color: white;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.requirements-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.requirements-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* Requirements List */
.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.requirement-item:hover {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-color: rgba(59, 130, 246, 0.2);
}

.requirement-item:has(.requirement-checkbox:checked) {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #10b981;
}

.requirement-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.requirement-checkmark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: white;
  transition: all 0.25s ease;
}

.requirement-checkmark svg {
  width: 16px;
  height: 16px;
  stroke: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.requirement-checkbox:checked + .requirement-checkmark {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.requirement-checkbox:checked + .requirement-checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.requirement-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.requirement-content strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.requirement-content span {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Continue Button */
.requirements-continue-btn {
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.requirements-continue-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.45);
}

.requirements-continue-btn:disabled {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.requirements-continue-btn svg {
  transition: transform 0.3s ease;
}

.requirements-continue-btn:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Note */
.requirements-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.requirements-note svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  .requirements-modal {
    padding: 28px 24px;
    border-radius: 20px;
  }
  
  .requirements-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  
  .requirements-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .requirements-title {
    font-size: 1.4rem;
  }
  
  .requirement-item {
    padding: 14px 16px;
    gap: 12px;
  }
  
  .requirement-checkmark {
    width: 24px;
    height: 24px;
  }
  
  .requirement-content strong {
    font-size: 0.95rem;
  }
  
  .requirement-content span {
    font-size: 0.85rem;
  }
}

/* =====================================================
   DEMOGRAPHIC FORM MODAL
   ===================================================== */

.demographic-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.demographic-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.demographic-modal-backdrop[hidden] {
  display: none;
}

.demographic-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 36px 40px;
  transform: scale(0.9) translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.demographic-modal::-webkit-scrollbar {
  width: 6px;
}

.demographic-modal::-webkit-scrollbar-track {
  background: transparent;
}

.demographic-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.demographic-modal-backdrop.show .demographic-modal {
  transform: scale(1) translateY(0);
}

/* Header */
.demographic-header {
  text-align: center;
  margin-bottom: 28px;
}

.demographic-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-radius: 24px;
  color: white;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.35);
}

.demographic-title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.demographic-subtitle {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 420px;
}

/* Form Styles */
.demographic-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

/* Stack form groups in reverse order so earlier ones appear on top */
.demographic-form .form-group:nth-child(1) { z-index: 40; }
.demographic-form .form-group:nth-child(2) { z-index: 30; }
.demographic-form .form-group:nth-child(3) { z-index: 20; }
.demographic-form .form-group:nth-child(4) { z-index: 10; }

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form-label svg {
  color: var(--accent);
}

.form-label .required {
  color: #ef4444;
  font-weight: 700;
}

.form-label .optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-input.error,
.form-select.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-input.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Custom Select Wrapper */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: all 0.2s ease;
}

.select-wrapper:hover::after {
  border-color: var(--accent);
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-color: #fff;
  background-image: none;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* User ID Display */
.user-id-display {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
}

.user-id-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.user-id-code {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  word-break: break-all;
  user-select: all;
  cursor: pointer;
}

.user-id-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Continue Button */
.demographic-continue-btn {
  width: 100%;
  padding: 18px 28px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

.demographic-continue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.45);
}

.demographic-continue-btn:disabled {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.demographic-continue-btn svg {
  transition: transform 0.3s ease;
}

.demographic-continue-btn:hover:not(:disabled) svg {
  transform: translateX(4px);
}

/* Note */
.demographic-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.demographic-note svg {
  flex-shrink: 0;
  color: #10b981;
}

/* Responsive */
@media (max-width: 600px) {
  .demographic-modal {
    padding: 28px 24px;
    border-radius: 20px;
  }
  
  .demographic-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
  
  .demographic-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .demographic-title {
    font-size: 1.4rem;
  }
  
  .form-input,
  .form-select {
    padding: 12px 14px;
  }
}

/* ===== ANTICHEAT SYSTEM ===== */

/* Overlay Background */
.anticheat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.anticheat-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modal Container */
.anticheat-modal {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  border-radius: 24px;
  padding: 40px 48px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  box-shadow: 
    0 32px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: anticheatSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Icon Container */
.anticheat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: anticheatPulse 2s ease-in-out infinite;
}

.anticheat-icon svg {
  width: 40px;
  height: 40px;
}

/* Warning - Yellow/Orange */
.anticheat-icon.warning {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.3));
  border: 2px solid rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.3);
}

.anticheat-icon.warning svg {
  color: #fbbf24;
}

/* Error - Orange/Red */
.anticheat-icon.error {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.3));
  border: 2px solid rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.3);
}

.anticheat-icon.error svg {
  color: #f97316;
}

/* Critical - Red */
.anticheat-icon.critical {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(185, 28, 28, 0.3));
  border: 2px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.3);
}

.anticheat-icon.critical svg {
  color: #ef4444;
}

/* Info - Blue */
.anticheat-icon.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3));
  border: 2px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.anticheat-icon.info svg {
  color: #3b82f6;
}

@keyframes anticheatPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Typography */
.anticheat-modal h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.anticheat-modal p {
  margin: 0 0 8px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.anticheat-emphasis {
  color: #fbbf24 !important;
  font-weight: 600;
  margin-top: 16px !important;
}

.anticheat-muted {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 0.9rem !important;
  margin-top: 8px !important;
}

/* Button */
.anticheat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 36px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.anticheat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5);
}

.anticheat-btn:active {
  transform: translateY(0);
}

.anticheat-btn.critical {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.anticheat-btn.critical:hover {
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
}

/* Responsive */
@media (max-width: 500px) {
  .anticheat-modal {
    padding: 32px 28px;
    border-radius: 20px;
  }
  
  .anticheat-icon {
    width: 64px;
    height: 64px;
  }
  
  .anticheat-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .anticheat-modal h3 {
    font-size: 1.35rem;
  }
  
  .anticheat-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* =====================================================
   FOOTER LINKS PANEL (Articles Section)
   ===================================================== */

.footer-links-panel {
  text-align: left;
  padding: 1.5rem 2rem;
  background: rgba(248, 250, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(209, 217, 230, 0.6);
  max-width: 300px;
  width: 100%;
}

.footer-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.02em;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-link:hover {
  color: var(--accent);
}

