:root {
  --app-bg: #0a0e1a;
  --card-bg: #ffffff;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent-red: #dc2626;
  --accent-orange: #ea580c;
  --cta-male: #0f2744;
  --cta-female: #b91c1c;
  /* CTA palette — navy + slate (no orange/red stack) */
  --cta-border: #94a3b8;
  --cta-fill: #f8fafc;
  --cta-fill-hover: #f1f5f9;
  --cta-ink: #1e293b;
  --cta-primary-navy: #0a1628;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--app-bg);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Outer: phone / IG feed feel */
.page-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 16px 32px;
}

/* Vertical Instagram-style card — narrow, tall flow */
.ig-card {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 25px 50px -12px rgba(0, 0, 0, 0.45);
  padding: 20px 22px 24px;
  animation: cardIn 0.45s ease both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ig-card__badge {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.ig-card__headline {
  margin: 0;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ig-card__line1 {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.ig-card__line2 {
  display: block;
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--accent-red);
}

.ig-card__subline {
  display: block;
  margin-top: 8px;
  font-size: clamp(0.88rem, 3.2vw, 1.05rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.ig-card__hook {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
  padding: 0 6px;
}

/* Stats — horizontal row, count-up targets in JS */
.ig-stats {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
  background: #fafbfc;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  pointer-events: none;
  user-select: none;
}

.ig-stats--horizontal .ig-stat {
  padding: 6px 4px;
  text-align: center;
  border-right: 1px dashed #cbd5e1;
}

.ig-stats--horizontal .ig-stat:last-child {
  border-right: 0;
}

.ig-stat__num {
  display: block;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  min-height: 1.2em;
}

.ig-stat__num--pop {
  animation: statPop 0.55s ease;
}

@keyframes statPop {
  0% {
    transform: scale(1);
    color: var(--ink);
  }
  35% {
    transform: scale(1.12);
    color: var(--accent-red);
  }
  100% {
    transform: scale(1);
    color: var(--ink);
  }
}

.ig-stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.25;
  padding: 0 2px;
}

.ig-checklist {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.5;
}

.ig-checklist li {
  margin-bottom: 6px;
}

.ig-checklist li::marker {
  color: var(--accent-red);
}

/* Deadline — high visibility panel */
.ig-urgency {
  margin-top: 16px;
  padding: 16px 14px 18px;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff5f5 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.12);
}

.ig-urgency__intro {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9f1239;
  line-height: 1.35;
  padding: 0 4px;
}

.ig-urgency__deadline {
  display: block;
  font-size: clamp(1.75rem, 8vw, 2.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-red);
}

.ig-urgency__label {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #be123c;
  letter-spacing: 0.14em;
}

.ig-urgency__sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.2rem, 5vw, 1.45rem);
  font-weight: 900;
  color: var(--accent-red);
  letter-spacing: 0.02em;
}

.ig-urgency__time {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.65rem, 7vw, 2rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #991b1b;
  line-height: 1.1;
  transition: transform 0.2s ease;
}

.ig-urgency__time--pulse {
  animation: countdownPulse 0.45s ease;
}

@keyframes countdownPulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.ig-trust-bullets {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.ig-trust-bullets span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

/* ONLY these look like tappable buttons */
.ig-cta-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.ig-gender-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto 10px;
}

.ig-gender-row--compact {
  max-width: 300px;
  margin-bottom: 4px;
}

.gender-option {
  flex: 1;
  min-height: 48px;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cta-ink);
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.gender-option:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.gender-option.is-selected {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0c4a6e;
  box-shadow: 0 0 0 1px #0284c7;
}

.ig-cta-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Shared tap target — slim, not pill-bulky */
.cta-btn {
  width: 100%;
  max-width: 320px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid transparent;
  line-height: 1.25;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* Country rows: outline “list” style — clearly not the old orange blobs */
.ig-cta-grid .cta-btn:not(.cta-btn--primary) {
  background: var(--cta-fill);
  color: var(--cta-ink);
  border-color: var(--cta-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-transform: none;
}

.ig-cta-grid .cta-btn:not(.cta-btn--primary):hover {
  background: var(--cta-fill-hover);
  border-color: #64748b;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.ig-cta-grid .cta-btn:not(.cta-btn--primary):active {
  background: #e2e8f0;
}

/* Primary: flat navy bar — “GET SCHOLARSHIP” */
.ig-cta-grid .cta-btn--primary {
  margin-top: 0;
  padding: 15px 16px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border-color: var(--cta-primary-navy);
  background: var(--cta-primary-navy);
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.22);
}

.ig-cta-grid .cta-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(10, 22, 40, 0.3);
}

.ig-cta-grid .cta-btn--primary:active {
  filter: brightness(0.95);
}

/* Modal: same narrow vertical card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  z-index: 999;
  backdrop-filter: blur(4px);
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-card.ig-modal {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 16px;
  color: var(--ink);
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.28s ease both;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

/* Flash-news style ticker (single line, scrolls horizontally) */
.modal-news-ticker {
  margin: 0 28px 12px 0;
  border-radius: 6px;
  overflow: hidden;
  background: #7f1d1d;
  border: 1px solid #450a0a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal-news-ticker__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.modal-news-ticker__track {
  display: flex;
  width: max-content;
}

.modal-news-ticker__seg {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 32px 9px 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

@keyframes modalTickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ig-modal__line {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  padding-left: 2px;
}

.ig-modal__line::before,
.modal-copy.ig-modal__line::before {
  content: "✓";
  color: var(--accent-red);
  font-weight: 900;
  margin-right: 8px;
}

.modal-copy.ig-modal__line {
  margin: 6px 0 0;
}

.modal-cta-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.modal-cta-wrap .cta-btn--primary {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--cta-primary-navy);
  box-shadow: 0 2px 10px rgba(10, 22, 40, 0.22);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.modal-cta-wrap .cta-btn--primary:hover {
  filter: brightness(1.08);
}

.modal-cta-wrap .cta-btn--primary:active {
  transform: scale(0.99);
}

.modal-trust-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.modal-trust-row span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 380px) {
  .ig-card {
    padding: 16px 16px 20px;
    border-radius: 16px;
  }

  .ig-card__line2 {
    font-size: 1.18rem;
  }

  .ig-card__subline {
    font-size: 0.82rem;
  }

  .ig-stats--horizontal .ig-stat__num {
    font-size: 0.95rem;
  }

  .ig-stats--horizontal .ig-stat__label {
    font-size: 0.52rem;
  }
}
