/* ==========================================================================
   ZamaSU UI polish layer (v7.94)
   --------------------------------------------------------------------------
   Purely additive visual refinement on top of style.css: aesthetics only.
   Nothing here changes `display`, `position`, `flex-direction` or any
   `overflow`/`overscroll` property on a shared/ancestor element, so this file
   cannot reproduce gotcha 17 (site-wide scroll killed) or gotcha 19
   (a horizontal scroll strip clipped by an ancestor). Where a rule touches an
   element flagged fragile in a past incident (`.sec-nav`, the nav drawer, the
   bottom nav), only color/shadow/transition properties are touched — never a
   layout property.

   Loaded on:
     - layouts/app.php                          (unconditional)
     - layouts/retailer.php / retailer-guest.php / retailer-landing.php
                                                  (unconditional)
     - layouts/public.php, but ONLY on pages that explicitly ask for it via
       `pageCss` — every AuthController page (login/register/forgot/reset/
       welcome/add-phone/verify-phone). HomeController never sets pageCss to
       this file, so the public landing page (home.php + landing.css) is
       never affected by anything in here — verified by grep before shipping.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Two-tone shadow tokens
   --------------------------------------------------------------------------
   style.css's --shadow-1/2/3 are single flat shadows. Every `.card`,
   `.adm-stat-card`, `.step`, dropdown and modal already reads these
   variables, so redefining them here lifts the whole app's sense of depth in
   one place with zero markup changes and zero risk to layout — a shadow
   cannot move or resize anything. */
:root {
  --shadow-1: 0 1px 2px rgba(13,26,18,.05), 0 1px 1px rgba(13,26,18,.04);
  --shadow-2: 0 1px 2px rgba(13,26,18,.06), 0 8px 20px -6px rgba(13,26,18,.12);
  --shadow-3: 0 2px 4px rgba(13,26,18,.07), 0 24px 48px -16px rgba(13,26,18,.18);
}
[data-theme="dark"] {
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 1px 1px rgba(0,0,0,.25);
  --shadow-2: 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -8px rgba(0,0,0,.45);
  --shadow-3: 0 2px 6px rgba(0,0,0,.45), 0 28px 56px -18px rgba(0,0,0,.55);
}

/* --------------------------------------------------------------------------
   2. Shared premium layer
   --------------------------------------------------------------------------
   This is intentionally surface-level: it improves rhythm, feedback and
   perceived depth across the consumer, auth and merchant shells without
   changing their layout model or brand palette. */
body.app, body.retailer-portal {
  background-image: linear-gradient(180deg, var(--c-primary-soft) 0, transparent 18rem);
  background-repeat: no-repeat;
  background-size: 100% 22rem;
}

.top-bar, .ret-bar {
  border-bottom-color: color-mix(in srgb, var(--c-primary) 16%, var(--c-line));
  box-shadow: 0 8px 28px rgba(13,26,18,.07);
}
.top-bar .brand img, .ret-brand {
  transition: transform .35s var(--easing-spring), filter .35s var(--easing);
}
.top-bar .brand:hover img, .ret-brand:hover {
  transform: translateY(-1px) scale(1.035);
  filter: drop-shadow(0 6px 10px rgba(39,174,96,.18));
}

.main > *, .ret-main > * {
  animation: zsuReveal .48s var(--easing) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 45ms);
}
.zsu-reveal {
  animation: zsuReveal .55s var(--easing) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 55ms);
}

.card, .step, .job-card, .action-tile, .option-tile, .radio-tile,
.table-wrap, .filter-bar, .ret-notice {
  box-shadow: var(--shadow-1);
  transition: transform .28s var(--easing-spring), box-shadow .28s var(--easing),
              border-color .22s var(--easing), background-color .22s var(--easing);
}
.card:hover, .step:hover, .job-card:hover, .action-tile:hover,
.option-tile:hover, .radio-tile:hover, .table-wrap:hover {
  box-shadow: var(--shadow-2);
}

input, select, textarea {
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing),
              background-color .2s var(--easing);
}
input:hover, select:hover, textarea:hover {
  border-color: color-mix(in srgb, var(--c-primary) 38%, var(--c-line));
}
input:focus, select:focus, textarea:focus {
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 4px var(--c-primary-glow), var(--shadow-1);
}

