/* Soft pastel theme: lavender background, frosted white cards, purple → pink accents.
   Loaded last on every page and only overrides what's already there; drop the <link> to go back to the blue look. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #f4f1fa; --surface: #ffffff; --surface-2: #f7f4fc; --ink: #1d1a2b; --muted: #6f6a82; --line: #ebe6f3;
  --accent: #8a2be2; --accent-ink: #ffffff; --accent-soft: #f3e9ff; --good: #13805c; --good-soft: #e1f6ec;
  --bad: #c43a4f; --bad-soft: #fde8ec; --warn: #9a6200; --warn-soft: #fff2db;
  --grad: linear-gradient(120deg, #7c3aed 0%, #c026d3 55%, #f0568c 100%);
  --grad-soft: linear-gradient(120deg, #efe4ff 0%, #fbe6f4 100%);
  --glass: rgb(255 255 255 / .78); --glass-line: rgb(255 255 255 / .9);
  --shadow: 0 1px 2px rgb(60 30 110 / .04), 0 10px 30px -12px rgb(90 50 150 / .16);
  --shadow-lg: 0 2px 4px rgb(60 30 110 / .04), 0 28px 60px -20px rgb(90 50 150 / .28);
  --r: 28px;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --cand: #8a2be2; --forced: #c026d3;
  --blob-1: #f9d7ec; --blob-2: #e4d6ff;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #120f1b; --surface: #1c1828; --surface-2: #171322; --ink: #efeaf8; --muted: #a39cb8; --line: #2c2640;
  --accent: #c79bff; --accent-ink: #ffffff; --accent-soft: #2b1f45; --good: #4fd19b; --good-soft: #10301f;
  --bad: #ff8a9b; --bad-soft: #3a1720; --warn: #f2bd5a; --warn-soft: #362810;
  --grad-soft: linear-gradient(120deg, #2b1f45 0%, #3a1d38 100%);
  --glass: rgb(28 24 40 / .78); --glass-line: rgb(255 255 255 / .06);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .55);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 28px 60px -20px rgb(0 0 0 / .7);
  --cand: #c79bff; --forced: #e879f9; --blob-1: #2e1830; --blob-2: #221a3d; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #120f1b; --surface: #1c1828; --surface-2: #171322; --ink: #efeaf8; --muted: #a39cb8; --line: #2c2640;
  --accent: #c79bff; --accent-ink: #ffffff; --accent-soft: #2b1f45; --good: #4fd19b; --good-soft: #10301f;
  --bad: #ff8a9b; --bad-soft: #3a1720; --warn: #f2bd5a; --warn-soft: #362810;
  --grad-soft: linear-gradient(120deg, #2b1f45 0%, #3a1d38 100%);
  --glass: rgb(28 24 40 / .78); --glass-line: rgb(255 255 255 / .06);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -12px rgb(0 0 0 / .55);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 28px 60px -20px rgb(0 0 0 / .7);
  --cand: #c79bff; --forced: #e879f9; --blob-1: #2e1830; --blob-2: #221a3d; color-scheme: dark }

/* ---- Page ---- */
body { font-family: var(--body);
  background: radial-gradient(60% 50% at 100% 0%, var(--blob-1) 0%, transparent 70%),
    radial-gradient(55% 45% at 0% 30%, var(--blob-2) 0%, transparent 70%), var(--bg);
  background-attachment: fixed }
h1, h2 { font-family: var(--display) }
h1 { font-weight: 600; letter-spacing: -0.045em }
h2 { font-weight: 600; letter-spacing: -0.02em }

/* ---- Header: light, no blue band ---- */
.hero { color: var(--ink); background: none; padding: 32px 16px 8px }
.hero::before { display: none }
.hero .arc { display: none }
.hero .lede { color: var(--muted); font-size: 17px }
.search-panel { margin-top: 0 }
@media (max-width: 640px) { .hero { padding-bottom: 4px } }

/* ---- Brand ---- */
.brandmark { display: inline-flex; align-items: center; gap: 10px; width: max-content; font: 600 20px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; margin-bottom: 18px }
.brandmark img { display: block; border-radius: 9px; box-shadow: 0 6px 14px -6px rgb(192 38 211 / .55) }
.topbar .brandmark { margin: 0; font-size: 17px; flex: none }
.topbar .brandmark img { width: 24px; height: 24px; border-radius: 7px }

