/* ============================================================
   My Greek Odyssey — base: tokens, shell, shared components
   Brand from Figma: Aegean blue gradient #3A8DDE→#1F6FB2,
   link blue #0176D2, gold #C8A96A, cream #F6F1EB,
   Nunito Sans (headings/UI) + DM Sans (body/numbers).
   ============================================================ */

:root {
  /* colour */
  --blue-400: #3a8dde;
  --blue-600: #1f6fb2;
  --blue-link: #0176d2;
  --blue-050: #eaf3fc;
  --blue-100: #d9eafa;
  --grad-primary: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  --gold: #c8a96a;
  --gold-soft: #f3e9d7;
  --cream: #f6f1eb;
  --ink: #1e1e1e;
  --slate: #575757;
  --mist: #767676;
  --line: #e8e4de;
  --line-soft: #f0ede8;
  --white: #ffffff;
  --danger: #e0382e;
  --green: #1e9e5a;
  --shadow-card: 0 10px 30px -12px rgba(31, 76, 118, 0.18);
  --shadow-float: 0 18px 44px -16px rgba(31, 76, 118, 0.35);
  --shadow-soft: 0 4px 16px -6px rgba(31, 76, 118, 0.12);

  /* type */
  --f-head: 'Nunito Sans', system-ui, sans-serif;
  --f-body: 'DM Sans', system-ui, sans-serif;

  /* geometry */
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;
  --pad: 16px; /* app-wide side gutter — matches the Auth layout standard */

  /* motion */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1); /* premium iOS-style screen easing */
  --t-fast: 0.22s;
  --t-med: 0.45s;
  --t-slow: 0.8s;
  --t-screen: 0.42s;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
input {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  outline: none !important;
  width: 100%;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--blue-link); text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue-link); outline-offset: 2px; border-radius: 4px; }

