:root {
  --bg: #f3f7f6;
  --panel: #ffffff;
  --ink: #121b1f;
  --muted: #647176;
  --line: #dbe4e1;
  --green: #146b50;
  --blue: #245f8f;
  --amber: #b06f11;
  --red: #aa3f37;
  --shadow: 0 20px 60px rgba(18, 27, 31, 0.12);
  --soft-blue: #e8f1f6;
  --soft-green: #e7f3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(20, 107, 80, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(36, 95, 143, 0.1), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.is-hidden {
  display: none !important;
}

.quick-view {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  min-height: calc(100vh - 48px);
  align-content: center;
  margin: 0 auto;
}

.appeal-view {
  display: grid;
  gap: 16px;
  max-width: 1220px;
  min-height: calc(100vh - 48px);
  align-content: center;
  margin: 0 auto;
}

.appeal-hero {
  position: relative;
  display: grid;
  min-height: min(640px, calc(100vh - 150px));
  overflow: hidden;
  border: 1px solid rgba(18, 27, 31, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 27, 31, 0.9), rgba(18, 27, 31, 0.62) 48%, rgba(36, 95, 143, 0.18)),
    url("./assets/fare-visual.svg") center / cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.appeal-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  max-width: 760px;
  padding: clamp(28px, 6vw, 72px);
}

.compact-brand {
  margin-bottom: 34px;
}

.appeal-copy .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.appeal-copy h1 {
  max-width: 720px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.94;
}

.appeal-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  font-weight: 760;
  line-height: 1.5;
}

.appeal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.appeal-actions .ghost-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.appeal-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signal-card {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 132px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 38px rgba(18, 27, 31, 0.22);
}

.signal-card.primary {
  right: 16%;
  top: 24%;
}

.signal-card.secondary {
  right: 8%;
  bottom: 30%;
}

.signal-card.tertiary {
  right: 26%;
  bottom: 16%;
}

.appeal-preview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 12px 34px rgba(18, 27, 31, 0.08);
}

.appeal-preview span,
.appeal-preview strong {
  display: grid;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.appeal-preview span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.appeal-preview strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.appeal-showcase {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding-bottom: 6px;
}

.showcase-copy {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.showcase-copy h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.showcase-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 12px;
}

.showcase-card {
  display: grid;
  align-content: space-between;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 27, 31, 0.1);
  overflow: hidden;
}

.showcase-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.showcase-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.showcase-card p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-weight: 760;
  line-height: 1.45;
}

.mini-route,
.mini-bars,
.mini-windows {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4faf8;
}

.mini-route {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background:
    linear-gradient(rgba(36, 95, 143, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 95, 143, 0.1) 1px, transparent 1px),
    #edf5f7;
  background-size: 34px 34px;
}

.mini-route i {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 7px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-weight: 950;
}

.mini-route i:last-child {
  background: var(--blue);
}

.mini-route b {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 56px;
  height: 58px;
  border-top: 4px dashed var(--blue);
  border-radius: 50%;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(170, 63, 55, 0.08), transparent 38%),
    linear-gradient(180deg, transparent 45%, rgba(20, 107, 80, 0.1) 90%),
    #fbfcfa;
}

.mini-bars i {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: rgba(36, 95, 143, 0.24);
  border-bottom: 5px solid var(--blue);
}

.mini-bars i:nth-child(1) {
  height: 54%;
}

.mini-bars i:nth-child(2) {
  height: 82%;
  background: rgba(176, 111, 17, 0.24);
  border-bottom-color: var(--amber);
}

.mini-bars i:nth-child(3) {
  height: 42%;
  background: rgba(20, 107, 80, 0.22);
  border-bottom-color: var(--green);
}

.mini-windows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.mini-windows i {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(36, 95, 143, 0.14);
  color: var(--blue);
  font-style: normal;
  font-weight: 950;
}

.mini-windows i:first-child {
  background: rgba(20, 107, 80, 0.14);
  color: var(--green);
}

