/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  height: var(--header-height);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-purple)) 1;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  min-width: 0;
}

.header__logo img {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.header__brand-bold {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-darker);
}

.header__brand-light {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__link {
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.header__link:hover,
.header__link--active {
  color: var(--color-primary-dark);
  background: var(--color-mint);
}

.header__link--cta {
  background: var(--gradient-brand);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.3);
}

.header__link--cta:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  color: #fff !important;
}

.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary-darker);
}

.header__toggle svg {
  width: 28px;
  height: 28px;
}

.header__cta-mobile {
  display: none;
}

@media (max-width: 768px) {
  .header__toggle,
  .header__nav {
    display: none;
  }

  .header__inner {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .header__cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .header__logo img {
    height: 40px;
  }

  .header__brand-bold {
    font-size: 0.92rem;
  }

  .header__brand-light {
    font-size: 0.68rem;
  }
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    var(--gradient-hero-strong),
    var(--gradient-hero);
  pointer-events: none;
}

.hero__content {
  position: relative;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-accent-soft) 100%);
  color: var(--color-primary-darker);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 169, 157, 0.15);
}

.hero__title {
  max-width: 720px;
  margin: 0 auto 1rem;
}

.hero__desc {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 169, 157, 0.25);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid--3,
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: 1fr; }
}

.card--step {
  text-align: center;
}

.card--step img,
.card--step svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.card--step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card--step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.card-grid--4 .card:nth-child(1) { border-top-color: var(--color-primary); }
.card-grid--4 .card:nth-child(2) { border-top-color: var(--color-purple); }
.card-grid--4 .card:nth-child(3) { border-top-color: var(--color-coral); }
.card-grid--4 .card:nth-child(4) { border-top-color: var(--color-accent); background: linear-gradient(180deg, #fffef8 0%, #fff 40%); }

.card-grid--3 .card:nth-child(1) { border-top-color: var(--color-primary); }
.card-grid--3 .card:nth-child(2) { border-top-color: var(--color-purple); }
.card-grid--3 .card:nth-child(3) { border-top-color: var(--color-coral); }

/* Impact box */
.impact-box {
  background: linear-gradient(145deg, var(--color-primary-darker) 0%, #005a66 50%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.impact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.impact-box__label {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-darker);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.impact-box img {
  max-width: 500px;
  margin: 0 auto 1rem;
  border-radius: var(--radius-sm);
}

.impact-box p {
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.split__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Alert / notice boxes */
.notice {
  border-right: 4px solid var(--color-primary);
  background: linear-gradient(90deg, var(--color-mint) 0%, rgba(255,255,255,0.6) 100%);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.notice--dark {
  background: var(--color-primary-darker);
  color: #fff;
  border-right-color: var(--color-accent);
}

.notice--warning {
  border-right-color: var(--color-accent);
  background: rgba(255, 209, 0, 0.12);
}

/* Form */
.form-page {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.form-group input[type="file"] {
  padding: 0.5rem;
}

.form-group .hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.form-group .error-msg {
  font-size: 0.85rem;
  color: var(--color-error);
  margin-top: 0.35rem;
  display: none;
}

.form-group.is-invalid input,
.form-group.is-invalid select {
  border-color: var(--color-error);
}

.form-group.is-invalid .error-msg {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.form-alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  display: none;
}

.form-alert.is-visible { display: block; }
.form-alert--error { background: #ffebee; color: var(--color-error); }
.form-alert--success { background: #e8f5e9; color: var(--color-success); }

.photo-guide {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sky) 100%);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
}

.photo-guide img {
  width: 160px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Thank you */
.thankyou {
  text-align: center;
  padding: 3rem 0;
  max-width: 520px;
  margin: 0 auto;
}

.thankyou__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-mint) 0%, #e8f5e9 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-success);
  font-size: 2rem;
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-colored);
}

.thankyou__code {
  font-family: 'Courier New', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-bg);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  letter-spacing: 2px;
  direction: ltr;
}

/* Footer */
.footer {
  background: var(--color-primary-darker);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
}

.footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer__logos a {
  display: block;
  line-height: 0;
  transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast);
}

.footer__logos a:hover {
  transform: translateY(-3px);
  opacity: 0.92;
}

.footer__logos img {
  width: 150px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer__disclaimer {
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
  opacity: 0.75;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Chart bars */
.bar-chart-wrap {
  max-width: 560px;
  margin: 0.5rem auto 0;
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  height: 220px;
  padding-top: 0;
}

.bar-chart__item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: end;
  justify-items: center;
  height: 100%;
  flex: 1;
  max-width: 72px;
  min-width: 0;
}

.bar-chart__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  grid-row: 1;
  white-space: nowrap;
}

.bar-chart__bar {
  grid-row: 2;
  align-self: end;
  width: 100%;
  max-width: 52px;
  height: 100%;
  max-height: 150px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 8px 8px 0 0;
  min-height: 24px;
}

.bar-chart__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.65rem;
  grid-row: 3;
}

/* Timeline */
.timeline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}

