/* =====================
   VARIABLES — LIGHT THEME
   ===================== */
:root {
  --bg: #f7f6ff;
  --surface: #ffffff;
  --surface2: #f0effe;
  --border: #e2e0f5;
  --text: #1e1b4b;
  --text-muted: #6c6891;
  --text-light: #9896b0;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-glow: rgba(79,70,229,0.2);

  --green: #166534;
  --green-bg: #f0fdf4;
  --green-border: #86efac;
  --green-text: #14532d;

  --red: #991b1b;
  --red-bg: #fef2f2;
  --red-border: #fca5a5;

  --blue: #1e40af;
  --blue-bg: #eff6ff;
  --blue-border: #93c5fd;

  --orange: #92400e;
  --orange-bg: #fffbeb;
  --orange-border: #fcd34d;

  --gray-bg: #f9fafb;
  --gray-border: #d1d5db;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 16px rgba(30,27,75,0.1);
  --shadow-lg: 0 12px 40px rgba(30,27,75,0.15);

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================
   TOP NAV
   ===================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.nav-links a:hover { background: var(--surface2); color: var(--text); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); }

/* =====================
   HOMEPAGE HERO (dark)
   ===================== */
.hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 5s ease-in-out infinite;
}
.ring-1 { width: 500px; height: 500px; }
.ring-2 { width: 800px; height: 800px; animation-delay: 1.5s; opacity: 0.6; }
.ring-3 { width: 1100px; height: 1100px; animation-delay: 3s; opacity: 0.3; }

@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.passport-badge {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 24px rgba(167,139,250,0.6));
  animation: float 3.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.hero-subtitle strong { color: #ffffff; }

/* =====================
   SEARCH BOX
   ===================== */
.search-container { position: relative; margin-bottom: 2rem; }

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0 1.25rem;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), 0 0 0 4px rgba(79,70,229,0.15);
}

.search-icon { font-size: 1.1rem; flex-shrink: 0; }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 1rem 0;
}

.search-box input::placeholder { color: var(--text-light); }

.search-clear {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.2s;
  display: none;
  line-height: 1;
}
.search-clear:hover { color: var(--text); }
.search-clear.visible { display: flex; align-items: center; }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  list-style: none;
  overflow: hidden;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  display: none;
}
.search-results.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--surface2); }

.result-emoji { font-size: 1.5rem; }
.result-name { font-weight: 600; color: var(--text); }
.result-continent { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

/* =====================
   FEATURED CHIPS
   ===================== */
.featured-countries { text-align: center; }

.featured-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.country-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.country-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  text-decoration: none;
}
.country-chip:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  text-decoration: none;
  color: #ffffff;
}

/* =====================
   HERO → CONTENT BRIDGE
   ===================== */
.hero-wave {
  display: block;
  margin-top: -2px;
  background: var(--bg);
}

/* =====================
   HOMEPAGE WIZARD
   ===================== */
.wizard-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: none;
}
.wizard-panel.active { display: block; }

.step { animation: slide-up 0.3s ease; }

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: border-color 0.15s, color 0.15s;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }

.country-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.country-header.small { padding: 0.875rem 1.25rem; margin-bottom: 1.5rem; }

.ch-emoji { font-size: 2.25rem; line-height: 1; }
.country-header.small .ch-emoji { font-size: 1.6rem; }
.ch-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.country-header.small .ch-name { font-size: 1.1rem; }
.ch-continent { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

.step h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.step-hint {
  color: var(--text-muted);
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* =====================
   SITUATION OPTIONS
   ===================== */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}
@media (max-width: 480px) { .options-grid { grid-template-columns: 1fr; } }

.option-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.option-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow), 0 0 0 3px var(--accent-glow);
  transform: translateY(-2px);
}
.option-icon { font-size: 1.75rem; margin-bottom: 0.75rem; display: block; }
.option-label { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--text); }

/* =====================
   DURATION STEP
   ===================== */
.duration-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.duration-display { text-align: center; margin-bottom: 2rem; }

#durationValue {
  font-family: var(--font-head);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.duration-unit { font-size: 1.4rem; color: var(--text-muted); margin-left: 0.4rem; }