.action-card {
  background:
    linear-gradient(160deg, rgba(18, 27, 31, 0.94), rgba(36, 95, 143, 0.84)),
    #121b1f;
  color: #fff;
}

.action-card span,
.action-card p {
  color: rgba(255, 255, 255, 0.74);
}

.action-card button {
  width: 100%;
}

.quick-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.header-tools {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quick-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-form button {
  align-self: end;
}

.passenger-fields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.passenger-fields.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.passenger-fields input {
  min-width: 0;
}

.passenger-note {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.quick-result {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-decision {
  display: grid;
  gap: 7px;
}

.quick-decision span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
}

.quick-decision strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.quick-decision p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quick-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-metrics article {
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.quick-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.quick-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
  line-height: 1.2;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 2px;
}

.quick-actions span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.panel,
.chart-zone,
.release-panel,
.airline-zone,
.concept-note,
.locked-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 24px;
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 24px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: radial-gradient(circle at 70% 28%, #2d7ba8, var(--ink) 58%);
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.brand-mark::before {
  inset: 8px;
}

.brand-mark::after {
  width: 56px;
  height: 56px;
  transform: translate(14px, -14px);
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.route-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfa;
  outline: none;
}

.language-control {
  width: 116px;
  gap: 5px;
}

.language-control.compact {
  width: 96px;
}

.language-control span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-control select {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 85, 0.14);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.paywall-control {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.paywall-control span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.paywall-control button {
  background: var(--ink);
  white-space: nowrap;
}

.content {
  display: grid;
  gap: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 6px 2px 0;
}

.analysis-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(18, 27, 31, 0.08);
}

.analysis-steps button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 58px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

.analysis-steps button:hover,
.analysis-steps button:focus {
  border-color: rgba(20, 107, 80, 0.2);
  background: var(--soft-green);
  color: var(--ink);
}

.analysis-steps button.is-active {
  border-color: rgba(20, 107, 80, 0.28);
  background: linear-gradient(135deg, var(--soft-green), var(--soft-blue));
  color: var(--ink);
}

.analysis-steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.analysis-steps strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.is-hidden-step {
  display: none !important;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.data-source {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.data-source.is-live {
  border-color: rgba(31, 122, 85, 0.35);
  background: rgba(31, 122, 85, 0.09);
  color: var(--green);
}

.data-source.is-missing {
  border-color: rgba(185, 121, 18, 0.32);
  background: rgba(185, 121, 18, 0.1);
  color: var(--amber);
}

.summary div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.summary strong {
  display: block;
  margin-top: 5px;
  font-size: 1.02rem;
}

.chart-zone {
  padding: 20px;
}

.route-map-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.route-map-copy {
  display: grid;
  align-content: start;
}

.route-map-copy h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.route-map-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.route-map-stage {
  min-width: 0;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 54% 42%, rgba(36, 95, 143, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 246, 0.82)),
    #edf5f7;
}

#routeMap {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.map-globe {
  fill: rgba(255, 255, 255, 0.46);
  stroke: rgba(36, 95, 143, 0.28);
  stroke-width: 2;
}

.map-graticule path {
  fill: none;
  stroke: rgba(36, 95, 143, 0.22);
  stroke-dasharray: 4 8;
  stroke-linecap: round;
  stroke-width: 1.2;
}

.world-map path {
  fill: rgba(20, 107, 80, 0.2);
  stroke: rgba(20, 107, 80, 0.34);
  stroke-width: 1.5;
}

.map-equator {
  stroke: rgba(36, 95, 143, 0.14);
  stroke-dasharray: 5 10;
  stroke-width: 1.5;
}

.map-route-shadow {
  fill: none;
  stroke: rgba(18, 27, 31, 0.14);
  stroke-linecap: round;
  stroke-width: 8;
}

.map-route-line {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 9 9;
  stroke-linecap: round;
  stroke-width: 3.5;
  filter: url(#routeMapGlow);
}

.map-node circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 4;
}

.map-node.stop circle {
  stroke: var(--amber);
}

.map-node.destination circle {
  stroke: var(--blue);
}

.map-node text,
.map-caption {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.map-plane path {
  fill: var(--blue);
  filter: url(#routeMapGlow);
}

.route-map-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.route-map-points article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.route-map-points span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.route-map-points strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
}

.route-map-points p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.travel-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 190px;
  background:
    linear-gradient(180deg, rgba(248, 252, 251, 0.16), rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.86) 0 8%, transparent 9%),
    radial-gradient(circle at 77% 69%, rgba(255, 255, 255, 0.86) 0 7%, transparent 8%),
    linear-gradient(135deg, #dceff4, #f7fbfa 54%, #dcece5);
  box-shadow: var(--shadow);
}

.travel-visual::before,
.travel-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.travel-visual::before {
  inset: 0;
  background:
    linear-gradient(rgba(36, 95, 143, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 95, 143, 0.14) 1px, transparent 1px);
  background-size: 118px 58px, 118px 58px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 86%, transparent);
}

.travel-visual::after {
  right: -8%;
  bottom: -22%;
  width: 70%;
  height: 58%;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(9deg, rgba(20, 107, 80, 0.26), rgba(20, 107, 80, 0.06)),
    linear-gradient(160deg, transparent 28%, rgba(176, 111, 17, 0.18) 29% 36%, transparent 37%);
}

.travel-window {
  position: relative;
  z-index: 1;
  min-height: 190px;
}

.travel-window-frame {
  position: absolute;
  left: 38px;
  top: 28px;
  width: min(250px, 42%);
  height: 128px;
  border: 18px solid rgba(255, 255, 255, 0.86);
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 70%, rgba(20, 107, 80, 0.68) 0 5px, transparent 6px),
    radial-gradient(circle at 54% 50%, rgba(176, 111, 17, 0.72) 0 5px, transparent 6px),
    radial-gradient(circle at 84% 66%, rgba(36, 95, 143, 0.72) 0 5px, transparent 6px),
    linear-gradient(160deg, transparent 39%, rgba(20, 107, 80, 0.58) 40% 43%, transparent 44%),
    linear-gradient(18deg, transparent 50%, rgba(36, 95, 143, 0.5) 51% 54%, transparent 55%),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 18px 38px rgba(18, 27, 31, 0.12);
}

.travel-plane {
  position: absolute;
  right: 38px;
  top: 52px;
  width: min(300px, 46%);
  height: 92px;
  background: var(--blue);
  clip-path: polygon(0 40%, 73% 52%, 100% 20%, 88% 64%, 100% 91%, 71% 75%, 10% 89%, 29% 62%);
  box-shadow: 0 24px 40px rgba(18, 27, 31, 0.22);
}

.origin-dot,
.stop-dot,
.destination-dot {
  position: absolute;
}

.visual-v2 {
  display: grid;
  gap: 18px;
  max-width: 1220px;
  min-height: calc(100vh - 48px);
  margin: 0 auto;
}

.v2-topbar,
.v2-actions,
.v2-hero,
.v2-panel-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.v2-topbar {
  padding-top: 4px;
}

.v2-actions {
  align-items: stretch;
}

.v2-hero {
  min-height: 250px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(18, 27, 31, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(18, 27, 31, 0.9), rgba(18, 27, 31, 0.68) 48%, rgba(36, 95, 143, 0.46)),
    url("./assets/fare-visual.svg") center / cover;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.v2-copy {
  display: grid;
  align-content: center;
  max-width: 690px;
}

.v2-copy .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.v2-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
}

.v2-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.45;
}

