@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #06070a;
  --surface: rgba(20, 16, 14, 0.55);
  --surface-strong: rgba(24, 19, 16, 0.9);
  --surface-flat: #121014;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f4f1ec;
  --text-muted: rgba(244, 241, 236, 0.6);
  --text-faint: rgba(244, 241, 236, 0.32);

  --accent: #ff4400;
  --accent-strong: #ffa100;
  --gold: #ffd700;
  --success: #5cff9c;
  --warning: #ffcc55;
  --danger: #ff5c6c;
  --glow: 0 8px 28px rgba(255, 68, 0, 0.45);
  --glow-lg: 0 14px 44px rgba(255, 68, 0, 0.5);

  --font: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px;

  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 22px; --radius-pill: 999px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms; --dur-med: 300ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overscroll-behavior: none; }
body {
  font-family: var(--font);
  background: var(--bg); color: var(--text);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; }
::selection { background: var(--accent); color: #1a0a02; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.bg-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--bg); pointer-events: none; contain: strict; isolation: isolate; }
.bg-mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(30rem 26rem at 15% -5%, rgba(255, 68, 0, 0.28), transparent 60%),
    radial-gradient(26rem 24rem at 100% 100%, rgba(255, 215, 0, 0.14), transparent 60%),
    radial-gradient(20rem 20rem at 50% 45%, rgba(255, 130, 0, 0.08), transparent 65%);
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, black 25%, transparent 85%);
}
.bg-noise {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

#loader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.loader-logo { display: flex; align-items: center; gap: 10px; }
.loader-flame { color: var(--accent-strong); filter: drop-shadow(0 0 14px rgba(255, 91, 31, 0.6)); }
.loader-flame svg { width: 34px; height: 34px; }
.loader-wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.loader-dots { display: flex; gap: 6px; }
.loader-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dotBounce 0.9s ease-in-out infinite; }
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; } 40% { transform: scale(1); opacity: 1; } }

#app { position: relative; z-index: 2; }

header {
  position: sticky; top: 0; z-index: 100;
  transform: translate3d(0, 0, 0); backface-visibility: hidden;
  background: rgba(6, 7, 10, 0.75); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border); padding: 13px 16px 0;
}
.hdr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-icon {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--gold)); color: #1a0a02;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
  animation: iconGlow 3s ease-in-out infinite;
}
.brand-icon svg { width: 17px; height: 17px; }
@keyframes iconGlow {
  0%, 100% { box-shadow: 0 3px 14px rgba(255, 68, 0, 0.4); }
  50% { box-shadow: 0 4px 22px rgba(255, 130, 0, 0.65); }
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name em {
  font-style: normal; background: linear-gradient(90deg, var(--gold), var(--accent-strong));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hdr-actions { display: flex; align-items: center; gap: 7px; }
.icon-btn {
  position: relative; height: 37px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text); font-weight: 600;
  padding: 0 12px; gap: 5px; white-space: nowrap;
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.ic { display: inline-flex; vertical-align: -3px; }
.ic svg { width: 14px; height: 14px; }
.ic-tiny svg { width: 9px; height: 9px; }
.cart-num {
  position: absolute; top: -6px; right: -6px;
  background: linear-gradient(135deg, var(--accent), var(--gold)); color: #1a0a02;
  border-radius: var(--radius-pill); padding: 1px 6px; font-size: 10px; font-weight: 800;
  border: 2px solid var(--bg); display: none;
}
.cart-num.show { display: block; animation: popIn 0.3s var(--ease-out); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

.search-row { display: none; padding-bottom: 11px; }
.search-row.open { display: block; animation: slideDown 0.2s var(--ease-out); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-faint); }
.search-box input {
  width: 100%; background: var(--surface-flat); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  color: var(--text); font-family: inherit; font-size: 14px; padding: 10px 14px 10px 34px;
}
.search-box input:focus { outline: none; border-color: var(--accent); }

/* overflow-x:auto forces overflow-y to clip too, which would crop the active tab's
   glow — pad the scroll track and pull it back with a matching negative margin so
   the glow has room without shifting the surrounding layout. */
.tabs {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
  padding: 8px 4px 18px; margin: -8px -4px -6px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); white-space: nowrap; user-select: none;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #1a0a02; border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 68, 0, 0.5); font-weight: 700;
}
.tab:not(.active):active { opacity: 0.6; }

.skel { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; animation: skelSweep 1.4s ease-in-out infinite; border-radius: 10px; }
@keyframes skelSweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

main { padding: 13px 13px 110px; position: relative; z-index: 1; transition: opacity 150ms ease; }
main.fading { opacity: 0.45; }
.sec-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 13px; padding: 0 2px; }
.sec-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.sec-cnt { font-size: 12px; color: var(--text-faint); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column; backdrop-filter: blur(10px);
  animation: cardIn 0.35s var(--ease-out) both;
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card:active { transform: scale(0.97); border-color: rgba(255, 130, 0, 0.4); box-shadow: var(--glow); }
.card:nth-child(1) { animation-delay: 0.02s; } .card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.08s; } .card:nth-child(4) { animation-delay: 0.11s; }
.card:nth-child(5) { animation-delay: 0.14s; } .card:nth-child(6) { animation-delay: 0.17s; }

