/*
 * MAYA Suvlari Mini App — "Obsidian & Glacier Mineral" design system.
 * Mobile-first architectural layout for Telegram WebView (320px–480px+).
 */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --bg: #f3f2ee;
  --outer-bg: #e6e4dc;
  --surface: #ffffff;
  --surface-soft: #eae7df;
  --ink: #0a2230;
  --ink-2: #344958;
  --muted: #657684;
  --obsidian: #0a2230;
  --obsidian-deep: #061822;
  --glacier-mid: #10394d;
  --teal: #0d9488;
  --teal-deep: #0b786e;
  --teal-bright: #14b8a6;
  --teal-soft: #dff4f1;
  --teal-line: #a7ddd6;
  --crimson: #d6242f;
  --crimson-soft: #fdecee;
  --amber: #8a5300;
  --amber-soft: #fdf4e2;
  --amber-line: #ebd094;
  --line: rgba(10, 34, 48, 0.09);
  --shadow: 0 4px 18px rgba(10, 34, 48, 0.05), 0 1px 2px rgba(10, 34, 48, 0.04);
  --shadow-lg: 0 16px 36px rgba(6, 24, 34, 0.18);
  --radius: 22px;
  --radius-sm: 14px;
  --tabbar-h: 78px;
  --actionbar-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  background: var(--outer-bg);
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--outer-bg);
  line-height: 1.45;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dt,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.42);
  outline-offset: 2px;
}

.ic {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ic-sm {
  width: 16px;
  height: 16px;
}

/* App Shell */
.app {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: clip;
  box-shadow: 0 0 0 1px rgba(10, 34, 48, 0.06), 0 22px 54px rgba(10, 34, 48, 0.10);
  display: flex;
  flex-direction: column;
}

#main {
  flex: 1;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
}

.app.is-sub #main {
  padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom) + 20px);
}

.app.is-sub .topbar,
.app.is-sub .tabbar {
  display: none;
}

/* Mode Banner */
.mode-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: var(--amber-soft);
  border-bottom: 1px solid var(--amber-line);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.mode-banner .ic {
  width: 16px;
  height: 16px;
}

.mode-banner.is-warn {
  background: var(--crimson-soft);
  border-bottom-color: #f4c2c7;
  color: #931620;
}

.app:not(.has-banner) .topbar {
  padding-top: calc(10px + env(safe-area-inset-top));
}

