/* PidePR web 2.0 — brand tokens shared with lib/pidepr_design_system.dart (coral #FF6F61). */
:root {
  --coral: #FF6F61;
  --coral-dark: #E9573F;
  --coral-deep: #D9433A;
  --coral-soft: #FFF1EE;
  --coral-glow: rgba(255, 111, 97, .35);
  --sun: #FFB547;
  --grad: linear-gradient(135deg, #FF8A5B 0%, #FF6F61 45%, #E8475C 100%);
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --canvas: #FAF8F6;
  --surface: #FFFFFF;
  --surface-2: #F6F2EF;
  --line: #ECE6E1;
  --line-strong: #DDD5CF;
  --field: #F8F5F3;
  --success: #12B76A;
  --success-soft: #E9F8F0;
  --warning: #F79009;
  --warning-soft: #FFF6EA;
  --danger: #D92D20;
  --danger-soft: #FEF1F0;
  --blue: #2563EB;
  --star: #F5A524;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 28px -12px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 34px 70px -24px rgba(15, 23, 42, .38);
  --shadow-coral: 0 14px 30px -10px rgba(255, 111, 97, .6);
  --glass: rgba(255, 255, 255, .78);
  --header-h: 68px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --coral-soft: #3A1E1C;
    --ink: #F1F5F9;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --canvas: #0A0F17;
    --surface: #121925;
    --surface-2: #182131;
    --line: #232D3D;
    --line-strong: #2E3A4D;
    --field: #0E1520;
    --success-soft: #0F2A1F;
    --warning-soft: #2E2210;
    --danger-soft: #331716;
    --shadow: 0 10px 28px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
    --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, .85);
    --glass: rgba(14, 20, 31, .78);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(255, 111, 97, .55); outline-offset: 2px; border-radius: 10px; }
::selection { background: rgba(255, 111, 97, .25); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .container { padding: 0 24px; } }