/* ============================================================
   DESKTOP STAGE
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
  padding: 24px;
  /* cinematic showroom — same dark + gold language as the app itself */
  background:
    radial-gradient(110% 70% at 78% 30%, rgba(200, 169, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #0b1a2b 0%, #081421 52%, #050d17 100%);
}
.stage-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* the welcome-poster seascape, heavily scrimmed so the phone stays the hero */
.stage-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/img/welcome-poster.jpg') center / cover no-repeat;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
}
.stage-bg::after {
  /* greek meander strip along the bottom — gold on dark */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  height: 14px;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M1 13V1h12v8H9V5H5v8z' fill='none' stroke='%23C8A96A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: blob-drift 26s var(--ease-spring) infinite alternate;
}
.blob-1 { width: 560px; height: 560px; background: #143352; top: -180px; left: -120px; }
.blob-2 { width: 440px; height: 440px; background: rgba(200, 169, 106, 0.34); bottom: -160px; right: -80px; animation-delay: -8s; }
.blob-3 { width: 320px; height: 320px; background: #1c4569; bottom: 10%; left: 22%; animation-delay: -16s; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -40px) scale(1.12); }
}
/* drifting gold sea-spray, echoing the Welcome screen (keyframes in screens.css) */
.stage-particles { position: absolute; inset: 0; }
.stage-particles i {
  position: absolute;
  bottom: -14px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: rgba(232, 205, 154, 0.75);
  box-shadow: 0 0 6px rgba(232, 205, 154, 0.4);
  opacity: 0;
  animation: particle-rise 14s linear infinite;
  will-change: transform, opacity;
}
.stage-particles i:nth-child(1)  { left: 6%;  animation-duration: 15s; animation-delay: -3s; }
.stage-particles i:nth-child(2)  { left: 14%; width: 2.5px; height: 2.5px; animation-duration: 19s; animation-delay: -9s; }
.stage-particles i:nth-child(3)  { left: 24%; animation-duration: 13s; animation-delay: -6s; }
.stage-particles i:nth-child(4)  { left: 35%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: -12s; }
.stage-particles i:nth-child(5)  { left: 47%; width: 2.5px; height: 2.5px; animation-duration: 21s; animation-delay: -1s; }
.stage-particles i:nth-child(6)  { left: 58%; animation-duration: 14s; animation-delay: -7s; }
.stage-particles i:nth-child(7)  { left: 68%; width: 4.5px; height: 4.5px; animation-duration: 16s; animation-delay: -11s; }
.stage-particles i:nth-child(8)  { left: 78%; width: 2.5px; height: 2.5px; animation-duration: 20s; animation-delay: -4s; }
.stage-particles i:nth-child(9)  { left: 87%; animation-duration: 13s; animation-delay: -14s; }
.stage-particles i:nth-child(10) { left: 95%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: -8s; }

.stage-note { position: relative; max-width: 340px; z-index: 1; }
/* gold letter-spaced eyebrow with rule lines — echoes Welcome / Auth */
.stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: stage-rise 0.7s var(--ease-out) 0.1s both;
}
.stage-eyebrow i { display: block; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200, 169, 106, 0.85)); }
.stage-eyebrow i:last-child { transform: scaleX(-1); }
/* the same animated gold wordmark as Welcome/Auth, mounted by JS */
.stage-logo-host { margin-bottom: 26px; animation: stage-rise 0.8s var(--ease-out) 0.2s both; }
.stage-logo-host .splash-logo-wrap { width: 252px; margin: 0; }
.stage-logo-host .splash-sweep { display: none; }
.stage-kicker {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  animation: stage-rise 0.7s var(--ease-out) 0.32s both;
}
.stage-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.14;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 2px 24px rgba(3, 10, 18, 0.6);
  animation: stage-rise 0.7s var(--ease-out) 0.42s both;
}
.stage-title em {
  font-style: italic;
  background: linear-gradient(115deg, #edd8ab 10%, #c8a96a 60%, #a8874c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stage-copy { color: rgba(255, 255, 255, 0.68); line-height: 1.65; font-size: 15px; margin-bottom: 26px; animation: stage-rise 0.7s var(--ease-out) 0.52s both; }
.stage-jump { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 9px; animation: stage-rise 0.7s var(--ease-out) 0.62s both; }
.stage-jump button {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-pill);
  padding: 9px 17px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.stage-jump button:hover {
  transform: translateY(-2px);
  background: rgba(200, 169, 106, 0.16);
  border-color: rgba(200, 169, 106, 0.55);
  color: #fff;
}
.stage-jump button:active { transform: scale(0.95); }
.stage-hint {
  margin-top: 30px;
  color: rgba(232, 205, 154, 0.72);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  text-transform: uppercase;
  animation: stage-rise 0.7s var(--ease-out) 0.74s both;
}
@keyframes stage-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-eyebrow, .stage-logo-host, .stage-kicker, .stage-title, .stage-copy, .stage-jump, .stage-hint { animation: none; }
  .stage-particles { display: none; }
  .blob { animation: none; }
}

/* ============================================================
   PHONE FRAME
   ============================================================ */
.phone {
  position: relative;
  width: 390px;
  height: 844px;
  max-height: calc(100vh - 40px);
  background: var(--white);
  border-radius: 48px;
  /* contain fixed overlays (modals, toast, scrim) inside the device frame without
     a transform — restores containment lost when .screen dropped its transform,
     and keeps text crisp (no scaled raster layer). */
  contain: paint;
  box-shadow:
    0 0 0 10px #101418,
    0 0 0 12px #2c3237,
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 120px -20px rgba(200, 169, 106, 0.22);
  overflow: clip;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 32px;
  background: #101418;
  border-radius: var(--r-pill);
  z-index: 60;
}
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px 0;
  z-index: 55;
  pointer-events: none;
  color: var(--ink);
  transition: color var(--t-fast);
}
.statusbar.light { color: #fff; }
.sb-time { font-family: var(--f-head); font-weight: 700; font-size: 15px; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { height: 12px; fill: currentColor; }
.sb-signal { width: 18px; }
.sb-wifi { width: 16px; }
.sb-batt { width: 25px; }

/* small screens: fill viewport */
@media (max-width: 900px) {
  .stage { padding: 0; gap: 0; }
  .stage-note { display: none; }
  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
  .phone-notch { display: none; }
}

/* ============================================================
   APP + SCREENS
   ============================================================ */
.app { position: relative; flex: 1; overflow: clip; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  visibility: hidden;
  opacity: 0;
  /* entering pose: gentle rise + micro-scale (Smart-Animate feel, no X motion) */
  transform: translateY(18px) scale(0.988);
  transition:
    opacity var(--t-screen) var(--ease-out),
    transform var(--t-screen) var(--ease-ios),
    visibility 0s linear var(--t-screen);
  overflow: clip;
}
/* topmost, fully in view — rises + settles in (no horizontal movement) */
.screen.active {
  visibility: visible;
  opacity: 1;
  /* settle to NO transform + no persistent compositor layer, so text/icons
     render in the main layer at native resolution (crisp on all displays). */
  transform: none;
  transition: opacity var(--t-screen) var(--ease-out), transform var(--t-screen) var(--ease-ios);
  z-index: 3;
}
/* previous screen when a new one opens on top — stays fully opaque BENEATH the
   incoming screen (which fades in over it), so nothing flashes through. */
.screen.parked {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: none;
  transition: visibility 0s linear var(--t-screen);
}
/* the screen being popped — settles DOWN and fades ON TOP, revealing the opaque
   screen beneath (mirrors the entering rise; pure fade/drift, no sliding). */
.screen.exiting {
  visibility: visible;
  opacity: 0;
  transform: translateY(14px) scale(0.992);
  z-index: 4;
  pointer-events: none;
  transition: opacity var(--t-screen) var(--ease-out), transform var(--t-screen) var(--ease-ios);
  will-change: opacity, transform;
}
/* used for a split instant to seed a screen's starting pose with no transition */
.screen.no-anim { transition: none !important; }
/* cinematic exit for the welcome screen: fades and gently zooms
   over the next screen while its video keeps playing beneath */
.screen.cine-exit {
  visibility: visible;
  opacity: 0;
  transform: scale(1.08);
  z-index: 4;
  transition: opacity 0.9s var(--ease-out), transform 1.15s var(--ease-out);
  pointer-events: none;
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--pad);
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.scroll::-webkit-scrollbar { display: none; }
.tab-space { height: 118px; }
.screen:not(.has-nav) .tab-space { height: 44px; }
.cta-space { height: 110px; }

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-spring);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   BARS & NAV
   ============================================================ */
.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 62px var(--pad) 12px;
  background: var(--white);
  z-index: 5;
}
.bar-plain { padding-bottom: 10px; }
.bar-title {
  flex: 1;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 18px;
  text-align: left;
}
.bar-title-lg { font-family: var(--f-head); font-weight: 800; font-size: 24px; }
.bar-spacer { width: 40px; }
.bar-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  padding-top: 58px;
  z-index: 10;
}
.bar-overlay .bar-title { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.bar-overlay.solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  transition: background var(--t-fast) ease;
}
.bar-overlay.solid .bar-title { color: var(--ink); text-shadow: none; }
.bar-overlay.solid .icon-btn.glass {
  background: var(--white);
  border-color: var(--line-soft);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.bar-overlay.solid .fav-btn.on { color: #ff5a5a; }

.icon-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast);
  position: relative;
}
.icon-btn:active { transform: scale(0.88); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.sm { width: 34px; height: 34px; box-shadow: none; border: 0; background: transparent; color: var(--mist); }
.icon-btn.glass {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}
.bell-dot {
  position: absolute;
  top: 9px; right: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--white);
}

