/* JapaAI.ng — Official Global Immigration & PR Roadmap Design System */

:root {
  --bg-canvas: #f6f7f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f8fafc;
  --bg-nav: rgba(255, 255, 255, 0.9);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand: #047857;
  --brand-hover: #065f46;
  --brand-soft: #ecfdf5;
  --brand-border: rgba(4, 120, 87, 0.28);

  --crimson: #c8102e;
  --crimson-soft: #fef2f2;
  --crimson-border: rgba(200, 16, 46, 0.28);

  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-subtle: #64748b;

  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: rgba(5, 150, 105, 0.28);

  --amber: #d97706;
  --amber-soft: #fffbeb;
  --amber-border: rgba(217, 119, 6, 0.32);

  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --blue-border: rgba(37, 99, 235, 0.26);

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --ring-track: #e2e8f0;

  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

[data-theme="dark"] {
  --bg-canvas: #0b1120;
  --bg-surface: #111827;
  --bg-subtle: #1e293b;
  --bg-hover: #172033;
  --bg-nav: rgba(11, 17, 32, 0.9);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --brand: #10b981;
  --brand-hover: #059669;
  --brand-soft: rgba(16, 185, 129, 0.15);
  --brand-border: rgba(52, 211, 153, 0.34);

  --crimson: #ef4444;
  --crimson-soft: rgba(239, 68, 68, 0.15);
  --crimson-border: rgba(248, 113, 113, 0.35);

  --ink: #f8fafc;
  --ink-muted: #cbd5e1;
  --ink-subtle: #94a3b8;

  --emerald: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --emerald-border: rgba(52, 211, 153, 0.32);

  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --amber-border: rgba(251, 191, 36, 0.32);

  --blue: #60a5fa;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --blue-border: rgba(96, 165, 250, 0.32);

  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(0, 0, 0, 0.28);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --ring-track: #1e293b;
}

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

html, body { overflow-x: clip; }

html.is-pwa-installed .pwa-install-trigger,
html.is-pwa-installed .pwa-install-banner {
  display: none !important;
}

body {
  background-color: var(--bg-canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  min-height: 100vh;
  background-image: radial-gradient(ellipse 80% 45% at 50% -10%, rgba(4, 120, 87, 0.08), transparent);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tabular { font-variant-numeric: tabular-nums; }

a { color: var(--brand); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 0;
}

.navbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; flex: 1 1 auto; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #065f46);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--ink-subtle);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mobile-toggle-wrap { display: none; align-items: center; gap: 6px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); text-decoration: none; }
.btn-primary { background: var(--brand); color: #ffffff; border-color: transparent; }
.btn-primary:hover { background: var(--brand-hover); border-color: transparent; }
.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand-border);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--bg-surface); border-color: var(--brand); }
.btn-crimson { background: var(--crimson); color: #ffffff; border-color: transparent; }
.btn-crimson:hover { filter: brightness(0.92); }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-muted); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--ink); }
.btn-emerald { background: var(--emerald-soft); color: var(--emerald); border-color: var(--emerald-border); box-shadow: none; }
.btn-lg { padding: 11px 19px; font-size: 14px; min-height: 44px; border-radius: var(--radius-md); }
.btn-icon { padding: 8px; width: 38px; height: 38px; }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Editorial Mobile-First Hero Section */
.hero-card {
  margin-top: 18px;
  background: var(--bg-surface);
  background-image: radial-gradient(circle at 92% 12%, rgba(4, 120, 87, 0.08), transparent 46%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-card > *, .card > * { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  max-width: 100%;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.22);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(23px, 4.4vw, 35px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: 20px;
}

.hero-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-jump-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-jump-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-subtle);
}

.country-jump-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.country-chip:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