.v2-command {
  align-self: end;
  display: grid;
  min-width: 230px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.v2-command span,
.v2-command small,
.v2-map-panel span,
.v2-chart-panel span,
.v2-window-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.v2-command span,
.v2-command small {
  color: rgba(255, 255, 255, 0.72);
}

.v2-command strong {
  margin: 8px 0;
  font-size: 2rem;
}

.v2-intelligence {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
}

.v2-map-panel,
.v2-chart-panel,
.v2-window-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.v2-map-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.v2-map-panel strong,
.v2-chart-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.16rem;
}

.v2-route-stage {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(36, 95, 143, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 95, 143, 0.11) 1px, transparent 1px),
    radial-gradient(circle at 18% 28%, rgba(20, 107, 80, 0.26), transparent 24%),
    radial-gradient(circle at 82% 70%, rgba(176, 111, 17, 0.22), transparent 25%),
    #edf5f7;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.v2-airport {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 8px solid #fff;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 20px 38px rgba(18, 27, 31, 0.18);
}

.v2-airport.origin {
  left: 24px;
  top: 54px;
}

.v2-airport.destination {
  right: 24px;
  bottom: 52px;
  background: var(--blue);
}

.v2-route-line {
  position: absolute;
  left: 84px;
  right: 84px;
  top: 142px;
  height: 126px;
  border-top: 4px dashed var(--blue);
  border-radius: 50%;
  transform: rotate(16deg);
}

