:root {
  --ink: #10251f;
  --muted: #5c746d;
  --green: #0b4b3a;
  --green-2: #0f6b50;
  --blue: #0b3f6f;
  --blue-2: #1b6ea8;
  --mint: #66d9b6;
  --ice: #eaf7f5;
  --line: #d7e6e2;
  --gold: #d3a642;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(10, 63, 72, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 80% 10%, rgba(102, 217, 182, 0.18), transparent 30%),
    linear-gradient(180deg, #f9fefd 0%, #eef8f7 100%);
}

html {
  scroll-behavior: smooth;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 56px) 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--green);
  font-size: 1.12rem;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.95) 0 15%, transparent 16%),
    radial-gradient(circle at 51% 48%, var(--mint) 0 24%, transparent 25%),
    linear-gradient(135deg, var(--green), var(--blue));
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.35),
    0 10px 24px rgba(11, 75, 58, 0.18);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  bottom: 8px;
  width: 18px;
  height: 17px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-top: 0;
}

.brand-mark::before {
  left: 6px;
  border-right: 0;
  border-radius: 0 0 0 18px;
  transform: rotate(-25deg);
}

.brand-mark::after {
  right: 6px;
  border-left: 0;
  border-radius: 0 0 18px 0;
  transform: rotate(25deg);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  line-height: 1;
}

.brand-copy small {
  color: #5a766f;
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #2f5149;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 9px 0;
}

.nav-action,
.primary-button,
.secondary-button {
  border: 0;
  min-height: 44px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nav-action,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 26px rgba(11, 75, 58, 0.22);
}

.nav-action {
  padding: 0 18px;
  font-weight: 700;
}

.nav-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100vh - 230px);
  padding: 52px 0 30px;
}

.hero::before {
  position: absolute;
  inset: 18px -24px auto auto;
  width: min(620px, 48vw);
  height: min(620px, 48vw);
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(11, 63, 111, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 63, 111, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 18%, transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--green);
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-text {
  max-width: 640px;
  margin: 28px 0 0;
  color: #365a52;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  padding: 0 22px;
  font-weight: 800;
}

.secondary-button {
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--line);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #43665e;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.83rem;
  font-weight: 700;
}

.welcome-note {
  display: grid;
  gap: 12px;
  max-width: 650px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 107, 80, 0.16);
  border-radius: 8px;
  color: #315b52;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(234, 247, 245, 0.82));
  box-shadow: 0 18px 50px rgba(11, 75, 58, 0.08);
}

.welcome-note p {
  margin: 0;
  line-height: 1.55;
  font-weight: 690;
}

.welcome-note div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-note span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(102, 217, 182, 0.18);
  font-size: 0.78rem;
  font-weight: 850;
}

.globe-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.globe-meta {
  position: absolute;
  top: 28px;
  left: 48px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(11, 75, 58, 0.15);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 12px 40px rgba(11, 75, 58, 0.08);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(102, 217, 182, 0.24);
}

#worldCanvas {
  width: min(680px, 100%);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(var(--shadow));
}

.globe-legend {
  position: absolute;
  right: 20px;
  bottom: 30px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(11, 75, 58, 0.12);
  border-radius: 8px;
  color: #325c53;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
  box-shadow: 0 14px 40px rgba(11, 63, 111, 0.08);
}

.globe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.globe-legend i {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.legend-heat {
  background: linear-gradient(90deg, rgba(211, 166, 66, 0.1), rgba(211, 166, 66, 0.95));
}

.legend-flight {
  background: linear-gradient(90deg, rgba(216, 52, 43, 0.2), rgba(216, 52, 43, 0.95));
}

.ticker {
  overflow: hidden;
  margin: 8px 0 30px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 16px 0;
  color: #2f5b52;
  font-weight: 800;
  animation: ticker 32s linear infinite;
}

.ticker-track span {
  white-space: nowrap;
}

.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--green-2);
}

.world-clocks {
  margin: -4px 0 30px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 75, 58, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(11, 75, 58, 0.96), rgba(11, 63, 111, 0.92));
  box-shadow: 0 18px 52px rgba(11, 75, 58, 0.07);
}

.clock-grid {
  display: flex;
  gap: 8px;
  width: max-content;
  overflow: visible;
  padding: 2px 0 4px;
  animation: clock-slide 46s linear infinite;
}

.world-clocks:hover .clock-grid {
  animation-play-state: paused;
}

.clock-card {
  flex: 0 0 154px;
  min-height: 74px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.clock-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.clock-card strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1;
}

.clock-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 720;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.preview-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.preview-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 107, 80, 0.24);
  box-shadow: 0 18px 50px rgba(11, 75, 58, 0.08);
}

.preview-grid h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.22rem;
}

.preview-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.app-dashboard,
.country-profile-lab {
  padding: 54px 0 22px;
}

.app-section-heading {
  max-width: 860px;
  margin-bottom: 18px;
}

.app-section-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.03;
}

