/* visa-monitor — shared styles
 * Inspired by fi.paired.net landing.html: dark ink background, warm
 * amber accent, Inter sans, generous whitespace, subtle backdrop grid.
 */

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

:root {
  --bg: #07080a;
  --bg-1: #0b0d12;
  --bg-2: #0f1218;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-faint: #6b6b73;
  --accent: #ffb84d;
  --accent-2: #ff8a3d;
  --accent-3: #ff5d6a;
  --accent-glow: rgba(255, 184, 77, 0.35);
  --green: #4ade80;
  --red:   #ff7373;
  --grad: linear-gradient(135deg, #ffb84d 0%, #ff8a3d 50%, #ff5d6a 100%);
  --grad-fade: linear-gradient(180deg, rgba(255,184,77,0.10) 0%, transparent 100%);
  --shadow-lg: 0 32px 64px -16px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 80px -12px var(--accent-glow);
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code, .mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

/* ── ambient backdrop (subtle grid + radial glow) ─────────────────── */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle 800px at 20% -10%, rgba(255,184,77,0.10), transparent 60%),
    radial-gradient(circle 600px at 90% 30%, rgba(255,93,106,0.06), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black, transparent 70%);
}
.wrap, .shell { position: relative; z-index: 1; }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(7, 8, 10, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
}
.brand .dot {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 6px 20px -4px var(--accent-glow);
}
.nav-links { display: none; gap: 28px; }
.nav-links a {
  font-size: 14px; color: var(--text-muted); transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
@media (min-width: 760px) { .nav-links { display: inline-flex; } }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 13px; font-weight: 600; color: var(--text);
  transition: all 0.15s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  transition: all 0.15s; text-decoration: none;
}
.btn:hover { background: var(--surface-3); }
.btn-primary {
  background: var(--grad); color: #1a1208; border: none;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px var(--accent-glow); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-block { display: flex; width: 100%; }

/* ── layout ──────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* ── cards / surfaces ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-glow {
  background:
    linear-gradient(180deg, rgba(255,184,77,0.06), transparent 60%),
    var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* ── forms ───────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.field .hint  { font-size: 12px; color: var(--text-faint); }
.input, .select {
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px; color: var(--text);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,184,77,0.18);
}
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

/* tile selector — visa type, window, destinations */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 18px; cursor: pointer; transition: all 0.15s;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; color: var(--text); font-family: inherit; font-size: 14px;
}
.tile:hover { background: var(--surface-2); border-color: var(--text-muted); }
.tile.selected {
  background: linear-gradient(180deg, rgba(255,184,77,0.12), rgba(255,184,77,0.02));
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 8px 24px -12px var(--accent-glow);
}
.tile .tile-title { font-weight: 600; font-size: 15px; color: var(--text); }
.tile .tile-sub   { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.tile .tile-flag  { font-size: 22px; line-height: 1; }

.tiles-window { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.tiles-window .tile { text-align: center; align-items: center; padding: 16px 12px; }

/* Used when step 2 shows per-country VFS categories — stack vertically
 * since labels can be long and we don't know how many will come back. */
.tiles.tiles-list { grid-template-columns: 1fr; }
.tiles.tiles-list .tile { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 14px; }
.tiles.tiles-list .tile-title { font-size: 14px; }
.tiles.tiles-list .tile-sub.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--text-faint); }

/* ── badges / banners ────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-muted); }
.badge-accent { color: var(--accent); border-color: rgba(255,184,77,0.4); background: rgba(255,184,77,0.08); }
.banner { padding: 14px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 14px; color: var(--text-muted); }
.banner.warn { border-color: rgba(255,184,77,0.4); background: rgba(255,184,77,0.06); color: var(--accent); }
.banner.error { border-color: rgba(255,115,115,0.4); background: rgba(255,115,115,0.08); color: var(--red); }

/* ── footer ──────────────────────────────────────────────────────── */
.foot {
  margin-top: 80px; padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--text-faint); font-size: 13px;
}
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.foot a { color: var(--text-muted); }
.foot a:hover { color: var(--text); }

/* ── utility ─────────────────────────────────────────────────────── */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.hidden { display: none !important; }