.c-img { width: 100%; aspect-ratio: 1/1; position: relative; overflow: hidden; background: var(--surface-flat); display: flex; align-items: center; justify-content: center; }
.c-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.c-img-grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 45%, rgba(6,7,10,.85) 100%); }

.no-img-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.no-img-art::before {
  content: ''; position: absolute; inset: -20%;
  background: var(--art-grad, radial-gradient(circle at 30% 30%, rgba(255,68,0,.35), transparent 65%));
  filter: blur(18px); animation: artDrift 9s ease-in-out infinite alternate;
}
.no-img-art::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: radial-gradient(circle at 50% 50%, black 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 15%, transparent 70%);
}
@keyframes artDrift {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(8deg); }
}
.no-img-ico { position: relative; z-index: 1; color: rgba(255,255,255,.75); filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.no-img-ico svg { width: 32px; height: 32px; }
.c-badge { position: absolute; top: 8px; left: 8px; z-index: 3; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); backdrop-filter: blur(8px); }
.badge-ok { background: rgba(92, 255, 156, 0.15); color: var(--success); border: 1px solid rgba(92, 255, 156, 0.28); }
.badge-low { background: rgba(255, 204, 85, 0.15); color: var(--warning); border: 1px solid rgba(255, 204, 85, 0.28); }
.badge-out { background: rgba(255, 92, 108, 0.15); color: var(--danger); border: 1px solid rgba(255, 92, 108, 0.28); }
.c-info-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(6,7,10,.55); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px);
}
.c-info-btn svg { width: 13px; height: 13px; }

.c-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.c-name { font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-price {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--gold), var(--accent-strong));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.c-price-na { font-size: 11px; font-weight: 600; color: var(--danger); }

