/* ==========================================================================
   Visastat — homepage
   Layout: hero (status check) → watchlist → statistics → alerts/summary/guide
   → reviews → how it works → FAQ → share. Shared tokens and components are
   in site.css. Classes created by the page script (embassy-tab, result-*,
   trend-*, daily-*, compare-*, review-*, watchlist-*, upsell-*) are styled
   here — keep their names.
   ========================================================================== */

main { width: 100%; }
.container-narrow { max-width: 860px; }
.panel-note { font-size: .82rem; color: var(--text-2); line-height: 1.6; margin: -.4rem 0 .9rem; }
.span-all { grid-column: 1 / -1; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  width: 100%;
  padding: clamp(2rem, 5vw, 3.75rem) 0 clamp(2rem, 5vw, 3.25rem);
  background:
    radial-gradient(1100px 420px at 85% -10%, var(--green-light), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .hero { background: radial-gradient(1100px 420px at 85% -10%, #0b2a1c, transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.hero-copy { padding-top: .5rem; animation: fadeUp .45s ease both; }
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05;
  color: var(--text); margin-bottom: .9rem;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-tagline { font-size: clamp(1.05rem, 1.8vw, 1.25rem); font-weight: 600; color: var(--text); line-height: 1.45; margin-bottom: .55rem; }
.hero-sub { font-size: .95rem; color: var(--text-2); line-height: 1.65; max-width: 520px; }
.hero-points { list-style: none; display: grid; gap: .45rem; margin: 1.2rem 0 1.3rem; }
.hero-points li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--text); font-weight: 500; }
.hero-points .icon { color: var(--green); background: var(--green-light); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.hero-rating-badge, .hero-visits-badge {
  display: none; align-items: center; gap: .35rem; width: fit-content;
  padding: .32rem .8rem; border-radius: 99px; font-size: .8rem; font-weight: 700; text-decoration: none;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
}
.hero-rating-badge { color: var(--amber-text); }
.hero-rating-badge:hover { border-color: var(--amber-glow); text-decoration: none; }
.hero-visits-badge { color: var(--text-2); }
.lang-switch { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; color: var(--text-3); }
.lang-switch .icon { margin-right: .15rem; }
.lang-btn {
  padding: .28rem .7rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: .76rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.lang-btn:hover { border-color: var(--green); color: var(--green); }
.lang-btn.active { background: var(--green); color: var(--on-green); border-color: var(--green); }

/* ── Status check card ──────────────────────────────────────────────────── */
.check-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: clamp(1.2rem, 3vw, 1.75rem);
  animation: fadeUp .45s .08s ease both;
}
.check-step { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.check-step + .search-row, .embassy-selector + .check-step { margin-top: 1.25rem; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--on-green); font-size: .75rem; font-weight: 800;
}
.check-title { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); }

.embassy-selector { border: 1px solid transparent; border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
/* The step heading above says what to do; keep the script-updated label for screen readers. */
.embassy-selector-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.embassy-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.embassy-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 0;
  padding: .6rem .75rem; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: left; line-height: 1.2;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.embassy-tab:hover { border-color: var(--border-strong); background: var(--surface-2); }
.embassy-tab-name { font-size: .86rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.embassy-tab-country { font-size: .72rem; color: var(--text-3); font-weight: 500; }
.embassy-tab.active { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px var(--green-glow); }
.embassy-tab.active .embassy-tab-name { color: var(--green); }

.search-row { display: flex; gap: .5rem; }
.search-row .search-input { flex: 1; font-size: 1.02rem; padding: .85rem 1rem; letter-spacing: .02em; }
.search-row .btn-search { padding: .85rem 1.3rem; }
.search-hint { font-size: .76rem; color: var(--text-3); margin-top: .5rem; line-height: 1.5; }

.data-freshness {
  display: none; align-items: center; flex-wrap: wrap; gap: .25rem .5rem;
  margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--border);
  font-size: .76rem; color: var(--text-3);
}
.freshness-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s infinite; }
#freshness-text { flex: 1 1 0; min-width: 0; }
#update-cadence { color: var(--text-3); flex-basis: 100%; padding-left: calc(7px + .5rem); }

#error-box {
  display: none; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--red-light); color: var(--red); border: 1px solid var(--red-glow); font-size: .86rem;
}

