* { box-sizing: border-box; }
:root {
  --topbar-pad-y: 10px;
  --topbar-pad-x: 16px;
  --topbar-gap: 10px;
  --cmd-padding: 8px;
  --cmd-title-size: 12px;
  --btn-pad-y: 8px;
  --btn-pad-x: 12px;
  --btn-font-size: 15px;
  --volume-width: 120px;
  --avatar-stage-pad: 0px;
  --history-pad-y: 9px;
  --history-pad-x: 12px;
  --history-font-size: 15px;
  --map-node-size: 30px;
  --map-node-font-size: 12px;
  --ui-bg-1: #f6ead9;
  --ui-bg-2: #fbf6ee;
  --ui-ink: #1f2937;
  --ui-ink-soft: #5b6472;
  --ui-panel: rgba(255, 250, 244, 0.9);
  --ui-panel-border: rgba(141, 79, 40, 0.16);
  --ui-accent: #8f4a24;
  --ui-accent-2: #be6a2d;
  --ui-accent-soft: #f4d7bf;
  --ui-deep: #233048;
}
html, body { margin: 0; min-height: 100dvh; font-family: Aptos, "Trebuchet MS", Arial, sans-serif; color: var(--ui-ink); }
body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(214, 157, 94, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(35, 48, 72, 0.08), transparent 24%),
    linear-gradient(180deg, var(--ui-bg-1) 0%, var(--ui-bg-2) 34%, #f7f8fa 100%);
}
.hidden { display: none !important; }

#root { min-height: 100dvh; height: auto; display: grid; grid-template-rows: auto auto; align-content: start; }
body.tour-mode #root { height: 100dvh; min-height: 100dvh; grid-template-rows: 1fr; }
body.tour-mode .topbar { display: none !important; }
body.wizard-splash-mode {
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 158, 11, 0.18), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(56, 189, 248, 0.16), transparent 16%),
    radial-gradient(circle at 50% 120%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(180deg, #09111f 0%, #0d1728 46%, #08111d 100%);
}
body.wizard-splash-mode #root {
  min-height: 100dvh;
  height: 100dvh;
  grid-template-rows: 1fr;
}
body.wizard-splash-mode .topbar {
  display: none !important;
}
.topbar {
  background: #0f172a;
  color: #e2e8f0;
  padding: calc(var(--topbar-pad-y) + env(safe-area-inset-top, 0px)) var(--topbar-pad-x) calc(var(--topbar-pad-y) + 2px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--topbar-gap);
}
.topbar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; letter-spacing: .4px; }
.status { font-size: 12px; color: #93c5fd; }
.command-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.cmd-group {
  border: 1px solid rgba(147, 197, 253, .28);
  border-radius: 10px;
  padding: var(--cmd-padding);
  background: rgba(30, 41, 59, .6);
}
.cmd-title {
  font-size: var(--cmd-title-size);
  font-weight: 700;
  color: #bfdbfe;
  margin-bottom: 6px;
}
.checks-row {
  margin-top: 6px;
}
.checks-row label {
  color: #dbeafe;
}
.volume-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #334155;
  border-radius: 9px;
  padding: 6px 8px;
  background: #111827;
}
.volume-emoji {
  font-size: 16px;
  line-height: 1;
}
#volumeSlider {
  width: var(--volume-width);
}

.wizard-view {
  max-width: 1180px;
  margin: 20px auto;
  width: calc(100% - 24px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.92)),
    linear-gradient(140deg, rgba(244, 215, 191, 0.28), rgba(255,255,255,0));
  border: 1px solid var(--ui-panel-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(35, 48, 72, .12);
  backdrop-filter: blur(8px);
}
body.wizard-splash-mode .wizard-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(245, 158, 11, 0.11), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(59, 130, 246, 0.11), transparent 18%),
    linear-gradient(180deg, rgba(7,12,22,0.98), rgba(10,17,29,0.995));
  box-shadow: none;
  backdrop-filter: none;
  overflow: hidden;
}
body.wizard-splash-mode .wizard-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0));
  pointer-events: none;
}
body.wizard-splash-mode .wizard-view::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30vh;
  background:
    linear-gradient(180deg, transparent, rgba(0,0,0,0.34)),
    radial-gradient(circle at 50% 160%, rgba(243, 196, 139, 0.18), transparent 46%);
  pointer-events: none;
}
.wizard-progress {
  font-size: 12px;
  color: var(--ui-accent);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-panel {
  padding: 16px;
}
.wizard-panel-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ui-accent);
  margin-bottom: 12px;
}
.plan-filter-panel {
  margin-bottom: 14px;
}

.avatar-entry-panel {
  margin-bottom: 14px;
}