.hero-summary-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.stat-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}
.stat-mini-val { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.1; }
.stat-mini-lbl { font-size: 11px; color: var(--ink-subtle); font-weight: 600; margin-top: 3px; }
.hero-trust-foot { font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

/* Visual Hero Photo & Frosted Telemetry Panel */
.hero-visual-panel { min-width: 0; }
.hero-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 310px;
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.08) 42%, rgba(15, 23, 42, 0.78) 100%);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
}
.hero-photo-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.hero-photo-overlay .stat-mini-grid { gap: 8px; }
.hero-photo-overlay .stat-mini {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  padding: 9px 10px;
}
.hero-photo-overlay .stat-mini-val { color: #ffffff; font-size: 18px; }
.hero-photo-overlay .stat-mini-lbl { color: #cbd5e1; }
.hero-photo-overlay .hero-trust-foot { color: #e2e8f0; font-size: 11.5px; text-align: center; }

/* Featured Destinations Visual Showcase Strip */
.destination-showcase {
  margin-top: 16px;
}
.showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.showcase-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 2px;
}
.showcase-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.showcase-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(215px, 236px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}
.showcase-card {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0f172a;
  box-shadow: var(--shadow-sm);
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.showcase-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-card);
}
.showcase-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.showcase-card:hover .showcase-card-img {
  transform: scale(1.05);
}
.showcase-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.12) 40%, rgba(15, 23, 42, 0.88) 100%);
  pointer-events: none;
}
.showcase-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 0;
}
.showcase-card-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 10px 12px;
}
.showcase-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.showcase-card-sub {
  font-size: 11px;
  color: #e2e8f0;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.showcase-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}
.showcase-badge-emerald {
  background: rgba(4, 120, 87, 0.85);
  border-color: rgba(167, 243, 208, 0.35);
  color: #ffffff;
}

/* Dismissible PWA Install Banner */
.pwa-install-banner {
  margin-top: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pwa-banner-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.pwa-banner-icon { border-radius: 10px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.pwa-banner-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.pwa-banner-sub { font-size: 12px; color: var(--ink-muted); }
.pwa-banner-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

/* Segmented Workspace Navigation */
.workspace-nav {
  display: flex;
  gap: 6px;
  margin: 20px 0 18px 0;
  padding: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.ws-tab {
  flex: 1;
  min-width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ws-tab:hover { color: var(--ink); background: var(--bg-subtle); }
.ws-tab.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25);
}

.tab-count {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
}
.ws-tab.active .tab-count { background: rgba(255, 255, 255, 0.22); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Subtabs inside Canada RCIP Toolkit */
.subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.subtab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.subtab-btn.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.subtab-pane { display: none; }
.subtab-pane.active { display: block; }

/* Cards & Panels */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card-title { font-size: 17px; font-weight: 700; }
.card-desc { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }

/* Status Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--ink-muted);
}
.pill-emerald { background: var(--emerald-soft); border-color: var(--emerald-border); color: var(--emerald); }
.pill-amber { background: var(--amber-soft); border-color: var(--amber-border); color: var(--amber); }
.pill-red { background: var(--crimson-soft); border-color: var(--crimson-border); color: var(--crimson); }
.pill-blue { background: var(--blue-soft); border-color: var(--blue-border); color: var(--blue); }

/* Universal Matcher Cards */
.matcher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.match-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.match-card.tier-STRONG_MATCH { border-top: 3px solid var(--emerald); }
.match-card.tier-VIABLE_WITH_JOB_OFFER { border-top: 3px solid var(--blue); }
.match-card.tier-PREPARE_GAPS { border-top: 3px solid var(--amber); }

/* Country Grid & Country Hub Workspace */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.country-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.country-card:hover { transform: translateY(-2px); border-color: var(--brand-border); }

.country-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
}
.country-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.country-card:hover .country-card-img { transform: scale(1.05); }
.country-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.12) 38%, rgba(15, 23, 42, 0.88) 100%);
  pointer-events: none;
}
.country-card-badges {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 12px 0;
}
.country-card-title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px 14px;
}
.country-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}
.country-card-auth {
  font-size: 11.5px;
  color: #e2e8f0;
  margin-top: 2px;
}
.country-card-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}
.country-card-summary {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.country-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

/* Country Hub Workspace Scenic Banner */
.hub-hero-banner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 175px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
  background: #0f172a;
}
.hub-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hub-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.88) 100%);
  pointer-events: none;
}
.hub-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.hub-hero-text { max-width: 68ch; }
.hub-hero-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 8px;
  line-height: 1.2;
}
.hub-hero-desc {
  font-size: 13px;
  color: #e2e8f0;
  margin-top: 4px;
}
.hub-hero-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hub-hero-links .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
}
.hub-hero-links .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.24);
}

/* 3-Step Trust & Workflow Band + RCIP Scenic Cover Strip */
.how-it-works-band {
  margin-top: 18px;
}
.how-head {
  margin-bottom: 12px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.how-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.how-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.how-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.how-icon-emerald { background: var(--emerald-soft); border: 1px solid var(--emerald-border); color: var(--emerald); }
.how-icon-blue { background: var(--blue-soft); border: 1px solid var(--blue-border); color: var(--blue); }
.how-icon-amber { background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--amber); }
.how-step-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-subtle);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 999px;
}
.how-card-title {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-card-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.rcip-banner-card { overflow: hidden; }
.rcip-cover-strip {
  position: relative;
  height: 122px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  background: #0f172a;
}
.rcip-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.rcip-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 95, 70, 0.62) 60%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}
.rcip-cover-content {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
.rcip-cover-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.9);
  color: #ffffff;
}
.rcip-cover-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
}