.app-section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-shell,
.country-profile-shell {
  display: grid;
  gap: 14px;
}

.dashboard-hero-card,
.preference-card,
.country-profile-card,
.app-empty {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.07);
}

.dashboard-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #d9f1ed;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.dashboard-hero-card h3,
.preference-card h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.dashboard-hero-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.dashboard-hero-card .primary-button {
  color: var(--green);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(4, 24, 37, 0.18);
}

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

.dashboard-panel {
  min-height: 250px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dashboard-panel h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.02rem;
}

.panel-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-row,
.check-row,
.progress-row {
  padding: 11px;
  border: 1px solid rgba(11, 75, 58, 0.12);
  border-radius: 8px;
  background: rgba(234, 247, 245, 0.48);
}

.mini-row strong,
.check-row strong,
.progress-row strong {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--green);
  font-size: 0.92rem;
}

.mini-row span,
.progress-row span {
  color: var(--blue);
  font-size: 0.78rem;
}

.mini-row p,
.check-row p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.38;
  font-size: 0.88rem;
}

.alert-row {
  background: rgba(211, 166, 66, 0.12);
}

.message-row.is-unread {
  border-color: rgba(15, 107, 80, 0.34);
  box-shadow: inset 4px 0 0 var(--green-2);
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.status-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: #9eb7b0;
}

.status-dot.done {
  background: var(--green-2);
}

.status-dot.in_progress {
  background: var(--gold);
}

.progress-row div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.progress-row i {
  display: block;
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9ece8;
}

.progress-row i::before {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.preference-card {
  color: #d9f1ed;
  background: linear-gradient(135deg, #153f36, #0b3f6f);
}

.profile-selector {
  display: grid;
  max-width: 360px;
  gap: 8px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
}

.profile-selector select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #284d45;
  background: var(--white);
  font: inherit;
  font-weight: 720;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border-radius: 8px;
  color: #d9f1ed;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.profile-hero h3 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
}

.profile-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.source-score {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.source-score strong {
  color: var(--white);
  font-size: 2rem;
}

.source-score span,
.source-score small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 780;
}

.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.profile-meta-row span {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--ice);
  font-size: 0.78rem;
  font-weight: 820;
}

.profile-section,
.profile-sources,
.provider-preview {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-section h4,
.profile-sources h4,
.provider-preview h4 {
  margin: 0;
  color: var(--green);
}

.profile-sources {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(11, 63, 111, 0.14);
  border-radius: 8px;
  background: var(--ice);
}

.profile-sources p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-facts,
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.profile-facts article,
.provider-card {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.profile-facts h4,
.provider-card h5 {
  margin: 0;
  color: var(--green);
}

.profile-facts p,
.provider-card p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.provider-card span,
.provider-card small {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.match-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: 64px 0 24px;
}

.match-intro h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.match-intro p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.match-app {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.08);
}

.match-progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.88rem;
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #d9ece8;
}

.progress-bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

#matchForm {
  min-width: 0;
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.is-active {
  display: grid;
  gap: 10px;
}

.quiz-step legend {
  margin-bottom: 16px;
  color: var(--green);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 850;
  line-height: 1.12;
}

.step-hint {
  margin: -6px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
}

.quiz-step label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #315b52;
  background: var(--white);
  font-weight: 720;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.quiz-step label:hover {
  transform: translateX(2px);
  border-color: rgba(15, 107, 80, 0.38);
  background: #f7fcfb;
}

.quiz-step label:has(input:checked) {
  border-color: rgba(15, 107, 80, 0.42);
  background: var(--ice);
  box-shadow: inset 4px 0 0 var(--green-2);
}

.quiz-step input {
  accent-color: var(--green);
  flex: 0 0 auto;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.quiz-actions button {
  min-width: 108px;
}

.match-results {
  min-height: 320px;
  padding: 18px;
  border-radius: 8px;
  color: #d9f1ed;
  background:
    linear-gradient(160deg, rgba(11, 75, 58, 0.96), rgba(11, 63, 111, 0.96)),
    var(--green);
}

.result-kicker {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-results h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.match-results p {
  line-height: 1.5;
}

.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.signal-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 850;
}

.result-card {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.result-card strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--white);
}

.result-card span {
  color: var(--mint);
  font-size: 0.88rem;
}

.result-card p {
  margin: 8px 0 0;
  color: #d7ece8;
  font-size: 0.92rem;
}

.route-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: 52px 0 36px;
}

.route-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.route-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.route-tool {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.07);
}

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

.select-row label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
}

.select-row select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #284d45;
  background: var(--white);
  font: inherit;
  font-weight: 720;
}

.route-output {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.route-summary {
  padding: 18px;
  border-radius: 8px;
  color: #d9f1ed;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.route-summary h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.38rem;
}

.route-summary p {
  margin: 10px 0 0;
  line-height: 1.5;
}

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

.resource-card {
  min-height: 150px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.resource-card h4 {
  margin: 0;
  color: var(--green);
  font-size: 1rem;
}

.resource-card ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
}

.route-note {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(15, 107, 80, 0.18);
  border-radius: 8px;
  color: #315b52;
  background: var(--ice);
  font-size: 0.92rem;
  font-weight: 720;
}

.country-digest {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(11, 63, 111, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 247, 245, 0.85), rgba(255, 255, 255, 0.94));
}