.fl-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.fl-list { display: flex; flex-direction: column; gap: 3px; }
.fl-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 4px 8px; border-radius: 8px; background: var(--surface-flat); border: 1px solid var(--border); }
.fl-name { font-size: 11px; color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-qty { font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 6px; flex-shrink: 0; }
.fl-qty.ok { background: rgba(92, 255, 156, .12); color: var(--success); }
.fl-qty.low { background: rgba(255, 204, 85, .12); color: var(--warning); }
.fl-qty.out { background: rgba(255, 92, 108, .1); color: var(--danger); }
.fl-reserved { font-size: 9px; color: var(--text-faint); flex-shrink: 0; white-space: nowrap; }
.fl-more { font-size: 10px; color: var(--text-faint); }

.c-btn {
  margin-top: auto; padding: 10px 4px; width: 100%; border: none; border-radius: var(--radius-sm);
  color: #1a0a02; font-size: 11.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 16px rgba(255, 68, 0, 0.35);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}
.c-btn:active { transform: scale(0.96); box-shadow: var(--glow); }
.c-btn.disabled { background: var(--surface-flat); color: var(--text-faint); box-shadow: none; }

#fab {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(70px) scale(0.9);
  opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #1a0a02; border: none;
  border-radius: var(--radius-pill); padding: 14px 26px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 9px; box-shadow: var(--glow-lg);
  z-index: 200; white-space: nowrap;
  transition: opacity var(--dur-med), transform var(--dur-med) var(--ease-out);
}
#fab.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: all; animation: fabPulse 2.2s ease-in-out 0.6s infinite; }
@keyframes fabPulse {
  0%, 100% { box-shadow: var(--glow-lg); }
  50% { box-shadow: 0 14px 50px rgba(255, 130, 0, 0.75), 0 0 0 6px rgba(255, 130, 0, 0.08); }
}
#fab-n { background: rgba(0,0,0,.18); border-radius: var(--radius-pill); padding: 2px 9px; font-size: 12px; font-weight: 800; }
#fab svg { width: 18px; height: 18px; flex-shrink: 0; }

.ov { position: fixed; inset: 0; z-index: 300; background: rgba(4,3,2,.65); backdrop-filter: blur(6px); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity var(--dur-med); }
.ov.on { opacity: 1; pointer-events: all; }
.sh {
  width: 100%; max-height: 92vh; overflow-y: auto; background: var(--surface-strong);
  border-radius: 22px 22px 0 0; border-top: 1px solid var(--border-strong);
  backdrop-filter: blur(24px);
  padding-bottom: max(env(safe-area-inset-bottom), 20px);
  transform: translateY(100%); transition: transform var(--dur-med) var(--ease-out);
}
.ov.on .sh { transform: translateY(0); }
.sh-drag { width: 36px; height: 4px; background: rgba(255,255,255,.16); border-radius: 2px; margin: 11px auto 0; }
.sh-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px 12px; border-bottom: 1px solid var(--border); }
.sh-title { font-size: 16px; font-weight: 800; }
.sh-x { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--surface-flat); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.sh-x svg { width: 14px; height: 14px; }

.p-desc { padding: 14px 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; border-bottom: 1px solid var(--border); }

.vr { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.vr-l { flex: 1; min-width: 0; }
.vr-name { font-size: 15px; font-weight: 700; }
.vr-stock { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.vr-stock.low { color: var(--warning); }
.qw { display: flex; align-items: center; gap: 6px; }
.qb { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-flat); color: var(--text); font-size: 17px; display: flex; align-items: center; justify-content: center; transition: background var(--dur-fast); }
.qb:active { background: var(--accent); color: #1a0a02; }
.qn { font-size: 15px; font-weight: 800; min-width: 20px; text-align: center; }
.btn-atc {
  border: none; border-radius: var(--radius-pill); padding: 8px 14px; color: #1a0a02; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 3px 12px rgba(255, 68, 0, 0.35); transition: transform var(--dur-fast) var(--ease-out);
}
.btn-atc:active { transform: scale(0.95); }
.btn-atc:disabled { background: var(--surface-flat); color: var(--text-faint); }

.cr { display: flex; align-items: center; gap: 11px; padding: 13px 18px; border-bottom: 1px solid var(--border); }
.cr-i { flex: 1; min-width: 0; }
.cr-name { font-size: 14px; font-weight: 700; }
.cr-sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.cr-price { font-size: 14px; font-weight: 800; color: var(--gold); }
.btn-rm { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(255,92,108,.1); color: var(--danger); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }
.total-lbl { font-size: 13px; color: var(--text-muted); }
.total-val {
  font-size: 23px; font-weight: 800;
  background: linear-gradient(90deg, var(--gold), var(--accent-strong));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.deliv-block { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 11px; }
.deliv-toggle { display: flex; gap: 7px; background: var(--surface-flat); padding: 4px; border-radius: var(--radius-pill); }
.deliv-opt {
  flex: 1; padding: 9px 10px; border: none; border-radius: var(--radius-pill); background: transparent;
  color: var(--text-muted); font-size: 13px; font-weight: 700; transition: background var(--dur-fast), color var(--dur-fast);
}
.deliv-opt.active { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: #1a0a02; box-shadow: 0 3px 10px rgba(255, 68, 0, 0.35); }
.deliv-address-block { display: flex; flex-direction: column; gap: 9px; }
.deliv-address-block[hidden] { display: none; }
.addr-input-wrap { position: relative; }
.addr-input-wrap svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--accent-strong);
}
.addr-input-wrap input {
  width: 100%; background: var(--surface-flat); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  color: var(--text); font-family: inherit; font-size: 14px; padding: 13px 14px 13px 38px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.addr-input-wrap input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 68, 0, 0.15); }
.addr-input-wrap input::placeholder { color: var(--text-faint); }
.deliv-map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md); background: transparent; color: var(--accent-strong); font-size: 13px; font-weight: 700;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.deliv-map-btn:active { background: rgba(255, 68, 0, 0.08); border-color: var(--accent); }
.deliv-map-btn svg { width: 15px; height: 15px; }