.btn-primary, .nav-drawer-cta, .ret-side nav a.active {
  background-image: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary));
}
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px) scale(1.01); }
}
.icon-btn, .theme-toggle, .notif-icon, .ret-menu-toggle {
  transition: transform .22s var(--easing-spring), background-color .2s var(--easing),
              color .2s var(--easing), box-shadow .2s var(--easing);
}
.icon-btn:hover, .theme-toggle:hover, .notif-icon:hover, .ret-menu-toggle:hover {
  box-shadow: 0 6px 16px rgba(13,26,18,.1);
}

.bottom-nav a {
  transition: color .2s var(--easing), transform .25s var(--easing-spring),
              background-color .2s var(--easing);
}
.bottom-nav a:hover { transform: translateY(-2px); }
.bottom-nav a.active { box-shadow: inset 0 -2px 0 var(--c-primary); }

/* A richer, restrained layer of motion for the surfaces people scan most. */
.dashboard-hero, .sqm-portal-hero, .sp-hero, .sg-hero, .ret-bar, .admin-bar {
  isolation: isolate;
}
.dashboard-hero::after, .sqm-portal-hero::after, .sp-hero::after,
.sg-hero::after, .ret-bar::after, .admin-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,.12) 48%, transparent 58%);
  transform: translateX(-120%);
  animation: zsuSheen 8s var(--easing) infinite;
  z-index: 0;
}
.dashboard-hero > *, .sqm-portal-hero > *, .sp-hero > *, .sg-hero > *,
.ret-bar > *, .admin-bar > * { position: relative; z-index: 1; }
@keyframes zsuSheen {
  0%, 55% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}

.card::before, .job-card::before, .action-tile::before, .option-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 32%);
  opacity: .55;
}
.card:hover, .job-card:hover, .action-tile:hover, .option-tile:hover {
  border-color: color-mix(in srgb, var(--c-primary) 28%, var(--c-line));
}
.sec-nav a, .sp-chip, .sqm-quick .btn, .nav-drawer a, .ret-side nav a {
  transition: transform .24s var(--easing-spring), background-color .22s var(--easing),
              color .22s var(--easing), box-shadow .22s var(--easing), border-color .22s var(--easing);
}
@media (hover: hover) {
  .sec-nav a:hover, .sp-chip:hover, .sqm-quick .btn:hover,
  .nav-drawer a:hover, .ret-side nav a:hover { transform: translateX(3px); }
}

/* The hero uses the actual Quantum silhouette, framed as a quiet editorial
   image so photographed markings never become interface copy or branding. */
.tx-hero-photo {
  background-size: 175% auto;
  background-position: 56% 58%;
  background-repeat: no-repeat;
  opacity: .27;
  filter: saturate(.82) contrast(1.06);
}
.tx-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c-primary-strong) 0%, transparent 28%, transparent 72%, var(--c-primary-strong) 100%);
  opacity: .5;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-hero::after, .sqm-portal-hero::after, .sp-hero::after,
  .sg-hero::after, .ret-bar::after, .admin-bar::after { animation: none; }
}

/* Keep motion expressive but never mandatory for users who disable it. */
@media (prefers-reduced-motion: reduce) {
  .main > *, .ret-main > *, .zsu-reveal { animation: none !important; }
  .top-bar .brand img, .ret-brand, .btn-primary, .bottom-nav a,
  .card, .step, .job-card, .action-tile, .option-tile, .radio-tile,
  .table-wrap { transition: none !important; }
}

/* --------------------------------------------------------------------------
   3. Focus visibility — a11y + a more deliberate, premium feel
   -------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* --------------------------------------------------------------------------
  4. Cards — subtle refinement on top of the new shadow tokens
   -------------------------------------------------------------------------- */
.card, .step, .adm-stat-card, .db-card, a.adm-stat-card {
  border-radius: var(--r-3);
}
.card:hover { border-color: rgba(39,174,96,.28); }
[data-theme="dark"] .card:hover { border-color: rgba(46,204,113,.35); }

/* --------------------------------------------------------------------------
  5. Stat tiles — an accent bar + Syne numerals, matching the app's own
      heading face rather than the body font, and a touch more lift.
   -------------------------------------------------------------------------- */