/* bottom tab bar */
/* bottom navigation — geometry from Figma component 1321:27037:
   278×58 pill, white @40% + blur, 42px circle tabs (#F6F6F6),
   gradient-blue active circle, 60px avatar at the right */
.tabbar {
  position: absolute;
  left: 20px;
  bottom: 22px;
  width: 278px;
  height: 58px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 28px -10px rgba(16, 34, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  z-index: 40;
  transform: translateY(140px);
  transition: transform var(--t-med) var(--ease-spring);
}
.tabbar.show { transform: translateY(0); }
.tab {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f6f6f6;
  display: grid;
  place-items: center;
  color: #252525;
  transition: color var(--t-fast) ease, transform var(--t-fast) var(--ease-spring), background var(--t-fast) ease;
}
.tab svg { width: 24px; height: 24px; }
.tab:active { transform: scale(0.85); }
.tab.active { color: #fff; background: transparent; }
.tab-pill {
  position: absolute;
  top: 8px;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 8px 18px -6px rgba(31, 111, 178, 0.55);
  transition: transform var(--t-med) var(--ease-spring), opacity var(--t-fast);
  opacity: 0;
}
.tab-pill.on { opacity: 1; }
/* cinematic (dark + gold) tab bar — applied only on dark screens */
.tabbar.cine {
  background: rgba(10, 20, 33, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px -12px rgba(0, 0, 0, 0.7);
}
.tabbar.cine .tab { background: transparent; color: rgba(255, 255, 255, 0.72); }
.tabbar.cine .tab.active { color: #2a1e08; background: transparent; }
.tabbar.cine .tab-pill {
  background: linear-gradient(135deg, #e7cb8e, #c8a96a);
  box-shadow: 0 8px 18px -6px rgba(200, 169, 106, 0.6);
}
.pete-fab.cine .pete-fab-ring { border-color: var(--gold); }
.pete-fab.cine img { border-color: rgba(231, 203, 142, 0.85); }

.pete-fab {
  position: absolute;
  right: 20px;
  bottom: 21px;
  width: 60px;
  height: 60px;
  border-radius: var(--r-pill);
  z-index: 41;
  transform: translateY(140px);
  transition: transform var(--t-med) var(--ease-spring);
}
.pete-fab.show { transform: translateY(0); }
.pete-fab img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-float);
}
.pete-fab-ring {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--blue-400);
  animation: fab-pulse 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70% { transform: scale(1.28); opacity: 0; }
  100% { transform: scale(1.28); opacity: 0; }
}
.pete-fab:active { transform: scale(0.9); }

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.btn {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--r-md);
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-fast), filter var(--t-fast);
}
.btn:active { transform: scale(0.97); }
.btn-block { width: 100%; }
.btn.sm { font-size: 13px; padding: 9px 16px; border-radius: 11px; }
.btn-ico { width: 18px; height: 18px; }
.btn-ico.sm { width: 15px; height: 15px; }
.btn:disabled { opacity: 0.85; cursor: default; }
.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -3px;
  margin-right: 6px;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-primary {
  /* app-wide gold primary — the cinematic design language's single CTA style */
  background: linear-gradient(135deg, #e7cb8e 0%, #c8a96a 100%);
  color: #2a1e08;
  box-shadow: 0 14px 30px -12px rgba(200, 169, 106, 0.7);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-soft { background: rgba(200, 169, 106, 0.18); color: var(--gold); }
.btn-outline { background: rgba(255, 255, 255, 0.04); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.24); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
}
/* ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 0.55s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

.link { font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--blue-link); }
.link.sm { font-size: 13px; }
.link-bold { font-weight: 800; }

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.card.pad { padding: 16px; }
.card-title { font-family: var(--f-head); font-weight: 800; font-size: 15px; margin-bottom: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--slate);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.chip-soft { background: var(--blue-050); color: var(--blue-600); border-color: transparent; }
.chip-filter { background: var(--white); transition: all var(--t-fast) ease; }
.chip-filter.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(31, 111, 178, 0.5); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge-blue { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(31, 111, 178, 0.5); }
.badge-glass { background: rgba(255, 255, 255, 0.24); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.35); }
.badge-gold { background: var(--gold-soft); color: #8a6f3c; }
.badge-ico { width: 13px; height: 13px; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
}
.rating-star { width: 16px; height: 16px; fill: #f5c518; }

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px var(--pad) 4px;
  padding: 4px 6px 4px 16px;
  min-height: 50px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast);
}
.searchbar:focus-within { border-color: var(--blue-400); }
.searchbar.slim { margin: 8px var(--pad); }
.searchbar-ico { width: 19px; height: 19px; color: var(--mist); flex: 0 0 auto; }
.searchbar input { font-size: 14.5px; }
.searchbar input::placeholder { color: var(--mist); }
/* Figma search boxes use a filter-horizontal (sliders) icon, stroke #373A43 */
.icon-btn.sm.search-filter { color: #373a43; }
.search-filter svg { width: 18px; height: 18px; }

.section-kicker {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--slate);
  margin: 20px 0 12px;
}
.section-title { font-family: var(--f-head); font-weight: 800; font-size: 17px; }
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-row .section-title { margin: 0; }
h3.section-title { margin: 22px 0 12px; }
.sub-title { font-family: var(--f-head); font-weight: 800; font-size: 16px; margin: 22px 0 12px; }
.sub-title.flush { margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--cream); border-radius: var(--r-sm); }
.kv-k { font-size: 12px; color: var(--mist); }
.kv-v { font-family: var(--f-head); font-weight: 700; font-size: 13.5px; }