/* ---- Tabs ---- */
.apptabs, .apptabs.light { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); gap: 2px }
.apptabs a, .apptabs.light a { font-family: var(--body); font-weight: 600; color: var(--muted) }
.apptabs a:hover, .apptabs.light a:hover { color: var(--ink); background: var(--surface-2) }
.apptabs a[aria-current="page"], .apptabs.light a[aria-current="page"] { color: var(--accent); background: var(--grad-soft) }
.apptabs:not(.light) { margin-bottom: 22px }

/* ---- Surfaces ---- */
.panel { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px) }
.search-panel { box-shadow: var(--shadow-lg); border-color: var(--glass-line) }
.field { background: var(--surface); border-color: var(--line); border-radius: 18px }
.field:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent) }
.field > span, .multi summary span, th, .lbl, .leg-line .lbl, .sub-h, .dp-head > b, .dp-tab small { letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: 12px }
.toolbar { background: transparent; border: 0; padding: 0 }
.engine { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow) }
.notice { border-radius: 18px }

/* ---- Buttons and chips ---- */
button { font-family: var(--body); font-weight: 600 }
button[type="submit"], #check-now, button.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgb(192 38 211 / .55) }
.dp-grid button.sel, .dp-grid button.sel:hover, .dp-grid button.end, .dp-grid button.end:hover { background: var(--grad); color: #fff }
.matrix button { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line) }
.matrix button.cheap { background: var(--good-soft) } .matrix button.dear { background: var(--warn-soft) }
.btn-ghost, .chipbtn, .checks > label, .srcpick > summary, .checks .checks > label, .specs li { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 8px -4px rgb(90 50 150 / .18); font-weight: 600 }
.btn-ghost { color: var(--accent) }
.chipbtn[aria-pressed="true"], .checks > label:has(input:checked) { background: var(--grad-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent) }
.seg { background: var(--surface); border-color: var(--line) }
.seg input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgb(192 38 211 / .6) }
.swap { color: var(--accent) }
.chip.best-tag { background: var(--grad-soft); color: var(--accent) }
.progress > div { background: var(--grad) }

/* ---- Result cards (flights and cars) ---- */
.card { background: var(--surface); border: 1px solid var(--glass-line); border-radius: 26px; padding: 22px 24px; box-shadow: var(--shadow) }
/* Dark mode: the hover shadow vanishes against the dark page, so the border lights up instead. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent) } }
:root[data-theme="dark"] .card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent) }
.card.top { border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent), var(--shadow) }
.card .air { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em }
.card .air .dot { width: 10px; height: 10px; box-shadow: 0 0 0 7px var(--surface-2); margin: 0 8px 0 7px }
.legset > div { background: var(--surface-2); border-radius: 18px; padding: 12px 16px }
.leg-line .t { font-family: var(--display); font-weight: 600 }
.leg-line .mid i { border-top: 1px solid var(--line) }
.leg-line .mid i::before { box-shadow: inset 0 0 0 2px var(--accent) }
.leg-line .mid > span:first-child::after { color: var(--accent) }
.card .side { border-left: 1px dashed var(--line) }
.card .side .price { font-family: var(--display); font-weight: 600; font-size: 30px; letter-spacing: -0.03em; color: var(--ink) }
.card .side a.book { background: var(--grad-soft); color: var(--accent); box-shadow: none; padding: 13px 22px; font-weight: 600 }
.card .side a.book:hover { filter: none; background: var(--grad); color: #fff }
.best .total { font-family: var(--display); font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent }
.legs li { background: var(--surface); border-radius: 18px }
.legs .code, .ac .ac-code { background: var(--accent-soft); color: var(--accent) }
tr.is-best td, tr.is-best:hover td { background: var(--accent-soft) }
@media (max-width: 640px) { .card .side { border-left: 0; border-top: 1px dashed var(--line) } .card { padding: 18px } }

/* ---- Pop-ups ---- */
.ac, .dp { border-radius: 22px; border-color: var(--glass-line); box-shadow: var(--shadow-lg) }
.dp-back { background: rgb(40 20 70 / .35); backdrop-filter: blur(3px) }