.tariff-panel {
  margin-bottom: 14px;
}
.plan-disclaimer {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(143, 74, 36, 0.07);
  border: 1px solid rgba(143, 74, 36, 0.10);
  color: #5a2d16;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
}
.language-select-shell {
  position: relative;
}
.language-select-shell::after {
  content: "▼";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ui-accent);
  pointer-events: none;
}
.language-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(143, 74, 36, 0.18);
  border-radius: 16px;
  padding: 14px 42px 14px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1d2737;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247, 236, 224, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.language-select:focus {
  outline: none;
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px rgba(190, 106, 45, 0.14);
}
.wizard-section-head {
  margin-bottom: 14px;
}
.wizard-section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 6px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.pick-card {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 16px;
  padding: 14px 14px 13px;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,241,232,0.9));
  transition: all .16s ease;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pick-card:hover {
  border-color: rgba(143, 74, 36, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(35, 48, 72, 0.08);
}
.pick-card.active {
  border-color: var(--ui-accent);
  background: linear-gradient(180deg, #fff9f3, #f4dfca);
  box-shadow: inset 0 0 0 1px rgba(143, 74, 36, 0.22), 0 12px 28px rgba(143, 74, 36, 0.12);
}
.pick-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--ui-accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.pick-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #1d2737;
}
.pick-card-subtitle {
  font-size: 12px;
  color: var(--ui-ink-soft);
  line-height: 1.45;
  margin-top: 6px;
}
.avatar-card { padding: 8px; }
.avatar-preview-box {
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  margin-bottom: 8px;
}
.avatar-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f172a;
}
.avatar-preview-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #1e3a8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}
.avatar-name { display: block; margin-bottom: 3px; }
.avatar-role { font-size: 12px; color: #475569; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.form-grid-tour {
  margin-bottom: 18px;
}
label { display: flex; flex-direction: column; font-size: 12px; gap: 6px; color: #334155; }
input, select {
  border: 1px solid rgba(35, 48, 72, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 15px;
  background: rgba(255,255,255,0.88);
}

.tour-choice-grid {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}
.tour-preview-shell,
.tour-card-shell {
  background: var(--ui-panel);
  border: 1px solid var(--ui-panel-border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 16px 34px rgba(35, 48, 72, 0.08);
}
.tour-preview-map {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(35, 48, 72, 0.1);
  background: #efe6d9;
}
.tour-card {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(250,244,235,0.92));
  margin-bottom: 0;
}
.tour-card h4 {
  margin: 0 0 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
}
.tour-card-route {
  color: var(--ui-ink-soft);
  line-height: 1.55;
  margin-bottom: 14px;
}
.tour-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(35, 48, 72, 0.08);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.tour-card-status.ok {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
  background: #f0fdf4;
}
.tour-card-status.ko {
  color: #9a3412;
  border-color: rgba(154, 52, 18, 0.18);
  background: #fff7ed;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.metric-pill {
  border: 1px solid rgba(35, 48, 72, 0.08);
  border-radius: 14px;
  padding: 10px 11px;
  background: rgba(255,255,255,0.88);
  font-size: 12px;
}
.metric-pill strong {
  color: var(--ui-accent);
}
.tour-card-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tour-inline-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(35, 48, 72, 0.06);
  border: 1px solid rgba(35, 48, 72, 0.08);
  color: var(--ui-deep);
  font-size: 12px;
  font-weight: 700;
}
.hint { font-size: 12px; color: #475569; }

.guide-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
}
.guide-main-panel { min-width: 0; }
.guide-side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.avatar-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.step-actions, .inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid rgba(35, 48, 72, 0.12);
  border-radius: 12px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  font-size: var(--btn-font-size);
  background: rgba(255,255,255,0.94);
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg, var(--ui-accent-2), var(--ui-accent));
  border-color: var(--ui-accent);
  color: #fff;
}
.btn.active {
  background: linear-gradient(180deg, var(--ui-accent-2), var(--ui-accent));
  border-color: var(--ui-accent);
  color: #fff;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(231, 176, 116, 0.28), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(32, 48, 76, 0.14), transparent 20%),
    linear-gradient(145deg, #f0dfc7 0%, #f8f1e6 36%, #f3f5f7 100%);
}
.topbar {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(32, 48, 76, 0.96)),
    linear-gradient(135deg, rgba(190, 106, 45, 0.18), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
}
.brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .14em;
  color: #f8e9d0;
}
.status {
  color: #cfe0ff;
  font-weight: 700;
}
.wizard-view {
  position: relative;
  max-width: 1240px;
  margin: 24px auto;
  padding: 22px;
  overflow: visible;
  border-radius: 28px;
  border: 1px solid rgba(124, 62, 29, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.9)),
    linear-gradient(135deg, rgba(255, 244, 227, 0.92), rgba(255,255,255,0.68));
  box-shadow:
    0 24px 60px rgba(35, 48, 72, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
}
.wizard-view::before {
  content: "";
  position: absolute;
  inset: -160px auto auto -140px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(190, 106, 45, 0.18), transparent 66%);
  pointer-events: none;
}
.wizard-view::after {
  content: "";
  position: absolute;
  inset: auto -140px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(35, 48, 72, 0.10), transparent 68%);
  pointer-events: none;
}
.wizard-progress {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(124, 62, 29, 0.12);
  box-shadow: 0 8px 18px rgba(35, 48, 72, 0.06);
}
.wizard-panel,
.tour-preview-shell,
.tour-card-shell {
  border-radius: 24px;
}
.wizard-panel,
.tour-preview-shell,
.tour-card-shell {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.88), rgba(255,255,255,0.82));
  border: 1px solid rgba(124, 62, 29, 0.12);
  box-shadow: 0 18px 34px rgba(35, 48, 72, 0.08);
  backdrop-filter: blur(10px);
}
.wizard-panel-title {
  color: #7c3e1d;
}
.language-select {
  border-color: rgba(124, 62, 29, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248, 239, 227, 0.96));
}
.pick-card {
  min-height: 100px;
  border-radius: 18px;
  border: 1px solid rgba(35, 48, 72, 0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251, 245, 236, 0.94));
  box-shadow: 0 10px 22px rgba(35, 48, 72, 0.05);
}
.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(35, 48, 72, 0.10);
}
.pick-card.active {
  border-color: rgba(143, 74, 36, 0.34);
  background: linear-gradient(180deg, #fff6ea, #f2d8bc);
  box-shadow:
    inset 0 0 0 1px rgba(143, 74, 36, 0.14),
    0 18px 34px rgba(143, 74, 36, 0.16);
}
.tour-preview-map {
  border-radius: 18px;
  background: #ead8bf;
}
.tour-card {
  border-radius: 22px;
  border: 1px solid rgba(124, 62, 29, 0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250, 242, 231, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.tour-card h4 {
  font-size: 32px;
  color: #1e2430;
}
.tour-card-route {
  color: #4c5666;
}
.metric-pill {
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
}
.btn {
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .01em;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246, 239, 230, 0.94));
  box-shadow: 0 8px 16px rgba(35, 48, 72, 0.06);
}
.btn.primary,
.btn.active {
  background: linear-gradient(180deg, #c9793c, #8f4a24);
  border-color: #8f4a24;
  box-shadow: 0 14px 24px rgba(143, 74, 36, 0.24);
}

.tour-view {
  display: block;
  height: 100%;
  min-height: 100dvh;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.left-panel, .right-panel {
  background: #f8fafc;
  border-right: 1px solid #dbeafe;
  overflow: auto;
}
.right-panel { border-right: none; border-left: 1px solid #dbeafe; }
.center-panel,
.avatar-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}
.avatar-panel {
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tour-view.view-map .avatar-panel { display: none; }
.tour-view.view-avatar .center-panel { display: none; }
.avatar-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: var(--avatar-stage-pad);
  overflow: hidden;
}

.panel-block { border-bottom: 1px solid #e2e8f0; padding: 12px; }
.panel-block h3 { margin: 0 0 8px 0; font-size: 15px; }
.controls-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

#map { width: 100%; height: 100%; }
.nav-hud {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 520;
  max-width: min(98vw, 1120px);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .35);
  padding: 10px 14px;
  text-align: left;
  line-height: 1.35;
}
.nav-hud .hud-line {
  display: block;
  margin: 1px 0;
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 600;
}
.nav-hud .hud-line-1 {
  font-size: 14px;
  color: #bae6fd;
  font-weight: 800;
}
.nav-hud .hud-line-2 {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 800;
}
.nav-hud .hud-line-3 {
  color: #cbd5e1;
  font-style: italic;
}
.tour-back-btn {
  position: absolute;
  top: 28px;
  right: 12px;
  z-index: 40;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.tour-back-btn:hover {
  background: #115e59;
  border-color: #115e59;
}
.video-options-fab {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 42;
  width: 42px;
  height: 42px;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-options-fab:hover {
  background: #115e59;
  border-color: #115e59;
}
.video-options-panel {
  position: absolute;
  right: 12px;
  bottom: 52px;
  z-index: 42;
  width: min(92vw, 320px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid #134e4a;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .38);
  color: #e2e8f0;
}
.video-options-title {
  font-size: 15px;
  font-weight: 700;
  color: #ccfbf1;
  margin-bottom: 8px;
}
.video-options-field {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}
.video-options-field > span {
  color: #cbd5e1;
  font-weight: 600;
}
.video-options-field select {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0b1220;
  color: #e2e8f0;
  padding: 7px 8px;
  font-size: 12px;
}
.video-options-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #cbd5e1;
}
.map-fab-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(10px + 24px);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 500;
}
.map-fab-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.map-fab-group-right {
  margin-left: auto;
}
.history-btn {
  position: static;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 9px;
  padding: var(--history-pad-y) var(--history-pad-x);
  font-size: var(--history-font-size);
  white-space: nowrap;
  cursor: pointer;
}
.history-btn-alt {
  border-color: #0f766e;
  background: #0f766e;
}
.history-btn-back {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(15, 23, 42, .82);
  color: #fff;
}
.history-btn:disabled { opacity: .55; cursor: not-allowed; }
.map-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(15, 23, 42, .84);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .28);
}
.map-icon-btn.active {
  background: #0f766e;
  border-color: #0f766e;
}

.map-node-wrap {
  background: transparent;
  border: 0;
}
.map-node {
  width: var(--map-node-size);
  height: var(--map-node-size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, .28);
  color: #fff;
  font-size: var(--map-node-font-size);
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.map-node.stop { background: linear-gradient(180deg, #38bdf8, #0284c7); }
.map-node.stop-internal { background: linear-gradient(180deg, #1e40af, #1e3a8a); }
.map-node.extra { background: linear-gradient(180deg, #fb923c, #f97316); }
.map-node-wrap:hover .map-node {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .35);
}
.map-node-wrap.is-active .map-node {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .24), 0 10px 22px rgba(37, 99, 235, .45);
}
.map-node-wrap.is-done .map-node {
  filter: saturate(0.55) brightness(0.92);
}
.map-node-wrap.is-locked .map-node {
  color: #fff;
  opacity: .84;
  filter: saturate(.72) brightness(.94);
  border-color: rgba(255,255,255,.88);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
}

.map-pulse-wrap {
  background: transparent;
  border: 0;
}
.map-pulse {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, .7);
  background: rgba(59, 130, 246, .14);
  animation: pulse-ring 1.6s infinite ease-out;
}
@keyframes pulse-ring {
  0% { transform: scale(.55); opacity: .85; }
  100% { transform: scale(1.2); opacity: 0; }
}

.wc-wrap { background: transparent; border: 0; }
.wc-pin {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #16a34a;
  border: 2px solid #fff;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 14px rgba(22, 163, 74, .28);
}
.fountain-wrap { background: transparent; border: 0; }
.fountain-pin {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0891b2;
  border: 2px solid #fff;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 8px 14px rgba(8, 145, 178, .30);
}
.rome-map-point {
  background: transparent;
  border: 0;
}
.rome-map-point-photo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .96);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .28);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.rome-map-point-photo.place-standard {
  border-color: #38bdf8;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}
.rome-map-point-photo.place-internal {
  border-color: #1d4ed8;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}
.rome-map-point-photo.extra {
  border-color: #f97316;
  background: linear-gradient(180deg, #fb923c, #f97316);
}
.rome-map-point-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .96);
  box-shadow: 0 8px 14px rgba(15, 23, 42, .24);
}
.rome-map-point-dot.place-standard {
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}
.rome-map-point-dot.place-internal {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}
.rome-map-point-dot.extra {
  background: linear-gradient(180deg, #fb923c, #f97316);
}

.map-popup {
  width: 220px;
}
.map-popup .p-token { font-size: 12px; color: #1e3a8a; font-weight: 700; margin-bottom: 4px; }
.map-popup .p-title {
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
  min-height: 38px;
}
.map-popup .p-meta {
  font-size: 12px;
  color: #334155;
  margin-bottom: 7px;
}
.map-popup .p-meta-missing-photo {
  color: #92400e;
  font-weight: 700;
}
.map-popup-photo-wrap {
  margin: 8px 0 9px;
  width: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .14);
}
.map-popup-photo {
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.map-popup .popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.map-popup .popup-btn {
  display: block;
  width: 100%;
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  cursor: pointer;
}
.map-popup .popup-btn:hover { background: #115e59; border-color: #115e59; }
.map-popup .popup-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  background: #94a3b8;
  border-color: #94a3b8;
}
.map-legend-modal {
  max-width: min(92vw, 360px);
}
.map-legend-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 12px;
}
.map-legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.map-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .96);
  box-shadow: 0 8px 14px rgba(15, 23, 42, .18);
  flex: 0 0 auto;
}
.map-legend-swatch.place-standard {
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}
.map-legend-swatch.place-internal {
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}
.map-legend-swatch.extra {
  background: linear-gradient(180deg, #fb923c, #f97316);
}
.map-legend-copy {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}
.map-legend-note {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.leaflet-tooltip.node-tip {
  background: #ffffff;
  border: 1px solid #93c5fd;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .25);
  padding: 8px 10px;
  color: #0f172a;
  max-width: min(90vw, 360px);
}
.leaflet-tooltip.node-tip.leaflet-tooltip-bottom::before {
  border-bottom-color: #93c5fd;
}

.video-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: #ffffff;
}
#videoBackdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px) saturate(1.2) brightness(0.62);
  transform: scale(1.08);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
  display: none !important;
}
#videoPlayer {
  position: absolute;
  inset: 0;
  margin: auto;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  background: transparent;
  border-radius: 0;
  object-fit: cover !important;
  object-position: center center !important;
  z-index: 2;
}
.subtitle-overlay {
  position: absolute;
  left: 10px;
  right: 70px;
  bottom: 84px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.subtitle-overlay .subtitle-text {
  max-width: min(84vw, 620px);
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 15px;
  line-height: 1.35;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.node-list { display: grid; gap: 8px; }
.node-item {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  cursor: pointer;
}
.node-item.active { border-color: #2563eb; background: #dbeafe; }
.node-item.done { border-color: #22c55e; }
.node-item.locked {
  opacity: .5;
  border-style: dashed;
  background: #f1f5f9;
}
.node-item .nline { font-size: 12px; color: #334155; }

.badge {
  display: inline-block;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: 6px;
  color: #fff;
}
.badge.stop { background: #0284c7; }
.badge.stop-internal { background: #1e3a8a; }
.badge.extra { background: #ea580c; }

.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 2000;
}
.modal-card {
  width: min(860px, calc(100% - 28px));
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 14px;
}
.modal-card.modal-card-start {
  width: min(560px, calc(100% - 26px));
  border: 1px solid #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 58%);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.22);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.tour-start-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #5eead4;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}
.tour-start-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 2px 0 8px;
}
.tour-start-summary {
  color: #334155;
  margin-top: 4px;
}
.tour-start-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 12px;
}
.start-tour-launch-btn {
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 11px;
}
.modal-card.modal-card-internal {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: 0;
  padding: 22px 24px 28px;
}
.modal-card h3 { margin-top: 0; }
.gallery-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.gallery-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  max-height: 62vh;
  object-fit: contain;
}
.gallery-caption { font-size: 15px; color: #334155; white-space: pre-wrap; }

@media (max-width: 1240px) {
  .command-dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root {
    --topbar-pad-y: 8px;
    --topbar-pad-x: 10px;
    --topbar-gap: 8px;
    --cmd-padding: 7px;
    --btn-pad-y: 7px;
    --btn-pad-x: 10px;
    --btn-font-size: 12px;
    --volume-width: 92px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 8px;
    --history-pad-x: 10px;
    --history-font-size: 12px;
  }
  .wizard-view {
    margin: 10px auto;
    width: calc(100% - 14px);
    padding: 12px;
    border-radius: 10px;
  }
  .wizard-hero,
  .tour-choice-grid,
  .guide-choice-grid {
    grid-template-columns: 1fr;
  }
  .wizard-hero-copy {
    padding: 20px 18px;
  }
  .tour-preview-map {
    height: 280px;
  }
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .nav-hud {
    top: 8px;
    padding: 8px 10px;
  }
  .nav-hud .hud-line { font-size: 12px; }
  .nav-hud .hud-line-1 { font-size: 15px; }
  .nav-hud .hud-line-2 { font-size: 15px; }
  .subtitle-overlay {
    right: 66px;
    bottom: 78px;
  }
  .subtitle-overlay .subtitle-text {
    font-size: 14px;
    max-width: min(80vw, 520px);
  }
}

/* Small phones: ~360x800 */
@media (max-width: 380px) {
  :root {
    --topbar-pad-y: 7px;
    --topbar-pad-x: 8px;
    --topbar-gap: 7px;
    --cmd-padding: 6px;
    --cmd-title-size: 11px;
    --btn-pad-y: 6px;
    --btn-pad-x: 8px;
    --btn-font-size: 11px;
    --volume-width: 78px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 7px;
    --history-pad-x: 8px;
    --history-font-size: 11px;
    --map-node-size: 26px;
    --map-node-font-size: 10px;
  }
  .volume-control {
    gap: 4px;
    padding: 4px 6px;
  }
  .volume-emoji { font-size: 15px; }
  .checks-row label { font-size: 11px; }
  .status { font-size: 11px; }
}

/* Large phones: ~412x915 */
@media (min-width: 411px) and (max-width: 520px) {
  :root {
    --topbar-pad-y: 10px;
    --topbar-pad-x: 12px;
    --topbar-gap: 10px;
    --cmd-padding: 9px;
    --cmd-title-size: 13px;
    --btn-pad-y: 8px;
    --btn-pad-x: 12px;
    --btn-font-size: 15px;
    --volume-width: 112px;
    --avatar-stage-pad: 0px;
    --history-pad-y: 9px;
    --history-pad-x: 12px;
    --history-font-size: 15px;
    --map-node-size: 31px;
    --map-node-font-size: 12px;
  }
}

html[dir="rtl"] body {
  direction: rtl;
}
html[dir="rtl"] .topbar {
  flex-direction: row-reverse;
}
html[dir="rtl"] .node-item .nline,
html[dir="rtl"] .hint,
html[dir="rtl"] label {
  text-align: right;
}

body.wizard-onboarding-mode {
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 124, 56, 0.22), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(248, 204, 141, 0.16), transparent 18%),
    linear-gradient(180deg, #111827 0%, #172033 44%, #0b1220 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
}

body.wizard-onboarding-mode #root {
  min-height: 100dvh;
  height: auto;
  grid-template-rows: 1fr;
  overflow-x: hidden;
  overflow-y: auto;
}

body.wizard-onboarding-mode .topbar,
body.wizard-onboarding-mode .wizard-progress {
  display: none !important;
}

body.wizard-onboarding-mode .wizard-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 158, 11, 0.10), transparent 18%),
    radial-gradient(circle at 75% 28%, rgba(96, 165, 250, 0.10), transparent 18%),
    linear-gradient(180deg, rgba(17,24,39,0.98), rgba(15,23,42,0.99));
  box-shadow: none;
  backdrop-filter: none;
  overflow-x: hidden;
  overflow-y: auto;
}

body.wizard-onboarding-mode .wizard-view::before,
body.wizard-onboarding-mode .wizard-view::after {
  display: none;
}

body.wizard-onboarding-mode .wizard-step-language,
body.wizard-onboarding-mode .language-stage,
body.wizard-onboarding-mode .transition-stage {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 32px 24px calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

body.wizard-onboarding-mode .language-card {
  width: min(100%, 560px);
  display: grid;
  gap: 20px;
  padding: 0;
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.wizard-onboarding-mode .wizard-step-language h1 {
  margin: 0;
  color: #f8fafc;
  font-family: Aptos, "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell {
  width: 100%;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell::after {
  color: #f3c48b;
  right: 18px;
}

body.wizard-onboarding-mode .wizard-step-language .language-select {
  border: 1px solid rgba(243, 196, 139, 0.34);
  border-radius: 18px;
  padding: 16px 48px 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  text-align-last: center;
}

body.wizard-onboarding-mode .wizard-step-language .language-select option {
  text-align: center;
}

body.wizard-onboarding-mode .wizard-step-language .language-select:focus {
  border-color: #f3c48b;
  box-shadow: 0 0 0 3px rgba(243, 196, 139, 0.16);
}

body.wizard-onboarding-mode .wizard-step-language .language-actions {
  justify-content: center;
  margin-top: 0;
}

body.wizard-onboarding-mode .wizard-step-language .btn.primary {
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
  background: linear-gradient(180deg, #f3c48b, #be6a2d);
  border-color: #be6a2d;
}

body.wizard-onboarding-mode .transition-popup-title {
  margin-top: 4px;
  color: #8f4a24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

body.wizard-onboarding-mode .transition-popup-body {
  color: #1d2737;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

body.wizard-onboarding-mode .transition-actions {
  justify-content: center;
  margin-top: 2px;
}

body.wizard-onboarding-mode .transition-actions .btn.primary {
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #111827;
  background: linear-gradient(180deg, #f3c48b, #be6a2d);
  border-color: #be6a2d;
}

body.wizard-onboarding-mode .wizard-section-head {
  margin: 0 0 18px;
  padding-top: 16px;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

body.wizard-onboarding-mode .wizard-section-head h2 {
  margin: 0;
  color: #f8fafc;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(26px, 4.6vw, 34px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
}

body.wizard-onboarding-mode .wizard-section-head .hint {
  margin: 0;
  color: #f8fafc;
  font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(20px, 3.8vw, 26px);
  line-height: 1.08;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

body.wizard-onboarding-mode .tour-step-logo {
  width: min(100%, 620px);
  max-width: 88vw;
  height: auto;
  display: block;
  margin: 10px auto 2px;
  filter:
    brightness(1.15)
    contrast(1.10)
    drop-shadow(0 0 16px rgba(255, 255, 255, 0.18))
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.20));
}

body.wizard-onboarding-mode .tour-info-popup {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(214, 114, 42, 0.98), rgba(178, 84, 28, 0.98));
  border: 1px solid rgba(255, 228, 196, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  color: #fff8ef;
}

body.wizard-onboarding-mode .tour-info-popup-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .tour-info-popup-body {
  font-size: 15px;
  line-height: 1.48;
  color: #fff5eb;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-disclaimer,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .metric-pill,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-inline-chip {
  background: transparent !important;
  box-shadow: none !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card {
  border-color: rgba(243, 196, 139, 0.20) !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  background: transparent !important;
  box-shadow: none !important;
  color: #f8fafc;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  font-size: 15px;
  font-weight: 800;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] label,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .hint,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-route,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card h4,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-inline-chip,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-disclaimer,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .metric-pill {
  color: #f8fafc;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-map {
  background: transparent;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-filter-panel {
  padding-left: 14px;
  padding-right: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card {
  min-height: 260px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-title {
  line-height: 1.08;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #1d2737;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  line-height: 1.42;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-box {
  display: block;
  cursor: pointer;
  user-select: none;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 148px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  color: #1d2737;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.18;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-box:focus-visible {
  outline: 2px solid rgba(143, 74, 36, 0.45);
  outline-offset: 4px;
  border-radius: 8px;
}

/* 2026-03-12 Modern onboarding refresh: step 2 transition + step 3 setup */
body.wizard-onboarding-mode {
  background:
    radial-gradient(circle at top center, rgba(217,164,65,0.16) 0%, rgba(217,164,65,0.00) 28%),
    linear-gradient(180deg, #08101d 0%, #0b1323 46%, #09101c 100%);
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] {
  width: min(100%, 920px);
  margin: 0 auto;
}

body.wizard-onboarding-mode .transition-popup-title {
  color: #f8fafc;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

body.wizard-onboarding-mode .transition-popup-body {
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  color: #b9c4d4;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.62;
  text-align: center;
}

body.wizard-onboarding-mode .transition-actions {
  margin-top: 18px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] {
  display: grid;
  gap: 18px;
  padding-bottom: 26px;
}

body.wizard-onboarding-mode .wizard-section-head {
  margin: 0;
  padding-top: 6px;
  gap: 8px;
}

body.wizard-onboarding-mode .wizard-section-head h2 {
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

body.wizard-onboarding-mode .wizard-section-head .hint {
  color: #d3dae6;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: clamp(17px, 3vw, 21px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.wizard-onboarding-mode .tour-step-logo {
  width: min(100%, 360px);
  max-width: 72vw;
  margin: 10px auto 0;
  filter: brightness(1.12) contrast(1.08) drop-shadow(0 14px 32px rgba(0,0,0,0.34));
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell {
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15,24,41,0.92), rgba(10,17,29,0.94)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.24) !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  color: #f8fafc;
  text-align: left;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(18,31,52,0.94), rgba(11,20,35,0.96));
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  padding: 16px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card.active {
  border-color: rgba(217,164,65,0.64);
  box-shadow: 0 0 0 1px rgba(217,164,65,0.28), 0 18px 36px rgba(0,0,0,0.28);
  background: linear-gradient(180deg, rgba(24,38,63,0.98), rgba(13,22,39,0.98));
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-eyebrow {
  color: #d9a441 !important;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-title {
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-detail-line,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  color: #a8b4c4 !important;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.52;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section {
  color: #d9a441 !important;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  margin: 0;
  gap: 10px;
  padding-left: 18px;
  color: #d6e0ee;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list li {
  line-height: 1.5;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 0;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions,
body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions,
body.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions {
  gap: 14px;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card {
  min-height: 168px;
  justify-content: flex-start;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .step-actions {
  margin-top: 2px;
}

@media (max-width: 720px) {
  body.wizard-onboarding-mode .wizard-step[data-step="3"] {
    gap: 14px;
  }

  body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-preview-shell,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] .tour-card-shell {
    padding: 16px;
    border-radius: 22px;
  }

  body.wizard-onboarding-mode .wizard-step[data-step="3"] #planOptions,
  body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions {
    grid-template-columns: 1fr;
  }
}

/* 2026-03-12 Language page modern refresh + transition chip fix */
body.wizard-onboarding-mode .language-card {
  width: min(100%, 620px);
  padding: 28px 22px 22px;
  gap: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(13,22,39,0.96), rgba(9,17,30,0.98));
  border: 1px solid rgba(217,164,65,0.22);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
  position: relative;
}

body.wizard-onboarding-mode .language-card::before {
  content: "LANGUAGE";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 30px;
  margin: 0 auto 4px;
  border-radius: 999px;
  background: rgba(217,164,65,0.12);
  border: 1px solid rgba(217,164,65,0.28);
  color: #f5d28f;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.wizard-onboarding-mode .wizard-step-language h1 {
  color: #f8fafc;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px 52px 16px 18px;
  color: #f8fafc;
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.wizard-onboarding-mode .wizard-step-language .language-select-shell::after {
  color: #d9a441;
}

body.wizard-onboarding-mode .wizard-step-language .btn.primary {
  min-width: 240px;
  border-radius: 18px;
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable Display", "Helvetica Neue", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 720px) {
  body.wizard-onboarding-mode .language-card {
    padding: 24px 18px 18px;
    border-radius: 24px;
  }
}

/* 2026-03-12 Compact section 2A tariff cards */
body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card {
  min-height: 138px !important;
  padding: 13px 12px !important;
  gap: 4px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-title {
  font-size: 20px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-detail-list {
  margin-top: 8px !important;
  gap: 3px !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .pick-card-detail-line {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* 2026-03-12 Center section titles */
body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  text-align: center !important;
}

/* 2026-03-12 Center all content on onboarding page 3 */
body.wizard-onboarding-mode .wizard-step[data-step="3"],
body.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-section,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  text-align: center !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-list {
  padding-left: 0 !important;
  list-style-position: inside;
  text-align: center !important;
}

body.wizard-onboarding-mode .wizard-step[data-step="3"] .pick-card-detail-list {
  justify-items: center;
}


/* ===== V5 CLEAN LAYOUT OVERRIDES ===== */
body.modern-v5 {
  --v5-bg: #07101d;
  --v5-panel: rgba(11, 19, 33, 0.9);
  --v5-panel-2: rgba(15, 25, 42, 0.96);
  --v5-line: rgba(148, 163, 184, 0.18);
  --v5-text: #ecf4ff;
  --v5-soft: #9eb3cb;
  --v5-blue: #40a6ff;
  --v5-gold: #f7c948;
  --v5-green: #22c55e;
  --v5-red: #ef4444;
  color: var(--v5-text);
  background: radial-gradient(circle at top, #173256 0%, #091321 42%, #050b14 100%);
}

body.modern-v5::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(64, 166, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(247, 201, 72, 0.10), transparent 24%);
}

body.modern-v5 .topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(5, 10, 19, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

body.modern-v5 .topbar-head {
  align-items: center;
  gap: 20px;
}

body.modern-v5 .brand-with-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

body.modern-v5 .brand-mark {
  width: 118px;
  max-width: 30vw;
  display: block;
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

body.modern-v5 .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.modern-v5 .brand-overline {
  color: var(--v5-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.modern-v5 .brand-main {
  color: white;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.modern-v5 .status {
  background: rgba(14, 26, 46, 0.92);
  color: #dbeafe;
  border: 1px solid rgba(64, 166, 255, 0.22);
}

body.modern-v5 .wizard-progress {
  display: flex;
  justify-content: center;
  margin: 18px auto 8px;
}

body.modern-v5 .wizard-progress.hidden {
  display: none;
}

body.modern-v5 .wizard-progress span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 22, 38, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--v5-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modern-v5 .modern-surface,
body.modern-v5 .wizard-panel.modern-surface,
body.modern-v5 .language-card.modern-surface {
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.96), rgba(7, 14, 26, 0.98));
  border: 1px solid var(--v5-line);
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

body.modern-v5 .wizard-v4-shell,
body.modern-v5 .wizard-review-shell,
body.modern-v5 .step-actions-v4 {
  width: min(1400px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.modern-v5 .wizard-v4-shell,
body.modern-v5 .wizard-review-shell {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
  background: transparent;
}

body.modern-v5 .wizard-logo-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0 2px;
  background: transparent;
  border: none;
  box-shadow: none;
}

body.modern-v5 .wizard-logo-banner-mark {
  width: min(100%, 320px);
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

body.modern-v5 .preview-stats,
body.modern-v5 .tour-result-metrics,
body.modern-v5 .tour-result-chips,
body.modern-v5 .tour-card-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.modern-v5 .preview-stats span,
body.modern-v5 .tour-inline-chip,
body.modern-v5 .tour-result-badge,
body.modern-v5 .metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(16, 29, 49, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e6eefc;
  font-size: 15px;
  font-weight: 700;
}

body.modern-v5 .wizard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

body.modern-v5 .wizard-main-left,
body.modern-v5 .wizard-main-right {
  display: grid;
  gap: 22px;
}

body.modern-v5 .modern-panel {
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(11, 22, 38, 0.95), rgba(7, 16, 29, 0.98));
}

body.modern-v5 .wizard-panel-headline {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body.modern-v5 .split-headline {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}

body.modern-v5 .wizard-panel-title {
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.modern-v5 .panel-mini-copy,
body.modern-v5 .hint,
body.modern-v5 .tour-result-summary,
body.modern-v5 .tour-result-matchline,
body.modern-v5 .tour-filter-lead,
body.modern-v5 #summaryBox .hint {
  color: var(--v5-soft);
  line-height: 1.55;
}

body.modern-v5 .cards-grid.compact-grid,
body.modern-v5 .avatar-grid-inline,
body.modern-v5 .zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 .zone-grid .zone-card-wide {
  grid-column: 1 / -1;
}

body.modern-v5 .plan-pick-card,
body.modern-v5 .avatar-card,
body.modern-v5 .zone-card,
body.modern-v5 .tariff-list-card,
body.modern-v5 .tour-result-card,
body.modern-v5 #summaryBox .tour-card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(10, 20, 35, 0.94), rgba(6, 13, 24, 0.98));
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
}

body.modern-v5 .plan-pick-card,
body.modern-v5 .avatar-card,
body.modern-v5 .zone-card,
body.modern-v5 .tariff-list-card {
  padding: 18px;
}

body.modern-v5 #avatarEntryBox {
  display: block;
}

body.modern-v5 .modal-card-avatar-picker {
  width: min(980px, calc(100% - 20px));
  max-height: 88vh;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
  backdrop-filter: none;
}

body.modern-v5 .avatar-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body.modern-v5 .avatar-modal-head h3 {
  margin: 0;
  font-size: 22px;
  color: #f8fafc;
}

body.modern-v5 .avatar-modal-head p {
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.82);
}

body.modern-v5 .avatar-modal-head .btn.primary,
body.modern-v5 #closeAvatarPickerModal {
  color: #0b1220 !important;
  background: linear-gradient(135deg, #d29a2e, #f0c76f 58%, #ffdd93) !important;
  border: 1px solid rgba(255, 219, 145, 0.38) !important;
  box-shadow: 0 16px 28px rgba(210, 154, 46, 0.26) !important;
}

body.modern-v5 .avatar-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 .plan-pick-card.active,
body.modern-v5 .avatar-card.active {
  border-color: rgba(64, 166, 255, 0.7);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active {
  border-color: rgba(217, 164, 65, 0.92) !important;
  background: linear-gradient(180deg, rgba(40, 28, 10, 0.98), rgba(18, 16, 10, 0.99)) !important;
  box-shadow:
    inset 0 0 0 3px rgba(217, 164, 65, 0.78),
    0 0 0 2px rgba(217, 164, 65, 0.44),
    0 18px 40px rgba(0, 0, 0, 0.30),
    0 0 28px rgba(217, 164, 65, 0.16) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-section,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-list,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .pick-card-title,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-section,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active .plan-pick-list {
  color: #f8fafc !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active),
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active) {
  opacity: 0.86;
  transform: scale(0.992);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card {
  position: relative;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-selected-badge,
body.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.modern-v5 .avatar-inline-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

body.modern-v5 .customer-name-field {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

body.modern-v5 .customer-name-field span,
body.modern-v5 .modern-form-grid span,
body.modern-v5 .customer-name-field label,
body.modern-v5 .form-grid label span {
  color: var(--v5-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.modern-v5 .modern-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.modern-v5 input,
body.modern-v5 select,
body.modern-v5 .language-select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(5, 12, 23, 0.94);
  color: #f8fbff;
}

body.modern-v5 .avatar-preview-box {
  min-height: 184px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 30% 20%, rgba(64, 166, 255, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(20, 34, 57, 0.94), rgba(8, 17, 30, 0.98));
}

body.modern-v5 .avatar-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.modern-v5 .avatar-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.modern-v5 .avatar-preview-fallback {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
}

body.modern-v5 .avatar-fallback-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.95), rgba(251, 191, 36, 0.8));
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body.modern-v5 .avatar-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  align-items: start;
  column-gap: 10px;
  margin-top: 14px;
  width: 100%;
}

body.modern-v5 .avatar-name-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 42px;
}

body.modern-v5 .avatar-name-line {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.08;
}

body.modern-v5 .avatar-role-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2px;
  min-height: 42px;
}

body.modern-v5 .avatar-role-line {
  display: block;
  color: rgba(255, 226, 163, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1.08;
}

body.modern-v5 .avatar-audio-toggle {
  margin-left: 0;
  align-self: start;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 219, 145, 0.24);
  background: rgba(12, 18, 32, 0.82);
  color: rgba(255, 226, 163, 0.62);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

body.modern-v5 .avatar-audio-toggle:hover,
body.modern-v5 .avatar-audio-toggle:focus-visible {
  color: rgba(255, 226, 163, 0.9);
  border-color: rgba(255, 219, 145, 0.4);
  outline: none;
}

body.modern-v5 .avatar-audio-toggle.active {
  color: #0b1220;
  background: linear-gradient(135deg, #d29a2e, #f0c76f 58%, #ffdd93);
  border-color: rgba(255, 219, 145, 0.46);
  box-shadow: 0 10px 22px rgba(210, 154, 46, 0.24);
}

body.modern-v5 .map-preview-panel {
  overflow: hidden;
}

body.modern-v5 .modern-preview-map,
body.modern-v5 .map-preview-panel .leaflet-container {
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-left {
  max-width: 760px;
  margin: 0 auto;
}

body.modern-v5 .wizard-step[data-step="3"] .wizard-main-right,
body.modern-v5 .wizard-step[data-step="3"] .tour-filter-panel,
body.modern-v5 .wizard-step[data-step="4"] {
  display: none !important;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel .wizard-panel-title {
  margin-bottom: 12px;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-picker-panel .wizard-panel-headline {
  display: none !important;
}

body.modern-v5 .wizard-step[data-step="3"] #avatarEntryBox {
  width: 100%;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 176px;
  display: grid;
  place-items: center;
  text-align: center;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  text-align: center;
}

body.modern-v5 .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  font-size: 24px;
  line-height: 1.2;
}

body.modern-v5 .wizard-step[data-step="3"] .step-actions-v4 {
  justify-content: space-between;
  align-items: center;
}

body.modern-v5 .wizard-step[data-step="3"] .step-actions-v4 #startTourBtn {
  margin-left: auto;
}

body.modern-v5 .btn {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 700;
}

body.modern-v5 .btn.primary {
  background: linear-gradient(135deg, #3182f6, #1d4ed8);
  color: white;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.24);
}

body.modern-v5 .btn:not(.primary) {
  background: rgba(255,255,255,0.04);
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

body.modern-v5 #summaryBox .tour-card {
  padding: 28px;
}

body.modern-v5 #summaryBox h4 {
  font-size: 30px;
  margin-bottom: 12px;
}

body.modern-v5 .metric-pill {
  border-radius: 16px;
}

@media (max-width: 1180px) {
  body.modern-v5 .wizard-main-grid,
  body.modern-v5 .wizard-hero,
  body.modern-v5 .split-headline {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .avatar-inline-actions {
    justify-items: stretch;
  }
}

@media (max-width: 860px) {
  body.modern-v5 .brand-copy {
    display: none;
  }

  body.modern-v5 .brand-mark {
    width: 92px;
  }

  body.modern-v5 .wizard-v4-shell,
  body.modern-v5 .wizard-review-shell,
  body.modern-v5 .step-actions-v4 {
    width: calc(100vw - 20px);
  }

  body.modern-v5 .modern-panel {
    padding: 18px;
    border-radius: 22px;
  }

  body.modern-v5 .cards-grid.compact-grid,
  body.modern-v5 .avatar-grid-inline,
  body.modern-v5 .zone-grid,
  body.modern-v5 .modern-form-grid,
  body.modern-v5 .tour-result-card {
    grid-template-columns: 1fr;
  }

  body.modern-v5 .tour-result-body {
    padding: 0 18px 18px;
  }

  body.modern-v5 .wizard-hero h2 {
    font-size: 34px;
  }
}

@media (max-width: 980px) {
  body.modern-v5.wizard-onboarding-mode .wizard-view {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    margin: 6px auto 12px !important;
    padding: 10px !important;
    overflow-x: hidden !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"],
  body.modern-v5.wizard-onboarding-mode .wizard-v4-shell,
  body.modern-v5.wizard-onboarding-mode .wizard-review-shell,
  body.modern-v5.wizard-onboarding-mode .step-actions-v4,
  body.modern-v5.wizard-onboarding-mode .wizard-main-grid,
  body.modern-v5.wizard-onboarding-mode .wizard-main-left,
  body.modern-v5.wizard-onboarding-mode .wizard-main-right,
  body.modern-v5.wizard-onboarding-mode .wizard-hero {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-main-grid,
  body.modern-v5.wizard-onboarding-mode .wizard-hero,
  body.modern-v5.wizard-onboarding-mode .modern-form-grid,
  body.modern-v5.wizard-onboarding-mode .avatar-grid-inline,
  body.modern-v5.wizard-onboarding-mode .zone-grid,
  body.modern-v5.wizard-onboarding-mode .tour-result-card {
    grid-template-columns: 1fr !important;
  }

  body.modern-v5.wizard-onboarding-mode #planOptions,
  body.modern-v5.wizard-onboarding-mode #typeOptions {
    grid-template-columns: 1fr !important;
  }

  body.modern-v5.wizard-onboarding-mode .wizard-panel,
  body.modern-v5.wizard-onboarding-mode .modern-panel,
  body.modern-v5.wizard-onboarding-mode .pick-card,
  body.modern-v5.wizard-onboarding-mode .zone-card,
  body.modern-v5.wizard-onboarding-mode .tour-result-card {
    overflow: hidden !important;
  }
}

/* =====================================================================
   2026-03-13 — REAL MOBILE-FIRST ONBOARDING REBUILD (steps 0,1,2 only)
   ===================================================================== */
body.modern-v5.wizard-onboarding-mode {
  --onboarding-bg-1: #060816;
  --onboarding-bg-2: #0a1030;
  --onboarding-bg-3: #131d48;
  --onboarding-surface: rgba(13, 18, 46, 0.82);
  --onboarding-surface-2: rgba(19, 25, 63, 0.92);
  --onboarding-border: rgba(255, 255, 255, 0.1);
  --onboarding-text: #f5f7ff;
  --onboarding-text-soft: rgba(229, 234, 255, 0.78);
  --onboarding-accent: #8ea8ff;
  --onboarding-accent-2: #d79bff;
  --onboarding-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body.modern-v5.wizard-onboarding-mode .topbar {
  background: linear-gradient(180deg, rgba(8, 12, 31, 0.94), rgba(8, 12, 31, 0.68));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.modern-v5.wizard-onboarding-mode .topbar-head {
  min-height: 72px;
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt {
  min-height: calc(100vh - 72px);
  padding: 16px 14px 28px;
  background:
    radial-gradient(circle at top left, rgba(142, 168, 255, 0.24), transparent 36%),
    radial-gradient(circle at top right, rgba(215, 155, 255, 0.18), transparent 30%),
    linear-gradient(180deg, var(--onboarding-bg-1) 0%, var(--onboarding-bg-2) 44%, var(--onboarding-bg-3) 100%);
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::before,
body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.55;
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::before {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: 100px;
  right: -20px;
  background: rgba(142, 168, 255, 0.28);
}

body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt::after {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  bottom: 20px;
  left: -40px;
  background: rgba(215, 155, 255, 0.18);
}

body.modern-v5.wizard-onboarding-mode .wizard-progress {
  position: relative;
  z-index: 2;
  margin: 0 auto 12px;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 16, 41, 0.66);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.modern-v5.wizard-onboarding-mode .wizard-progress span {
  color: rgba(241, 244, 255, 0.9);
  letter-spacing: 0.08em;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"],
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"],
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="2"] {
  min-height: calc(100vh - 132px);
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== REAL INTRO REBUILD B ===== */
body.modern-v5.wizard-onboarding-mode .wizard-view.wizard-view-rebuilt {
  background:
    radial-gradient(circle at top, rgba(31, 91, 255, 0.24), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255, 197, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #020611 0%, #071225 48%, #04070f 100%);
}

body.modern-v5.wizard-onboarding-mode .intro-screen {
  min-height: min(100dvh - 104px, 880px);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(18px, 4vw, 32px);
  background: transparent;
}

body.modern-v5.wizard-onboarding-mode .intro-card {
  position: relative;
  width: min(100%, 720px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 28px 20px 22px;
  border-radius: 28px;
  border: 1px solid rgba(121, 167, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(6, 10, 22, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

body.modern-v5.wizard-onboarding-mode .intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(93,145,255,0.18), rgba(255,203,79,0.14));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

body.modern-v5.wizard-onboarding-mode .intro-card > * {
  position: relative;
  z-index: 1;
}

body.modern-v5.wizard-onboarding-mode .intro-card-splash {
  min-height: min(100dvh - 124px, 760px);
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

body.modern-v5.wizard-onboarding-mode .intro-logo-wrap {
  width: min(100%, 270px);
  display: grid;
  place-items: center;
  padding: 6px 0 2px;
}

body.modern-v5.wizard-onboarding-mode .intro-logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
}

body.modern-v5.wizard-onboarding-mode .intro-copy-stack {
  display: grid;
  gap: 12px;
  width: min(100%, 520px);
}

body.modern-v5.wizard-onboarding-mode .intro-eyebrow,
body.modern-v5.wizard-onboarding-mode .intro-step {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.64);
}

body.modern-v5.wizard-onboarding-mode .intro-title,
body.modern-v5.wizard-onboarding-mode .intro-section-title {
  margin: 0;
  color: #f8fbff;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

body.modern-v5.wizard-onboarding-mode .intro-title {
  font-size: clamp(40px, 10vw, 74px);
}

body.modern-v5.wizard-onboarding-mode .intro-section-title {
  font-size: clamp(30px, 7vw, 46px);
}

body.modern-v5.wizard-onboarding-mode .intro-lead,
body.modern-v5.wizard-onboarding-mode .intro-sub {
  margin: 0;
  color: rgba(236, 242, 248, 0.86);
  line-height: 1.55;
}

body.modern-v5.wizard-onboarding-mode .intro-lead {
  font-size: clamp(18px, 4.3vw, 24px);
  font-weight: 600;
  color: rgba(248, 251, 255, 0.96);
}

body.modern-v5.wizard-onboarding-mode .intro-sub {
  font-size: clamp(15px, 3.8vw, 18px);
}

body.modern-v5.wizard-onboarding-mode .intro-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

body.modern-v5.wizard-onboarding-mode .btn-intro {
  min-width: 170px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b1220 !important;
  background: linear-gradient(135deg, #d29a2e, #f0c76f 58%, #ffdd93) !important;
  border: 1px solid rgba(255, 219, 145, 0.38) !important;
  box-shadow: 0 16px 28px rgba(210, 154, 46, 0.26) !important;
}

body.modern-v5.wizard-onboarding-mode .intro-bottom-nav {
  width: min(100%, 760px);
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: stretch;
  margin-top: 16px;
  padding: 0 2px;
}

body.modern-v5.wizard-onboarding-mode .intro-bottom-nav.intro-bottom-nav-wide {
  width: min(1400px, calc(100vw - 32px));
  max-width: none;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  appearance: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f0c76f !important;
  text-shadow: 0 0 18px rgba(210, 154, 46, 0.28);
  cursor: pointer;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow:hover,
body.modern-v5.wizard-onboarding-mode .intro-nav-arrow:focus-visible {
  transform: translateY(-1px);
  color: #ffdd93 !important;
  text-shadow: 0 0 22px rgba(240, 199, 111, 0.38);
  outline: none;
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow span {
  display: block;
  font-size: clamp(56px, 11vw, 88px);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-4px);
}

body.modern-v5.wizard-onboarding-mode .intro-nav-arrow-back {
  justify-self: start;
}

body.modern-v5.wizard-onboarding-mode .intro-card-language {
  width: min(100%, 760px);
  gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .intro-section-copy {
  max-width: 560px;
}

body.modern-v5.wizard-onboarding-mode .language-quick-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.modern-v5.wizard-onboarding-mode .language-quick-btn {
  min-height: 72px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
}

body.modern-v5.wizard-onboarding-mode .language-quick-btn.active {
  border-color: rgba(255, 170, 24, 0.72);
  background: linear-gradient(180deg, rgba(255,170,24,0.18), rgba(255,255,255,0.05));
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

body.modern-v5.wizard-onboarding-mode .language-quick-label {
  color: #f7fbff;
  font-size: 15px;
  font-weight: 700;
}

body.modern-v5.wizard-onboarding-mode .language-quick-sub {
  color: rgba(222, 230, 240, 0.72);
  font-size: 12px;
}

body.modern-v5.wizard-onboarding-mode .intro-select-shell,
body.modern-v5.wizard-onboarding-mode .intro-select-shell .language-select {
  border-radius: 18px;
  background: rgba(7, 15, 26, 0.92);
  border-color: rgba(255,255,255,0.10);
}

body.modern-v5.wizard-onboarding-mode .language-current-pill-clean {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(236,242,248,0.84);
}

body.modern-v5.wizard-onboarding-mode .intro-screen-city {
  width: 100%;
}

body.modern-v5.wizard-onboarding-mode .intro-card-city {
  width: min(1120px, 100%);
  gap: 20px;
}

body.modern-v5.wizard-onboarding-mode .city-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.modern-v5.wizard-onboarding-mode .city-card {
  position: relative;
  min-height: 220px;
  border: none;
  border-radius: 28px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  appearance: none;
  background-color: #0a1220;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  isolation: isolate;
  transition: transform 140ms ease, box-shadow 140ms ease, outline-color 140ms ease;
}

body.modern-v5.wizard-onboarding-mode .city-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 220ms ease, transform 320ms ease;
}

body.modern-v5.wizard-onboarding-mode .city-card-media.is-pending {
  opacity: 0;
  transform: scale(1.018);
}

body.modern-v5.wizard-onboarding-mode .city-card-media.is-ready {
  opacity: 1;
  transform: scale(1);
}

body.modern-v5.wizard-onboarding-mode .city-card:hover,
body.modern-v5.wizard-onboarding-mode .city-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
  outline: none;
}

body.modern-v5.wizard-onboarding-mode .city-card.active {
  outline: none;
  box-shadow:
    inset 0 0 0 3px rgba(217, 164, 65, 0.78),
    0 0 0 2px rgba(217, 164, 65, 0.44),
    0 18px 40px rgba(0, 0, 0, 0.30),
    0 0 28px rgba(217, 164, 65, 0.16);
}

body.modern-v5.wizard-onboarding-mode .city-card:disabled {
  cursor: default;
}

body.modern-v5.wizard-onboarding-mode .city-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.14) 0%, rgba(3, 8, 18, 0.48) 45%, rgba(3, 8, 18, 0.88) 100%),
    linear-gradient(135deg, rgba(240, 199, 111, 0.14), transparent 48%);
  z-index: 1;
}

body.modern-v5.wizard-onboarding-mode .city-card-disabled .city-card-overlay {
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.24) 0%, rgba(3, 8, 18, 0.56) 45%, rgba(3, 8, 18, 0.9) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
}

body.modern-v5.wizard-onboarding-mode .city-card-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
}

body.modern-v5.wizard-onboarding-mode .city-selected-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.96);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.modern-v5.wizard-onboarding-mode .city-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(240, 199, 111, 0.98);
}

body.modern-v5.wizard-onboarding-mode .city-card-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  line-height: 1.05;
  color: #f8fbff;
}

body.modern-v5.wizard-onboarding-mode .city-card-subtitle {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(236, 242, 248, 0.88);
  max-width: 52ch;
}

body.modern-v5.wizard-onboarding-mode .city-card-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

body.modern-v5.wizard-onboarding-mode .city-card-detail-line {
  font-size: 15px;
  line-height: 1.4;
  color: rgba(226, 234, 244, 0.8);
}

@media (min-width: 760px) {
  body.modern-v5.wizard-onboarding-mode .language-quick-grid-clean {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.modern-v5.wizard-onboarding-mode .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1120px) {
  body.modern-v5.wizard-onboarding-mode .city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.modern-v5.wizard-onboarding-mode .intro-bottom-nav {
    margin-top: 14px;
    padding: 0;
  }

  body.modern-v5.wizard-onboarding-mode .city-card {
    min-height: 200px;
    padding: 20px;
    border-radius: 24px;
  }
}


/* 2026-03-13 reset first page: futuristic intro + 10-language drawer */
body.wizard-splash-mode .wizard-progress,
body.wizard-splash-mode .topbar {
  display: none !important;
}

body.wizard-splash-mode .wizard-view {
  padding: 0;
  min-height: 100dvh;
}

.neo-intro-screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top, rgba(31, 91, 255, 0.24), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(255, 197, 61, 0.16), transparent 24%),
    linear-gradient(180deg, #020611 0%, #071225 48%, #04070f 100%);
}

.neo-intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(82, 138, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 138, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0.95));
  pointer-events: none;
}

body.wizard-splash-mode .neo-intro-grid {
  display: none !important;
}

.neo-intro-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.neo-intro-glow-a {
  width: 220px;
  height: 220px;
  top: 7%;
  left: -40px;
  background: rgba(44, 118, 255, 0.28);
}

.neo-intro-glow-b {
  width: 180px;
  height: 180px;
  right: -24px;
  bottom: 14%;
  background: rgba(255, 193, 58, 0.18);
}

.neo-intro-card {
  position: relative;
  width: min(100%, 470px);
  z-index: 1;
  padding: 28px 20px 22px;
  border-radius: 28px;
  border: 1px solid rgba(121, 167, 255, 0.24);
  background: linear-gradient(180deg, rgba(10, 18, 37, 0.92), rgba(6, 10, 22, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.neo-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(93,145,255,0.18), rgba(255,203,79,0.14));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.neo-intro-copy {
  display: grid;
  gap: 12px;
  text-align: center;
}

.neo-intro-kicker {
  max-width: 360px;
  margin: 0 auto;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #9fd8ff;
  text-wrap: balance;
}

.neo-intro-kicker:empty {
  display: none;
}

.neo-intro-title {
  margin: 0;
  font-size: clamp(31px, 7.8vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f8ff;
  text-wrap: balance;
}

.neo-intro-lead {
  margin: 0 auto 16px;
  max-width: 430px;
  text-align: center;
  font-size: clamp(17px, 4.1vw, 22px);
  line-height: 1.34;
  letter-spacing: -0.01em;
  font-weight: 760;
  text-transform: none;
  color: rgba(236, 244, 255, 0.96);
  text-wrap: balance;
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
  animation-delay: 280ms;
}

@keyframes neoIntroLeadIn {
  from {
    opacity: 0;
    transform: translateX(-14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .neo-intro-lead,
  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-title,
  body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-section-copy {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

.neo-intro-title:empty {
  display: none;
}

.neo-intro-helper {
  margin: 0;
}

.neo-intro-logo-shell {
  margin: 26px auto 20px;
  width: min(100%, 300px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.neo-intro-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.neo-intro-language-zone {
  margin-top: 12px;
}

.hero-language-menu {
  width: 100%;
}

.hero-language-menu[open] .hero-language-summary-icon {
  transform: rotate(180deg);
}

.hero-language-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(113, 162, 255, 0.26);
  background: linear-gradient(180deg, rgba(12, 22, 44, 0.88), rgba(7, 12, 24, 0.94));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  cursor: pointer;
}

.hero-language-summary::-webkit-details-marker {
  display: none;
}

.hero-language-summary-copy {
  display: grid;
  gap: 4px;
}

.hero-language-summary-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(151, 188, 255, 0.74);
}

.hero-language-summary-value {
  font-size: 18px;
  line-height: 1.15;
  color: #f3f7ff;
}

.hero-language-summary-icon {
  font-size: 20px;
  color: rgba(190, 213, 255, 0.9);
  transition: transform 180ms ease;
}

.hero-language-panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(115, 164, 255, 0.18);
  background: rgba(5, 10, 22, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-language-panel-title {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(165, 198, 255, 0.82);
}

.hero-language-panel-copy {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(219, 230, 255, 0.72);
}

.hero-language-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-language-grid .language-quick-btn {
  min-height: 66px;
  text-align: left;
  padding: 12px 12px 11px;
  border-radius: 16px;
  border: 1px solid rgba(110, 160, 255, 0.14);
  background: linear-gradient(180deg, rgba(15, 26, 53, 0.94), rgba(8, 14, 28, 0.96));
  box-shadow: none;
}

.hero-language-grid .language-quick-btn.active {
  border-color: rgba(255, 201, 78, 0.62);
  box-shadow: 0 0 0 1px rgba(255, 201, 78, 0.24), 0 12px 22px rgba(0, 0, 0, 0.18);
}

.hero-language-grid .language-quick-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f5f8ff;
}

.hero-language-grid .language-quick-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 205, 255, 0.66);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-copy,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-language-zone,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary-copy,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-panel-copy {
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary {
  justify-content: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-summary-copy {
  justify-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .hero-language-grid .language-quick-btn {
  text-align: center;
}

.neo-language-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.neo-intro-actions {
  margin-top: 18px;
}

.neo-intro-enter {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b1220;
  background: linear-gradient(135deg, #d29a2e, #f0c76f 58%, #ffdd93);
  border: 1px solid rgba(255, 219, 145, 0.38);
  box-shadow: 0 16px 28px rgba(210, 154, 46, 0.26);
}

body.modern-v5.wizard-onboarding-mode #wizardSplashBtn {
  color: #0b1220 !important;
  background: linear-gradient(135deg, #d29a2e, #f0c76f 58%, #ffdd93) !important;
  border: 1px solid rgba(255, 219, 145, 0.38) !important;
  box-shadow: 0 16px 28px rgba(210, 154, 46, 0.26) !important;
}

.wizard-step-legacy-skip {
  display: none !important;
}

@media (min-width: 720px) {
  .neo-intro-screen {
    padding-left: 24px;
    padding-right: 24px;
  }

  .neo-intro-card {
    width: min(100%, 560px);
    padding: 34px 28px 26px;
  }

  .neo-intro-logo-shell {
    width: min(100%, 340px);
  }
}

/* =====================================================================
   2026-03-18 - clean setup experience
   ===================================================================== */
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-grid {
  grid-template-columns: 1fr !important;
  max-width: 760px;
  margin: 0 auto;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-left-clean {
  display: grid;
  gap: 18px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel-title {
  opacity: 0;
  transform: translateX(-14px);
  filter: blur(6px);
  will-change: transform, opacity, filter;
  animation: neoIntroLeadIn 1280ms cubic-bezier(0.22, 1, 0.36, 1) 180ms forwards;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #wAvatarTitle {
  animation-delay: 280ms;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #wTypeTitle {
  animation-delay: 380ms;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-panel {
  padding: 22px 20px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-shell + .setup-choice-shell {
  margin-top: 12px;
}

/* 2026-03-18 Remove visible mega-panels from city/setup screens */
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-card-city,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-panel.setup-panel,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-v4-shell,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .wizard-main-left-clean {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="1"] .intro-card-city::before {
  display: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="0"] .neo-intro-card::before {
  display: none !important;
}

/* 2026-03-18 Lighten avatar picker cards: no heavy panels unless selected */
body.modern-v5 .avatar-grid-modal .avatar-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.modern-v5 .avatar-grid-modal .avatar-card.active {
  background: transparent !important;
  box-shadow: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-card:not(.active) {
  opacity: 0.94;
  transform: none;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-box {
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-video,
body.modern-v5 .avatar-grid-modal .avatar-preview-image {
  display: block;
  border-radius: 22px;
}

body.modern-v5 .avatar-grid-modal .avatar-card.active .avatar-preview-box {
  border-color: rgba(217, 164, 65, 0.92) !important;
  box-shadow:
    inset 0 0 0 2px rgba(217, 164, 65, 0.78),
    0 0 0 1px rgba(217, 164, 65, 0.38),
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(217, 164, 65, 0.16) !important;
}

body.modern-v5 .avatar-grid-modal .avatar-preview-fallback {
  min-height: 184px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 12, 24, 0.36);
}

body.modern-v5 .avatar-grid-modal .avatar-meta-row {
  position: relative;
  grid-template-columns: 1fr !important;
  justify-items: center;
  text-align: center;
  row-gap: 2px;
  margin-top: 12px;
  padding-right: 0;
}

body.modern-v5 .avatar-grid-modal .avatar-name-stack,
body.modern-v5 .avatar-grid-modal .avatar-role-stack {
  align-items: center;
  text-align: center;
  min-height: 0;
  width: 100%;
}

body.modern-v5 .avatar-grid-modal .avatar-name-line,
body.modern-v5 .avatar-grid-modal .avatar-role-line {
  display: block;
  width: 100%;
  text-align: center;
}

body.modern-v5 .avatar-grid-modal .avatar-audio-toggle {
  position: absolute;
  top: 0;
  right: 0;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card {
  width: 100%;
  min-height: 164px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  color: #f8fafc;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-eyebrow {
  display: block;
  width: 100%;
  margin-bottom: 4px;
  color: rgba(255, 226, 163, 0.82);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-title {
  color: #f8fafc !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-detail-list {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-detail-line {
  color: rgba(255, 216, 138, 0.96) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.active {
  border-color: rgba(217, 164, 65, 0.96) !important;
  background: linear-gradient(180deg, rgba(46, 31, 9, 0.99), rgba(22, 16, 9, 0.99)) !important;
  box-shadow: inset 0 0 0 3px rgba(217, 164, 65, 0.84), 0 0 0 2px rgba(217, 164, 65, 0.52), 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 30px rgba(217, 164, 65, 0.22) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card {
  min-height: 156px;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  color: #f8fafc !important;
  font-size: 20px !important;
  text-align: center !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card {
  min-height: 138px !important;
  padding: 13px 12px !important;
  gap: 4px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title {
  font-size: 18px !important;
  line-height: 1.18 !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-detail-list,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-detail-list {
  margin-top: 8px !important;
  gap: 3px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #typeOptions .setup-choice-card .pick-card-detail-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] #zoneOptions .setup-choice-card .pick-card-detail-line {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .avatar-plan-badge {
  position: static;
  margin: 10px auto 0;
  align-self: center;
  justify-self: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-summary {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  color: rgba(236, 244, 255, 0.9);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-label {
  color: rgba(255, 226, 163, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-card {
  width: 100%;
  min-height: 0;
  padding: 0;
  cursor: default;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-chosen-card .avatar-preview-box {
  min-height: 184px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  row-gap: 2px;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-name-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-role-stack,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-name-line,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-meta-row-static .avatar-role-line {
  width: 100%;
  text-align: center;
  align-items: center;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .start-map-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card {
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card.active,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card.active {
  background: linear-gradient(180deg, rgba(19, 25, 63, 0.92), rgba(12, 18, 48, 0.96)) !important;
  border-color: rgba(217, 164, 65, 0.96) !important;
  box-shadow: inset 0 0 0 3px rgba(217, 164, 65, 0.84), 0 0 0 2px rgba(217, 164, 65, 0.52), 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 30px rgba(217, 164, 65, 0.22) !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card:not(.active) {
  opacity: 0.86;
  transform: scale(0.992);
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .avatar-entry-card .pick-card-title,
body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .setup-choice-card .pick-card-title {
  font-size: 18px !important;
  line-height: 1.18 !important;
  text-align: center !important;
  color: #f8fafc !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .pick-card-eyebrow {
  font-size: 12px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-section {
  font-size: 13px !important;
  margin-top: 11px !important;
  margin-bottom: 9px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-list {
  font-size: 13px !important;
  line-height: 1.48 !important;
  gap: 10px !important;
}

body.modern-v5.wizard-onboarding-mode .wizard-step[data-step="3"] .plan-pick-card .plan-pick-list li {
  line-height: 1.52 !important;
}