.watchout-box {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pathway-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pathway-tab-btn {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.pathway-tab-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* RCIP Donut, Rail, Checklist, Wizard, Communities */
.rcip-hero-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
}
.donut-row { display: flex; align-items: center; gap: 16px; }
.donut-wrap { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.donut-svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--ring-track); stroke-width: 8; }
.donut-fill { fill: none; stroke: var(--crimson); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.55s ease, stroke 0.3s ease; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-pct { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1; }
.donut-label { font-size: 10px; font-weight: 600; color: var(--ink-subtle); text-transform: uppercase; margin-top: 2px; }

.progress-track { height: 8px; border-radius: 999px; background: var(--ring-track); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--emerald)); transition: width 0.4s ease; }

.transition-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: var(--crimson-soft);
  border: 1px solid var(--crimson-border);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 10px;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(7, auto);
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.rail-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.rail-btn.active { background: var(--crimson-soft); border-color: var(--crimson-border); color: var(--crimson); }
.rail-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.rail-btn.is-complete .rail-num { background: var(--emerald); border-color: var(--emerald); color: #fff; }

.roadmap-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: start; }
.sticky-rail { position: sticky; top: 76px; }

.stage-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.stage-block-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.checklist-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-hover);
  margin-top: 10px;
}
.checklist-row.is-done { border-color: var(--emerald-border); background: var(--emerald-soft); }
.checklist-row.is-inactive { opacity: 0.58; }
.checklist-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--emerald); cursor: pointer; flex-shrink: 0; }
.checklist-content { flex: 1; }
.checklist-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.checklist-desc { font-size: 12.5px; color: var(--ink-muted); margin-top: 3px; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; align-items: center; }

.form-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

.note-box { margin-top: 8px; display: flex; gap: 6px; }

.action-item {
  border-left: 3px solid var(--amber);
  background: var(--bg-subtle);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  font-size: 12.5px;
}
.action-item.priority-BLOCKING { border-left-color: var(--crimson); background: var(--crimson-soft); }
.action-item.priority-START { border-left-color: var(--blue); }

.pillars-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.pillar-tile { background: var(--bg-hover); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; }
.pillar-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }

.wizard-stepper { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.wiz-step-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.wiz-step-btn.active { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }
.wiz-step-btn span { display: block; font-size: 10.5px; color: var(--ink-subtle); margin-bottom: 2px; }
.wizard-pane { display: none; }
.wizard-pane.active, .wizard-all .wizard-pane { display: block; }
.wizard-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }

/* Inputs & Form Controls */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); }

.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--ink); margin-bottom: 9px; cursor: pointer; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }

.funds-card { background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px; margin-top: 8px; }
.clb-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.clb-mini-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.clb-mini-card.is-lowest { border-color: var(--amber-border); background: var(--amber-soft); }

.dropzone { border: 1.5px dashed var(--brand-border); border-radius: var(--radius-md); padding: 20px; text-align: center; background: var(--brand-soft); cursor: pointer; }
.dropzone.dragover { border-color: var(--brand); }

/* Communities */
.communities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comm-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.comm-card.shortlisted { border-color: var(--emerald-border); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 6px; background: var(--bg-subtle); color: var(--ink-muted); }

.filter-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.prov-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.prov-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--ink-muted);
  cursor: pointer;
}
.prov-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Copilot Chat */
.copilot-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.prompt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.prompt-chip {
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--blue-border);
  background: var(--blue-soft);
  color: var(--blue);
  cursor: pointer;
}
.chat-thread {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 300px;
  max-height: 460px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.chat-msg { padding: 12px 14px; border-radius: var(--radius-md); font-size: 13.5px; margin-bottom: 12px; }
.chat-msg.user { background: var(--brand); color: #fff; margin-left: 48px; }
.chat-msg.bot { background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--ink); margin-right: 20px; }
.citations-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.citation-link { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--emerald-soft); border: 1px solid var(--emerald-border); color: var(--emerald); }
.chat-compose { display: flex; gap: 8px; }

.sources-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sources-table th, .sources-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.sources-table th { color: var(--ink-subtle); font-weight: 600; }

/* Mobile Drawer, Bottom Nav, Install Modal & Toasts */
.mobile-drawer { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 90; justify-content: flex-end; }
.mobile-drawer.open { display: flex; }
.mobile-sheet {
  width: min(300px, 86vw);
  background: var(--bg-surface);
  height: 100%;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.mobile-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.mobile-sheet-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 6px 0;
}

.mobile-bottom-nav { display: none; }

.pwa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pwa-modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}
.pwa-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.pwa-modal-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.pwa-modal-steps li strong { color: var(--brand); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--ink);
  color: var(--bg-surface);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  max-width: 360px;
  border-left: 4px solid var(--emerald);
}
.toast.error { border-left-color: var(--crimson); }