.pill-select {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  background: var(--blue-050);
  color: var(--blue-600);
  border-radius: var(--r-sm);
}
.pill-caret { width: 14px; height: 14px; }

/* inputs */
.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 14px; color: #1b1e28; margin-bottom: 7px; }
.field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.4px solid var(--line);
  border-radius: var(--r-md);
  padding: 0 14px;
  height: 54px;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.field-box:focus-within { border-color: var(--blue-400); }
.field-ico { width: 19px; height: 19px; color: var(--mist); flex: 0 0 auto; }
.field-box input { font-size: 15.5px; }
.field-box input::placeholder { color: var(--mist); }
.field-eye { color: var(--mist); display: grid; place-items: center; }
.field-eye svg { width: 20px; height: 20px; }

.input-like {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1.4px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 13px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13.5px;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.input-like:hover { border-color: var(--blue-400); }
.input-ico { width: 17px; height: 17px; color: var(--blue-600); }

/* segmented controls */
.segment { display: flex; gap: 10px; padding: 10px var(--pad) 2px; }
.segment-btn {
  flex: 1;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 10px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1.4px solid var(--line);
  color: var(--slate);
  transition: all var(--t-fast) ease;
}
.segment-btn.active {
  background: var(--blue-050);
  border-color: var(--blue-400);
  color: var(--blue-600);
  box-shadow: 0 6px 16px -8px rgba(31, 111, 178, 0.45);
}
.seg-tabs { display: flex; gap: 9px; padding: 10px var(--pad); }
.seg-tab {
  flex: 1;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 8px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--slate);
  transition: all var(--t-fast) ease;
}
.seg-tab.active { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 8px 16px -8px rgba(31, 111, 178, 0.55); }