.duration-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.duration-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
  cursor: pointer;
  transition: transform 0.15s;
}
.duration-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.duration-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

.duration-shortcuts { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.dur-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.875rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s;
}
.dur-btn:hover, .dur-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.cta-btn {
  width: 100%;
  padding: 1.1rem;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: white;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.cta-btn:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

/* =====================
   RESULT (HOMEPAGE WIZARD)
   ===================== */
.result-container { display: flex; flex-direction: column; gap: 1rem; }

.verdict-card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid;
  text-align: center;
}

.verdict-card.exempt {
  border-color: var(--green-border);
  background: var(--green-bg);
}
.verdict-card.required {
  border-color: var(--red-border);
  background: var(--red-bg);
}
.verdict-card.evisa {
  border-color: var(--blue-border);
  background: var(--blue-bg);
}
.verdict-card.eta {
  border-color: var(--orange-border);
  background: var(--orange-bg);
}
.verdict-card.onArrival {
  border-color: #99f6e4;
  background: #f0fdfa;
}
.verdict-card.check {
  border-color: var(--gray-border);
  background: var(--gray-bg);
}

.verdict-icon { font-size: 3rem; margin-bottom: 0.75rem; display: block; }

.verdict-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.verdict-card.exempt .verdict-title { color: var(--green); }
.verdict-card.required .verdict-title { color: var(--red); }
.verdict-card.evisa .verdict-title { color: var(--blue); }
.verdict-card.eta .verdict-title { color: var(--orange); }
.verdict-card.onArrival .verdict-title { color: #0d9488; }
.verdict-card.check .verdict-title { color: var(--text-muted); }

.verdict-summary { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

.key-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; }

.key-info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.ki-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.ki-value { font-family: var(--font-head); font-size: 0.9rem; font-weight: 700; color: var(--text); }
.ki-value.free { color: var(--green); }
.ki-value.paid { color: var(--orange); }

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  user-select: none;
  transition: background 0.12s;
}
.detail-card summary::-webkit-details-marker { display: none; }
.detail-card summary:hover { background: var(--surface2); }
.detail-card summary::after { content: '+'; font-size: 1.1rem; color: var(--text-muted); }
.detail-card[open] summary::after { content: '−'; }

.detail-body {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}
.detail-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }

.conditions-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.conditions-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--text); }
.conditions-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 0.05em; }

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
}
.official-link:hover { background: #ddd6fe; text-decoration: none; }

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.warning-banner strong { color: var(--orange); }

.new-search-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  box-shadow: var(--shadow-sm);
}
.new-search-btn:hover { border-color: var(--accent); background: var(--accent-light); }

/* =====================
   COUNTRY HERO PAGE
   ===================== */
.country-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.country-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 100%);
}
.country-hero > * { position: relative; z-index: 1; }

.ch-flag-big {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.country-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.country-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.country-hero-meta span { display: flex; align-items: center; gap: 0.3rem; }

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
}

/* =====================
   QUICK ANSWER (COUNTRY PAGES)
   ===================== */
.quick-answer-section {
  max-width: 760px;
  margin: -1.5rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.quick-answer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.qa-header {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.qa-body { padding: 1.5rem; }

.qa-situations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) { .qa-situations { grid-template-columns: 1fr 1fr; } }

.qa-sit-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.875rem 0.5rem;
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.qa-sit-btn .sit-icon { font-size: 1.5rem; }
.qa-sit-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.qa-sit-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.qa-duration { margin-bottom: 1.25rem; }
.qa-dur-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; display: flex; justify-content: space-between; }
.qa-dur-label strong { color: var(--accent); font-size: 1rem; }

.qa-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.qa-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
  cursor: pointer;
}

.qa-shortcuts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }

.qa-sc-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.12s;
}
.qa-sc-btn:hover, .qa-sc-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.qa-verdict {
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 2px solid;
  display: none;
  animation: slide-up 0.25s ease;
}
.qa-verdict.visible { display: block; }

