/* ==========================================================================
   Hayesim — design system (site-wide)
   Clean white storefront: medium-weight geometric type, 12px radii,
   mint-green primary actions, teal brand accents, pastel section panels.
   Page-specific components live in pages.css.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--font);

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8f8fb;
  --surface-3: #efeff4;
  --band: #f5f5f5;
  --ink: #292b2e;
  --ink-2: #4a4440;
  --muted: #6d6a70;
  --line: #e7e6ec;
  --line-strong: #d3d2da;

  --brand: #26a646;
  --brand-2: #1c8a39;
  --brand-grad: linear-gradient(105deg, #2fb552 0%, #1f9640 100%);
  --brand-soft: #e6f6e9;

  --cta: #fbe43a;
  --cta-hover: #f2d818;
  --cta-ink: #1a1a1a;
  --cta-soft: #fff4a8;
  --hero-bg: linear-gradient(165deg, #fff4c4 0%, #fffae3 45%, #f4fbe8 100%);

  --sky: #edf9fe;
  --cream: #fff8ef;
  --sand: #fbf3ea;
  --panel-grad: linear-gradient(135deg, #eef6ff 0%, #f1fbf6 55%, #fffaf0 100%);
  --announce-grad: linear-gradient(90deg, #e6f7ff 0%, #f6f0ff 40%, #fff3e6 100%);

  --success: #1b9256;
  --success-soft: #e3f5ea;
  --warning: #b97405;
  --warning-soft: #fdf1da;
  --danger: #d23f50;
  --danger-soft: #fdebed;

  --shadow-sm: 0 1px 2px rgb(41 43 46 / 0.05);
  --shadow: 0 6px 20px -8px rgb(41 43 46 / 0.16);
  --shadow-lg: 0 24px 50px -18px rgb(41 43 46 / 0.28);
  --ring: 0 0 0 3px rgb(38 166 70 / 0.35);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1152px;
  --gutter: 24px;
  --header-h: 72px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
h1, h2, h3, h4 { margin: 0; line-height: 1.17; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
p { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--brand); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, pre, samp { font-family: var(--font); }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
::selection { background: #fff1a0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 560px; margin-top: 8px; }
.eyebrow { display: inline-block; font-size: 0.95rem; color: var(--ink-2); margin-bottom: 12px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.panel { border-radius: var(--radius-xl); padding: 56px; background: var(--panel-grad); }
.panel-cream { background: var(--cream); }
.panel-sand { background: var(--sand); }
.panel-sky { background: var(--sky); }
@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 36px 0; }
  .panel { padding: 32px 18px; border-radius: var(--radius-lg); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 1px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, filter 0.15s;
}
.btn:hover { color: var(--btn-ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-cta, .btn-primary { --btn-bg: var(--cta); --btn-ink: var(--cta-ink); --btn-border: var(--cta); }
.btn-cta:hover, .btn-primary:hover { --btn-bg: var(--cta-hover); --btn-border: var(--cta-hover); }
.btn-brand { --btn-ink: #fff; --btn-border: transparent; background: var(--brand-grad); box-shadow: 0 8px 18px -10px rgb(38 166 70 / 0.8); }
.btn-brand:hover { color: #fff; border-color: transparent; filter: brightness(1.06); }
.btn-dark { --btn-bg: var(--ink); --btn-ink: #fff; --btn-border: var(--ink); }
.btn-dark:hover { color: #fff; opacity: 0.9; }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface-2); border-color: transparent; }
.btn-danger { --btn-ink: var(--danger); }
.btn-danger:hover { --btn-bg: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 0.7rem; font-weight: 700; display: grid; place-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--brand); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .input-action { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; color: var(--muted); }
.input-wrap .input-action:hover { background: var(--surface-2); color: var(--ink); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-2); }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-primary { background: var(--cta-soft); color: #5b4a00; }
.badge-brand { background: var(--brand-soft); color: var(--brand-2); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: #fff1d6; color: #8a5300; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-new { background: #e4ecff; color: #3651c9; height: 20px; font-size: 0.7rem; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* Flags */
.flag { width: 28px; height: 21px; flex: none; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); background: var(--surface-3); }
.flag-sm { width: 22px; height: 16px; border-radius: 3px; }
.flag-lg { width: 48px; height: 36px; border-radius: 6px; }
.flag-round { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); flex: none; background: var(--surface-3); }
.flag-round.sm { width: 26px; height: 26px; }
.flag-round.lg { width: 56px; height: 56px; }
.region-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); }
.region-icon svg { width: 22px; height: 22px; }
.region-icon.sm { width: 26px; height: 26px; }
.region-icon.sm svg { width: 15px; height: 15px; }
.region-icon.lg { width: 56px; height: 56px; }
.region-icon.lg svg { width: 28px; height: 28px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 24px; }
.card-title { font-size: 1.05rem; font-weight: 600; }