/* toggle switch */
.switch {
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  position: relative;
  transition: background var(--t-fast) ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform var(--t-fast) var(--ease-spring);
}
.switch.on { background: linear-gradient(135deg, #e7cb8e, #c8a96a); }
.switch.on::after { transform: translateX(19px); }

/* sticky CTA */
.sticky-cta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px var(--pad) 26px;
  background: linear-gradient(to top, #050d17 62%, rgba(5, 13, 23, 0));
  z-index: 12;
}
.sticky-cta.split { display: flex; align-items: center; gap: 14px; }
.sticky-cta.split .btn { flex: 0 0 auto; }
.price-block { flex: 1; display: flex; flex-direction: column; }
.price-big { font-family: var(--f-body); font-weight: 700; font-size: 19px; color: var(--gold); }
.price-fees { font-size: 11px; color: rgba(255, 255, 255, 0.55); }

/* modal + toast */
.sheet-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 38, 0.45);
  backdrop-filter: blur(3px);
  z-index: 80;
  opacity: 0;
  transition: opacity var(--t-fast) ease;
}
.sheet-scrim.show { opacity: 1; }
.modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 85;
  padding: 28px;
  pointer-events: none;
}
.modal-card {
  pointer-events: auto;
  width: 100%;
  background: linear-gradient(180deg, #101e30 0%, #0a1420 100%);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: 0 26px 64px -22px rgba(0, 0, 0, 0.8);
  transform: translateY(26px) scale(0.94);
  opacity: 0;
  transition: transform var(--t-med) var(--ease-spring), opacity var(--t-fast) ease;
  text-align: center;
}
.modal.show .modal-card { transform: none; opacity: 1; }
.modal-emoji { font-size: 40px; display: block; margin-bottom: 10px; }
.modal-title { font-family: var(--f-head); font-weight: 800; font-size: 18px; margin-bottom: 8px; color: #fff; }
.modal-text { color: rgba(255, 255, 255, 0.65); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; padding: 13px 10px; font-size: 14.5px; }
.btn-danger-soft { background: rgba(255, 56, 60, 0.14); color: #ff6165; }

/* modal overlay for bottom sheets & popups */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  animation: overlay-in var(--t-med) ease;
}
.modal-overlay[hidden] { display: none !important; }
@keyframes overlay-in { from { opacity: 0; } }

/* bottom sheet */
.bsheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, #101e30 0%, #0a1420 100%);
  border-radius: 24px 24px 0 0;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  /* never rise under the status bar / notch — leave a safe gap at the top */
  max-height: calc(100% - 64px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: bsheet-up var(--t-med) var(--ease-spring);
}
.bsheet::-webkit-scrollbar { display: none; }
@keyframes bsheet-up { from { transform: translateY(100%); } }
.bsheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bsheet-title { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: #fff; }
.bsheet-sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 16px; }
.bsheet-actions { display: flex; gap: 12px; margin-top: 8px; }
.bsheet-actions .btn {
  flex: 1;
  height: 56px;
  padding: 14px 24px;
  border-radius: 16px;
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  gap: 10px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); }
.bsheet-card {
  background: linear-gradient(180deg, #101e30 0%, #0a1420 100%);
  border-radius: 28px 28px 0 0;
  transform: translateY(104%);
  transition: transform var(--t-med) var(--ease-spring);
}
.bsheet.show .bsheet-card { transform: translateY(0); }
.sheet-title {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 16px;
  color: #fff;
}
.sheet-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sheet-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1.6px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 14.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  transition: all var(--t-fast) var(--ease-spring);
}
.sheet-opt .so-ico { font-size: 21px; flex: 0 0 auto; }
.sheet-opt .so-ico img { width: 24px; height: 24px; object-fit: contain; display: block; }
.sheet-opt:hover { border-color: rgba(200, 169, 106, 0.45); }
.sheet-opt.sel {
  background: rgba(200, 169, 106, 0.14);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(200, 169, 106, 0.4);
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 104px;
  transform: translate(-50%, 24px);
  background: #101e30;
  border: 1px solid rgba(200, 169, 106, 0.4);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-float);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-spring);
  max-width: 320px;
  text-align: center;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton shimmer */
.shimmer {
  position: relative;
  overflow: hidden;
  background: var(--line-soft);
}
.shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* empty state */
.empty { text-align: center; padding: 90px 30px; }
.empty-emoji { font-size: 46px; display: block; margin-bottom: 14px; }
.empty h3 { font-family: var(--f-head); font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--slate); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