.qa-verdict.exempt { border-color: var(--green-border); background: var(--green-bg); }
.qa-verdict.required { border-color: var(--red-border); background: var(--red-bg); }
.qa-verdict.evisa { border-color: var(--blue-border); background: var(--blue-bg); }
.qa-verdict.eta { border-color: var(--orange-border); background: var(--orange-bg); }
.qa-verdict.onArrival { border-color:#99f6e4; background:#f0fdfa; }
.qa-verdict.check { border-color: var(--gray-border); background: var(--gray-bg); }

.qa-verdict-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.qa-verdict.exempt .qa-verdict-title { color: var(--green); }
.qa-verdict.required .qa-verdict-title { color: var(--red); }
.qa-verdict.evisa .qa-verdict-title { color: var(--blue); }
.qa-verdict.eta .qa-verdict-title { color: var(--orange); }
.qa-verdict.onArrival .qa-verdict-title { color: #0d9488; }

.qa-verdict-summary { font-size: 0.875rem; color: var(--text-muted); line-height: 1.55; }
.qa-verdict-link { font-size: 0.8rem; color: var(--accent); margin-top: 0.5rem; display: inline-block; }

/* =====================
   FULL GUIDE (SSR CONTENT)
   ===================== */
.full-guide {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 0 1.5rem 5rem;
}

.full-guide > h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--border);
}

.situation-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 80px;
}

.situation-section h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* RULE CARDS */
.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.rule-card:hover { box-shadow: var(--shadow); }
.rule-card.highlight { box-shadow: var(--shadow), 0 0 0 3px var(--accent-glow); }

.rule-card.exempt { border-left-color: var(--green-border); }
.rule-card.required { border-left-color: var(--red-border); }
.rule-card.evisa { border-left-color: var(--blue-border); }
.rule-card.eta { border-left-color: var(--orange-border); }
.rule-card.onArrival { border-left-color: #99f6e4; }
.rule-card.check { border-left-color: var(--gray-border); }
.rule-card.onArrival .rule-badge { background:#f0fdfa; color:#0d9488; border:1px solid #99f6e4; }

.rule-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 50px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.rule-card.exempt .rule-badge { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.rule-card.required .rule-badge { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.rule-card.evisa .rule-badge { background: var(--blue-bg); color: var(--blue); border: 1px solid var(--blue-border); }
.rule-card.eta .rule-badge { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-border); }
.rule-card.check .rule-badge { background: var(--gray-bg); color: var(--text-muted); border: 1px solid var(--gray-border); }

.rule-condition {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

.rule-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }
.rule-summary { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.875rem; }

.rule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.rule-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.rule-meta-item strong { color: var(--text); font-weight: 600; }

.rule-conditions { list-style: none; }
.rule-conditions li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}
.rule-conditions li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; font-size: 0.8rem; }

.rule-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.875rem;
  padding: 0.4rem 0.875rem;
  background: var(--accent-light);
  border-radius: 50px;
  border: 1px solid var(--accent);
  transition: background 0.12s;
}
.rule-link:hover { background: #ddd6fe; text-decoration: none; }

/* =====================
   FAQ SECTION
   ===================== */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.faq-section h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.12s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface2); }
.faq-item summary::after { content: '+'; color: var(--text-muted); font-size: 1.1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 1.25rem 1.25rem; font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 1rem; }

/* =====================
   DISCLAIMER
   ===================== */
.disclaimer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.disclaimer-box {
  display: flex;
  gap: 0.75rem;
  background: var(--orange-bg);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.disclaimer-box strong { color: var(--orange); }

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-sitemap h3 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.875rem;
}

.sitemap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sitemap-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 0.4rem 0.875rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  font-weight: 500;
}
.sitemap-link:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); color: white; text-decoration: none; }

.sitemap-link.coming-soon { opacity: 0.4; cursor: default; pointer-events: none; font-style: italic; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: white; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  .full-guide, .quick-answer-section, .faq-section, .disclaimer { padding-left: 1rem; padding-right: 1rem; }
  .wizard-panel { padding: 1.5rem 1rem 4rem; }
  .key-info { grid-template-columns: 1fr 1fr; }
  .rule-meta { gap: 0.375rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