/* ---------- Top progress bar (route loading) ---------- */
.top-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: var(--grad); box-shadow: 0 0 12px var(--coral-glow); opacity: 0; transition: opacity .3s; }
body.is-loading .top-progress { opacity: 1; animation: progress 1.6s var(--ease) forwards; }
@keyframes progress { 0% { width: 0; } 60% { width: 72%; } 100% { width: 92%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-row { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow-coral); }
.brand span { font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.town-picker {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-sm); transition: border-color .2s;
}
.town-picker:hover { border-color: var(--line-strong); }
.town-picker svg { flex: none; color: var(--coral); }
.town-picker select { border: 0; background: transparent; font-weight: 700; min-width: 0; padding: 0; cursor: pointer; max-width: 150px; }
.town-picker select:focus { outline: none; }
.header-spacer { flex: 1; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
#cartButton { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (prefers-color-scheme: dark) { #cartButton { background: var(--coral); border-color: var(--coral); color: #fff; } }
.icon-btn .badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--canvas);
}
.icon-btn.bump .badge-count { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.label-desktop { display: none; }
@media (min-width: 760px) { .label-desktop { display: inline; } }
/* Small phones: the home hero has its own town switch, so the header stays clean. */
@media (max-width: 420px) {
  .town-picker { display: none; }
}

/* ---------- Generic UI ---------- */
main { min-height: calc(100vh - var(--header-h)); padding-bottom: 110px; outline: none; }
.page { animation: page-in .45s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.section-head .hint { color: var(--muted); font-size: 13px; font-weight: 600; }
.section-head .sub { color: var(--muted); font-size: 14px; margin-top: 3px; font-weight: 500; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; text-decoration: none; letter-spacing: -.01em;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-coral); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px -10px rgba(255, 111, 97, .7); }
.btn-primary[disabled], .btn[disabled] { background: var(--line-strong); color: var(--surface); box-shadow: none; cursor: not-allowed; transform: none; }
@media (prefers-color-scheme: dark) { .btn-primary[disabled], .btn[disabled] { color: var(--muted); } }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--coral-dark); padding: 0 10px; min-height: 42px; }
.btn-ghost:hover { background: var(--coral-soft); }
.btn-block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row > * { scroll-snap-align: start; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; letter-spacing: .01em;
}
.pill-open { background: var(--success-soft); color: #0E8A55; }
.pill-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(18, 183, 106, .2); }
.pill-closed { background: var(--surface-2); color: var(--muted); }
.pill-promo { background: var(--grad); color: #fff; box-shadow: var(--shadow-coral); }
.pill-dark { background: rgba(15, 23, 42, .78); color: #fff; backdrop-filter: blur(8px); }
.pill-glass { background: rgba(255, 255, 255, .92); color: #0F172A; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--field); transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 88px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 111, 97, .16); background: var(--surface); }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--warning-soft); color: #93370D; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(247, 144, 9, .18);
}
.notice strong { font-weight: 800; }
.notice.info { background: #EEF3FF; color: #1D3A8A; border-color: rgba(37, 99, 235, .15); }
.notice.danger { background: var(--danger-soft); color: #912018; border-color: rgba(217, 45, 32, .15); }
@media (prefers-color-scheme: dark) {
  .notice { color: #FBC77A; } .notice.info { background: #111D35; color: #A9C1FF; } .notice.danger { color: #FDA29B; }
}
.notice svg { flex: none; margin-top: 1px; }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state .empty-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: var(--coral-soft); color: var(--coral); }
.empty-state h3 { color: var(--ink); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--coral); margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 25%, rgba(255, 181, 71, .18), transparent 60%), var(--surface-2); color: var(--muted); }
.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 800; }

/* ---------- Home: hero ---------- */
.hero2 { position: relative; margin-top: 18px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); isolation: isolate; }
.hero2::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 138, 91, .28), transparent); z-index: -1; }
.hero2::after { content: ''; position: absolute; inset: auto auto -50% -10%; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 181, 71, .2), transparent); z-index: -1; }
.hero-grid { display: grid; gap: 24px; padding: 26px 20px 24px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 48px 48px 44px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-dark); font-size: 13px; font-weight: 800; }
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero-title { margin-top: 16px; font-size: clamp(32px, 6vw, 58px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 540px; font-weight: 500; }
.search-xl { position: relative; margin-top: 22px; max-width: 580px; }
.search-xl input {
  width: 100%; height: 62px; border-radius: 999px; border: 1px solid var(--line); padding: 0 120px 0 56px;
  background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s;
}
.search-xl input::placeholder { color: var(--muted); font-weight: 500; }
.search-xl input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 97, .16), var(--shadow); }
.search-xl > .icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--coral); }
.search-xl .search-end { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; }
.search-xl .clear { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
@media (max-width: 600px) { .search-xl .kbd { display: none; } .search-xl input { padding-right: 56px; height: 58px; } }
.town-seg { display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.town-seg button { height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font-weight: 800; font-size: 14px; color: var(--muted); transition: background .25s var(--ease), color .2s, box-shadow .2s; }
.town-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-stats .stat { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats .stat b { color: var(--ink); font-weight: 800; }
.live { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(18, 183, 106, .6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, .55); } 70% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); } }
.hero-collage { position: relative; height: 360px; display: none; }
@media (min-width: 960px) { .hero-collage { display: block; } }
.collage-card { position: absolute; width: 230px; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .45s var(--ease); animation: float 7s ease-in-out infinite; }
.collage-card:hover { transform: translateY(-8px) rotate(0deg) !important; z-index: 3; }
.collage-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.collage-card .cc-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; font-weight: 800; font-size: 14px; }
.collage-card .cc-body span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collage-card:nth-child(1) { left: 0; top: 34px; transform: rotate(-6deg); }
.collage-card:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); animation-delay: -2.4s; }
.collage-card:nth-child(3) { left: 28%; bottom: 0; transform: rotate(-1deg); z-index: 2; animation-delay: -4.6s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.rating-badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #0F172A; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-sm); }
.rating-badge .icon { color: var(--star); }

/* ---------- Home: rails, toolbar ---------- */
.notices { display: grid; gap: 10px; margin-top: 16px; }
.rail-wrap { position: relative; }
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }
.rail-btn { position: absolute; top: 50%; transform: translateY(-60%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; z-index: 2; transition: transform .2s var(--ease); }
.rail-btn:hover { transform: translateY(-60%) scale(1.06); }
.rail-btn.prev { left: -14px; } .rail-btn.next { right: -14px; }
@media (min-width: 900px) { .rail-btn { display: inline-flex; } }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; padding: 10px 4px; border-radius: 22px; border: 1px solid transparent; background: transparent; text-align: center; font-weight: 800; font-size: 13px; color: var(--ink-2); transition: background .2s, border-color .2s, transform .25s var(--ease); }
.cat-chip:hover { transform: translateY(-2px); }
.cat-chip .cat-icon { width: 64px; height: 64px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; transition: box-shadow .25s, border-color .25s; }
.cat-chip .cat-icon img { width: 38px; height: 38px; object-fit: contain; }
.cat-chip[aria-pressed="true"] { color: var(--coral-dark); }
.cat-chip[aria-pressed="true"] .cat-icon { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 111, 97, .16), var(--shadow); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-top: 8px; }
.seg { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; font-weight: 800; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: background .25s var(--ease), color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.toggle-chip[aria-pressed="true"] { background: var(--coral-soft); border-color: var(--coral); color: var(--coral-dark); }

/* ---------- Store cards ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.store-card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  content-visibility: auto; contain-intrinsic-size: 300px;
}
.store-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.store-cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.store-card:hover .store-cover img { transform: scale(1.06); }
.store-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 35%, transparent 60%, rgba(0, 0, 0, .45)); }
.store-cover .pills { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.store-cover .pills .pill-open, .store-cover .pills .pill-closed { background: rgba(255, 255, 255, .94); }
.store-cover .pills .pill-closed { color: #475467; }
.store-cover .cover-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: flex-end; z-index: 1; }
.store-card.closed .store-cover img { filter: grayscale(.6) brightness(.92); }
.store-body { display: flex; gap: 12px; padding: 0 16px 16px; align-items: flex-start; }
.store-logo { width: 54px; height: 54px; flex: none; border-radius: 16px; object-fit: cover; border: 3px solid var(--surface); background: var(--surface); margin-top: -26px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.store-info { min-width: 0; flex: 1; padding-top: 10px; }
.store-info h3 { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; margin-top: 3px; font-weight: 600; }
.store-meta .star { color: var(--star); }
.store-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.store-card .go { position: absolute; right: 14px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transform: translateX(-6px); opacity: 0; transition: opacity .3s, transform .35s var(--ease); }
.store-card:hover .go { opacity: 1; transform: none; }
.featured-card { width: min(78vw, 340px); }
.featured-card .store-cover { aspect-ratio: 16 / 11; }

/* ---------- App banner & footer ---------- */
.app-banner { position: relative; overflow: hidden; margin-top: 44px; border-radius: var(--r-xl); padding: 28px 24px; background: var(--ink); color: #fff; display: grid; gap: 18px; isolation: isolate; }
@media (prefers-color-scheme: dark) { .app-banner { background: #1A2333; } }
.app-banner::before { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 111, 97, .55), transparent); z-index: -1; }
.app-banner h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.035em; }
.app-banner p { color: rgba(255, 255, 255, .78); margin-top: 6px; max-width: 520px; }
@media (min-width: 860px) { .app-banner { grid-template-columns: 1fr auto; align-items: center; padding: 38px 44px; } }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 16px; background: #fff; color: #0F172A; text-decoration: none; font-weight: 800; transition: transform .25s var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge small { display: block; font-size: 11px; font-weight: 600; color: #475467; line-height: 1; }
.store-badge span { line-height: 1.15; }
.site-footer { margin-top: 30px; border-top: 1px solid var(--line); background: var(--surface); padding: 30px 0 120px; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.footer-brand img { width: 32px; height: 32px; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--coral-dark); }

/* ---------- Store page ---------- */
.store-hero { position: relative; margin: 0 -16px; height: 240px; background: var(--surface-2); overflow: hidden; }
.store-hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.store-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 55%, rgba(0, 0, 0, .55)); }
@media (min-width: 760px) { .store-hero { margin: 16px 0 0; height: 320px; border-radius: var(--r-xl); } }
.hero-actions { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; justify-content: space-between; z-index: 2; }
.glass-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .9); color: #0F172A; font-weight: 800; font-size: 14px; text-decoration: none; backdrop-filter: blur(10px); box-shadow: var(--shadow); transition: transform .2s var(--ease); }
.glass-btn:hover { transform: scale(1.05); }
.store-headcard { position: relative; z-index: 3; margin: -64px 0 0; padding: 18px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; gap: 16px; align-items: center; }
@media (min-width: 760px) { .store-headcard { margin: -70px 28px 0; padding: 22px 26px; } }
.store-headcard .store-logo { width: 84px; height: 84px; border-radius: 24px; margin: 0; flex: none; }
.store-headcard h1 { font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.035em; }
.store-headcard .store-meta { margin-top: 6px; font-size: 14px; }
.store-headcard .head-side { margin-left: auto; display: none; gap: 8px; }
@media (min-width: 900px) { .store-headcard .head-side { display: flex; } }
.info-tile { padding: 10px 16px; border-radius: 16px; background: var(--surface-2); text-align: center; min-width: 96px; }
.info-tile b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.info-tile span { font-size: 12px; font-weight: 700; color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; color: var(--muted); font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--coral-dark); }
.menu-layout { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 1040px) { .menu-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.menu-toolbar { position: sticky; top: var(--header-h); z-index: 20; margin: 0 -16px; padding: 10px 16px 8px; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.menu-toolbar.stuck { border-bottom-color: var(--line); }
@media (min-width: 760px) { .menu-toolbar { margin: 0; padding: 10px 0 8px; } }
.menu-search { position: relative; margin-bottom: 8px; }
.menu-search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 44px; font-weight: 600; box-shadow: var(--shadow-sm); }
.menu-search input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 111, 97, .14); }
.menu-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.menu-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav .tab { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; transition: background .25s, color .2s; }
.menu-nav .tab:hover { color: var(--ink); background: var(--surface-2); }
.menu-nav .tab.active { background: var(--ink); color: var(--surface); }
.menu-section { margin-top: 26px; scroll-margin-top: calc(var(--header-h) + 118px); }
.menu-section h2 { font-size: 21px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.menu-section h2 .icon { color: var(--coral); }
.menu-section h2 small { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.popular-rail .pop-card { width: 200px; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-align: left; padding: 0; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.popular-rail .pop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pop-card .pop-img { position: relative; aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.pop-card .pop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pop-card:hover .pop-img img { transform: scale(1.07); }
.pop-card .pop-add { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; }
.pop-card .pop-body { padding: 10px 12px 12px; }
.pop-card .pop-body h3 { font-size: 14.5px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em; }
.pop-card .pop-body .price { margin-top: 4px; font-weight: 800; color: var(--coral-dark); }
.item-list { display: grid; gap: 14px; }
@media (min-width: 720px) { .item-list { grid-template-columns: 1fr 1fr; } }
.item-card {
  position: relative; display: flex; gap: 14px; padding: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  content-visibility: auto; contain-intrinsic-size: 150px;
}
.item-card:hover { transform: translateY(-3px); border-color: rgba(255, 111, 97, .35); box-shadow: var(--shadow); }
.item-card[disabled] { opacity: .55; cursor: not-allowed; }
.item-card .item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-card h3 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.item-card .desc { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card .price { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: 15.5px; }
.item-card .price s { color: var(--muted); font-weight: 600; margin-left: 6px; font-size: 13px; }
.item-card .item-photo { position: relative; flex: none; width: 118px; height: 118px; }
.item-card .thumb { width: 118px; height: 118px; flex: none; border-radius: var(--r-md); object-fit: cover; background: var(--surface-2); }
.item-card .add { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--ink); border: 0; box-shadow: var(--shadow); transition: transform .25s var(--ease), background .2s, color .2s; }
.item-card:hover .add { background: var(--coral); color: #fff; transform: scale(1.08); }
.item-card .add.solo { position: static; align-self: flex-end; background: var(--coral); color: #fff; }
.item-card .sold-out { position: absolute; inset: 0; border-radius: var(--r-md); background: rgba(15, 23, 42, .55); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.item-card .promo-tag { align-self: flex-start; margin-top: 8px; }
.photo-hint {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 9px; padding: 9px 11px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 181, 71, .14), rgba(255, 111, 97, .1)); border: 1px solid rgba(255, 111, 97, .25); color: var(--ink);
  font-size: 12.5px; font-weight: 600; line-height: 1.4; text-align: left;
}
.photo-hint svg { flex: none; color: var(--coral); margin-top: 1px; }
.photo-hint strong { color: var(--coral-dark); font-weight: 800; }
.photo-hint.detailed { margin-top: 14px; padding: 13px 15px; font-size: 14px; }
.no-results { padding: 30px 10px; text-align: center; color: var(--muted); font-weight: 600; }

.checkout-layout > *, .menu-layout > * { min-width: 0; }
.desktop-only { display: none; }
@media (min-width: 1040px) { .desktop-only { display: block; } }

/* ---------- Cart panel / mobile bar ---------- */
.cart-panel { position: sticky; top: calc(var(--header-h) + 16px); padding: 20px; }
.cart-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cart-panel .cart-empty { text-align: center; padding: 14px 6px 6px; }
.cart-panel .cart-empty .empty-icon { width: 64px; height: 64px; margin: 6px auto 12px; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--coral-soft); color: var(--coral); }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: transform .15s; }
.qty button:active { transform: scale(.9); }
.qty span { min-width: 20px; text-align: center; font-weight: 800; }
.cart-line .name { font-weight: 700; font-size: 14.5px; }
.cart-line .opts { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cart-line .line-price { margin-left: auto; font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.totals { display: grid; gap: 8px; margin-top: 12px; font-size: 14.5px; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; }
.totals .row.total { font-size: 19px; font-weight: 800; padding-top: 12px; border-top: 1px dashed var(--line-strong); margin-top: 4px; letter-spacing: -.02em; }
.totals .row .discount { color: #12965F; font-weight: 700; }
.mobile-cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 10px 0 10px; height: 62px; border-radius: 22px; border: 0; text-decoration: none;
  background: var(--grad); color: #fff; font-weight: 800; box-shadow: var(--shadow-coral), var(--shadow-lg);
  animation: bar-in .5s var(--ease) both;
}
@keyframes bar-in { from { transform: translateY(120%); } }
.mobile-cart-bar .count { background: rgba(255, 255, 255, .22); border-radius: 14px; min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; }
.mobile-cart-bar .bar-total { background: rgba(255, 255, 255, .95); color: var(--coral-deep); border-radius: 14px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; }
@media (min-width: 1040px) { .mobile-cart-bar.on-store { display: none; } }
@media (min-width: 760px) { .mobile-cart-bar { left: 50%; right: auto; width: 440px; transform: translateX(-50%); animation: none; } }

/* ---------- Modal / sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10, 15, 23, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@media (min-width: 760px) { .overlay { align-items: center; padding: 28px; } }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-width: 580px; max-height: 92vh; overflow: auto; background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); animation: rise .45s var(--ease);
  overscroll-behavior: contain;
}
.sheet::before { content: ''; position: sticky; top: 8px; display: block; width: 44px; height: 5px; margin: 8px auto -13px; border-radius: 999px; background: rgba(255, 255, 255, .85); z-index: 3; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
@media (min-width: 760px) { .sheet { border-radius: var(--r-xl); } .sheet::before { display: none; } }
@keyframes rise { from { transform: translateY(40px); opacity: .4; } }
.sheet.wide { max-width: 980px; }
@media (min-width: 900px) {
  .sheet.wide { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; height: min(86vh, 760px); }
  .sheet.wide > .sheet-content { display: contents; }
  .sheet.wide .sheet-media { position: relative; overflow: hidden; background: var(--surface-2); }
  .sheet.wide .sheet-media .sheet-img { height: 100%; aspect-ratio: auto; }
  .sheet.wide .sheet-scroll { overflow: auto; display: flex; flex-direction: column; }
  .sheet.wide .sheet-close { position: absolute; float: none; margin: 0; top: 14px; right: 14px; }
}
.sheet-media .media-fallback { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--coral); background: radial-gradient(circle at 30% 20%, rgba(255, 181, 71, .25), transparent 60%), var(--coral-soft); font-weight: 800; }
.sheet-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.sheet-body { padding: 20px 20px 8px; }
.sheet-body h2 { font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.sheet-body .sheet-price { margin-top: 6px; font-size: 18px; font-weight: 800; color: var(--coral-dark); }
.sheet-footer { position: sticky; bottom: 0; margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 0%, transparent), var(--surface) 28%); }
.sheet-footer .qty { padding: 4px; border-radius: 999px; background: var(--surface-2); }
.sheet-footer .btn-primary { min-height: 54px; }
.sheet-close { position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 4; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: #0F172A; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s var(--ease); }
.sheet-close:hover { transform: rotate(90deg); }
.option-group { margin-top: 22px; border-radius: 18px; }
.option-group.missing { animation: shake .45s; }
.option-group.missing .option-group-head .req { background: var(--danger); color: #fff; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.option-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.option-group-head h3 { font-size: 16px; font-weight: 800; }
.option-group-head .req { font-size: 11.5px; font-weight: 800; color: var(--coral-dark); background: var(--coral-soft); padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s; }
.option-group-head .opt { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.option { display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 8px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.option:hover { border-color: var(--line-strong); }
.option:active { transform: scale(.995); }
.option:has(input:checked) { border-color: var(--coral); background: var(--coral-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--coral); flex: none; margin: 0; }
.option .opt-name { flex: 1; font-weight: 600; }
.option .opt-price { color: var(--muted); font-size: 14px; font-weight: 700; }

/* ---------- Checkout (logic untouched; restyled) ---------- */
.checkout-layout { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 1040px) { .checkout-layout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } }
.panel { padding: 22px; }
.panel h2 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.panel + .panel { margin-top: 18px; }
.grid-2 { display: grid; gap: 12px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.map { height: 300px; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--surface); text-align: left; width: 100%;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.choice:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.choice[aria-checked="true"] { border-color: var(--coral); background: var(--coral-soft); box-shadow: 0 0 0 4px rgba(255, 111, 97, .12); }
.choice .choice-icon { width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--coral-dark); }
.choice[aria-checked="true"] .choice-icon { background: var(--grad); color: #fff; }
.choice strong { display: block; font-size: 15px; font-weight: 800; }
.choice small { color: var(--muted); font-weight: 500; }
.tip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tip-row .chip { justify-content: center; }
.stripe-box { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.summary-sticky { position: sticky; top: calc(var(--header-h) + 16px); }

/* ---------- Order tracking ---------- */
.status-card { padding: 26px 22px; text-align: center; }
.status-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 26px; display: flex; align-items: center; justify-content: center; background: var(--coral-soft); color: var(--coral); }
.track-hero { position: relative; overflow: hidden; padding: 28px 22px 24px; text-align: center; isolation: isolate; }
.track-hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 300px; background: radial-gradient(closest-side, rgba(255, 111, 97, .22), transparent); z-index: -1; }
.track-orb { position: relative; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-coral); }
.track-orb::before, .track-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--coral); animation: ring 2.2s var(--ease) infinite; }
.track-orb::after { animation-delay: 1.1s; }
.track-orb.done { background: linear-gradient(135deg, #34D399, #12B76A); box-shadow: 0 14px 30px -10px rgba(18, 183, 106, .6); }
.track-orb.done::before, .track-orb.done::after, .track-orb.cancelled::before, .track-orb.cancelled::after { display: none; }
.track-orb.cancelled { background: linear-gradient(135deg, #F97066, #D92D20); box-shadow: none; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.65); opacity: 0; } }
.track-hero h1 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.track-hero .eta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.track-bar { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 24px 0 8px; }
.track-bar .seg-step { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.track-bar .seg-step.done { background: var(--grad); }
.track-bar .seg-step.current::after { content: ''; position: absolute; inset: 0; background: var(--grad); animation: fill 1.8s var(--ease) infinite alternate; transform-origin: left; }
@keyframes fill { from { transform: scaleX(.15); } to { transform: scaleX(1); } }
.steps { display: grid; gap: 0; margin-top: 18px; text-align: left; }
.step { display: flex; gap: 14px; align-items: center; padding: 11px 0; color: var(--muted); font-weight: 600; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 40px; bottom: -8px; width: 2px; background: var(--line); }
.step.done:not(:last-child)::after { background: var(--success); }
.step .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); position: relative; z-index: 1; }
.step.done { color: var(--ink); }
.step.done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.step.current { color: var(--ink); font-weight: 800; }
.step.current .dot { border-color: var(--coral); box-shadow: 0 0 0 5px rgba(255, 111, 97, .18); }
.step.current .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.driver-card { display: flex; align-items: center; gap: 14px; }
.track-map { margin-top: 16px; overflow: hidden; padding: 0; }
.map-canvas { height: 320px; background: var(--surface-2); }
@media (min-width: 760px) { .map-canvas { height: 380px; } }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--muted); border-top: 1px solid var(--line); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line-strong); }
.map-legend .dot-store { background: #FF6F61; } .map-legend .dot-driver { background: #12B76A; } .map-legend .dot-home { background: #0F172A; }
@media (prefers-color-scheme: dark) { .map-legend .dot-home { background: #E2E8F0; } }
.live-chip { margin-left: auto; color: #0E8A55; }
.live-stat { color: #0E8A55; font-weight: 800; }
.active-order { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--grad); color: #fff; text-decoration: none; box-shadow: var(--shadow-coral); transition: transform .25s var(--ease); animation: page-in .5s var(--ease) both; }
.active-order:hover { transform: translateY(-2px); }
.active-order .ao-icon { width: 46px; height: 46px; border-radius: 16px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); }
.active-order .ao-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.active-order .ao-text small { font-size: 13px; font-weight: 600; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-order .ao-text strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.active-order .ao-cta { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--coral-deep); font-weight: 800; font-size: 14px; }
@media (max-width: 480px) { .active-order .ao-cta { padding: 0 11px; font-size: 13px; } .active-order .ao-cta .live { display: none; } }
.order-list { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.order-row:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.order-row.active { border-color: rgba(255, 111, 97, .45); background: linear-gradient(135deg, rgba(255, 181, 71, .08), rgba(255, 111, 97, .07)); }
.order-logo { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface-2); }
.order-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; align-items: flex-start; }
.order-info strong { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.order-info .muted { font-size: 12.5px; font-weight: 600; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; color: var(--muted); }
.order-side strong { color: var(--ink); font-weight: 800; }
.see-live { display: inline-flex; align-items: center; gap: 3px; color: var(--coral-dark); font-weight: 800; font-size: 12.5px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-badge .live { width: 7px; height: 7px; }
.status-badge.st-active { background: var(--coral-soft); color: var(--coral-dark); }
.status-badge.st-done { background: var(--success-soft); color: #0E8A55; }
.status-badge.st-cancel { background: var(--danger-soft); color: var(--danger); }
.panel h2 .icon { color: var(--coral); vertical-align: -3px; }
.avatar { width: 54px; height: 54px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.02em; box-shadow: var(--shadow-coral); }

/* ---------- Account ---------- */
.auth-card { padding: 30px 24px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.auth-card::before { content: ''; position: absolute; inset: -50% -30% auto; height: 340px; background: radial-gradient(closest-side, rgba(255, 111, 97, .2), transparent); z-index: -1; }
.auth-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.benefits { display: grid; gap: 10px; margin: 20px auto 0; max-width: 360px; text-align: left; }
.benefits li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14.5px; }
.benefits li .icon { width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--coral-soft); color: var(--coral-dark); display: inline-flex !important; align-items: center; justify-content: center; }
.benefits { list-style: none; padding: 0; }
.profile-card { padding: 24px; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head .avatar { width: 64px; height: 64px; border-radius: 22px; font-size: 24px; }
.action-list { display: grid; gap: 10px; margin-top: 20px; }
.action-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; width: 100%; text-align: left; }
.action-row:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.action-row .ar-icon { width: 40px; height: 40px; border-radius: 14px; background: var(--surface-2); color: var(--coral-dark); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.action-row .chev { margin-left: auto; color: var(--muted); }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; z-index: 80; left: 50%; bottom: 92px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 16px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .45s var(--ease); }
@keyframes toast-in { from { transform: translateY(14px) scale(.96); opacity: 0; } }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: #0E9F6E; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