.v2-route-line.is-direct {
  border-top-style: solid;
}

.v2-plane {
  position: absolute;
  left: 50%;
  top: 138px;
  width: 86px;
  height: 38px;
  background: var(--ink);
  clip-path: polygon(0 42%, 72% 52%, 100% 5%, 86% 64%, 100% 95%, 69% 77%, 5% 92%, 24% 61%);
  transform: translateX(-50%) rotate(18deg);
  box-shadow: 0 16px 28px rgba(18, 27, 31, 0.24);
}

.v2-chart-panel {
  min-width: 0;
  padding: 18px;
}

.v2-panel-head {
  margin-bottom: 14px;
}

#v2Risk {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(176, 111, 17, 0.12);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
}

.v2-timeline {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(170, 63, 55, 0.08), transparent 34%),
    linear-gradient(180deg, transparent 40%, rgba(20, 107, 80, 0.1) 84%),
    #fbfcfa;
}

.v2-price-band {
  position: absolute;
  left: 24px;
  right: 24px;
  border-top: 1px solid rgba(18, 27, 31, 0.12);
}

.v2-price-band.high {
  top: 22%;
}

.v2-price-band.mid {
  top: 50%;
}

.v2-price-band.low {
  top: 76%;
}

.v2-window-marker {
  position: absolute;
  z-index: 2;
  min-width: 74px;
  height: 78px;
  border-radius: 8px 8px 0 0;
  background: rgba(36, 95, 143, 0.24);
  border: 1px solid rgba(36, 95, 143, 0.28);
  border-bottom: 5px solid var(--blue);
}

.v2-window-marker.primary {
  background: rgba(20, 107, 80, 0.22);
  border-color: rgba(20, 107, 80, 0.32);
  border-bottom-color: var(--green);
}

