/* ================= على طريقك ================= */
/* Three design styles: html[data-style="1|2|3"] */

:root, [data-style="1"] {
  /* 1 · Classic Brown */
  --bg: #f7f1ea; --surface: #ffffff; --surface2: #f1e7dc; --text: #2b1a11; --muted: #8a7262;
  --primary: #6b3e26; --primary-ink: #fff7ef; --accent: #d98e48; --accent-ink: #2b1a11;
  --border: #eadccd; --danger: #c2412d; --ok: #2f8a4e;
  --header-bg: #3b2418; --header-ink: #fbeedd; --nav-bg: #ffffff; --nav-ink: #9b8574; --nav-active: #6b3e26;
  --radius: 20px; --radius-sm: 14px; --shadow: 0 6px 20px rgba(80, 45, 20, .10);
  --cafe-grad: linear-gradient(135deg, #7a4529 0%, #b9733f 100%);
  --grocery-grad: linear-gradient(135deg, #3f6b3a 0%, #86a94a 100%);
  --tile-a: #f6e3cf; --tile-b: #ecd2b6; --splash-bg: #3b2418; --splash-ink: #f3d9b5;
}
[data-style="2"] {
  /* 2 · Fresh Mint */
  --bg: #f3f8f6; --surface: #ffffff; --surface2: #e8f3ee; --text: #10302a; --muted: #6b8780;
  --primary: #0e9f77; --primary-ink: #ffffff; --accent: #ffb020; --accent-ink: #2a1d00;
  --border: #dbe9e3; --danger: #d64545; --ok: #0e9f77;
  --header-bg: #ffffff; --header-ink: #0e7c5d; --nav-bg: #ffffff; --nav-ink: #8aa39c; --nav-active: #0e9f77;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 2px 10px rgba(16, 48, 42, .06);
  --cafe-grad: linear-gradient(160deg, #ffe7c2 0%, #ffd08a 100%);
  --grocery-grad: linear-gradient(160deg, #c9f1df 0%, #8fe0bd 100%);
  --tile-a: #eaf6f1; --tile-b: #d6eee4; --splash-bg: #0e9f77; --splash-ink: #ffffff;
}
[data-style="3"] {
  /* 3 · Golden Night */
  --bg: #0f1113; --surface: #1a1d21; --surface2: #23272c; --text: #f3efe7; --muted: #9b968c;
  --primary: #d6a84e; --primary-ink: #1a1408; --accent: #d6a84e; --accent-ink: #1a1408;
  --border: #2c3036; --danger: #ef6b5b; --ok: #6cc28a;
  --header-bg: #0f1113; --header-ink: #e9c77f; --nav-bg: rgba(30, 33, 38, .86); --nav-ink: #8d887e; --nav-active: #e9c77f;
  --radius: 24px; --radius-sm: 16px; --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --cafe-grad: linear-gradient(135deg, #2a1c12 0%, #5a3a1f 60%, #8a6230 100%);
  --grocery-grad: linear-gradient(135deg, #12241c 0%, #1f4733 60%, #3c7a52 100%);
  --tile-a: #262a30; --tile-b: #1f2328; --splash-bg: #0f1113; --splash-ink: #e9c77f;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Tajawal', system-ui, sans-serif; background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.5; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* Phone-sized app; on wide screens (website) it's centered like a phone */
#app {
  max-width: 480px; margin: 0 auto; min-height: 100%; position: relative; background: var(--bg);
  display: flex; flex-direction: column;
}
@media (min-width: 520px) {
  body { background: #d9d3cc; }
  [data-style="3"] body, html[data-style="3"] body { background: #050607; }
  #app { box-shadow: 0 0 40px rgba(0, 0, 0, .18); }
}

/* ---------- Splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--splash-bg); color: var(--splash-ink); transition: opacity .45s ease, visibility .45s;
}
#splash.gone { opacity: 0; visibility: hidden; }
.splash-inner { text-align: center; animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both; }
.splash-mark { width: 84px; height: 84px; color: var(--splash-ink); }
.splash-name { font-size: 44px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; }
.splash-tag { opacity: .75; font-size: 15px; margin-top: 2px; direction: rtl; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Header ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-ink);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; display: flex; align-items: center; gap: 10px; min-height: 58px;
}
[data-style="2"] #topbar { border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 22px; letter-spacing: -.3px; direction: rtl; }
.logo svg { width: 28px; height: 28px; }
.logo small { font-weight: 500; font-size: 11px; opacity: .7; letter-spacing: 0; }
.topbar-spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--header-ink) 12%, transparent); color: var(--header-ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn { font-weight: 700; font-size: 13px; }
.back-btn svg { transform: scaleX(-1); }
[dir="ltr"] .back-btn svg { transform: none; }
.title { font-weight: 700; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Main + bottom nav ---------- */
#view { flex: 1; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
#view.no-nav { padding-bottom: 32px; }
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30;
  display: flex; justify-content: space-around; background: var(--nav-bg);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border);
}
[data-style="3"] #tabbar {
  bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 452px; border-radius: 26px;
  border: 1px solid var(--border); padding: 6px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 4px;
  color: var(--nav-ink); font-size: 11.5px; font-weight: 500; position: relative; border-radius: 16px;
}
.tab svg { width: 24px; height: 24px; }
.tab.active { color: var(--nav-active); font-weight: 700; }
[data-style="2"] .tab.active svg { background: color-mix(in srgb, var(--primary) 14%, transparent); border-radius: 12px; padding: 2px 10px; width: 46px; box-sizing: content-box; height: 22px; }
[data-style="3"] .tab.active { background: color-mix(in srgb, var(--primary) 14%, transparent); }
.badge {
  position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

/* ---------- Common ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
[data-style="2"] .card { box-shadow: none; border: 1px solid var(--border); }
[data-style="3"] .card { border: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.h2 { font-size: 19px; font-weight: 800; margin: 18px 0 10px; }
.h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px;
  border-radius: var(--radius-sm); background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 16px;
  transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface2); color: var(--text); }
.btn.outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }
.link { color: var(--primary); font-weight: 700; }
[data-style="3"] .link { color: var(--header-ink); }
.demo-banner {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--text); font-size: 12.5px;
  padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; line-height: 1.4;
}

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .15s; font-size: 16px;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--primary); }
.input[dir="ltr"] { text-align: left; }
[dir="rtl"] .input[dir="ltr"]::placeholder { text-align: right; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }

/* Segmented / option cards */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 2px solid var(--border); text-align: start; width: 100%;
}
.seg .opt { flex-direction: column; text-align: center; gap: 4px; padding: 14px 8px; }
.opt .opt-ic { font-size: 26px; line-height: 1; }
.opt b { display: block; font-size: 15px; }
.opt small { color: var(--muted); font-size: 12px; }
.opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); margin-inline-start: auto; flex: none; }
.opt.on .dot { border: 6px solid var(--primary); }

/* ---------- Home ---------- */
.hello { font-size: 14px; color: var(--muted); margin: 2px 0 8px; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px;
  padding: 0 16px; height: 50px; box-shadow: var(--shadow); border: 1.5px solid transparent;
}
[data-style="2"] .search { border-color: var(--border); box-shadow: none; border-radius: 12px; }
[data-style="3"] .search { border-color: var(--border); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15.5px; min-width: 0; }
.search .clear { color: var(--muted); font-size: 20px; padding: 4px; }

.sections { display: grid; gap: 14px; margin-top: 16px; }
.section-card {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; min-height: 178px; padding: 20px;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); text-align: start;
  isolation: isolate; transition: transform .15s;
}
.section-card:active { transform: scale(.98); }
.section-card.cafe { background: var(--cafe-grad); }
.section-card.grocery { background: var(--grocery-grad); }
.section-card .art {
  position: absolute; inset-inline-end: -8px; top: -4px; font-size: 96px; line-height: 1; z-index: -1;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); transform: rotate(-8deg);
}
.section-card .art2 { position: absolute; inset-inline-end: 92px; top: 52px; font-size: 54px; z-index: -1; transform: rotate(10deg); opacity: .95; }
.section-card h3 { margin: 0; font-size: 26px; font-weight: 800; }
.section-card p { margin: 2px 0 0; opacity: .9; font-size: 14px; }
.section-card .go {
  position: absolute; bottom: 18px; inset-inline-end: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center; backdrop-filter: blur(4px);
}
.section-card .go svg { width: 20px; height: 20px; }
[dir="rtl"] .section-card .go svg { transform: scaleX(-1); }
/* Style 2: side by side squares, dark text */
[data-style="2"] .sections { grid-template-columns: 1fr 1fr; }
[data-style="2"] .section-card { color: var(--text); min-height: 196px; justify-content: flex-start; padding: 16px 16px 58px; box-shadow: none; }
[data-style="2"] .section-card .art { position: static; font-size: 56px; transform: none; margin-bottom: 10px; z-index: 0; }
[data-style="2"] .section-card .art2 { display: none; }
[data-style="2"] .section-card h3 { font-size: 20px; }
[data-style="2"] .section-card p { font-size: 12.5px; opacity: .75; }
[data-style="2"] .section-card .go { background: rgba(255, 255, 255, .7); width: 34px; height: 34px; bottom: 12px; inset-inline-end: 12px; }
/* Style 3: tall banners with gold border */
[data-style="3"] .section-card { min-height: 210px; border: 1px solid #3a3326; }
[data-style="3"] .section-card h3 { color: #f1d48f; font-size: 28px; }
[data-style="3"] .section-card .go { background: var(--primary); color: var(--primary-ink); }

.quick-cats { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.quick-cats::-webkit-scrollbar { display: none; }
.qcat { flex: none; width: 76px; text-align: center; font-size: 12px; font-weight: 600; }
.qcat .ic {
  width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-size: 30px; box-shadow: var(--shadow);
}
[data-style="2"] .qcat .ic { border-radius: 16px; box-shadow: none; background: var(--surface2); }
[data-style="3"] .qcat .ic { border: 1px solid var(--border); }

/* ---------- Category chips ---------- */
.chips {
  position: sticky; top: 58px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -14px -16px 12px; padding: 12px 16px; background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--border);
  font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
[data-style="2"] .chip { border-radius: 10px; }
.section-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface2); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.section-switch button { height: 38px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.section-switch button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
[data-style="3"] .section-switch button.on { background: var(--primary); color: var(--primary-ink); }

/* ---------- Products ---------- */
.cat-title { font-size: 17px; font-weight: 800; margin: 18px 2px 10px; display: flex; align-items: center; gap: 6px; }
.cat-title:first-child { margin-top: 2px; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
}
[data-style="3"] .product { border: 1px solid var(--border); }
.product.off { opacity: .55; }
.p-photo {
  aspect-ratio: 1 / .82; display: grid; place-items: center; font-size: 58px; line-height: 1;
  background: radial-gradient(circle at 50% 40%, var(--tile-a), var(--tile-b)); position: relative;
}
.p-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.p-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.p-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.p-size { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; gap: 6px; }
.price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.price small { font-weight: 600; font-size: 11.5px; color: var(--muted); margin-inline-start: 2px; }
.add-btn {
  width: 36px; height: 36px; border-radius: 12px; background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; flex: none; font-size: 22px; font-weight: 700;
}
.add-btn svg { width: 20px; height: 20px; }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--surface2); border-radius: 12px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border-radius: 9px; background: var(--surface); font-size: 18px; font-weight: 800; display: grid; place-items: center; }
[data-style="3"] .stepper button { background: var(--bg); }
.stepper span { min-width: 24px; text-align: center; font-weight: 800; }
.off-tag { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 1; }

/* Style 2: list rows */
[data-style="2"] .products { grid-template-columns: 1fr; gap: 10px; }
[data-style="2"] .product { flex-direction: row; box-shadow: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; gap: 12px; align-items: center; }
[data-style="2"] .p-photo { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 12px; font-size: 42px; flex: none; overflow: hidden; }
[data-style="2"] .p-body { padding: 0; }
[data-style="2"] .p-foot { padding-top: 6px; }
/* Style 3: large rounded tiles */
[data-style="3"] .p-photo { aspect-ratio: 1; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; }
[data-style="3"] .add-btn { border-radius: 50%; }

/* ---------- Bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 60; animation: fade .2s; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 61;
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: up .25s cubic-bezier(.2, .9, .3, 1);
}
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 12px; }
@keyframes up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.sheet-head .p-photo { width: 84px; height: 84px; aspect-ratio: auto; border-radius: 18px; font-size: 46px; flex: none; overflow: hidden; margin: 0; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #1d1a17; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--danger); }

/* ---------- Cart ---------- */
.empty { text-align: center; padding: 56px 20px; }
.empty .big { font-size: 72px; line-height: 1; margin-bottom: 12px; }
.empty h3 { margin: 0 0 4px; font-size: 19px; }
.empty p { color: var(--muted); margin: 0 0 20px; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.line:last-child { border-bottom: 0; }
.line .p-photo { width: 62px; height: 62px; aspect-ratio: auto; border-radius: 14px; font-size: 32px; flex: none; overflow: hidden; margin: 0; }
.line .info { flex: 1; min-width: 0; }
.totals .row { justify-content: space-between; padding: 4px 0; }
.totals .grand { font-size: 18px; font-weight: 800; border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }
.sticky-cta {
  position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); margin-top: 16px; z-index: 5;
}
#view.no-nav .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); }
[data-style="3"] .sticky-cta { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- Map ---------- */
.map { height: 240px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); z-index: 0; background: var(--surface2); }
.map.tall { height: 300px; }
.leaflet-container { font-family: inherit; }
[data-style="3"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
.pin-icon { font-size: 34px; line-height: 1; text-align: center; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }
.car-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: grid; place-items: center;
  font-size: 24px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

/* ---------- Tracking ---------- */
.order-hero { text-align: center; padding: 18px 16px; }
.order-hero .num { font-size: 13px; color: var(--muted); font-weight: 700; }
.order-hero .st { font-size: 20px; font-weight: 800; margin: 6px 0 2px; }
.order-hero .em { font-size: 52px; line-height: 1.1; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; top: 34px; bottom: 2px; inset-inline-start: 16px; width: 3px; border-radius: 2px; background: var(--border);
}
.step:last-child::before { display: none; }
.step.done::before { background: var(--primary); }
.step .bullet {
  width: 35px; height: 35px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 17px;
  background: var(--surface2); border: 2px solid var(--border); position: relative; z-index: 1; color: var(--muted);
}
.step.done .bullet { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.step.now .bullet { box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 22%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 8%, transparent); } }
.step .lbl { padding-top: 6px; font-weight: 600; color: var(--muted); }
.step.done .lbl { color: var(--text); font-weight: 700; }
.step .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* ---------- Orders list ---------- */
.order-card { display: flex; flex-direction: column; gap: 8px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); white-space: nowrap;
}
[data-style="3"] .status-pill { color: var(--header-ink); }
.status-pill.delivered { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.status-pill.cancelled { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.thumbs { display: flex; gap: 4px; font-size: 22px; }

/* ---------- Account ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; font-size: 24px; font-weight: 800; flex: none;
}
.menu { display: flex; flex-direction: column; padding: 4px 16px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-weight: 600; text-align: start; width: 100%; }
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi { font-size: 20px; width: 28px; text-align: center; }
.menu-item .end { margin-inline-start: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.auth-logo { text-align: center; margin: 18px 0 22px; color: var(--primary); }
[data-style="3"] .auth-logo { color: var(--header-ink); }
.auth-logo .logo { justify-content: center; font-size: 36px; }
.auth-logo .logo svg { width: 44px; height: 44px; }

/* Style picker */
.style-grid { display: grid; gap: 12px; }
.style-opt { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); text-align: start; width: 100%; }
.style-opt.on { border-color: var(--primary); }
.style-prev { width: 86px; height: 120px; border-radius: 14px; overflow: hidden; flex: none; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.08); }
.style-prev .ph { height: 22px; }
.style-prev .pb { flex: 1; padding: 6px; display: grid; gap: 5px; }
.style-prev .pc { border-radius: 6px; }
.style-prev .pn { height: 14px; }

/* ---------- Admin ---------- */
.admin-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface2); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.admin-tabs button { height: 40px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.admin-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
[data-style="3"] .admin-tabs button.on { background: var(--primary); color: var(--primary-ink); }
.admin-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-prod .p-photo { width: 52px; height: 52px; aspect-ratio: auto; border-radius: 12px; font-size: 28px; flex: none; overflow: hidden; margin: 0; }
.admin-prod .info { flex: 1; min-width: 0; }
.admin-prod .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-btns .btn { height: 42px; font-size: 13px; padding: 0 8px; }
.status-btns .btn.on { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.size-row { display: grid; grid-template-columns: 1fr 1fr 78px 36px; gap: 6px; align-items: center; }
.size-row .input { min-height: 42px; padding: 6px 10px; font-size: 14px; }
.size-row .x { width: 36px; height: 42px; color: var(--danger); font-size: 20px; }
.img-preview { width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--surface2); display: grid; place-items: center; font-size: 48px; flex: none; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