/* ── Search result ──────────────────────────────────────────────────────── */
#search-result {
  display: none; margin-top: 1rem; padding: 1.1rem 1.15rem; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface-2);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
#search-result.celebrate-approved { border-color: var(--green); background: linear-gradient(165deg, var(--green-light) 0%, var(--surface-2) 70%); }
@media (prefers-reduced-motion: no-preference) {
  #search-result.celebrate-approved .result-badge { animation: popIn .55s cubic-bezier(.34,1.56,.64,1) .15s both; }
}
.result-msg { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .45rem; }
.result-msg.approved { color: var(--green); }
.result-msg.refused  { color: var(--red); }
.result-msg.pending  { color: var(--amber-text); }
.result-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .85rem; border-radius: 99px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.badge-approved { background: var(--green-light); color: var(--green); }
.badge-refused  { background: var(--red-light);   color: var(--red); }
.badge-pending  { background: var(--amber-light); color: var(--amber-text); }
.badge-unknown  { background: var(--surface);     color: var(--text-2); }
.result-num { font-size: .8rem; color: var(--text-3); margin-top: .4rem; font-variant-numeric: tabular-nums; }
#btn-watch-toggle { margin-top: .7rem; }
.result-note { margin-top: .7rem; font-size: .8rem; color: var(--text-2); line-height: 1.6; }
.result-help { margin-top: .8rem; font-size: .8rem; color: var(--text-2); line-height: 1.65; }
.result-help p { margin-bottom: .55rem; }
.result-help p:last-child { margin-bottom: 0; }
.result-help strong { color: var(--text); }
.result-help ul { margin: 0 0 .6rem 1.15rem; }
.result-help-context { font-weight: 600; color: var(--text); margin-bottom: .6rem; }
.result-share { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.result-share-label { font-size: .8rem; color: var(--text-2); margin-bottom: .5rem; }
.result-share-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.result-referral-nudge { margin-top: .55rem; font-size: .76rem; color: var(--text-3); }

/* In-context "email me when it's decided" offers */
.upsell-box {
  margin-top: .8rem; padding: .85rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--green-glow); background: var(--green-soft);
  font-size: .84rem; line-height: 1.55; color: var(--text);
}
.upsell-box .upsell-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.upsell-box .btn-search { padding: .55rem .95rem; font-size: .84rem; }
.upsell-was { font-size: .76rem; color: var(--text-3); }
.upsell-was s { color: var(--text-3); }