.adm-stat-card {
  /* ⚠ NOT `overflow: hidden` — that was tried first and found, by actually
     rendering the retailer dashboard, to CLIP real currency values
     ("R9,180.00" rendered as "R9,18O" cut off) the moment a value was wider
     than the card. The card has no fixed width (`minmax(160px, 1fr)` in
     `.adm-card-grid`) and Syne is a wider face than DM Sans, so this was
     never going to be safe to assume away — it had to be caught by looking
     at a screenshot, not by reading the CSS. The accent bar below gets its
     own rounded top corners instead, so nothing needs to be clipped. */
  position: relative;
  box-shadow: var(--shadow-1);
  transition: transform .25s var(--easing-spring), box-shadow .25s var(--easing-spring), border-color .2s;
}
.adm-stat-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  border-radius: var(--r-3) var(--r-3) 0 0;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-strong));
  opacity: .0;
  transition: opacity .25s;
}
.adm-stat-card:hover, a.adm-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.adm-stat-card:hover::before { opacity: 1; }
.adm-stat-card.adm-stat-success::before { background: linear-gradient(90deg, var(--c-success), #22c55e); }
.adm-stat-card.adm-stat-warn::before    { background: linear-gradient(90deg, var(--c-warn), #f59e0b); }
.adm-stat-card.adm-stat-danger::before  { background: linear-gradient(90deg, var(--c-error), #ef4444); }
.adm-stat-value {
  font-family: 'Syne', 'DM Sans', sans-serif;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  /* A long Rand value with no spaces can't wrap at a word boundary — this
     lets it wrap mid-string as a last resort instead of overflowing the
     card sideways into whatever sits next to it. */
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
  6. Empty states — a soft icon plate instead of a bare emoji floating on
      dashed border, closer to what the landing page already does elsewhere.
   -------------------------------------------------------------------------- */
.empty-state, .db-empty {
  background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
}
.empty-state .empty-icon, .db-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: var(--c-primary-soft);
  margin-left: auto; margin-right: auto;
}

/* --------------------------------------------------------------------------
  7. Helper rows (taxi routes, notifications, admin lists, driver panels…)
   -------------------------------------------------------------------------- */
.helper-row {
  transition: background var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing);
}
a.helper-row:hover, .helper-row:has(a:hover) {
  border-color: rgba(39,174,96,.3);
}
button.helper-row:hover, a.helper-row:hover {
  transform: translateX(2px);
  background: var(--c-surface);
  border-color: rgba(39,174,96,.3);
}

/* --------------------------------------------------------------------------
  8. Tables — a hover row so a dense table reads as scannable, not just
      printed. No column/row structure is touched.
   -------------------------------------------------------------------------- */
.adm-table tbody tr, .table tbody tr {
  transition: background var(--duration-fast) var(--easing);
}
.adm-table tbody tr:hover, .table tbody tr:hover {
  background: var(--c-surface-2);
}

/* --------------------------------------------------------------------------
  9. Status pills — a hairline ring so they read as a distinct object on a
      busy list rather than a flat color patch.
   -------------------------------------------------------------------------- */
.status, .status-pill, .ret-status-chip, .vou-status {
  box-shadow: 0 0 0 1px rgba(13,26,18,.04) inset;
}
[data-theme="dark"] .status, [data-theme="dark"] .status-pill,
[data-theme="dark"] .ret-status-chip, [data-theme="dark"] .vou-status {
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
}

/* --------------------------------------------------------------------------
  10. Avatars / logo tiles — a hairline ring, consistent across contexts.
   -------------------------------------------------------------------------- */
.avatar, .avatar-fallback, .ret-shop-logo {
  box-shadow: 0 0 0 1px var(--c-line);
}

/* --------------------------------------------------------------------------
  11. Nav drawer + bottom nav — colour/motion only, no layout property.
   -------------------------------------------------------------------------- */
.bottom-nav a.active {
  color: var(--c-primary-strong);
}
.bottom-nav a svg {
  transition: transform .2s var(--easing-spring);
}
.bottom-nav a.active svg {
  transform: translateY(-1px) scale(1.08);
}
.nav-drawer-cta {
  box-shadow: var(--shadow-1);
}
.nav-drawer-cta:hover {
  box-shadow: var(--shadow-2);
}

/* --------------------------------------------------------------------------
  12. Section quick-menu chips (.sec-nav) — gotcha 19 territory: this strip
       already had two failed fixes and now uses flex-wrap, deliberately with
       NO scroll behaviour to break. Only colours/shadow are touched here;
       `display`, `flex-wrap` and `overflow` are left exactly as they are.
   -------------------------------------------------------------------------- */
.sec-nav a, .sec-nav .sec-nav-item {
  transition: background var(--duration-fast) var(--easing), color var(--duration-fast) var(--easing), box-shadow var(--duration-fast) var(--easing);
}
.sec-nav a.active, .sec-nav .sec-nav-item.active {
  box-shadow: var(--shadow-1);
}

/* ==========================================================================
  13. Auth pages (login / register / forgot / reset / welcome / add-phone /
       verify-phone) — new, additive classes only. Nothing here overrides an
       existing `.auth-*` rule; it only adds elements those views may now use.
   ========================================================================== */
.auth-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem;
  margin: 0 0 1.4rem;
}
.auth-trust-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .8rem;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: .74rem; font-weight: 700;
  border: 1px solid rgba(39,174,96,.18);
}

.auth-banner {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem .9rem;
  border-radius: var(--r-2);
  font-size: .85rem;
  margin-bottom: 1.3rem;
  line-height: 1.45;
}
.auth-banner-icon { font-size: 1.15rem; flex-shrink: 0; }
.auth-banner-promo {
  background: linear-gradient(135deg, rgba(39,174,96,.14), rgba(241,196,15,.10));
  border: 1px solid rgba(39,174,96,.25);
  color: var(--c-ink-2);
}
.auth-banner-referral {
  background: var(--c-info-soft);
  border: 1px solid rgba(37,99,235,.22);
  color: var(--c-ink-2);
}
.auth-banner strong { color: var(--c-ink); }

/* Register's role-tiles were a fixed 2-column grid, which left a 5th tile
   (Taxi Marshall, when it's on) stranded alone on its own row. auto-fit lets
   3 or 4 sit across a wider auth card without changing anything about how a
   narrow phone renders (still effectively 2 up). */
.role-tiles {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

/* A wider auth card specifically for registration, where up to 5 role tiles
   and more fields live — requested via a body/wrapper class from the view
   itself, so login/forgot/reset (which don't need the extra width) are
   unaffected. */
.auth-shell-wide { max-width: 620px; }
.auth-shell-wide .role-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.role-label-tile[href] { color: var(--c-ink); text-decoration: none; }
.role-label-tile[href]::after { display: none; }

/* ==========================================================================
  14. Retailer top bar + side nav
   ========================================================================== */
.ret-bar {
  background: linear-gradient(100deg, var(--c-navy-dk, #0f2541) 0%, #0d6e45 55%, #118654 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.22);
}
.ret-brand-zsu { font-family: 'Fraunces', serif; font-weight: 900; }
.ret-side nav a {
  position: relative;
}
.ret-side nav a.active {
  color: var(--c-primary-strong);
  background: var(--c-primary-soft);
}
.ret-side nav a.active::before {
  content: '';
  position: absolute; left: -0.7rem; top: 18%; bottom: 18%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--c-primary);
}
.ret-side nav a.active .ret-nav-ico { color: var(--c-primary-strong); }
[data-theme="dark"] .ret-side nav a.active { background: rgba(46,204,113,.14); }

.ret-page-head-identity .ret-shop-logo { box-shadow: var(--shadow-1); }
.ret-notice { box-shadow: var(--shadow-1); }

/* ==========================================================================
  15. Retailer landing page (layouts/retailer-landing.php)
   --------------------------------------------------------------------------
   ⚠ This page hand-codes its own hex palette rather than using style.css's
   CSS custom properties (--c-primary etc.), and its dark elements (`.rl-why`,
   `.rl-header`, `.rl-footer`, `.rl-why-list li` in white text) are already
   correctly paired with dark backgrounds. Every rule below was checked
   against style.css's existing `.rl-*` block (line ~7072) before being
   written, specifically so nothing here repeats that background against
   light text, or light against light. Only additive depth/gradient/motion —
   no background or text colour that existing markup depends on is replaced
   with something incompatible. */

/* The full ZAMASU wordmark lockup squeezed into a 36px square rendered as a
   barely-visible sliver (object-fit:contain letterboxes a 677×369 image down
   to a few px tall). object-position centres the crop on the green/gold
   SYMBOL instead of the whole lockup, and a white plate is added because the
   symbol's own colours read better on white than directly on the navy bar —
   the same reasoning the consumer landing page's medallion uses. */
.rl-header-logo {
  width: 42px; height: 42px; border-radius: 11px;
  object-fit: cover; object-position: 50% 36%;
  background: #fff; padding: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
}

.rl-header {
  background: linear-gradient(100deg, #0f2541 0%, #0d6e45 65%, #118654 100%);
}

.rl-steps-grid { box-shadow: var(--shadow-2); }
.rl-step { border-radius: var(--r-2); transition: transform .3s var(--easing-spring), background .25s; }
.rl-step:hover { transform: translateY(-3px); background: #f4faf6; }
.rl-step-num {
  background: linear-gradient(135deg, #1e8b4d, #27ae60);
  box-shadow: 0 4px 10px rgba(39,174,96,.35);
}

/* `.rl-why` is a dark navy card with WHITE text already — this adds a
   contained decorative glow on top of that same dark background, the same
   "radial highlight in a dark band" pattern already used by `.public-footer`
   and the consumer landing page. It does not change the background colour or
   any text colour, so the existing white-on-navy contrast is untouched. */
.rl-why { position: relative; overflow: hidden; }
.rl-why::before {
  content: '';
  position: absolute; top: -60px; right: -60px; width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,174,96,.35), transparent 70%);
  pointer-events: none;
}
.rl-why > * { position: relative; z-index: 1; }

.rl-register-cta-bar {
  background: linear-gradient(120deg, #1e8b4d, #27ae60 60%, #2ecc71);
  box-shadow: var(--shadow-2);
}

/* ==========================================================================
  16. Retina / high-DPI hairlines. A 1px border is 2 physical pixels at 2x
       and reads slightly heavy; .5px is exactly one device pixel.
   ========================================================================== */
@media (min-resolution: 2dppx) {
  .card, .step, .adm-stat-card, .helper-row {
    border-width: .5px;
  }
}

/* ==========================================================================
  17. Reduced motion — respected everywhere this file adds a transition.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .adm-stat-card, a.adm-stat-card, .helper-row, .rl-step, .bottom-nav a svg {
    transition: none !important;
  }
}

/* ==========================================================================
   18. Taxi rank glass system
   --------------------------------------------------------------------------
   Rank pages are decision surfaces: location, queue pressure, wait time and
   one clear action. These rules give that journey a shared glass language
   without changing its existing layout or mobile wrapping behavior. */
.sqm-portal-hero,
.sqm-live,
.sqm-stat,
.sqm-area-row,
.sqm-q,
.sqm-ticket,
.sqm-stepper,
.sqm-warn,
.sqm-photos img,
#sqm-map,
#sqm-rank-map,
#sqm-trip-map {
  border: 1px solid color-mix(in srgb, var(--c-primary) 22%, var(--c-line));
  box-shadow: 0 14px 34px -20px rgba(13,26,18,.45), 0 1px 0 rgba(255,255,255,.3) inset;
}
.sqm-portal-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.25), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--c-primary-strong) 82%, transparent), color-mix(in srgb, var(--c-primary) 70%, #0b3d2a));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 22px 48px -24px rgba(13,26,18,.55), 0 1px 0 rgba(255,255,255,.28) inset;
}
.sqm-portal-hero::before,
.sqm-live::before,
.sqm-q::before,
.sqm-area-row::before,
.sqm-ticket::before,
.sqm-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.22), transparent 36%);
  opacity: .8;
}
.sqm-portal-hero > *, .sqm-live > *, .sqm-q > *, .sqm-area-row > *,
.sqm-ticket > *, .sqm-stat > * { position: relative; z-index: 1; }