.digest-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.digest-header h4 {
  margin: 0;
  color: var(--green);
  font-size: 1.1rem;
}

.digest-header span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(11, 63, 111, 0.08);
  font-size: 0.75rem;
  font-weight: 850;
}

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

.digest-grid article {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.digest-grid h5 {
  margin: 0;
  color: var(--green);
  font-size: 0.88rem;
}

.digest-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.9rem;
}

.digest-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intel-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: 46px 0 36px;
}

.intel-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.intel-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.intel-tool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.07);
}

.intel-tool label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
}

.intel-tool select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #284d45;
  background: var(--white);
  font: inherit;
  font-weight: 720;
}

.intel-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.intel-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.intel-card h4 {
  margin: 0;
  color: var(--green);
}

.intel-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.visa-lab {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  padding: 46px 0 38px;
}

.visa-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.visa-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.visa-tool {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.07);
}

.visa-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.visa-controls label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 850;
}

.visa-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #284d45;
  background: var(--white);
  font: inherit;
  font-weight: 720;
}

.visa-answer-grid,
.visa-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.visa-card,
.answer-card,
.apostille-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.visa-card h4,
.answer-card h4,
.apostille-panel h4 {
  margin: 0;
  color: var(--green);
}

.visa-card p,
.answer-card p,
.apostille-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.score-row {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.score-row span {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: #315b52;
  font-size: 0.86rem;
  font-weight: 760;
}

.apostille-panel {
  margin-top: 12px;
  background: var(--ice);
}

.monitor-lab {
  padding: 56px 0 42px;
}

.monitor-heading {
  max-width: 840px;
}

.monitor-heading h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.monitor-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.monitor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 16px;
  margin-top: 24px;
}

.customer-updates,
.source-registry,
.admin-dashboard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 60px rgba(11, 75, 58, 0.07);
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title-row h3,
.source-registry h3 {
  margin: 0;
  color: var(--green);
  font-size: 1.32rem;
}

#monitorCountry {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #284d45;
  background: var(--white);
  font: inherit;
  font-weight: 750;
}

.update-feed,
.admin-queue,
#sourceRegistryList {
  display: grid;
  gap: 12px;
}

.registry-stats {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.update-card,
.registry-card,
.admin-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.update-card.is-major {
  border-color: rgba(211, 166, 66, 0.55);
  box-shadow: inset 4px 0 0 var(--gold);
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green);
  background: var(--ice);
  font-size: 0.76rem;
  font-weight: 850;
}

.tag.official {
  color: #063f31;
  background: rgba(102, 217, 182, 0.32);
}

.tag.news {
  color: #0b3f6f;
  background: rgba(27, 110, 168, 0.14);
}

.tag.major {
  color: #5c3d00;
  background: rgba(211, 166, 66, 0.25);
}

.update-card h4,
.admin-card h4,
.registry-card h4 {
  margin: 0;
  color: var(--green);
  font-size: 1rem;
}

.update-card p,
.admin-card p,
.registry-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.source-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-dashboard {
  margin-top: 16px;
}

.review-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--green);
  background: var(--ice);
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.approve-button,
.reject-button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.approve-button {
  background: var(--green);
}

.reject-button {
  background: #7c2d2d;
}

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

.ops-grid article {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.ops-grid h4 {
  margin: 0;
  color: var(--green);
  font-size: 1rem;
}

.ops-grid p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.92rem;
}

.legal-note {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(11, 63, 111, 0.15);
  border-radius: 8px;
  color: #315b52;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  font-weight: 700;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes clock-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% + min(760px, 62vw)));
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .globe-panel {
    min-height: auto;
    padding: 30px 0 44px;
  }

  .globe-meta {
    top: 18px;
    left: 16px;
  }

  .globe-legend {
    position: static;
    margin-top: -10px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .match-lab,
  .route-lab,
  .intel-lab,
  .visa-lab,
  .monitor-layout,
  .match-app {
    grid-template-columns: 1fr;
  }

  .select-row,
  .resource-grid,
  .dashboard-grid,
  .profile-hero,
  .profile-sources,
  .profile-facts,
  .provider-grid,
  .digest-grid,
  .intel-tool,
  .visa-controls,
  .visa-answer-grid,
  .visa-comparison,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .intel-results {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 16px;
  }

  .topbar {
    min-height: 52px;
  }

  .nav-action {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .hero {
    padding-top: 34px;
  }

  .hero-actions {
    display: grid;
  }

  .dashboard-hero-card {
    display: grid;
  }

  .dashboard-hero-card .primary-button,
  .profile-selector {
    width: 100%;
    max-width: none;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-card p {
  opacity: 0.8;
}