.map-pick-modal { max-width: 420px; padding: 0; overflow: hidden; }
.addr-modal.map-pick-modal .sh-head { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.map-pick-wrap { position: relative; height: 320px; }
#map-pick-el { position: absolute; inset: 0; }
.map-pick-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -100%); z-index: 500; pointer-events: none;
  color: var(--accent-strong); filter: drop-shadow(0 3px 8px rgba(255, 68, 0, 0.6));
}
.map-pick-pin svg { width: 34px; height: 34px; }
.map-pick-foot { padding: 14px 18px; display: flex; flex-direction: column; gap: 11px; }
.map-pick-foot .addr-text { font-size: 13px; line-height: 1.4; min-height: 18px; }

.c-actions { padding: 13px 18px; display: flex; flex-direction: column; gap: 9px; }
.btn-order {
  padding: 15px; border: none; border-radius: var(--radius-md); color: #1a0a02; font-size: 15px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--gold)); box-shadow: var(--glow);
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn-order:active { transform: scale(0.98); }
.btn-clr { padding: 13px; background: rgba(255,92,108,.06); color: var(--danger); border: 1px solid rgba(255,92,108,.2); border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }

#toast {
  position: fixed; bottom: 95px; left: 50%; transform: translateX(-50%) translateY(10px) scale(.96);
  background: var(--surface-strong); backdrop-filter: blur(18px); color: var(--text); padding: 11px 20px;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; z-index: 500; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft); opacity: 0; transition: all var(--dur-med) var(--ease-out); pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
#toast.ok .ic { color: var(--success); }
#toast.err .ic { color: var(--danger); }
#toast.warn .ic { color: var(--warning); }

/* Header pickup-point label (static, non-interactive) */
.addr-badge {
  height: 37px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; font-size: 14px; color: var(--text); font-weight: 600; padding: 0 14px;
}

/* Modal shell — reused by the delivery map picker */
.ov-center { align-items: center; justify-content: center; padding: 20px; }
.addr-modal {
  width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-strong); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 14px; backdrop-filter: blur(24px); box-shadow: var(--shadow-soft);
  transform: scale(0.92) translateY(8px); opacity: 0;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.ov.on .addr-modal { transform: scale(1) translateY(0); opacity: 1; }
.addr-modal .sh-head { padding: 0 0 4px; border-bottom: none; }
.addr-text { font-size: 14px; font-weight: 600; margin-top: 2px; }

.credit-badge {
  position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60;
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  color: var(--text-faint); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 5px 10px; backdrop-filter: blur(10px);
  opacity: 0.5; transition: opacity var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.credit-badge:hover, .credit-badge:active { opacity: 1; color: var(--accent-strong); border-color: var(--border-strong); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty .ico { display: flex; justify-content: center; margin-bottom: 14px; opacity: 0.5; }
.empty .ico svg { width: 44px; height: 44px; }
.empty p { font-size: 14px; font-weight: 500; }
.success-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 65vh; gap: 15px; padding: 30px; animation: cardIn 0.5s var(--ease-out); }
.suc-ico { color: var(--accent-strong); filter: drop-shadow(0 0 22px rgba(255,150,0,.65)); animation: sucPop 0.5s var(--ease-out); }
.suc-ico svg { width: 64px; height: 64px; }
@keyframes sucPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.suc-title { font-size: 24px; font-weight: 800; text-align: center; line-height: 1.25; }
.suc-pill {
  padding: 13px 30px; border-radius: var(--radius-md); background: rgba(255,68,0,.12); border: 1px solid rgba(255,150,40,.3);
  font-size: 25px; font-weight: 800; box-shadow: var(--glow);
  background-image: linear-gradient(90deg, var(--gold), var(--accent-strong));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.suc-sub { font-size: 14px; color: var(--text-faint); text-align: center; line-height: 1.6; }