/* Slim Architectural Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(243, 242, 238, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 2px;
  min-height: 44px;
  text-align: left;
}
.brand-emblem {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 4px;
  box-shadow: 0 2px 6px rgba(10, 34, 48, 0.05);
}
.brand-emblem svg { width: 24px; height: 11px; }
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--crimson);
}
.brand-sub {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.address-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 58%;
  min-height: 40px;
  padding: 6px 10px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(10, 34, 48, 0.04);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.chip-pin { display: none; width: 15px; height: 15px; color: var(--teal); }
.address-chip .ic-sm { color: var(--muted); }
.address-chip span#address-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-chip.is-set {
  border-color: var(--teal-line);
  background: var(--teal-soft);
  color: var(--obsidian);
}
.address-chip.is-set .chip-dot { display: none; }
.address-chip.is-set .chip-pin { display: block; }
.address-chip:active { transform: scale(0.97); }

.address-chip:active {
  transform: scale(0.98);
}

/* Views */
.view {
  padding: 10px 16px 18px;
  animation: viewIn 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.view-sub { padding-top: 0; }

@keyframes viewIn {
  from { opacity: 0.88; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.sub-head {
  position: sticky;
  top: 0;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -16px 14px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(243, 242, 238, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app.has-banner .sub-head { padding-top: 10px; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--teal-deep);
  text-transform: uppercase;
}

.page-head { margin-bottom: 16px; }

.page-head h1 {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head p:not(.eyebrow) {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.section-title {
  margin: 22px 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s, border-color 0.15s, transform 0.12s, opacity 0.15s;
}
.btn:active:not(:disabled) { transform: scale(0.985); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; }

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--obsidian);
  color: #ffffff;
  min-height: 52px;
  justify-content: space-between;
  padding: 13px 18px;
  box-shadow: 0 8px 20px rgba(10, 34, 48, 0.18);
}
.btn-primary:hover:not(:disabled) { background: var(--obsidian-deep); }
.btn-primary:has(> :only-child),
.btn-primary.btn-center {
  justify-content: center;
}

.btn-luminous {
  background: #ffffff;
  color: var(--obsidian);
  min-height: 46px;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 7px 7px 14px;
  font-size: 14.5px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.btn-luminous:hover:not(:disabled) { background: #f2fbfa; }

.btn-meta {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-meta-dark {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 6px 9px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 12.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--teal-soft);
  border-color: var(--teal-line);
}

.btn-small {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 13px;
}

.btn-danger { background: var(--crimson); color: #fff; }

.btn-danger-ghost {
  background: var(--surface);
  border-color: #f3cfd3;
  color: var(--crimson);
  margin-top: 16px;
}

.btn-block {
  width: 100%;
}

.btn-grow {
  flex: 1;
  min-width: 0;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn-quiet {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border-color: transparent;
  background: var(--surface-soft);
  color: var(--muted);
}
.icon-btn-quiet:hover { color: var(--crimson); background: var(--crimson-soft); }
.icon-btn-float {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.icon-btn-glass {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

/* Steppers */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.step-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 0;
  background: var(--surface);
  color: var(--obsidian);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(10, 34, 48, 0.06);
}
.step-btn .ic { width: 17px; height: 17px; }
.step-btn:disabled {
  color: #aeb8c0;
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.step-val {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stepper-lg .step-btn {
  width: 42px;
  height: 42px;
}

.stepper-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  padding: 4px;
  flex-shrink: 0;
}

.stepper-dark .step-btn {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: none;
}
.stepper-dark .step-btn:disabled {
  background: transparent;
  color: rgba(255, 255, 255, 0.34);
}
.stepper-dark .step-val { color: #ffffff; min-width: 22px; font-size: 15px; }

/* ---- HOME: Obsidian Flagship Showcase ---- */
.hero-flagship {
  position: relative;
  border-radius: 28px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at 86% 24%, rgba(20, 184, 166, 0.24), transparent 46%),
    linear-gradient(155deg, #071925 0%, #0b2c3d 54%, #11455b 100%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(7, 25, 37, 0.24);
  overflow: hidden;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11.5px;
  font-weight: 700;
  color: #dbeff0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.22);
}

.hero-vol-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.22);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 700;
}
.hero-vol-pill b { font-size: 14px; font-weight: 800; color: #ffffff; }

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
}
.hero-copy h1 {
  margin-top: 6px;
  font-size: clamp(22px, 5.8vw, 27px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #ffffff;
}
.hero-glow {
  color: #7dd3fc;
}
.hero-price-block {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-price {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.hero-price small {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.hero-price-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(226, 240, 245, 0.72);
}

.hero h1 .accent {
  color: var(--blue);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 176px;
}

.hero-aura {
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.34), rgba(56, 189, 248, 0.08) 65%, transparent 74%);
}
.hero-ring {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.hero-stage img {
  position: relative;
  z-index: 1;
  height: 168px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}


.hero-dock {
  margin-top: 14px;
  padding: 6px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 8px;
}


.hero-foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 6px;
  border: 0;
  background: none;
  color: rgba(226, 240, 245, 0.86);
  font-size: 12.5px;
  font-weight: 700;
}

.hero-foot-btn:active { opacity: 0.72; }

.buy-panel .btn-link {
  margin-top: -2px;
}

/* Home interactive delivery bar */
.home-loc-bar {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s, transform 0.12s;
}

.home-loc-bar:active { transform: scale(0.99); }
.home-loc-bar.is-set {
  border-color: var(--teal-line);
  background: linear-gradient(135deg, #ffffff 0%, #effaf8 100%);
}
.home-loc-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.home-loc-txt { flex: 1; min-width: 0; }
.home-loc-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-loc-txt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-loc-cta {
  padding: 7px 11px;
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.home-loc-bar.is-set .home-loc-cta {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.perk-ic .ic {
  width: 18px;
  height: 18px;
}

/* Home last order */
.last-order {
  margin-top: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.last-order-info {
  min-width: 0;
}

.last-order-info b { display: block; font-size: 14px; font-weight: 800; }

.last-order-info small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Home Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bento-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.bento-ic {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bento-ic.is-teal { background: var(--teal-soft); color: var(--teal-deep); }
.bento-ic.is-slate { background: var(--surface-soft); color: var(--obsidian); }
.bento-ic.is-emerald { background: #e3f5ec; color: #0f7a53; }
.bento-card b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.bento-card p { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.how-list b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.how-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.tag-ok { background: var(--teal-soft); color: var(--teal-deep); }
.tag-pending { background: #e5eef5; color: var(--obsidian); }
.tag-demo { background: var(--amber-soft); color: var(--amber); }
.tag-error { background: var(--crimson-soft); color: var(--crimson); }
.tag-muted { background: var(--surface-soft); color: var(--muted); }

.tag-ok {
  background: var(--green-soft);
  color: var(--green);
}

.tag-pending {
  background: var(--blue-soft);
  color: var(--blue);
}

.tag-demo {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag-error {
  background: var(--red-soft);
  color: var(--red);
}

.tag-muted {
  background: var(--surface-2);
  color: var(--muted);
}

/* ---- CATALOG ---- */
.cat-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-filters::-webkit-scrollbar { display: none; }
.filter-pill {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}
.filter-pill.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #ffffff;
}

.cat-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.cat-feature-media {
  position: relative;
  height: 196px;
  background:
    radial-gradient(circle at 50% 60%, rgba(20, 184, 166, 0.25), transparent 65%),
    linear-gradient(155deg, #0b2838 0%, #144960 100%);
  display: grid;
  place-items: center;
  padding: 14px;
  cursor: pointer;
}
.cat-feature-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}
.cat-feature-media img {
  height: 170px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.35));
}
.cat-feature-body { padding: 16px; }
.cat-feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.cat-feature-head h2 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.cat-feature-head p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.cat-feature-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--obsidian);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cat-feature-price small { font-size: 12px; font-weight: 600; color: var(--muted); }

.tile-arrow {
  color: var(--muted);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.cat-chips span {
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.cat-feature-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.cat-soon {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  opacity: 0.78;
}
.cooler-art {
  width: 76px;
  height: 86px;
  border-radius: 16px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cooler-art svg { height: 64px; width: auto; }
.cat-soon-body h3 { margin-top: 6px; font-size: 16px; font-weight: 800; }
.cat-soon-body p { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ---- PRODUCT DETAIL: Full-bleed stage + rising sheet ---- */
.view-product { padding-top: 0; }
.product-stage {
  position: relative;
  margin: 0 -16px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 36px;
  height: 300px;
  background:
    radial-gradient(circle at 50% 60%, rgba(20, 184, 166, 0.28), transparent 60%),
    linear-gradient(165deg, #071925 0%, #0d3246 65%, #12485f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.app.has-banner .product-stage { padding-top: 12px; }
.product-stage-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.stage-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2f5f3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.product-stage img {
  position: relative;
  z-index: 1;
  height: 215px;
  margin-top: -4px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48));
}

.product-sheet {
  position: relative;
  z-index: 3;
  margin: -26px -16px 0;
  padding: 12px 16px 18px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
}
.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #d2cfc5;
  margin: 0 auto 14px;
}
.product-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sheet-price {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sheet-price small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.product-sheet h1 {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}


.spec-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.spec-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 13px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec-ic {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}
.spec-ic .ic { width: 17px; height: 17px; }
.spec-tile small { font-size: 12px; color: var(--muted); }
.spec-tile b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.spec-list>div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---- CART ---- */
.cart-line {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
}
.cart-thumb {
  width: 74px;
  min-height: 92px;
  border-radius: 16px;
  background: linear-gradient(155deg, #0b2838 0%, #144960 100%);
  display: grid;
  place-items: center;
  padding: 8px;
  flex-shrink: 0;
}
.cart-thumb img { height: 76px; width: auto; object-fit: contain; }

.cart-line-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-line-head b { font-size: 15px; font-weight: 800; }
.cart-line-body > small { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.cart-line-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-line-total {
  font-size: 15px;
  font-weight: 800;
  color: var(--obsidian);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-loc-preview {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.cart-loc-preview.is-set {
  border-color: var(--teal-line);
  background: #f2fbf9;
}

/* Perforated Receipt Box & Summary Rows */
.receipt-box {
  position: relative;
  margin-top: 14px;
  padding: 16px;
}

.sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}
.sum-row span { color: var(--muted); }
.sum-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-row b.ok { color: var(--teal-deep); }
.sum-total {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1.5px dashed rgba(10, 34, 48, 0.16);
  font-size: 17px;
}
.sum-total span { color: var(--ink); font-weight: 800; }
.sum-total b { font-size: 19px; font-weight: 800; color: var(--obsidian); }

.sum-total span {
  color: var(--ink);
  font-weight: 800;
}

.sum-total b {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
}

.cart-action-inline {
  position: static;
  left: auto;
  transform: none;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

/* Sticky bottom action bar (subviews) */
.action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 480px);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(10, 34, 48, 0.08);
}

.action-total {
  display: flex;
  flex-direction: column;
  min-width: 92px;
}
.action-total small { font-size: 11px; color: var(--muted); font-weight: 700; }
.action-total b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.action-total small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.action-total b {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.keyboard-open .action-bar {
  position: static;
  transform: none;
  margin: 16px -16px -16px;
  width: auto;
}

/* ---- CHECKOUT PROGRESS & FORM ---- */
.progress-shell {
  position: relative;
  margin-bottom: 18px;
}
.progress-track {
  position: absolute;
  top: 20px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: rgba(10, 34, 48, 0.10);
  border-radius: 99px;
  z-index: 0;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--teal);
  border-radius: 99px;
  transition: width 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.progress-btn {
  width: 100%;
  border: 0;
  background: none;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.progress-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.progress-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d5d2c8;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.progress li.is-active .progress-btn { color: var(--obsidian); }
.progress li.is-active .progress-num {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(10, 34, 48, 0.12);
}
.progress li.is-done .progress-btn { color: var(--teal-deep); }
.progress li.is-done .progress-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.step { border: 0; margin: 0; padding: 0; min-width: 0; }

.step-title {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.group-label {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
}

.form-group-card {
  margin-top: 12px;
  padding: 4px 16px 16px;
}
.field {
  margin-top: 14px;
}

.field label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.req { color: var(--crimson); }
.opt { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid rgba(10, 34, 48, 0.12);
  border-radius: 13px;
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field textarea { min-height: 74px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8c99a5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--crimson);
  background: #fff9fa;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.fine { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.field-error { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--crimson); }

.fine.center {
  text-align: center;
  margin-top: 12px;
}

/* Checkout Location Card & Live Mini-Map Preview */
.loc-card {
  position: relative;
  overflow: hidden;
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.loc-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, rgba(13, 148, 136, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 35%, #000 10%, transparent 72%);
  pointer-events: none;
}

.loc-illus {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: var(--obsidian);
  color: #5eead4;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(10, 34, 48, 0.16);
}

.loc-illus .ic {
  width: 24px;
  height: 24px;
}

.loc-card-title { position: relative; font-size: 16px; font-weight: 800; }
.loc-lead { position: relative; font-size: 13px; color: var(--muted); max-width: 280px; }
.loc-card-actions {
  position: relative;
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.loc-card-actions .btn { justify-content: center; }

.loc-picked { padding: 10px; }
.mini-map-box {
  position: relative;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(10, 34, 48, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 34, 48, 0.06) 1px, transparent 1px),
    #dfebe8;
  background-size: 24px 24px;
  cursor: pointer;
}
.mini-map-canvas {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.mini-map-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 34, 48, 0.88);
  color: #5eead4;
  font-size: 11.5px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.loc-picked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px 4px;
}


.loc-picked-txt {
  flex: 1;
  min-width: 0;
}

.loc-picked-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.loc-picked-txt small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-picked-btns { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.geo-status {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.geo-status.is-loading { background: #e8f3f7; border-color: #b7d8e5; color: var(--obsidian); }
.geo-status.is-error { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.geo-status.is-ok { background: var(--teal-soft); border-color: var(--teal-line); color: var(--teal-deep); }
.geo-status-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.geo-status.is-loading {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue-dark);
}

.geo-status.is-error {
  background: var(--amber-soft);
  border-color: var(--amber-line);
  color: var(--amber);
}

.geo-status.is-ok {
  background: var(--green-soft);
  border-color: #b7e4d3;
  color: #0b6948;
}

.geo-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.suggest-label { font-size: 11px; font-weight: 800; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.04em; }
.suggest-text { font-size: 14px; font-weight: 700; color: var(--ink); }

.suggest-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.suggest-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Notices */
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.45;
}
.notice .ic { width: 18px; height: 18px; margin-top: 1px; }
.notice-info { background: var(--teal-soft); border: 1px solid var(--teal-line); color: var(--teal-deep); }
.notice-warn { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); }
.notice-demo { background: var(--amber-soft); border: 1px solid var(--amber-line); color: var(--amber); }
.notice-error { background: var(--crimson-soft); border: 1px solid #f4c2c7; color: #931620; }

.notice .ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.notice-warn {
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--amber);
}

.notice-demo {
  background: var(--amber-soft);
  border: 1px solid var(--amber-line);
  color: var(--amber);
}

.notice-error {
  background: var(--red-soft);
  border: 1px solid #f5c2c7;
  color: #961622;
}

/* Date & Slot Cards */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-width: 90px;
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.chip b {
  font-size: 14px;
  font-weight: 800;
}

.chip small {
  font-size: 12px;
  color: var(--muted);
}

.chip.is-selected {
  border-color: var(--obsidian);
  background: var(--obsidian);
  color: #ffffff;
}
.chip.is-selected b { color: #5eead4; }
.chip.is-selected small { color: rgba(255, 255, 255, 0.78); }

.slots { display: grid; gap: 9px; }
.slot-card {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.slot-card-left { display: flex; align-items: center; gap: 10px; }
.slot-card-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--obsidian);
  display: grid;
  place-items: center;
}
.slot-card b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slot-card small {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.slot-card.is-selected {
  border-color: var(--teal);
  background: #f1fbf9;
}
.slot-card.is-selected .slot-card-ic { background: var(--teal); color: #ffffff; }
.slot-card.is-selected small { background: var(--teal-soft); color: var(--teal-deep); }
.slot-card:disabled { opacity: 0.52; cursor: not-allowed; background: var(--surface-soft); }

.slot-state {
  padding: 20px 16px;
  border-radius: 18px;
  border: 1.5px dashed rgba(10, 34, 48, 0.16);
  background: var(--surface);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* Review & Payment */
.review { padding: 4px 16px; }
.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.review-row b {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.review-edit {
  border: 0;
  background: var(--surface-soft);
  color: var(--obsidian);
  border-radius: 10px;
  padding: 6px 10px;
  min-height: 36px;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.pay {
  margin-top: 12px;
  padding: 14px 16px;
}

.pay .group-label {
  margin-top: 0;
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  border: 1.5px solid var(--obsidian);
  background: #f6f8f8;
  cursor: pointer;
}

.pay-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--obsidian);
  color: #5eead4;
  display: grid;
  place-items: center;
}

.pay-txt {
  flex: 1;
}

.pay-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.pay-txt small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 6px solid var(--obsidian);
  background: #fff;
}
.pay-soon-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pay-soon-row span {
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

/* Success Screen */
.success {
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}
.success-mark.is-demo { background: var(--amber-soft); color: var(--amber); }
.success-mark .ic { width: 34px; height: 34px; stroke-width: 2.3; }
.success h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; }
.success > p { font-size: 14px; color: var(--muted); max-width: 310px; }
.order-ticket {
  width: 100%;
  margin: 8px 0 4px;
  padding: 16px;
  text-align: left;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed rgba(10, 34, 48, 0.15);
}
.ticket-id { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticket-rows { margin-top: 12px; display: grid; gap: 8px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.ticket-row span { color: var(--muted); }
.ticket-row b { text-align: right; font-weight: 700; word-break: break-word; }
.success-actions { width: 100%; display: grid; gap: 8px; margin-top: 8px; }
.success-actions .btn { justify-content: center; }

.ticket-id {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ticket-rows {
  margin-top: 10px;
  display: grid;
  gap: 7px;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.ticket-row span {
  color: var(--muted);
}

.ticket-row b {
  text-align: right;
  font-weight: 700;
  word-break: break-word;
}

/* ---- ORDERS ---- */
#orders-body { display: grid; gap: 11px; margin-top: 12px; }

.order-card {
  padding: 14px 16px;
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-card-head b {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.order-card-head time {
  font-size: 12px;
  color: var(--muted);
}

.order-card-main {
  margin: 10px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.order-card-main span { font-size: 14px; font-weight: 700; }
.order-card-main strong { font-size: 16px; font-weight: 800; color: var(--obsidian); font-variant-numeric: tabular-nums; }
.order-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 10px 0 8px;
}
.tl-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--surface-soft);
}
.tl-bar.is-done { background: var(--teal); }
.tl-bar.is-wait { background: #cbd5e1; }
.order-card-meta { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Empty & Skeleton */
.empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-ic {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
}

.empty-ic .ic {
  width: 28px;
  height: 28px;
}

.empty h2 {
  font-size: 18px;
  font-weight: 800;
}

.empty p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
}

.empty .btn {
  margin-top: 6px;
  min-width: 180px;
  justify-content: center;
}

.skeleton {
  height: 104px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #eae7df 25%, #f5f4ef 50%, #eae7df 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

/* ---- PROFILE ---- */
.profile-hero-card {
  padding: 18px 16px;
  border-radius: 24px;
  background: linear-gradient(155deg, #071925 0%, #0f3a4f 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 28px rgba(7, 25, 37, 0.16);
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #5eead4;
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.profile-txt { min-width: 0; }
.profile-txt b { display: block; font-size: 17px; font-weight: 800; }
.profile-txt small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.74); }
.profile-cid {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  color: #a7f3d0;
}

.profile-txt {
  min-width: 0;
}

.profile-txt b {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.profile-txt small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.list-row {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.info-list { padding: 8px 16px; }
.info-list .sum-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list .sum-row:last-child { border-bottom: 0; }

.row-body b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.row-body small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.row-arrow {
  color: var(--muted);
}

.info-list {
  padding: 8px 16px;
}

.info-list .sum-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.info-list .sum-row:last-child {
  border-bottom: 0;
}

/* ---- FULL-SCREEN EMBEDDED MAP ---- */
.map-view {
  position: fixed;
  inset: 0;
  width: min(100%, 480px);
  margin: 0 auto;
  z-index: 40;
  background: #dce7e5;
  display: flex;
  flex-direction: column;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #dce7e5;
}

.map-header {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 4px;
  pointer-events: none;
}
.map-header > * { pointer-events: auto; }
.map-top { display: flex; align-items: center; gap: 10px; }
.map-title {
  margin: 0;
  padding: 9px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  font-size: 15px;
  font-weight: 800;
}

.map-districts {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}
.map-districts::-webkit-scrollbar { display: none; }
.district-pill {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(10, 34, 48, 0.10);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(6, 24, 34, 0.12);
  color: var(--obsidian);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.district-pill.is-active {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #5eead4;
}

.map-hint {
  align-self: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(10, 34, 48, 0.86);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.map-loading,
.map-fail {
  position: relative;
  z-index: 4;
  margin: auto 20px;
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  font-size: 14px;
}

.map-fail .ic {
  width: 28px;
  height: 28px;
  color: var(--amber);
}

.map-fail p {
  font-size: 13px;
  color: var(--muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--teal-soft);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.map-fabs {
  position: relative;
  z-index: 4;
  margin: auto 14px 12px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.map-zoom-group {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.95);
}
.map-zoom-group .fab-sm {
  border-radius: 0;
  box-shadow: none;
  border: 0;
  height: 42px;
  width: 46px;
  background: transparent;
}
.map-zoom-group .fab-sm + .fab-sm {
  border-top: 1px solid var(--line);
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.96);
  color: var(--obsidian);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.fab-primary {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: #5eead4;
}
.fab:active { transform: scale(0.94); }

.fab-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.fab:active {
  transform: scale(0.94);
}

.map-sheet {
  position: relative;
  z-index: 5;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(6, 24, 34, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #d2cfc5;
  align-self: center;
}

.map-sel { display: flex; align-items: center; gap: 12px; }

.map-sel-ic {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--obsidian);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.map-sel.is-ready .map-sel-ic { background: var(--teal-soft); color: var(--teal-deep); }
.map-sel-txt { min-width: 0; }
.map-sel-txt b { display: block; font-size: 15px; font-weight: 800; }
.map-sel-txt small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-sheet .btn-primary { justify-content: center; }

.map-sel.is-ready .map-sel-ic {
  background: var(--green-soft);
  color: var(--green);
}

.map-sel-txt {
  min-width: 0;
}

.map-sel-txt b {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.map-sel-txt small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.map-sheet .btn-primary {
  justify-content: center;
}

/* Custom Leaflet pin + controls */
.maya-pin {
  background: none;
  border: 0;
}

.maya-pin-wrap {
  position: relative;
  width: 40px;
  height: 48px;
  display: grid;
  place-items: center;
}
.maya-pin-pulse {
  position: absolute;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.35);
  animation: pinPulse 1.8s infinite ease-out;
}
@keyframes pinPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

.maya-pin-head {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--obsidian);
  border: 3px solid #ffffff;
  box-shadow: 0 8px 18px rgba(6, 24, 34, 0.38);
  display: grid;
  place-items: center;
}

.maya-pin-head::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5eead4;
}
.leaflet-control-zoom { display: none !important; }
.leaflet-bottom.leaflet-right {
  bottom: 164px;
  left: 10px;
  right: auto;
}
.leaflet-control-attribution {
  font-size: 9.5px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
}

/* ---- FLOATING CAPSULE TABBAR ---- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 456px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px;
  border-radius: 24px;
  background: rgba(10, 34, 48, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(6, 24, 34, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tab {
  position: relative;
  min-height: 48px;
  border: 0;
  background: none;
  border-radius: 18px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(226, 240, 245, 0.65);
  font-size: 10.5px;
  font-weight: 700;
  transition: color 0.15s, background 0.15s;
}
.tab .ic { width: 19px; height: 19px; }
.tab.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.tab.is-active .ic { color: #5eead4; }
.tab-ic { position: relative; display: inline-flex; }
.badge {
  position: absolute;
  top: -4px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

/* ---- FLOATING TOAST ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 14px);
  max-width: min(calc(100% - 32px), 420px);
  z-index: 80;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--obsidian);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Dialog */
.dialog {
  width: calc(100% - 32px);
  max-width: 380px;
  border: 0;
  border-radius: 24px;
  padding: 22px 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgba(6, 24, 34, 0.50);
  backdrop-filter: blur(5px);
}

.dialog h2 {
  font-size: 18px;
  font-weight: 800;
}

.dialog p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dialog-actions .btn {
  justify-content: center;
}

.noscript {
  margin: 24px 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
  text-align: center;
}

@media (max-width: 360px) {
  .view {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sub-head,
  .product-stage,
  .product-sheet { margin-left: -12px; margin-right: -12px; }
  .sub-head,
  .product-stage,
  .product-sheet { padding-left: 12px; padding-right: 12px; }
  .hero-flagship { padding: 14px 12px 12px; }
  .hero-split { grid-template-columns: 1fr 0.72fr; gap: 4px; }
  .hero-copy h1 { font-size: 20px; }
  .hero-price { font-size: 21px; }
  .hero-stage { height: 148px; }
  .hero-stage img { height: 140px; }
  .stepper-dark .step-btn { width: 30px; height: 30px; }
  .btn-luminous { padding: 6px 6px 6px 10px; font-size: 13px; }
  .btn-meta-dark { font-size: 11.5px; padding: 5px 7px; }
  .bento-grid,
  .field-row { grid-template-columns: 1fr; }
  .tab { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .view, .toast, .btn, .skeleton, .spinner, .maya-pin-pulse { animation: none !important; transition: none !important; }
}