.sqm-live,
.sqm-q,
.sqm-stat,
.sqm-area-row,
.sqm-ticket,
.sqm-warn {
  position: relative;
  background: color-mix(in srgb, var(--c-surface) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}
.sqm-live {
  border-color: color-mix(in srgb, var(--c-success) 42%, var(--c-line));
  box-shadow: 0 18px 42px -24px rgba(39,174,96,.55), 0 1px 0 rgba(255,255,255,.35) inset;
  transition: transform .3s var(--easing-spring), box-shadow .3s var(--easing), border-color .25s var(--easing);
}
.sqm-live:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -24px rgba(39,174,96,.65), 0 1px 0 rgba(255,255,255,.35) inset; }
.sqm-stat { transition: transform .28s var(--easing-spring), box-shadow .28s var(--easing), border-color .25s var(--easing); }
.sqm-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), 0 1px 0 rgba(255,255,255,.35) inset; border-color: color-mix(in srgb, var(--c-primary) 48%, var(--c-line)); }
.sqm-stat-v, .sqm-pos, .sqm-fare, .sqm-bignum, .sqm-rowcount { text-shadow: 0 5px 18px color-mix(in srgb, var(--c-primary) 18%, transparent); }

.sqm-area-row {
  transition: transform .28s var(--easing-spring), box-shadow .28s var(--easing), border-color .25s var(--easing), background-color .25s var(--easing);
}
.sqm-area-row:hover { transform: translateX(5px) translateY(-2px); box-shadow: var(--shadow-2), 0 1px 0 rgba(255,255,255,.35) inset; border-color: color-mix(in srgb, var(--c-primary) 52%, var(--c-line)); }
.sqm-area-row .sqm-rowcount { color: var(--c-primary-strong); }
.sqm-chip, .sqm-waitpill, .sqm-livetag, .sqm-status {
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 4px 12px -8px rgba(13,26,18,.6), 0 1px 0 rgba(255,255,255,.3) inset;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.sqm-q { position: relative; transition: transform .3s var(--easing-spring), box-shadow .3s var(--easing), border-color .25s var(--easing); }
.sqm-q:hover { transform: translateY(-5px); box-shadow: 0 22px 42px -22px rgba(13,26,18,.5), 0 1px 0 rgba(255,255,255,.35) inset; border-color: color-mix(in srgb, var(--c-primary) 50%, var(--c-line)); }
.sqm-dest { letter-spacing: -.015em; }
.sqm-waitpill { padding-inline: .9rem; }
.sqm-fare { font-size: clamp(1.55rem, 4vw, 2rem); color: var(--c-primary-strong); }
.sqm-join-btn, .sqm-cta {
  box-shadow: 0 12px 24px -14px currentColor, 0 1px 0 rgba(255,255,255,.3) inset;
  transition: transform .22s var(--easing-spring), filter .22s var(--easing), box-shadow .22s var(--easing);
}
@media (hover: hover) {
  .sqm-join-btn:hover, .sqm-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px currentColor, 0 1px 0 rgba(255,255,255,.3) inset; }
}
.sqm-stepper { background: color-mix(in srgb, var(--c-surface-2) 68%, transparent); }
.sqm-step-btn { box-shadow: 0 4px 10px -8px rgba(13,26,18,.6), 0 1px 0 rgba(255,255,255,.4) inset; }
.sqm-photos img { transition: transform .3s var(--easing-spring), box-shadow .3s var(--easing), filter .3s var(--easing); }
.sqm-photos a:hover img { transform: scale(1.025) rotate(.5deg); filter: saturate(1.08); box-shadow: var(--shadow-2); }
#sqm-map, #sqm-rank-map, #sqm-trip-map { box-shadow: var(--shadow-2), 0 1px 0 rgba(255,255,255,.35) inset; filter: saturate(.9) contrast(1.02); }

[data-theme="dark"] .sqm-live,
[data-theme="dark"] .sqm-q,
[data-theme="dark"] .sqm-stat,
[data-theme="dark"] .sqm-area-row,
[data-theme="dark"] .sqm-ticket,
[data-theme="dark"] .sqm-warn {
  background: color-mix(in srgb, var(--c-surface) 72%, transparent);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.08) inset;
}
@media (prefers-reduced-motion: reduce) {
  .sqm-live, .sqm-stat, .sqm-area-row, .sqm-q, .sqm-join-btn, .sqm-cta,
  .sqm-photos img { transition: none; }
  .sqm-live:hover, .sqm-stat:hover, .sqm-area-row:hover, .sqm-q:hover,
  .sqm-join-btn:hover, .sqm-cta:hover, .sqm-photos a:hover img { transform: none; }
}