/* ── Share / watch buttons ──────────────────────────────────────────────── */
.share-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .95rem; border-radius: 8px;
  font-size: .8rem; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap;
  transition: filter .15s, transform .15s, background .15s;
}
.share-btn:hover { filter: brightness(1.06); transform: translateY(-1px); text-decoration: none; }
.share-whatsapp  { background: #1f9d55; color: #fff; }
.share-facebook  { background: #1877f2; color: #fff; }
.share-messenger { background: #0866ff; color: #fff; }
.share-copy { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.share-copy:hover { color: var(--green); border-color: var(--green); filter: none; }
.share-watch { background: var(--amber-light); color: var(--amber-text); border-color: var(--amber-glow); }
.share-watch.active { background: var(--amber); color: #fff; border-color: var(--amber); }
[data-theme="dark"] .share-watch.active { color: #1c1300; }

/* ── Watchlist ──────────────────────────────────────────────────────────── */
.watchlist-panel { margin: 1.5rem 0 0; }
.watchlist-item {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .85rem; margin-bottom: .5rem; font-size: .84rem; font-variant-numeric: tabular-nums;
}
.watchlist-item:last-child { margin-bottom: 0; }
.watchlist-item.changed { border-color: var(--green); background: var(--green-soft); }
.watchlist-remove { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 1rem; line-height: 1; padding: .2rem .4rem; }
.watchlist-remove:hover { color: var(--red); }
.watchlist-email { background: none; border: none; padding: 0 .3rem; cursor: pointer; font-size: .78rem; font-weight: 700; color: var(--green); }
.watchlist-email:hover { text-decoration: underline; }

/* ── Statistics ─────────────────────────────────────────────────────────── */
.activity-line { display: none; font-size: .84rem; color: var(--text-2); margin-top: .55rem; }
.check-card .activity-line-card { margin: 1rem 0 0; padding: .6rem .75rem; border-radius: 10px; background: var(--green-light); color: var(--text-2); font-size: .8rem; font-weight: 600; line-height: 1.5; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.3rem 1.15rem;
}
.stat-icon { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; margin-bottom: .75rem; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-card.total    .stat-icon { background: var(--purple-light); color: var(--purple); }
.stat-card.approved .stat-icon { background: var(--green-light);  color: var(--green); }
.stat-card.rejected .stat-icon { background: var(--red-light);    color: var(--red); }
.stat-label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: .35rem; }
.stat-value { font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-pct { font-size: .84rem; font-weight: 700; margin-top: .3rem; }
.stat-card.approved .stat-pct { color: var(--green); }
.stat-card.rejected .stat-pct { color: var(--red); }
.bar-wrap { margin-top: .8rem; height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.stat-card.approved .bar-fill { background: var(--green); }
.stat-card.rejected .bar-fill { background: var(--red); }

.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1rem; align-items: start; }
.insights-grid > .panel { margin: 0; }

.latest-note {
  font-size: .82rem; color: var(--text-2); margin-bottom: 1rem; padding: .6rem .9rem;
  background: var(--surface-2); border-radius: 8px; border-left: 3px solid var(--green); line-height: 1.55;
}
.latest-hist { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; font-size: .82rem; color: var(--text-2); }
.latest-hist[hidden] { display: none; }
.latest-hist select {
  flex: 1; max-width: 22rem; min-width: 0; padding: .45rem .6rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.decisions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dec-col-hd { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .45rem; }
.dec-col-hd.approved { color: var(--green); }
.dec-col-hd.refused  { color: var(--red); }
.cnt-badge { font-size: .68rem; padding: .1rem .45rem; border-radius: 99px; font-weight: 800; }
.approved .cnt-badge { background: var(--green-light); color: var(--green); }
.refused  .cnt-badge { background: var(--red-light);   color: var(--red); }
.dec-list {
  max-height: 210px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .45rem .75rem; font-family: var(--mono); font-size: .82rem; line-height: 2; background: var(--surface-2);
}
.dec-list::-webkit-scrollbar { width: 5px; }
.dec-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
.app-row { display: block; color: var(--text); opacity: 0; animation: fadeIn .3s ease forwards; }
.empty-list { color: var(--text-3); font-style: italic; font-family: var(--font); font-size: .8rem; }

.compare-row { margin-bottom: .85rem; }
.compare-row:last-child { margin-bottom: 0; }
.compare-row-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .84rem; margin-bottom: .3rem; }
.compare-row-name { font-weight: 700; color: var(--text); cursor: pointer; }
.compare-row-name:hover { color: var(--green); text-decoration: underline; }
.compare-row-pct { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.compare-bar-wrap { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; display: flex; }
.compare-bar-approved { height: 100%; background: var(--green); }
.compare-bar-refused  { height: 100%; background: var(--red); opacity: .85; }

/* Charts (bars and tooltips are built by the page script) */
.trends-chart { display: flex; align-items: stretch; gap: 6px; height: 120px; padding: 1.6rem 0 0; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.trend-bar-wrap { width: 100%; flex: 1; display: flex; align-items: flex-end; }
.trend-bar { width: 100%; border-radius: 5px 5px 0 0; min-height: 4px; background: var(--green); opacity: .8; position: relative; transition: opacity .15s; }
.trend-bar:hover { opacity: 1; }
.trend-bar::after, .daily-bar::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font-size: .66rem; white-space: nowrap; padding: 3px 7px; border-radius: 5px;
  pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 10;
}
.trend-bar:hover::after, .daily-bar:hover::after { opacity: 1; }
.trend-lbl { font-size: .62rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.trend-pct { font-size: .64rem; font-weight: 700; color: var(--green); }
/* Phones: 12 weekly columns are ~25px wide, too narrow for "48.9%" — show the last 6. */
@media (max-width: 560px) { .trend-col:nth-last-child(n+7) { display: none; } }
.trends-empty { font-size: .84rem; color: var(--text-3); text-align: center; padding: 1.5rem 0; width: 100%; }
.daily-chart-wrap { overflow-x: auto; padding-bottom: .25rem; }
/* Top padding leaves room for the tallest bar's tooltip, which overflow-x:auto would otherwise clip. */
.daily-chart { display: flex; align-items: stretch; gap: 5px; height: 190px; padding: 2rem 0 0; min-width: max-content; }
.daily-col { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 22px; }
.daily-bars { width: 100%; flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.daily-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 3px; opacity: .85; position: relative; }
.daily-bar:hover { opacity: 1; }
.daily-bar.approved { background: var(--green); }
.daily-bar.refused  { background: var(--red); }
.daily-lbl { font-size: .58rem; color: var(--text-3); white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 4px; height: 30px; flex-shrink: 0; }
.daily-legend { display: flex; gap: .9rem; justify-content: flex-end; margin: -.4rem 0 .2rem; font-size: .76rem; color: var(--text-2); }
.daily-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.daily-legend-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.daily-legend-dot.approved { background: var(--green); }
.daily-legend-dot.refused  { background: var(--red); }

.meta-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  margin-top: 1rem; padding: .9rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.meta-items { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.meta-row { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: var(--text-3); line-height: 1.4; }
.meta-row:empty { display: none; }
.meta-row a { color: var(--green); text-decoration: none; font-weight: 600; }
.meta-row a:hover { text-decoration: underline; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: pulse 2s infinite; }
.btn-refresh {
  padding: .5rem 1.1rem; background: var(--surface); color: var(--green); border: 1.5px solid var(--green);
  border-radius: 8px; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.btn-refresh:hover:not(:disabled) { background: var(--green); color: var(--on-green); }
.btn-refresh:disabled { opacity: .45; cursor: not-allowed; }

/* ── Plans: weekly summary · alert · guide ──────────────────────────────── */
.plans-section { background: linear-gradient(180deg, transparent 0%, var(--surface) 22%, var(--surface) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-top: clamp(2.5rem, 6vw, 4rem) !important; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
[data-theme="dark"] .plans-section { background: var(--surface); }
/* .section + .section zeroes top padding; the section after the plans band needs its own. */
.plans-section + .section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.plans-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 1.1rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow);
}
.plan-featured { border: 2px solid var(--green); box-shadow: 0 10px 30px var(--green-glow); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--on-green); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .28rem .75rem; border-radius: 99px; white-space: nowrap;
}
.plan-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: .8rem; background: var(--surface-2); color: var(--text-2); }
.plan-icon .icon { width: 20px; height: 20px; }
.plan-featured .plan-icon { background: var(--green-light); color: var(--green); }
.plan-guide .plan-icon { background: var(--purple-light); color: var(--purple); }
.plan-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; color: var(--text); margin-bottom: .35rem; }
.plan-sub { font-size: .8rem; font-weight: 700; color: var(--purple); margin: -.2rem 0 .5rem; }
.price-unit { font-size: .82rem; color: var(--text-3); font-weight: 600; }
.plan-desc { font-size: .86rem; color: var(--text-2); line-height: 1.6; margin-bottom: .9rem; }
.plan-proof { display: flex; gap: .4rem; align-items: flex-start; font-size: .8rem; font-weight: 600; color: var(--purple); line-height: 1.5; margin: -.4rem 0 .9rem; }
.plan-proof .icon { margin-top: .12rem; }
.plan-proof a { color: var(--purple); }
.plan-features { list-style: none; display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.plan-features li { display: flex; gap: .5rem; align-items: flex-start; font-size: .86rem; color: var(--text); }
.plan-features .icon { color: var(--green); margin-top: .1rem; }
.plan-guide .plan-features .icon { color: var(--purple); }
.plan-features .plan-bonus { font-weight: 700; color: var(--purple); }
.plan-form { display: grid; gap: .6rem; margin-top: auto; }
.plan > .btn { margin-top: auto; }
.plan .scope-notice {
  display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .9rem; padding: .6rem .75rem;
  font-size: .78rem; line-height: 1.5; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
}
.plan .scope-notice .icon { color: var(--amber-text); margin-top: .1rem; }
.plan .scope-notice strong { color: var(--text); }
.dublin-alt-pitch { font-size: .8rem; color: var(--text-2); background: var(--purple-light); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .8rem; margin-bottom: .9rem; line-height: 1.55; }
.dublin-alt-pitch a { color: var(--purple); font-weight: 700; }
.plan-referral { text-align: center; }
#referral-fields { margin-top: .5rem; }
.guide-pointer {
  margin-top: .9rem; padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  border-left: 3px solid var(--purple); background: var(--purple-light); font-size: .8rem; line-height: 1.55; color: var(--text-2);
}
.guide-pointer a { color: var(--purple); font-weight: 700; }
.guide-pointer strong { color: var(--text); }
.no-subscribe-prompt { margin-top: .8rem; padding: .75rem .85rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.no-subscribe-q { font-size: .78rem; color: var(--text-2); margin-bottom: .5rem; line-height: 1.5; }
.no-subscribe-btns { display: flex; gap: .4rem; flex-wrap: wrap; }
.no-subscribe-btns .share-btn { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.plans-note { display: flex; gap: .5rem; align-items: flex-start; max-width: 820px; margin: 1.5rem auto 0; font-size: .76rem; color: var(--text-3); line-height: 1.6; }
.plans-note .icon { margin-top: .15rem; }

#sub-msg, .form-msg, #review-msg { display: none; font-size: .82rem; padding: .55rem .85rem; border-radius: 8px; line-height: 1.5; }
#sub-msg.success, #review-msg.success { background: var(--green-light); color: var(--green); border: 1px solid var(--green-glow); }
#sub-msg.error, #review-msg.error { background: var(--red-light); color: var(--red); border: 1px solid var(--red-glow); }
#digest-msg { padding: 0; }

/* ── Reviews ────────────────────────────────────────────────────────────── */
.reviews-summary-line { margin-top: .5rem; font-size: .95rem; color: var(--amber-text); font-weight: 700; }
.reviews-panel { padding: 1.4rem; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.review-card { flex: 0 0 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.review-stars { color: var(--amber); font-size: 1.2rem; letter-spacing: .1em; vertical-align: -.12em; }
.review-name { font-weight: 800; font-size: .88rem; color: var(--text); margin-left: .5rem; }
.review-embassy-tag, .review-date { font-size: .74rem; color: var(--text-3); margin-left: .4rem; }
.review-verified-badge { font-size: .68rem; font-weight: 800; color: var(--green); background: var(--green-light); border: 1px solid var(--green-glow); border-radius: 999px; padding: .1rem .5rem; margin-left: .4rem; white-space: nowrap; }
.review-text { font-size: .92rem; color: var(--text); line-height: 1.65; margin-top: .45rem; }
.reviews-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.reviews-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--border-strong); cursor: pointer; transition: background .15s, transform .15s; }
.reviews-dot.active { background: var(--amber); transform: scale(1.3); }
.reviews-pause-btn { display: block; margin: .6rem auto 0; background: none; border: 1px solid var(--border); border-radius: 6px; width: 30px; height: 30px; font-size: .8rem; color: var(--text-2); cursor: pointer; }
.review-form { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.review-form > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--green);
}
.review-form > summary::-webkit-details-marker { display: none; }
.review-form > summary::before { content: '+'; font-size: 1.1rem; line-height: 1; }
.review-form[open] > summary::before { content: '–'; }
.review-form[open] > summary { margin-bottom: .9rem; }
.review-form .panel-note { margin: 0 0 .7rem; }
.star-picker { display: flex; gap: .25rem; font-size: 2rem; margin-bottom: .8rem; }
.star-btn { background: none; border: none; cursor: pointer; color: var(--border-strong); padding: 0; line-height: 1; font-size: inherit; transition: color .15s; }
.star-btn.active, .star-btn:hover { color: var(--amber); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.review-textarea { margin: .6rem 0 .75rem; resize: vertical; min-height: 92px; }

/* ── How it works ───────────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.25rem; box-shadow: var(--shadow-sm); }
.step-badge { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: var(--green-light); color: var(--green); font-weight: 800; font-size: .88rem; margin-bottom: .7rem; }
.step h3 { font-size: .98rem; font-weight: 800; color: var(--text); margin-bottom: .35rem; letter-spacing: -.01em; }
.step p { font-size: .86rem; color: var(--text-2); line-height: 1.6; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.why-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: .65rem; }
.why-title { font-size: .9rem; font-weight: 800; color: var(--text); margin-bottom: .25rem; }
.why-desc { font-size: .82rem; color: var(--text-2); line-height: 1.55; }
.about-details { margin: 0; padding: 0; }
.about-details > summary {
  list-style: none; cursor: pointer; padding: 1.05rem 1.4rem; font-weight: 700; font-size: .92rem; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.about-details > summary::-webkit-details-marker { display: none; }
.about-details > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.about-details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.about-details > summary:hover { color: var(--green); }
.prose { padding: 0 1.4rem 1.4rem; font-size: .9rem; color: var(--text-2); line-height: 1.75; }
.prose p { margin-bottom: .85rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: .92rem; font-weight: 800; color: var(--text); margin: 1rem 0 .4rem; }
.prose ul { margin: 0 0 .9rem 1.2rem; }
.prose a { font-weight: 600; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-accordion { padding: .4rem 1.4rem; }
.faq-accordion .faq-item, .faq-accordion .faq-item:first-of-type { padding: 1rem 0; }

/* ── Share band ─────────────────────────────────────────────────────────── */
.share-section { padding-top: 0 !important; }
.share-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.2rem 1.4rem; background: var(--green-soft); border: 1px solid var(--green-glow); border-radius: var(--radius-lg);
}
.share-copy-text { display: grid; gap: .15rem; font-size: .86rem; color: var(--text-2); }
.share-copy-text strong { color: var(--text); font-size: .98rem; }
.share-btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ── Loading states ─────────────────────────────────────────────────────── */
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .65s linear infinite; vertical-align: middle; }
[data-theme="dark"] .spin { border-color: rgba(5,46,22,.3); border-top-color: #052e16; }
.spin-green { border-color: var(--border); border-top-color: var(--green); }
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--surface-2) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; user-select: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-points { display: none; }   /* the check card is the priority on smaller screens */
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan-featured { order: -1; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid .stat-card.total { grid-column: 1 / -1; }
  .embassy-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .search-row { flex-direction: column; }
  .search-row .btn-search { width: 100%; }
  .decisions-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1rem; }
  .share-strip { padding: 1rem; }
}

/* ── Office pages (/new-delhi, /beijing, ...) ─────────────────────────────── */
.hero h1 .office-name { white-space: nowrap; }
.hero-office strong { color: var(--text); font-weight: 700; }
.hero-points a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-points a:hover { color: var(--green); text-decoration-color: currentColor; }
.office-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 1.2rem; align-items: start; }
.office-facts { padding: .35rem 1.3rem; margin: 0; }
.office-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid var(--border); }
.office-facts > div:last-child { border-bottom: none; }
.office-facts dt { font-size: .8rem; font-weight: 600; color: var(--text-3); }
.office-facts dd { margin: 0; font-size: .88rem; font-weight: 700; color: var(--text); text-align: right; }
.office-facts dd a { color: var(--green); }
.office-faq { margin-bottom: 0; }
.office-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; margin-top: 1.4rem; font-size: .86rem; color: var(--text-3); }
.office-links a { color: var(--green); font-weight: 600; }
@media (max-width: 820px) { .office-grid { grid-template-columns: 1fr; } }

/* ── Homepage before an office is picked ───────────────────────────────── */
#stats.no-office .office-only { display: none !important; }
#stats.no-office #comparison-panel { grid-column: 1 / -1; }
.pick-office-note { display: flex; gap: .5rem; align-items: flex-start; margin-top: .7rem; font-size: .9rem; color: var(--text-2); line-height: 1.6; }
.pick-office-note[hidden] { display: none; }
.pick-office-note .icon { flex: none; margin-top: .2rem; color: var(--green); }
.pick-office-note a { color: var(--green); font-weight: 600; }