.timeline__step {
  text-align: center;
  position: relative;
}

.timeline__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.35);
}

.timeline__label {
  font-size: 0.85rem;
  font-weight: 600;
}

.timeline__sub {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.timeline__line {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.4;
  margin-bottom: 2rem;
}

/* HPV types */
.hpv-types {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.hpv-types__item {
  text-align: center;
}

.hpv-types__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 0.35rem;
}

.hpv-types__circle--6 { background: #4caf50; }
.hpv-types__circle--11 { background: #2196f3; }
.hpv-types__circle--16 { background: var(--color-purple); }
.hpv-types__circle--18 { background: #ff9800; }

.hpv-types__label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Page layout wrapper */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper main {
  flex: 1;
}

/* CTA band */
.cta-band {
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  padding: 3rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 209, 0, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(166, 77, 121, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.cta-band .btn--primary:hover {
  background: var(--color-accent);
  color: var(--color-primary-darker);
}

/* ── Bottom navigation (mobile) ── */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 62, 72, 0.1);
  }

  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
  }

  .bottom-nav__item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom-nav__item--active {
    color: var(--color-primary-dark);
  }

  .bottom-nav__item--active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 0 0 3px 3px;
  }

  .bottom-nav__item--cta {
    color: var(--color-primary-dark);
  }

  .bottom-nav__item--cta svg {
    background: var(--gradient-brand);
    color: #fff;
    stroke: #fff;
    border-radius: 50%;
    padding: 7px;
    width: 36px;
    height: 36px;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.35);
  }

  .bottom-nav__item--cta.bottom-nav__item--active svg {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  }
}

/* ── Live stats board ── */
.section--stats {
  background: linear-gradient(180deg, var(--color-mint) 0%, var(--color-bg) 100%);
}

.stats-board,
.stats-strip {
  background: linear-gradient(145deg, var(--color-primary-darker) 0%, #005a66 55%, var(--color-primary-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stats-board::before,
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 209, 0, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(166, 77, 121, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.stats-board > *,
.stats-strip > * {
  position: relative;
  z-index: 1;
}

.stats-board__header {
  text-align: center;
  margin-bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1rem 1.1rem;
  color: var(--color-text);
}

.stats-board__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 62, 72, 0.08);
  color: var(--color-primary-darker);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stats-board__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.6);
  animation: statsPulse 1.8s ease-out infinite;
}

@keyframes statsPulse {
  0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.stats-board__title {
  color: var(--color-primary-darker);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin-bottom: 0.4rem;
}

.stats-board__title::after {
  display: none;
}

.stats-board__desc {
  color: var(--color-text-muted);
  opacity: 1;
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
}

.stats-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.stats-flow__side {
  text-align: center;
  min-width: 100px;
}

.stats-flow__num {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  direction: ltr;
  unicode-bidi: embed;
}

.stats-flow__num--accent {
  color: var(--color-accent);
}

.stats-flow__txt {
  font-size: 0.78rem;
  opacity: 0.85;
}

.stats-flow__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  opacity: 0.7;
}

.stats-flow__ratio {
  font-size: 0.85rem;
  font-weight: 600;
}