/* ---------- Announcement + demo bars ---------- */
.announce { background: #1d1d1f; font-size: 0.82rem; text-align: center; padding: 8px 16px; color: #e9e9ec; }
.announce b { color: var(--cta); }
.demo-bar { background: #fff6dc; color: #7a4d00; font-size: 0.82rem; font-weight: 500; border-bottom: 1px solid #f3e1a8; }
.demo-bar .container { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; text-align: center; }
.demo-bar svg { width: 15px; height: 15px; flex: none; }
.sandbox-note { grid-column: 1 / -1; margin: 0 0 4px; padding: 10px 14px; border-radius: 12px; background: #fff6dc; color: #7a4d00; border: 1px solid #f3e1a8; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgb(255 253 243 / 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px -12px rgb(0 0 0 / 0.25); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand span b { color: var(--brand); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a { color: var(--ink); font-size: 0.93rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgb(41 43 46 / 0.05); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-2); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.locale { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; color: var(--ink-2); padding: 0 8px; white-space: nowrap; }
.locale svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 0.8rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 0.92rem; text-align: left; text-decoration: none; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--ink); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown .dropdown-meta { padding: 8px 12px 10px; font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.dropdown svg { width: 17px; height: 17px; color: var(--muted); }
@media (max-width: 1060px) {
  .site-header .container { gap: 8px; }
  .menu-toggle { display: inline-grid; order: -1; }
  .brand { margin-right: auto; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1rem; border-radius: 10px; }
  .header-actions .hide-mobile { display: none; }
}
@media (max-width: 560px) {
  .site-header .container { display: grid; grid-template-columns: 40px 1fr auto; }
  .brand { justify-self: center; margin: 0; font-size: 1.15rem; }
}

/* ---------- Search results dropdown ---------- */
.search { position: relative; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; max-height: 360px; overflow: auto; padding: 6px; margin: 0; list-style: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.search-results li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.search-results li[aria-selected="true"], .search-results li:hover { background: var(--surface-2); }
.search-results li .name { font-weight: 500; }
.search-results li .meta { margin-left: auto; color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.search-results li mark { background: none; color: var(--brand); font-weight: 600; }
.search-results .group-label { padding: 10px 12px 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); cursor: default; }
.search-results .empty { color: var(--muted); cursor: default; }
.search-results .flag-round, .search-results .region-icon { width: 28px; height: 28px; }
.search-results .region-icon svg { width: 16px; height: 16px; }

/* ---------- Pill switcher ---------- */
.segmented { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { height: 38px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 500; font-size: 0.9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--cta); color: var(--cta-ink); font-weight: 600; }
.segmented button .count { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.segmented.full { display: flex; width: 100%; }
.segmented.full button { flex: 1; justify-content: center; }
.segmented.full button[aria-selected="true"] { box-shadow: none; }

/* ---------- Destination cards ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dest-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; box-shadow: 0 2px 6px -2px rgb(0 0 0 / 0.04); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.dest-card:hover { color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.dest-card .top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dest-card .top .flag-round, .dest-card .top .region-icon { width: 34px; height: 34px; }
.dest-card .top .region-icon svg { width: 18px; height: 18px; }
.dest-card .label { font-size: 0.7rem; color: var(--muted); line-height: 1.2; }
.dest-card .name { font-weight: 600; font-size: 1rem; line-height: 1.25; }
.dest-card .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dest-card .from { font-size: 0.72rem; color: var(--muted); }
.dest-card .price { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.dest-card .price small { font-size: 0.7rem; font-weight: 500; color: var(--muted); margin-left: 2px; }
.dest-card .extra { font-size: 0.72rem; color: var(--brand); font-weight: 600; margin-top: 2px; }
.dest-card .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: background 0.15s; }
.dest-card .go svg { width: 16px; height: 16px; }
.dest-card:hover .go { background: var(--cta); }
@media (max-width: 1000px) { .dest-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .dest-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 420px) { .dest-grid { grid-template-columns: 1fr; } }
.alpha-group { margin-top: 36px; }
.alpha-group h3 { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d8dd; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer-grid .brand { color: #fff; }
.footer-grid .brand span b { color: var(--cta); }
.title-accent { color: var(--brand); }
.footer-grid h4 { font-size: 0.95rem; color: #fff; margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c9c8cf; font-size: 0.92rem; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-grid .about { color: #a9a8b0; font-size: 0.92rem; margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 0 28px; border-top: 1px solid #3d3f44; color: #a9a8b0; font-size: 0.85rem; }
.pay-chip { height: 34px; min-width: 52px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 0.74rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.02em; }
.footer-bottom .pay-chip { background: transparent; border-color: #4a4c52; color: #d9d8dd; height: 28px; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* Accepted payment methods: logo badges (payment-methods.js). */
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 0; padding: 0; }
.pay-logos li { display: grid; place-items: center; height: 38px; min-width: 60px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pay-logos img { display: block; width: auto; }
.footer-bottom .pay-logos li { border-color: transparent; height: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page head / breadcrumbs ---------- */
.page-head { padding: 32px 0 24px; }
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 500; }
.page-head p { color: var(--muted); margin-top: 10px; max-width: 640px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink); text-decoration: none; display: inline-flex; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs svg { width: 16px; height: 16px; }
.breadcrumbs .sep { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Shared states ---------- */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.empty-state .ico svg { width: 30px; height: 30px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 22px; }
.skeleton { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; flex: none; }
.spinner.lg { width: 36px; height: 36px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink-2); font-size: 0.88rem; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.warning { background: var(--warning-soft); color: #7a4d00; }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.info { background: var(--sky); color: var(--ink-2); }
.meter { position: relative; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--cta); transition: width 0.6s ease; }
.meter.warn > i { background: #f5b13d; }
.meter.low > i { background: var(--danger); }

/* ---------- Dialog ---------- */
dialog.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal.wide { width: min(760px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgb(20 22 26 / 0.5); }
dialog.modal[open] { animation: pop 0.18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.15rem; font-weight: 600; }
.modal-body { padding: 24px; overflow: auto; max-height: calc(100vh - 200px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (max-width: 560px) {
  dialog.modal, dialog.modal.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; }
  .modal-foot { border-radius: 0; }
}
.tabs-inline { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs-inline button { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-inline button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.device-results { display: grid; gap: 18px; margin-top: 18px; }
.device-results h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.device-results ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.device-results li { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 0.86rem; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); font-size: 0.92rem; animation: pop 0.2s ease-out; }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.toast.success svg { color: var(--cta); }
.toast.error svg { color: #ff9aa6; }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
@media (max-width: 560px) { .toasts { right: 16px; left: 16px; width: auto; bottom: 16px; } body.has-buybar .toasts { bottom: 96px; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 100px 0; }
.not-found .big { font-size: clamp(5rem, 14vw, 8rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--brand); }
.not-found p { color: var(--muted); margin: 16px auto 28px; max-width: 420px; }

/* Header extras (Pirate-style) */
.locale .flag-round.sm { width: 22px; height: 22px; }
.user-pill { padding: 4px 14px 4px 4px; gap: 8px; }
.user-pill .avatar { width: 30px; height: 30px; background: var(--brand-soft); color: var(--brand-2); }
.header-actions .btn-sm { min-height: 42px; }
@media (max-width: 560px) { .hide-xs { display: none; } .header-actions .btn-dark { width: 42px; padding: 0; } .user-pill { padding: 0; width: 42px; justify-content: center; } }

/* Pale yellow page tint (destination, checkout, dashboard) */
.tinted { background: linear-gradient(180deg, #fff6d1 0, #fffcf0 300px, #fff 620px); }
.link-btn svg { width: 16px; height: 16px; flex: none; }