/* RCIP Designated Employers Matcher & Directory */
.emp-workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.emp-step-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}
.emp-step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.emp-step-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.emp-step-desc {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
  line-height: 1.45;
}

.employers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.employer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.employer-card.tier-STRONG_FIT { border-top: 3px solid var(--emerald); }
.employer-card.tier-GOOD_FIT { border-top: 3px solid var(--blue); }
.employer-card.tier-EXPLORE_SECTOR { border-top: 3px solid var(--amber); }
.employer-card.is-applied {
  border-color: var(--emerald-border);
  background: var(--emerald-soft);
}
.emp-match-reasons {
  padding-left: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink);
}
.emp-match-reasons li { margin-top: 3px; }
.emp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}
.community-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.community-dir-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.live-snapshot-box {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.live-snapshot-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.live-snapshot-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 8px;
}
.live-dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.22);
}

.footer { margin: 36px 0 28px 0; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-size: 12px; color: var(--ink-subtle); text-align: center; }
.hidden { display: none !important; }

@media (max-width: 1024px) {
  .hero-card, .rcip-hero-strip, .roadmap-grid, .copilot-layout { grid-template-columns: 1fr; }
  .sticky-rail { position: static; }
  .wizard-stepper { grid-template-columns: repeat(3, 1fr); }
  .matcher-grid, .countries-grid, .communities-grid, .community-dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  main.container { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nav-actions { display: none; }
  .mobile-toggle-wrap { display: flex; }
  .workspace-nav { display: none; }

  .hero-card {
    margin-top: 12px;
    padding: 18px 16px;
    gap: 16px;
    border-radius: var(--radius-lg);
  }
  .hero-eyebrow { font-size: 11px; padding: 4px 10px; margin-bottom: 10px; }
  .hero-title { font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
  .hero-sub { font-size: 13.5px; margin-bottom: 14px; }
  .hero-cta-row { margin-bottom: 14px; }

  .country-jump-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .country-jump-strip::-webkit-scrollbar { display: none; }

  .hero-summary-box { padding: 12px; gap: 10px; }
  .hero-photo-frame { aspect-ratio: 16 / 10; min-height: 220px; }
  .showcase-rail { grid-auto-columns: minmax(195px, 215px); }
  .how-grid { grid-template-columns: 1fr; }
  .rcip-cover-strip { height: 104px; }
  .hub-hero-banner { min-height: 155px; }
  .hub-hero-title { font-size: 18.5px; }
  .stat-mini-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stat-mini { padding: 8px 6px; text-align: center; }
  .stat-mini-val { font-size: 16px; }
  .stat-mini-lbl { font-size: 10px; }
  .hero-trust-foot { font-size: 11.5px; text-align: center; }

  .card { padding: 16px; }
  .pillars-strip, .grid-2, .grid-3, .matcher-grid, .countries-grid, .communities-grid, .emp-workflow-strip, .employers-grid, .community-dir-grid { grid-template-columns: 1fr; }
  .grid-4, .clb-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .input, .select, .textarea { font-size: 16px; min-height: 44px; }
  #country-search, #comm-search, #copilot-country-scope, #emp-community-filter, #emp-search-input { max-width: 100% !important; width: 100%; }

  .prov-pills, .subtabs, .pathway-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .prov-pills::-webkit-scrollbar, .subtabs::-webkit-scrollbar, .pathway-tabs::-webkit-scrollbar { display: none; }
  .prov-btn, .subtab-btn, .pathway-tab-btn { flex-shrink: 0; }

  .chat-msg.user { margin-left: 18px; }
  .chat-msg.bot { margin-right: 10px; }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 75;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav-btn {
    border: none;
    background: transparent;
    color: var(--ink-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 2px;
    font-size: 10.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
  }
  .mobile-nav-btn .icon { width: 18px; height: 18px; }
  .mobile-nav-btn.active { color: var(--brand); background: var(--brand-soft); }
  .mobile-nav-icon-wrap { position: relative; display: inline-flex; }
  .mobile-nav-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pwa-modal-backdrop { align-items: flex-end; padding: 0; }
  .pwa-modal-card {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .toast-container {
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
  }
  .toast { max-width: none; }
}

@media (max-width: 520px) {
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .hero-photo-frame {
    aspect-ratio: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-photo-frame::after { display: none; }
  .hero-photo {
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .hero-photo-overlay {
    position: static;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #0f172a;
    backdrop-filter: none;
  }
  .stat-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .pwa-install-banner { flex-direction: column; align-items: stretch; }
  .pwa-banner-actions { justify-content: flex-end; }
  .wizard-stepper { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-card,
  .showcase-card-img,
  .country-card,
  .country-card-img {
    transition: none;
  }
  .showcase-card:hover .showcase-card-img,
  .country-card:hover .country-card-img {
    transform: none;
  }
}