.stats-flow__arrow {
  width: 40px;
  height: 20px;
  color: var(--color-accent);
  transform: scaleX(-1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

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

.stats-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform var(--duration-fast) var(--ease-out), background var(--duration-fast);
}

.stats-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.stats-card--accent { border-top: 3px solid var(--color-accent); }
.stats-card--primary { border-top: 3px solid var(--color-primary); }
.stats-card--purple { border-top: 3px solid var(--color-purple); }
.stats-card--coral { border-top: 3px solid var(--color-coral); }

.stats-card__emoji {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.stats-card__num {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  direction: ltr;
  unicode-bidi: embed;
}

.stats-card__label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.stats-goal {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.stats-goal__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.stats-goal__top strong {
  font-size: 1.1rem;
  color: #a5d6a7;
  direction: ltr;
  unicode-bidi: embed;
}

.stats-goal__track {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.stats-goal__fill {
  height: 100%;
  background: linear-gradient(90deg, #1b5e20, #2e7d32);
  border-radius: 999px;
  width: 0;
  transition: width 1.2s var(--ease-out);
}

.stats-goal__hint {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.55rem;
  text-align: center;
}

/* Compact strip — register page */
.stats-strip {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.stats-strip__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.65rem;
}

.stats-strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.stats-strip__item {
  text-align: center;
  min-width: 72px;
}

.stats-strip__item--accent .stats-strip__num {
  color: var(--color-accent);
}

.stats-strip__num {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: embed;
}

.stats-strip__label {
  font-size: 0.68rem;
  opacity: 0.85;
}

.stats-strip__divider {
  opacity: 0.4;
  font-size: 1rem;
}

.stats-strip__msg {
  text-align: center;
  font-size: 0.82rem;
  margin-top: 0.75rem;
  opacity: 0.9;
}

.stats-strip__msg strong {
  color: var(--color-accent);
}

@media (prefers-reduced-motion: reduce) {
  .stats-board__dot {
    animation: none;
  }
  .stats-goal__fill {
    transition: none;
  }
}

/* ── Sero-conversion grouped chart ── */
.sero-chart {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.25rem;
  background: linear-gradient(160deg, #eef5f8 0%, #f8fbfc 45%, #eef4f6 100%);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.sero-chart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 20 30 30 T60 30' fill='none' stroke='%23c5dce6' stroke-width='0.5' opacity='0.4'/%3E%3C/svg%3E") repeat;
  opacity: 0.35;
  pointer-events: none;
}

.sero-chart > * {
  position: relative;
  z-index: 1;
}

.sero-chart__legend {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.sero-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sero-chart__swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.sero-chart__swatch--gardisun { background: #e8a4b8; }
.sero-chart__swatch--gardasil { background: #7ec8c8; }

.sero-chart__body {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.sero-chart__ylabel {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 600;
  color: #4a6570;
  text-align: center;
  flex-shrink: 0;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.sero-chart__plot {
  flex: 1;
  display: flex;
  gap: 0.35rem;
  min-width: 0;
}

.sero-chart__yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #5a6e72;
  padding-bottom: 1.75rem;
  direction: ltr;
  unicode-bidi: embed;
  flex-shrink: 0;
  min-height: 240px;
}

.sero-chart__yaxis-break {
  font-size: 0.85rem;
  line-height: 1;
  color: #5a7a88;
  opacity: 0.85;
  margin: -0.15rem 0;
}

.sero-chart__grid {
  flex: 1;
  border-left: 1.5px solid #5a7a88;
  border-bottom: 1.5px solid #5a7a88;
  background-image: repeating-linear-gradient(
    to top,
    transparent,
    transparent calc(20% - 1px),
    rgba(90, 122, 136, 0.18) calc(20% - 1px),
    rgba(90, 122, 136, 0.18) 20%
  );
  padding: 0 0.5rem 0;
  min-height: 260px;
}

.sero-chart__groups {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
  min-height: 240px;
  padding-top: 1.5rem;
}

.sero-chart__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 110px;
}

.sero-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  height: 200px;
  width: 100%;
}

.sero-chart__bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  flex: 1;
  max-width: 36px;
}

.sero-chart__val {
  font-size: 0.68rem;
  font-weight: 600;
  color: #4a6570;
  margin-bottom: 0.2rem;
  direction: ltr;
  unicode-bidi: embed;
  white-space: nowrap;
}

.sero-chart__bar {
  width: 100%;
  max-width: 32px;
  height: var(--h, 50%);
  border-radius: 999px 999px 4px 4px;
  min-height: 8px;
}

.sero-chart__bar--gardisun { background: #e8a4b8; }
.sero-chart__bar--gardasil { background: #7ec8c8; }

.sero-chart__xlabel {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4a6570;
  direction: ltr;
  unicode-bidi: embed;
}

.sero-chart__caption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a6570;
  margin-top: 1.25rem;
  direction: ltr;
  unicode-bidi: embed;
}

.sero-chart__note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.45rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .sero-chart__ylabel {
    font-size: 0.62rem;
  }
  .sero-chart__val {
    font-size: 0.6rem;
  }
  .sero-chart__bars {
    gap: 0.2rem;
  }
}

/* ── UID help & modal ── */
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.form-label-row > span {
  font-weight: 600;
  font-size: 0.95rem;
}

.uid-help-link {
  border: none;
  background: none;
  color: var(--color-error);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uid-help-link:hover {
  color: #a31515;
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 36, 0.55);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(90vh, 720px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: modalIn 0.32s var(--ease-out);
}

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

.modal__close {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  color: var(--color-primary-darker);
}

.modal__img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
  background: #f5f8f9;
}

.modal__img-wrap img {
  width: 100%;
  display: block;
}

.modal__body {
  font-size: 0.92rem;
  line-height: 1.85;
}

.modal__body ul {
  margin: 0.75rem 1.25rem 0.75rem 0;
}

.modal__body code {
  background: var(--color-mint);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  direction: ltr;
  unicode-bidi: embed;
}

/* ── Modern file upload ── */
.file-drop {
  position: relative;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fcfb 0%, #f0f7f9 100%);
  transition: border-color var(--duration-fast), background var(--duration-fast), box-shadow var(--duration-fast);
  cursor: pointer;
  overflow: hidden;
}

.file-drop:hover,
.file-drop--drag {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #eef9f7 0%, #e8f4f8 100%);
  box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.12);
}

.file-drop--filled {
  cursor: default;
  border-style: solid;
}

.file-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop__empty {
  padding: 2rem 1.25rem;
  text-align: center;
}

.file-drop__icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin: 0 auto 0.75rem;
}

.file-drop__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.file-drop__hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.file-drop__btn {
  pointer-events: auto;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.file-drop__preview {
  padding: 1rem;
}

.file-drop__preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--color-border);
}

.file-drop__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.file-drop__remove {
  border: none;
  background: none;
  color: var(--color-error);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.file-drop__remove:hover {
  text-decoration: underline;
}

.form-group.is-invalid .file-drop {
  border-color: var(--color-error);
}

/* ── Shamsi date picker ── */
.shamsi-date {
  position: relative;
}

.shamsi-date__field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.shamsi-date__display {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shamsi-date__display:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.shamsi-date__trigger {
  flex-shrink: 0;
  width: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-mint) 0%, #f0f8fa 100%);
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}

.shamsi-date__trigger:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.shamsi-date--open .shamsi-date__trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.12);
}

.shamsi-date__popup {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: 0;
  z-index: 50;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  animation: modalIn 0.22s var(--ease-out);
}

.shamsi-date__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.shamsi-date__title {
  font-weight: 700;
  color: var(--color-primary-darker);
  font-size: 0.95rem;
}

.shamsi-date__nav {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--color-mint);
  color: var(--color-primary-dark);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.shamsi-date__nav:hover {
  background: var(--color-primary);
  color: #fff;
}

.shamsi-date__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.shamsi-date__wd {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 0.2rem 0 0.35rem;
}

.shamsi-date__day {
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.shamsi-date__day:hover:not(:disabled) {
  background: var(--color-mint);
}

.shamsi-date__day--today {
  box-shadow: inset 0 0 0 1.5px var(--color-primary);
}

.shamsi-date__day--selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.shamsi-date__day--selected:hover {
  background: var(--color-primary-dark);
}

.shamsi-date__day--blank {
  pointer-events: none;
}

.shamsi-date__day--disabled,
.shamsi-date__day:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-group.is-invalid .shamsi-date__display {
  border-color: var(--color-error);
}