.v2-window-marker i {
  position: absolute;
  left: 50%;
  top: 9px;
  width: max-content;
  max-width: 150px;
  transform: translateX(-50%);
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.v2-axis {
  position: absolute;
  bottom: 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.v2-axis.far {
  left: 24px;
}

.v2-axis.near {
  right: 24px;
}

.v2-window-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.v2-window-card {
  min-height: 150px;
  padding: 16px;
}

.v2-window-card.primary {
  border-color: rgba(20, 107, 80, 0.34);
  background: linear-gradient(180deg, rgba(231, 243, 238, 0.9), #fff);
}

.v2-window-card strong {
  display: block;
  margin: 9px 0 14px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.v2-window-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.v2-window-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.v2-window-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.chart-head,
.table-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.chart-head h3,
.table-head h3 {
  margin-bottom: 4px;
}

.chart-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
}

.launch {
  background: var(--blue);
}

.rise {
  background: var(--red);
}

.drop {
  background: var(--green);
}

.economy {
  background: #4f6f52;
}

.comfort {
  background: var(--blue);
}

.business {
  background: var(--amber);
}

.first {
  background: var(--red);
}

.chart-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 246, 0.72)),
    linear-gradient(135deg, rgba(20, 107, 80, 0.08), rgba(36, 95, 143, 0.12));
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

.today-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  max-width: min(320px, calc(100% - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.12);
}

.chart-point {
  cursor: crosshair;
  outline: none;
  stroke: #fff;
  stroke-width: 2;
  transition: r 0.15s ease, filter 0.15s ease;
}

.chart-point:hover,
.chart-point:focus {
  r: 10;
  filter: drop-shadow(0 4px 10px rgba(23, 33, 29, 0.25));
}

.price-tooltip {
  position: absolute;
  z-index: 3;
  width: min(260px, calc(100% - 24px));
  padding: 12px;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(23, 33, 29, 0.18);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.price-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.price-tooltip strong,
.price-tooltip span {
  display: block;
}

.price-tooltip strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.price-tooltip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.price-tooltip dl {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.price-tooltip div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.price-tooltip dt {
  color: var(--muted);
  font-weight: 800;
}

.price-tooltip dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.watermark {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  text-align: center;
  background: repeating-linear-gradient(
    -28deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 16px,
    rgba(23, 33, 29, 0.08) 17px,
    rgba(23, 33, 29, 0.08) 34px
  );
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.watermark strong {
  display: block;
  color: rgba(23, 33, 29, 0.72);
  font-size: 3rem;
}

.watermark span {
  display: block;
  max-width: 290px;
  color: var(--ink);
  font-weight: 800;
}

.is-locked .watermark {
  display: grid;
}

.is-locked svg {
  filter: blur(2px);
}

.insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cabin-grid,
.airline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.airline-zone {
  overflow: hidden;
}

.airline-grid {
  padding: 0 20px 20px;
}

.cabin-card,
.airline-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.airline-card {
  cursor: pointer;
}

.cabin-card.is-active,
.airline-card.is-active {
  border-color: var(--green);
  box-shadow: inset 0 0 0 2px rgba(31, 122, 85, 0.12);
}

.airline-card:focus {
  outline: 3px solid rgba(31, 122, 85, 0.18);
  outline-offset: 2px;
}

.cabin-card h4,
.airline-card h4 {
  margin-bottom: 10px;
}

.cabin-card dl,
.airline-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.cabin-card div,
.airline-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.cabin-card dd,
.airline-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.airline-card.is-locked-preview {
  border-style: dashed;
}

.airline-card.is-locked-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -28deg,
    rgba(23, 33, 29, 0.04) 0,
    rgba(23, 33, 29, 0.04) 10px,
    rgba(31, 122, 85, 0.13) 11px,
    rgba(31, 122, 85, 0.13) 17px
  );
  pointer-events: none;
}

.airline-card.is-locked-preview dl {
  filter: blur(4px);
  user-select: none;
}

.airline-card.is-locked-preview dd {
  color: transparent;
  text-shadow: 0 0 8px rgba(23, 33, 29, 0.5);
}

.locked-chip {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.release-panel h3 {
  margin-bottom: 0;
}

.release-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.release-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.release-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.release-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 0.96rem;
}

.insights article {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(40, 100, 166, 0.12);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.tag.warning {
  background: rgba(180, 61, 50, 0.12);
  color: var(--red);
}

.tag.success {
  background: rgba(31, 122, 85, 0.12);
  color: var(--green);
}

.insights h4 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.insights p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.risk-note {
  padding: 14px 16px;
  border: 1px solid rgba(185, 121, 18, 0.28);
  border-radius: 8px;
  background: rgba(185, 121, 18, 0.08);
}

.fare-profile-note {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(36, 95, 143, 0.24);
  border-radius: 8px;
  background: rgba(232, 241, 246, 0.74);
}

.fare-profile-note h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
}

.fare-profile-note p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.concept-note {
  overflow: hidden;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}

.concept-grid article {
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.concept-grid strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.concept-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.risk-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 0.86rem;
}

.risk-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.locked-table {
  overflow: hidden;
}

.table-head {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.table-head span {
  color: var(--muted);
  font-weight: 800;
}

.table-mask {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1280px;
}

th,
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.blurred-row td {
  color: transparent;
  text-shadow: 0 0 9px rgba(23, 33, 29, 0.55);
  user-select: none;
}

@media (max-width: 960px) {
  .quick-view {
    align-content: start;
  }

  .quick-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passenger-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-form button {
    grid-column: 1 / -1;
  }

  .quick-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .search-panel {
    position: static;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-topbar,
  .v2-hero,
  .appeal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-command {
    align-self: stretch;
  }

  .v2-intelligence {
    grid-template-columns: 1fr;
  }

  .v2-window-grid {
    grid-template-columns: 1fr;
  }

  .appeal-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-copy {
    align-items: start;
    flex-direction: column;
  }

  .showcase-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .showcase-card {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }

  .analysis-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-panel {
    grid-template-columns: 1fr;
  }

  .route-map-card {
    grid-template-columns: 1fr;
  }

  .fare-profile-note {
    grid-template-columns: 1fr;
  }

  .release-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    padding: 12px;
  }

  .quick-header,
  .quick-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .appeal-view {
    align-content: start;
  }

  .appeal-hero {
    min-height: 600px;
  }

  .appeal-copy {
    padding: 22px;
  }

  .appeal-copy h1 {
    font-size: 2.55rem;
  }

  .appeal-signals {
    display: none;
  }

  .signal-card {
    min-width: 112px;
    min-height: 46px;
    font-size: 0.78rem;
  }

  .signal-card.primary {
    right: 7%;
    top: 50%;
  }

  .signal-card.secondary {
    right: auto;
    left: 8%;
    bottom: 18%;
  }

  .signal-card.tertiary {
    right: 8%;
    bottom: 8%;
  }

  .header-tools {
    flex-direction: column;
  }

  .language-control,
  .language-control.compact {
    width: 100%;
  }

  .quick-form,
  .quick-metrics,
  .passenger-fields,
  .passenger-fields.compact,
  .summary,
  .route-map-points,
  .insights,
  .cabin-grid,
  .airline-grid,
  .concept-grid,
  .release-metrics {
    grid-template-columns: 1fr;
  }

  .chart-head,
  .table-head,
  .paywall-control,
  .v2-panel-head,
  .v2-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .v2-hero {
    min-height: 0;
    padding: 20px;
  }

  .v2-copy h2 {
    font-size: 2.2rem;
  }

  .analysis-steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 1.55rem;
  }
}

/* Real provider offers remain separate from illustrative historical analysis. */
.demo-notice { padding: 14px 20px; background: #fff4d9; color: #60450b; border-radius: 12px; margin: 12px 0; }
.live-results { padding: 24px; background: #f2faf6; border: 1px solid #b8d9c7; border-radius: 16px; margin-bottom: 24px; }
.live-results[hidden] { display: none; }
.live-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.live-offer { padding: 16px; background: white; border-radius: 12px; border: 1px solid #dce8e0; }
.live-offer p { overflow-wrap: anywhere; }

.account-panel { max-width:1280px; margin:0 auto 18px; padding:24px; background:white; border:1px solid #dbe4e1; border-radius:16px; }
.account-panel h2 { margin-top:0; }
.account-panel form, .account-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-top:12px; }
.account-panel label { display:grid; gap:6px; }
.account-panel input { max-width:100%; padding:10px; border:1px solid #b8c8c0; border-radius:8px; }
.account-panel [hidden] { display:none; }
#billingTestNotice { color:#765207; }
