/* SYBO Menu — the café owner's panel. Mobile first, right to left. */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap;
  src: url("/static/fonts/Vazirmatn_400_normal_arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 600; font-display: swap;
  src: url("/static/fonts/Vazirmatn_600_normal_arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap;
  src: url("/static/fonts/Vazirmatn_700_normal_arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #030410; --surface: #0b1128; --surface-2: #0f1733; --field: #070c1f; --ink: #eef1f8; --muted: #8c94ae; --line: rgba(150, 175, 230, .14);
  --primary: #e2cb8f; --primary-ink: #1b1404; --primary-soft: rgba(226, 203, 143, .12); --cyan: #00d4ff; --cyan-soft: rgba(0, 212, 255, .12);
  --gold: #e2cb8f; --green: #3ddc97; --green-soft: rgba(61, 220, 151, .12); --red: #ff7b72; --red-soft: rgba(255, 107, 107, .12); --amber: #f5b649;
  --radius: 18px; --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px rgba(0, 0, 0, .35);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.mp { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.75 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
h1 { font-size: 1.45rem; line-height: 1.5; margin: 0 0 .5rem; font-weight: 800; }
.mp-h2 { font-size: 1.1rem; margin: 0 0 .75rem; font-weight: 800; }
em { font-style: normal; color: var(--muted); font-weight: 400; }
.mp-skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.mp-skip:focus { inset-inline-start: 0; }
.mp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Top bar */
.mp-top { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.mp-brand { font-weight: 800; color: var(--ink); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.mp-brand-mark { color: var(--primary); font-size: 1.25rem; }
.mp-top-cafe { margin-inline-start: auto; color: var(--muted); font-size: .9rem; max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout */
.mp-shell { display: block; }
.mp-main { padding: 1rem 1rem 6.5rem; max-width: 960px; margin: 0 auto; outline: none; }
.mp-wide .mp-main { max-width: 1280px; }
.mp-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mp-nav a { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .25rem; font-size: .78rem; color: var(--muted); text-decoration: none; position: relative; min-height: 56px; justify-content: center; }
.mp-nav a span { font-size: 1.15rem; line-height: 1; }
.mp-nav a[aria-current="page"] { color: var(--primary); font-weight: 800; }
.mp-nav .mp-nav-wide { display: none; }
.mp-dot { position: absolute; top: 8px; inset-inline-end: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
@media (min-width: 900px) {
  .mp-shell { display: grid; grid-template-columns: 220px 1fr; max-width: 1320px; margin: 0 auto; }
  .mp-nav { position: sticky; top: 57px; align-self: start; display: flex; flex-direction: column; border: 0; background: transparent; padding: 1.25rem .5rem; gap: .15rem; height: auto; }
  .mp-nav a, .mp-nav .mp-nav-wide { display: flex; flex-direction: row; gap: .6rem; font-size: .95rem; padding: .6rem .9rem; border-radius: 10px; min-height: 0; justify-content: flex-start; }
  .mp-nav a[aria-current="page"] { background: var(--primary-soft); }
  .mp-dot { position: static; margin-inline-start: auto; }
  .mp-main { padding: 1.5rem 1.5rem 3rem; }
}

/* Cards and text */
.mp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.mp-narrow { max-width: 560px; margin-inline: auto; }
.mp-lead { color: var(--muted); margin: 0 0 1.25rem; }
.mp-hint { color: var(--muted); font-size: .9rem; margin: .25rem 0 1rem; }
.mp-note { background: var(--primary-soft); border-radius: 10px; padding: .75rem 1rem; }
.mp-muted { color: var(--muted); font-weight: 400; }
.mp-warn { color: var(--red); }
.mp-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.mp-page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.mp-page-head h1 { margin: 0; }
.mp-back { display: inline-block; margin-bottom: .75rem; text-decoration: none; font-size: .9rem; }

/* Alerts */
.mp-alert { border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.mp-alert-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(255, 123, 114, .35); }
.mp-alert-ok { background: var(--green-soft); color: var(--green); border: 1px solid rgba(61, 220, 151, .35); }
.mp-notice { background: rgba(226, 203, 143, .07); border: 1px solid rgba(226, 203, 143, .32); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.mp-notice p { margin: .25rem 0 .5rem; }
.mp-celebrate { background: linear-gradient(135deg, #1d6b45, #2f8c5d); color: #fff; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.mp-celebrate strong { font-size: 1.2rem; }
.mp-celebrate p { margin: .4rem 0 0; }

/* Forms */
.mp-form { display: grid; gap: 1rem; }
.mp-field { display: grid; gap: .35rem; }
.mp-field > span { font-weight: 600; }
.mp-field small { color: var(--muted); font-size: .85rem; }
.mp-field input, .mp-field textarea, .mp-field select, .mp-cat-name, .mp-variant input {
  width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .85rem; min-height: 48px;
}
.mp-field textarea { min-height: 72px; resize: vertical; }
.mp-field input:focus, .mp-field textarea:focus, .mp-field select:focus, .mp-cat-name:focus, .mp-variant input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0, 212, 255, .16); }
.has-error input, .has-error textarea, .has-error.mp-cat-head .mp-cat-name, input.has-error { border-color: var(--red) !important; background: var(--red-soft); }
.mp-check { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.mp-check input { width: 20px; height: 20px; accent-color: var(--primary); }
.mp-slug { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--field); }
.mp-slug-base { background: var(--primary-soft); color: var(--muted); padding: .7rem .6rem; font-size: .9rem; white-space: nowrap; display: flex; align-items: center; }
.mp-slug input { border: 0 !important; border-radius: 0; min-width: 0; }
.is-ok { color: var(--green) !important; font-weight: 600; }
.is-bad { color: var(--red) !important; font-weight: 600; }
.mp-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Buttons */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; min-height: 48px; padding: .6rem 1.2rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; text-decoration: none; }
.mp-btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.mp-btn-primary:hover { filter: brightness(1.06); }
.mp-btn-ghost { background: transparent; }
.mp-btn-ghost:hover { background: var(--primary-soft); }
.mp-btn-sm { min-height: 40px; padding: .4rem .85rem; font-size: .9rem; }
.mp-btn-block { width: 100%; }
.mp-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mp-link { background: none; border: 0; padding: .25rem 0; color: var(--primary); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mp-danger { color: var(--red) !important; }
.mp-icon-btn { min-width: 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; }
.mp-sticky-actions { position: sticky; bottom: 72px; display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem; background: rgba(3, 4, 16, .88); border-radius: var(--radius); backdrop-filter: blur(6px); z-index: 5; }
@media (min-width: 900px) { .mp-sticky-actions { bottom: 1rem; } }

/* Setup steps */
.mp-steps { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0 0 .5rem; overflow-x: auto; }
.mp-steps li { display: flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--muted); white-space: nowrap; flex: 1; }
.mp-steps-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-weight: 800; font-size: .8rem; }
.mp-steps li.done .mp-steps-n { background: var(--green); color: #fff; }
.mp-steps li.current { color: var(--ink); font-weight: 800; }
.mp-steps li.current .mp-steps-n { background: var(--primary); color: #fff; }
.mp-steps li:not(.current) .mp-steps-l { display: none; }
@media (min-width: 640px) { .mp-steps li:not(.current) .mp-steps-l { display: inline; } }
.mp-progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 1.25rem; }
.mp-progress span { display: block; height: 100%; background: var(--primary); }

/* Week */
fieldset { min-width: 0; }
.mp-week { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; margin: 0; display: grid; gap: .55rem; }
.mp-week legend { font-weight: 800; padding: 0 .4rem; }
.mp-day { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .35rem .4rem; align-items: center; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.mp-day:last-child { border-bottom: 0; }
.mp-day-name { grid-column: 1 / -1; font-weight: 600; display: flex; justify-content: space-between; }
.mp-day .mp-check { grid-column: 1 / -1; font-size: .85rem; }
@media (min-width: 560px) {
  .mp-day { grid-template-columns: 6rem minmax(0, 1fr) auto minmax(0, 1fr) auto; border-bottom: 0; padding-bottom: 0; }
  .mp-day-name, .mp-day .mp-check { grid-column: auto; }
}
.mp-day-to { color: var(--muted); font-size: .85rem; }
.mp-time { min-width: 0; }
.mp-time input { width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--field); min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: .3rem .4rem; direction: ltr; }
.mp-day.is-closed .mp-time input { opacity: .35; }
.mp-branch { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: grid; gap: .75rem; }
.mp-branch-head { display: flex; justify-content: space-between; align-items: center; }

/* Home */
.mp-grid { display: grid; gap: 1rem; }
.mp-stats { grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 640px) { .mp-stats { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); } }
.mp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .2rem; }
.mp-stat-label { color: var(--muted); font-size: .85rem; }
.mp-stat strong { font-size: 1.15rem; }
.mp-stat small { color: var(--muted); }
.mp-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--line); font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--ink); width: fit-content; }
.mp-badge-green { background: var(--green-soft); color: var(--green); }
.mp-badge-red { background: var(--red-soft); color: var(--red); }
.mp-badge-gold { background: var(--primary-soft); color: var(--gold); }
.mp-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.mp-checklist li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.mp-checklist li::before { content: "○"; color: var(--muted); font-size: 1.1rem; }
.mp-checklist li.done::before { content: "✓"; color: var(--green); font-weight: 800; }
.mp-checklist li span { flex: 1; }
.mp-checklist small { color: var(--muted); }
.mp-publish p { margin-top: 0; }
.mp-more { display: grid; gap: 0; padding: .25rem 1rem; }
.mp-more a { padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mp-more a:last-child { border-bottom: 0; }
.mp-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.mp-list a { display: flex; justify-content: space-between; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }

/* Build choice */
.mp-choices { grid-template-columns: 1fr; }
@media (min-width: 720px) { .mp-choices { grid-template-columns: 1fr 1fr; } }
.mp-choice { display: grid; gap: .6rem; padding: 1.5rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
a.mp-choice:hover { border-color: var(--primary); }
.mp-choice.is-soon { opacity: .7; }
.mp-choice-icon { font-size: 2rem; }
.mp-choice strong { font-size: 1.15rem; }

/* Builder */
.mp-save { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.mp-save .is-ok { color: var(--green); }
.mp-save .is-error { color: var(--red); font-weight: 600; }
.mp-builder { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .mp-builder { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } }
.mp-builder-preview { display: none; }
@media (min-width: 1100px) { .mp-builder-preview { display: block; position: sticky; top: 72px; } }
.mp-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.mp-cat.is-dragging, .mp-item.is-dragging { opacity: .5; }
.mp-cat-head { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.mp-cat-name { font-weight: 800; font-size: 1.05rem; }
.mp-handle { cursor: grab; color: var(--muted); padding: .3rem; user-select: none; display: none; }
@media (pointer: fine) { .mp-handle { display: inline-block; } }
.mp-items { display: grid; gap: .5rem; margin-bottom: .6rem; }
.mp-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.mp-item.is-off .mp-item-name { text-decoration: line-through; color: var(--muted); }
.mp-item-head { display: flex; align-items: center; gap: .4rem; padding: .25rem .4rem; }
.mp-item-summary { flex: 1; display: flex; justify-content: space-between; gap: .5rem; background: none; border: 0; font: inherit; text-align: start; padding: .55rem .3rem; cursor: pointer; color: var(--ink); min-height: 44px; }
.mp-item-name { font-weight: 600; }
.mp-item-price { color: var(--muted); white-space: nowrap; }
.mp-toggle { min-height: 36px; padding: .2rem .7rem; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green-soft); color: var(--green); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.mp-toggle.is-off { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.mp-item-body { display: grid; gap: .85rem; padding: .5rem .9rem 1rem; border-top: 1px solid var(--line); }
.mp-price { text-align: start; }
.mp-variants, .mp-tags { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; margin: 0; display: grid; gap: .5rem; }
.mp-variants legend, .mp-tags legend { font-weight: 600; padding: 0 .3rem; }
.mp-variant { display: grid; grid-template-columns: 1fr 1fr auto; gap: .4rem; align-items: center; }
.mp-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; font-size: .9rem; }
.mp-chip input { accent-color: var(--primary); }
.mp-photo { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.mp-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.mp-empty { color: var(--muted); font-size: .9rem; margin: .25rem 0; }
.mp-empty-state { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); margin-bottom: 1rem; }

/* Phone frame */
.mp-phone { width: 100%; max-width: 380px; aspect-ratio: 9 / 18.5; margin: 0 auto; border: 10px solid #1a2140; border-radius: 36px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.mp-phone iframe { width: 100%; height: 100%; border: 0; background: #000; }
.mp-preview-stage { padding: 1rem 0 2rem; }

/* Design */
.mp-logo { display: flex; gap: 1rem; align-items: center; }
.mp-logo-frame img, .mp-logo-empty { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--primary-soft); font-size: 2.2rem; font-weight: 800; color: var(--primary); }
.mp-templates { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mp-template { position: relative; display: grid; gap: .3rem; padding: .75rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.mp-template input { position: absolute; opacity: 0; }
.mp-template:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 212, 255, .16); }
.mp-template:has(input:focus-visible) { outline: 3px solid var(--gold); }
.mp-template.is-locked { opacity: .65; cursor: default; }
.mp-template small { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.mp-template-swatch { display: grid; gap: 5px; padding: .75rem; border-radius: 10px; background: var(--sw-bg); color: var(--sw-ink); height: 96px; }
.mp-template-swatch b { color: var(--sw-accent); }
.mp-template-swatch i { display: block; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; }
.mp-template-swatch i:nth-child(3) { width: 70%; }
.mp-palettes { display: flex; flex-wrap: wrap; gap: .5rem; }
.mp-palette { display: inline-flex; align-items: center; gap: .45rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.mp-palette:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mp-palette input { accent-color: var(--primary); }
.mp-palette-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.mp-palette-dot[data-template-own] { background: conic-gradient(#1f6f5c, #c9a45c, #8a3b1e, #1f6f5c); }
.mp-font-bold { font-weight: 800; }
.mp-brand-color { margin-top: 1rem; }
.mp-brand-color input[type=color] { width: 48px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: none; }

/* QR */
.mp-qr { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 640px) { .mp-qr { grid-template-columns: 220px 1fr; } }
.mp-qr-code svg { width: 100%; height: auto; max-width: 260px; display: block; margin: 0 auto; }
.mp-qr-info p { margin: 0 0 .75rem; word-break: break-all; }
.mp-downloads { display: grid; gap: .6rem; }
@media (min-width: 640px) { .mp-downloads { grid-template-columns: 1fr 1fr; } }
.mp-download { display: grid; gap: .2rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.mp-download:hover { border-color: var(--primary); }
.mp-download small { color: var(--muted); }
.mp-download-main { border-color: var(--primary); background: var(--primary-soft); }

/* Plans */
.mp-plans { display: grid; gap: 1rem; }
@media (min-width: 820px) { .mp-plans { grid-template-columns: repeat(3, 1fr); } }
.mp-plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.mp-plan.is-featured { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(226, 203, 143, .14); }
.mp-plan.is-current { border-color: var(--green); }
.mp-plan h2 { margin: 0 0 .25rem; }
.mp-plan-badge { position: absolute; top: -12px; inset-inline-start: 1rem; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 800; padding: .15rem .7rem; border-radius: 999px; }
.mp-plan-price strong { font-size: 1.5rem; }
.mp-plan-periods, .mp-plan-features { padding-inline-start: 1.1rem; margin: .5rem 0; font-size: .92rem; }
.mp-plan-features li { margin-bottom: .25rem; }

/* Footer */
.mp-foot { text-align: center; padding: 1.5rem 1rem 7rem; color: var(--muted); font-size: .85rem; }
.mp-foot p { margin: 0 0 .25rem; }
.mp-foot a { color: var(--muted); }
@media (min-width: 900px) { .mp-foot { padding-bottom: 2rem; } }
.sm-credit { color: var(--muted); text-decoration: none; font-size: .82rem; }
.sm-credit:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Phase 2: plans, quote, payment result */
.mp-periods { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.mp-checkout { display: grid; gap: .5rem; margin-top: .75rem; }
.mp-quote { display: grid; gap: .1rem; margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.6em; }
.mp-quote strong { color: var(--ink); font-size: 1rem; }
.mp-quote.is-bad { color: var(--red); font-weight: 600; }
.mp-result { text-align: center; }
.mp-result-icon { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; background: var(--red-soft); color: var(--red); }
.mp-result-paid .mp-result-icon, .mp-result-free .mp-result-icon { background: var(--green-soft); color: var(--green); }
.mp-receipt { text-align: start; border: 1px solid var(--line); border-radius: 12px; padding: .5rem 1rem; margin: 1rem 0; }
.mp-receipt div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.mp-receipt div:last-child { border-bottom: 0; }
.mp-receipt dt { color: var(--muted); }
.mp-receipt dd { margin: 0; font-weight: 600; }

/* Phase 3: menu from a photo */
.mp-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.mp-tip { display: grid; gap: .2rem; padding: .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.mp-tip-icon { font-size: 1.6rem; }
.mp-tip span:last-child { color: var(--muted); font-size: .9rem; }
.mp-upload { display: grid; place-items: center; gap: .4rem; padding: 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; text-align: center; }
.mp-upload input { max-width: 100%; }
.mp-waiting { text-align: center; }
.mp-spinner { width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--primary); animation: mp-spin 1s linear infinite; }
@keyframes mp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mp-spinner { animation: none; border-top-color: var(--line); } }
.mp-review { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .mp-review { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } }
.mp-review-photos { display: grid; gap: .6rem; }
@media (min-width: 1000px) { .mp-review-photos { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; } }
.mp-review-photos img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.mp-review-items { display: grid; gap: .75rem; }
.mp-review-tools { justify-content: space-between; }
.mp-review-row { border: 1px solid var(--line); border-radius: 12px; padding: .75rem; background: var(--surface-2); display: grid; gap: .5rem; margin: 0; }
.mp-review-row legend { font-weight: 800; padding: 0 .3rem; font-size: .9rem; }
.mp-review-row.is-low { background: rgba(245, 182, 73, .1); border-color: rgba(245, 182, 73, .55); }
.mp-review-row.is-done { border-color: var(--green); box-shadow: inset 4px 0 0 var(--green); }
.mp-review-row.is-deleted { opacity: .5; }
.mp-review-grid { display: grid; gap: .5rem; }
@media (min-width: 600px) { .mp-review-grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.is-low-field { background: rgba(245, 182, 73, .16) !important; border-color: #d4a72c !important; }
.mp-confirm { font-weight: 800; color: var(--green); }
.mp-discard { text-align: center; margin: 1rem 0 5rem; }
@media (max-width: 999px) {
  .mp-review-photos { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
  .mp-review-photos a { flex: none; scroll-snap-align: start; }
  .mp-review-photos img { width: auto; height: 240px; }
}

.mp-cat-en { margin: -.2rem 0 .6rem; }
.mp-cat-en input { width: 100%; font: inherit; color: var(--ink); background: var(--field); font-size: .9rem; border: 1.5px dashed var(--line); border-radius: 10px; padding: .45rem .75rem; min-height: 40px; }

/* Phase 4: bulk prices and visits */
.mp-fieldset { border: 0; padding: 0; margin: 0 0 .75rem; display: grid; gap: .5rem; }
.mp-fieldset legend { padding: 0; margin-bottom: .25rem; }
.mp-fieldset.has-error .mp-chips { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 12px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-chip:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.mp-table-wrap { overflow-x: auto; margin: 0 0 .75rem; }
.mp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mp-table th, .mp-table td { text-align: start; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.mp-table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.mp-table td small { color: var(--muted); }
.mp-table td:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-bars { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .35rem; }
.mp-bars li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .15rem .6rem; align-items: center; font-size: .85rem; }
.mp-bar-day { color: var(--muted); }
.mp-bar-track { display: grid; gap: 2px; }
.mp-bar { display: block; height: .45rem; border-radius: 999px; min-width: 2px; }
.mp-bar-view, .mp-key-view { background: var(--primary); }
.mp-bar-scan, .mp-key-scan { background: var(--gold); }
.mp-bar-num { grid-column: 2; color: var(--muted); font-size: .8rem; }
.mp-key { display: inline-block; width: .8rem; height: .5rem; border-radius: 999px; vertical-align: middle; }

/* Phase 5: orders and chat */
.mp-count { position: absolute; top: .3rem; inset-inline-start: calc(50% + .35rem); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; font-weight: 700; }
@media (min-width: 900px) { .mp-count { position: static; margin-inline-start: auto; } }
.mp-tabs { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; }
.mp-tabs a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.mp-tabs a[aria-current="page"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.mp-order { scroll-margin-top: 80px; }
.mp-order-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.mp-order-head h2 { margin: 0; font-size: 1.1rem; }
.mp-order-meta { color: var(--muted); font-size: .88rem; margin: .2rem 0 .5rem; }
.mp-order-meta a { color: inherit; }
.mp-order-lines { list-style: none; margin: 0 0 .5rem; padding: 0; }
.mp-order-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
.mp-order-total { display: flex; justify-content: space-between; font-weight: 700; margin: .4rem 0 .75rem; }
.mp-order-note { background: var(--bg); border-radius: 10px; padding: .5rem .75rem; margin: 0 0 .75rem; white-space: pre-wrap; }
.mp-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mp-actions form { margin: 0; }
.mp-pill { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.mp-pill-new { background: var(--red-soft); color: var(--red); }
.mp-pill-ready { background: var(--green-soft); color: var(--green); }
.mp-pill-done, .mp-pill-cancelled { background: var(--bg); color: var(--muted); }
.mp-receipt { display: grid; gap: .5rem; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; margin: 0 0 .75rem; }
.mp-receipt img { max-width: 100%; max-height: 420px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.mp-fresh { position: sticky; top: 64px; z-index: 5; }
.mp-threads { list-style: none; margin: 0; padding: 0; }
.mp-threads li a { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .8rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mp-threads small { color: var(--muted); }
.mp-threads .is-unread strong { color: var(--primary); }
.mp-thread-last { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-msgs { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mp-msg { max-width: 85%; padding: .55rem .85rem; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mp-msg small { display: block; font-size: .72rem; opacity: .75; margin-top: .15rem; }
.mp-msg-guest { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.mp-msg-cafe { align-self: flex-end; background: linear-gradient(160deg, #f3e3b6, var(--gold)); color: var(--primary-ink); }
.mp-reply { display: flex; gap: .5rem; align-items: flex-end; position: sticky; bottom: 64px; background: var(--bg); padding: .5rem 0; }
.mp-reply textarea { flex: 1; font: inherit; color: var(--ink); background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .8rem; min-height: 48px; resize: vertical; }
@media (min-width: 900px) { .mp-reply { bottom: 0; } }
.mp-switch { display: flex; align-items: center; gap: .6rem; font-weight: 600; padding: .35rem 0; }
.mp-switch input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }
.mp-sub { padding-inline-start: 1.8rem; display: grid; gap: .1rem; }
.mp-fresh[hidden], .mp-nav [hidden] { display: none !important; }
/* Phase 6 */
.mp-inline { display: flex; gap: .5rem; align-items: stretch; margin: 0 0 .75rem; }
.mp-inline input { flex: 1; min-width: 0; font: inherit; border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .8rem; min-height: 48px; background: var(--field); color: var(--ink); }
.mp-field select { width: auto; }
.mp-dns { margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mp-dns > div { display: grid; grid-template-columns: 4rem 1fr; gap: .5rem; padding: .55rem .75rem; border-bottom: 1px solid var(--line); align-items: center; }
.mp-dns > div:last-child { border-bottom: 0; }
.mp-dns dt { color: var(--muted); font-size: .85rem; }
.mp-dns dd { margin: 0; display: flex; gap: .5rem; align-items: center; justify-content: space-between; min-width: 0; }
.mp-dns code { overflow-wrap: anywhere; font-size: .9rem; }
.mp-copy { font: inherit; font-size: .8rem; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .2rem .55rem; cursor: pointer; flex: none; }


/* ═══ Luxury layer (2026-11-28): the panel becomes a dark CRM in the brand's colours ═══ */
@font-face { font-family: "Exo 2"; font-weight: 800; font-display: swap; src: url("/static/fonts/Exo-2_800_normal_latin.woff2") format("woff2"); }
body.mp { background: radial-gradient(1100px 520px at 90% -8%, rgba(0, 212, 255, .07), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(226, 203, 143, .05), transparent 55%), var(--bg); background-attachment: fixed; }
a { color: var(--gold); }
h1 { font-weight: 900; letter-spacing: -.01em; font-size: 1.6rem; }
.mp-card, .mp-cat, .mp-stat, .mp-plan, .mp-choice { background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.mp-card { border-radius: 22px; padding: 1.35rem; }
.mp-btn { border-radius: 13px; font-weight: 700; }
.mp-btn-primary { background: linear-gradient(160deg, #f5e7bf, var(--gold) 45%, #b8954d); border-color: transparent; color: var(--primary-ink); box-shadow: 0 10px 28px rgba(226, 203, 143, .18), inset 0 1px 0 rgba(255, 255, 255, .55); }
.mp-btn-ghost { border-color: rgba(150, 175, 230, .25); }
.mp-btn-ghost:hover { background: rgba(255, 255, 255, .04); }
.mp-link { color: var(--gold); }

/* top bar: brand, the café and its live state */
.mp-top { background: rgba(4, 6, 18, .78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: .7rem 1.1rem; min-height: 64px; }
.mp-brand { gap: .6rem; font-weight: 900; color: var(--ink); }
.mp-brand > span:last-child { display: grid; line-height: 1.2; }
.mp-brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 1rem; color: var(--gold);
  background: linear-gradient(150deg, #1a2550, #070b1d); border: 1px solid rgba(226, 203, 143, .45); }
.mp-brand small { font: 800 .58rem/1 "Exo 2", system-ui, sans-serif; letter-spacing: .16em; color: var(--muted); }
.mp-top-cafe { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 600; padding: .25rem .35rem .25rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.mp-top-cafe i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.mp-top-cafe i.is-live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.mp-top-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: .8rem; font-weight: 900; color: var(--primary-ink); flex: none;
  background: radial-gradient(circle at 30% 25%, #fbeec5, #d6b465 50%, #7c5e24); }

/* navigation: a quiet rail on desktop, a tab bar on phones */
.mp-nav { background: rgba(4, 6, 18, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.mp-nav a { color: var(--muted); }
.mp-nav a svg { width: 22px; height: 22px; }
.mp-nav a[aria-current="page"] { color: var(--cyan); }
.mp-nav-group { display: none; }
@media (min-width: 900px) {
  .mp-shell { grid-template-columns: 248px 1fr; }
  .mp-nav { top: 64px; padding: 1.2rem .7rem 2rem; gap: .1rem; border: 0; background: transparent; backdrop-filter: none; max-height: calc(100vh - 64px); overflow-y: auto; }
  .mp-nav a, .mp-nav .mp-nav-wide { color: var(--muted); padding: .6rem .85rem; border-radius: 12px; font-size: .95rem; position: relative; }
  .mp-nav a svg { width: 19px; height: 19px; flex: none; }
  .mp-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .03); }
  .mp-nav a[aria-current="page"] { color: var(--ink); background: linear-gradient(270deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, .1)); font-weight: 700; }
  .mp-nav a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -.7rem; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
  .mp-nav-group { display: block; margin: 1.1rem .85rem .35rem; font-size: .75rem; color: #5d6682; font-weight: 700; }
  .mp-nav-group:first-child { margin-top: 0; }
  .mp-main { padding: 1.6rem 2rem 3rem; }
}
.mp-count { background: var(--gold); color: var(--primary-ink); }
.mp-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* the home cover: the café's own photo and logo */
.mp-cover { position: relative; display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; min-height: 210px; padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(3, 4, 16, .15), rgba(3, 4, 16, .88) 72%), linear-gradient(0deg, rgba(3, 4, 16, .9), transparent 60%), var(--cover, radial-gradient(circle at 20% 20%, #1a2550, #070b1d 70%)) center / cover; }
.mp-cover-logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; color: var(--primary-ink);
  background: radial-gradient(circle at 30% 25%, #fbeec5, #d6b465 50%, #7c5e24); box-shadow: 0 0 0 4px rgba(3, 4, 16, .6); flex: none; }
.mp-cover h1 { margin: 0; font-size: 1.75rem; }
.mp-cover p { margin: 0; color: #c9cfdf; }
.mp-cover-actions { margin-inline-start: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mp-cover-edit { position: absolute; top: .9rem; inset-inline-start: .9rem; font-size: .78rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(3, 4, 16, .55); border: 1px dashed rgba(255, 255, 255, .35); color: #d7dceb; text-decoration: none; }
.mp-live { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; font-size: .88rem; border: 1px solid var(--line); background: rgba(3, 4, 16, .55); color: var(--muted); }
.mp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.mp-live.is-on { color: var(--green); border-color: rgba(61, 220, 151, .45); }
.mp-live.is-on i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.mp-live.is-off { color: var(--amber); border-color: rgba(245, 182, 73, .45); }
.mp-live.is-off i { background: var(--amber); }

/* the day in one strip */
.mp-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 1.2rem; background: var(--surface); }
@media (max-width: 760px) { .mp-strip { grid-template-columns: 1fr 1fr; } }
.mp-strip > div, .mp-strip > a { padding: 1.05rem 1.25rem; border-inline-start: 1px solid var(--line); color: inherit; text-decoration: none; }
.mp-strip > :first-child { border-inline-start: 0; }
@media (max-width: 760px) { .mp-strip > :nth-child(3) { border-inline-start: 0; } .mp-strip > :nth-child(n+3) { border-top: 1px solid var(--line); } }
.mp-strip span { color: var(--muted); font-size: .86rem; }
.mp-strip strong { display: block; font-size: 1.65rem; font-weight: 900; line-height: 1.45; white-space: nowrap; }
.mp-strip small { color: var(--green); font-size: .8rem; }
.mp-strip small.is-warn { color: var(--amber); }
.mp-strip small.is-dim { color: var(--muted); }
.mp-strip .is-money strong { color: var(--gold); }
.mp-dash { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1150px) { .mp-dash { grid-template-columns: minmax(0, 1fr); } }
.mp-panel-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.mp-panel-head .mp-h2 { margin: 0; }
.mp-panel-head > a, .mp-panel-head > .mp-btn { margin-inline-start: auto; }
.mp-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 760px) { .mp-board { grid-template-columns: minmax(0, 1fr); } }
.mp-board h3 { margin: 0 0 .55rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.mp-board h3 b { color: var(--ink); }
.mp-ocard { display: grid; gap: .3rem; padding: .75rem .8rem; margin-bottom: .6rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mp-ocard.is-new { border-color: rgba(0, 212, 255, .4); box-shadow: 0 0 0 1px rgba(0, 212, 255, .1), 0 10px 26px rgba(0, 212, 255, .07); }
.mp-ocard-top { display: flex; justify-content: space-between; align-items: baseline; }
.mp-ocard-top small { color: #5d6682; }
.mp-ocard p { margin: 0; font-size: .86rem; color: #c3cadd; }
.mp-ocard .mp-pill { width: fit-content; }
.mp-empty-line { color: var(--muted); font-size: .88rem; padding: .6rem 0; margin: 0; }
.mp-stock { display: grid; gap: .8rem; }
.mp-stock-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .2rem .75rem; align-items: center; }
.mp-stock-row img, .mp-stock-ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.mp-stock-row b { font-weight: 600; display: block; }
.mp-stock-row small { color: var(--muted); font-size: .78rem; }
.mp-stock-bar { grid-column: 2 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mp-stock-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--cyan), #6ee7ff); }
.mp-stock-bar.is-low i { background: linear-gradient(90deg, var(--amber), #ffd58a); }
.mp-stock-bar.is-out i { background: var(--red); }
.mp-spark { display: flex; align-items: flex-end; gap: 4px; height: 96px; }
.mp-spark i { flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(0, 212, 255, .85), rgba(0, 212, 255, .12)); }
.mp-spark i:last-child { background: linear-gradient(180deg, var(--gold), rgba(226, 203, 143, .2)); }
.mp-spark-legend { display: flex; justify-content: space-between; color: #5d6682; font-size: .75rem; margin-top: .4rem; }
.mp-side { display: grid; gap: 1.2rem; }
.mp-side .mp-card, .mp-dash > .mp-card { margin-bottom: 0; }
.mp-checklist li { border-color: var(--line); background: var(--surface-2); }
.mp-badge { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.mp-badge-green { background: var(--green-soft); color: var(--green); border-color: rgba(61, 220, 151, .35); }
.mp-badge-red { background: var(--red-soft); color: var(--red); border-color: rgba(255, 123, 114, .35); }
.mp-steps-n { background: var(--surface-2); color: var(--muted); }
.mp-steps li.current .mp-steps-n { color: var(--primary-ink); }
.mp-progress { background: var(--surface-2); }
.mp-progress span { background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.mp-celebrate { background: linear-gradient(135deg, rgba(61, 220, 151, .2), rgba(0, 212, 255, .12)); border: 1px solid rgba(61, 220, 151, .35); color: var(--ink); }
.mp-foot { color: #5d6682; }
.mp-foot a, .sm-credit { color: #8c94ae; }
.mp-coverbox { display: grid; gap: 1rem; }
@media (min-width: 720px) { .mp-coverbox { grid-template-columns: 320px 1fr; align-items: center; } }
.mp-cover-frame { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--surface-2) center / cover; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-size: .88rem; }
/* stock page */
.mp-stocklist { display: grid; gap: .8rem; }
.mp-stockcard { margin-bottom: 0; padding: 1rem 1.1rem; }
.mp-stockcard.is-out { border-color: rgba(255, 123, 114, .3); }
.mp-stockcard-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .9rem; align-items: center; }
.mp-stockcard-head img, .mp-stockcard-head .mp-stock-ph { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.mp-stockcard-head .mp-h2 { margin: 0; }
.mp-stockcard-head small { color: var(--muted); }
.mp-stockcard-left { display: flex; align-items: center; gap: .5rem; }
.mp-stockcard-left b { min-width: 4.2rem; text-align: center; }
.mp-stockcard.is-out .mp-stockcard-left b { color: var(--red); }
.mp-stockcard details { margin-top: .6rem; }
.mp-stockcard summary { cursor: pointer; color: var(--gold); font-size: .9rem; }
.mp-stockform { margin-top: .8rem; }
@media (max-width: 560px) { .mp-stockcard-head { grid-template-columns: 52px minmax(0, 1fr); } .mp-stockcard-head img, .mp-stockcard-head .mp-stock-ph { width: 52px; height: 52px; } .mp-stockcard-left { grid-column: 1 / -1; justify-content: flex-end; } }
.mp [hidden] { display: none !important; }
.mp-strip { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 760px) { .mp-strip { grid-template-columns: 1fr 1fr; } }
.mp-strip > * { border-top: 0; }
.mp-notice { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .75rem 1rem; border-radius: 16px; }
.mp-notice strong { font-size: .95rem; }
.mp-notice p { margin: 0; flex: 1 1 18rem; color: #c9cfdf; font-size: .9rem; }
.mp-notice .mp-row { margin-inline-start: auto; }
.mp-special { border: 1px dashed var(--line); border-radius: 14px; padding: .6rem .8rem; }
.mp-special summary { cursor: pointer; color: var(--gold); }
.mp-special[open] { display: grid; gap: .7rem; }

/* «نمونه»: the made-up day a café sees until its menu is live */
.mp-sample { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 16px;
  border: 1px dashed rgba(226, 203, 143, .55); background: rgba(226, 203, 143, .07); }
.mp-sample p { margin: 0; flex: 1 1 260px; color: var(--ink-2, #c9d0e2); font-size: .92rem; }
.mp-sample-tag { flex: none; font-weight: 800; font-size: .8rem; padding: .2rem .75rem; border-radius: 999px; color: #1b1404; background: linear-gradient(160deg, #f5e7bf, #e2cb8f 45%, #b8954d); }
.mp-ocard.is-yours { border-color: rgba(0, 212, 255, .7); box-shadow: 0 0 0 3px rgba(0, 212, 255, .15); }
div.mp-ocard { cursor: default; }

/* ── Design page (2026-11-29): settings beside a live preview ─────────────── */
.mp-design { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1180px) { .mp-design { grid-template-columns: minmax(0, 1fr) 420px; } .mp-live-preview { position: sticky; top: 84px; } }
.mp-design-form { display: grid; gap: 1.2rem; }
.mp-guide { padding: .7rem .95rem; margin: 0 0 1rem; border-radius: 14px; background: rgba(226, 203, 143, .06); border: 1px solid rgba(226, 203, 143, .2); color: var(--ink-2, #c9d0e2); font-size: .92rem; }
.mp-guide p { margin: .25rem 0; }
.mp-guide b { color: var(--ink); }
.mp-mt { margin-top: 1.4rem; }

.mp-coverbox { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.mp-cover-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--surface-2) center / cover no-repeat; border: 1px solid var(--line); cursor: crosshair; }
.mp-cover-frame:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.mp-focus-dot { position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .55); pointer-events: none; transition: left .2s, top .2s; }
.mp-focus-dot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #00d4ff; }
.mp-cover-crops { display: grid; grid-template-columns: .55fr .9fr 1.6fr; gap: .7rem; align-items: end; }
.mp-cover-crops figure { margin: 0; display: grid; gap: .3rem; text-align: center; }
.mp-cover-crops figcaption { font-size: .78rem; color: var(--muted); }
.mp-crop { display: block; border-radius: 10px; background: var(--surface-2) 50% 50% / cover no-repeat; border: 1px solid var(--line); }
.mp-crop-phone { aspect-ratio: 9 / 14; }
.mp-crop-tablet { aspect-ratio: 4 / 3; }
.mp-crop-desk { aspect-ratio: 16 / 6; }

.mp-logo-studio { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .mp-logo-studio { grid-template-columns: 220px 1fr; align-items: start; } }
.mp-logo-stage { display: grid; gap: .7rem; justify-items: center; }
.mp-logo-frame { width: 148px; height: 148px; border-radius: 28px; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line);
  background: conic-gradient(#1b2340 25%, #121933 0 50%, #1b2340 0 75%, #121933 0) 0 0 / 18px 18px; position: relative; }
.mp-logo-frame::before { content: ""; position: absolute; inset: 0; background: var(--logo-bg, transparent); }
.mp-logo-frame img, .mp-logo-frame .mp-logo-empty { position: relative; width: 100%; height: 100%; object-fit: contain; transform: scale(var(--logo-zoom, 1)); transition: transform .15s; border-radius: 0; background: none; }
.mp-logo-frame .mp-logo-empty { display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: var(--gold); }
.mp-logo-controls { display: grid; gap: 1rem; }
.mp-fieldset { border: 0; padding: 0; margin: 0; }
.mp-fieldset legend { font-weight: 700; margin-bottom: .5rem; }
.mp-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.mp-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: .88rem; }
.mp-chip input { accent-color: var(--gold); }
.mp-chip:has(input:checked) { border-color: var(--gold); background: rgba(226, 203, 143, .1); }
.mp-chips input[type="color"] { width: 40px; height: 32px; padding: 0; border: 0; background: none; }
.mp-field input[type="range"] { width: 100%; accent-color: var(--gold); }
.mp-field output { color: var(--gold); font-weight: 700; margin-inline-start: .4rem; }
.mp-field-sm input { max-width: 8rem; }

.mp-maker { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.mp-maker summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.mp-marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; margin: .8rem 0; }
.mp-mark-pick { position: relative; display: grid; justify-items: center; gap: .35rem; padding: .7rem .4rem; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; text-align: center; }
.mp-mark-pick input { position: absolute; opacity: 0; }
.mp-mark-pick:has(input:checked) { border-color: var(--gold); background: rgba(226, 203, 143, .08); }
.mp-mark-pick:has(input:focus-visible) { outline: 3px solid var(--gold); }
.mp-mark-pick small { font-size: .78rem; color: var(--muted); }
.mp-mark-none { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--line); color: var(--muted); font-size: .82rem; }
/* the made logos, as the menu draws them */
.mp .sm-mark { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; font-weight: 900; line-height: 1; --bg: #0b1128; --surface: #0f1733; --accent: #e2cb8f; --accent-ink: #1b1404; --text-accent: #e2cb8f; }
.mp .sm-mark b { font-size: 1.7rem; }
.mp .sm-mark-gold { border-radius: 50%; color: #1a1408; background: radial-gradient(circle at 30% 25%, #fbeec5, #d6b465 50%, #7c5e24); }
.mp .sm-mark-ink { border-radius: 26%; color: #fff; background: #16161a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.mp .sm-mark-ring { border-radius: 50%; color: var(--text-accent); background: var(--surface); box-shadow: inset 0 0 0 3px currentColor, inset 0 0 0 7px var(--surface), inset 0 0 0 8px currentColor; }
.mp .sm-mark-bean { border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; color: #f7ead6; background: linear-gradient(150deg, #6b4128, #2c160c); transform: rotate(-12deg); }
.mp .sm-mark-bean b { transform: rotate(12deg); }
.mp .sm-mark-stamp { border-radius: 50%; color: var(--accent); border: 2px dashed currentColor; box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 7px currentColor; }
.mp .sm-mark-cup { border-radius: 18% 18% 46% 46%; color: var(--accent-ink); background: var(--accent); box-shadow: 8px 0 0 -3px var(--accent); }

.mp-template { padding: .6rem; }
.mp-template-shot { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); container-type: inline-size; }
.mp-template-shot iframe { position: absolute; top: 0; right: 0; width: 390px; height: 694px; border: 0; transform: scale(calc(100cqw / 390px)); transform-origin: top right; pointer-events: none; }
.mp-templates { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.mp-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--field, #070c1f); border: 1px solid var(--line); }
.mp-seg button { font: inherit; font-size: .82rem; color: var(--muted); background: none; border: 0; padding: .35rem .7rem; border-radius: 9px; cursor: pointer; }
.mp-seg button[aria-pressed="true"] { background: var(--surface-2, #0f1733); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.mp-device-stage { display: grid; place-items: center; padding: .6rem 0; overflow: hidden; }
.mp-device { position: relative; border: 9px solid #1a2140; border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.mp-device iframe { position: absolute; top: 0; right: 0; border: 0; background: #000; transform-origin: top right; }
.mp-device.is-phone { width: 300px; height: 620px; }
.mp-device.is-phone iframe { width: 390px; height: 806px; transform: scale(.7436); }
.mp-device.is-tablet { width: 380px; height: 500px; border-radius: 22px; }
.mp-device.is-tablet iframe { width: 768px; height: 1010px; transform: scale(.4714); }
.mp-device.is-desk { width: 380px; height: 260px; border-radius: 12px; border-width: 7px; }
.mp-device.is-desk iframe { width: 1366px; height: 932px; transform: scale(.2679); }
@media (max-width: 1179px) { .mp-device.is-phone { width: 270px; height: 560px; } .mp-device.is-phone iframe { transform: scale(.6462); } }

/* ── Menu builder help and the photo library (2026-11-29) ─────────────────── */
.mp-howto { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 16px; background: rgba(226, 203, 143, .05); border: 1px solid rgba(226, 203, 143, .2); }
.mp-howto summary { cursor: pointer; font-weight: 700; color: var(--gold); }
.mp-howto ol { margin: .6rem 0 .3rem; padding-inline-start: 1.3rem; display: grid; gap: .35rem; font-size: .92rem; color: var(--ink-2, #c9d0e2); }
.mp-howto b { color: var(--ink); }
.mp-presets { flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .5rem; }
.mp-presets .mp-chip { font: inherit; font-size: .82rem; background: none; color: var(--ink); }
.mp-variants > .mp-hint, .mp-tags > .mp-hint { margin: 0 0 .5rem; }
.mp-shelf { width: 100%; margin-top: .4rem; }
.mp-shelf summary { cursor: pointer; color: var(--primary, #00d4ff); font-size: .88rem; }
.mp-shelf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .45rem; margin-top: .6rem; max-height: 260px; overflow-y: auto; padding: .2rem; }
.mp-shelf-pick { display: grid; gap: .2rem; justify-items: center; padding: .3rem; border-radius: 12px; border: 2px solid transparent; background: var(--field, #070c1f); color: var(--muted); cursor: pointer; font: inherit; }
.mp-shelf-pick img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.mp-shelf-pick small { font-size: .7rem; }
.mp-shelf-pick:hover { border-color: var(--line); }
.mp-shelf-pick.is-on { border-color: var(--gold); color: var(--ink); }

/* ── «پیشنهاد امروز» and «پشتیبانی و دستیار» (2026-11-29) ─────────────────── */
.mp-picks-intro { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 900px) { .mp-picks-intro { grid-template-columns: 1fr 300px; } }
.mp-picks-intro p { color: var(--ink-2, #c9d0e2); margin: .3rem 0 0; }
.mp-picks-demo { display: grid; gap: .5rem; padding: .9rem; border-radius: 18px; background: #fbfaf7; color: #1b1b1b; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.mp-picks-demo-head { font-weight: 800; font-size: .9rem; }
.mp-picks-demo-row { display: grid; grid-template-columns: 40px 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.mp-picks-demo-row i { width: 40px; height: 40px; border-radius: 10px; background: center / cover; }
.mp-picks-demo-row em { font-style: normal; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #1b1b1b; color: #fff; font-size: .75rem; }
.mp-upsell { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; border-color: rgba(226, 203, 143, .45); }
.mp-upsell p { margin: 0; }
.mp-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.mp-pick { display: grid; grid-template-columns: auto 56px 1fr; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.mp-pick input { accent-color: var(--gold); width: 18px; height: 18px; }
.mp-pick img, .mp-pick-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--field, #070c1f); color: var(--muted); font-weight: 800; }
.mp-pick b { display: block; font-size: .92rem; }
.mp-pick small { color: var(--muted); font-size: .78rem; }
.mp-pick:has(input:checked) { border-color: var(--gold); background: rgba(226, 203, 143, .07); }
.mp-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .mp-grid-2 { grid-template-columns: 1fr 1fr; } }

.mp-support { display: grid; gap: 1.2rem; align-items: start; }
@media (min-width: 1100px) { .mp-support { grid-template-columns: minmax(0, 1fr) 340px; } }
.mp-assistant-head { display: flex; gap: .9rem; align-items: center; margin-bottom: .9rem; }
.mp-assistant-head .mp-hint { margin: .2rem 0 0; }
.mp-assistant-eye { flex: none; width: 46px; height: 46px; border-radius: 50%; outline: 5px solid #0b0f22;
  background: radial-gradient(circle, #01030b 26%, transparent 27%), repeating-conic-gradient(#00d4ff 0 4deg, #0076a8 4deg 8deg);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .12), 0 0 22px rgba(0, 212, 255, .5); }
.mp-ask-form { display: grid; gap: .7rem; }
.mp-ask-form textarea { width: 100%; }
.mp-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.mp-quick .mp-chip { font: inherit; font-size: .85rem; color: var(--ink); background: none; text-align: start; }
.mp-quick .mp-chip:hover { border-color: var(--primary, #00d4ff); }
.mp-qa { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .9rem; }
.mp-qa li { display: grid; gap: .45rem; }
.mp-qa-q { justify-self: end; margin: 0; max-width: 85%; padding: .55rem .85rem; border-radius: 14px 14px 4px 14px; background: rgba(0, 212, 255, .12); border: 1px solid rgba(0, 212, 255, .3); }
.mp-qa-a { max-width: 92%; padding: .7rem .9rem; border-radius: 14px 14px 14px 4px; background: var(--field, #070c1f); border: 1px solid var(--line); white-space: pre-line; line-height: 1.95; }
.mp-help h3 { margin: 1.3rem 0 .4rem; font-size: .95rem; }
.mp-help-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.mp-help-links a { display: block; padding: .45rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2, #c9d0e2); }
.mp-help-links a:hover { color: var(--gold); }

/* ── SYBO Menu footer (sales page and panel) ──────────────────────────────── */
.sy-foot { margin-top: 3rem; padding: 2.6rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(150, 175, 230, .14);
  background: linear-gradient(180deg, rgba(10, 16, 40, .6), #02030c); color: #aeb6cc; font-size: .92rem; text-align: start; }
.sy-foot-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 2rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sy-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .sy-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.sy-foot h2 { margin: 0 0 .6rem; font-size: 1.25rem; font-weight: 900; }
.sy-foot h2 a { color: #eef1f8; text-decoration: none; }
.sy-foot h2 span { font: 800 .72rem/1 "Exo 2", sans-serif; letter-spacing: .16em; color: #8c94ae; margin-inline-start: .4rem; }
.sy-foot-brand p { margin: 0 0 1rem; max-width: 34em; line-height: 1.9; }
.sy-foot a { color: #c9d0e2; }
.sy-foot-socs { display: flex; flex-wrap: wrap; gap: .45rem; }
.sy-foot-socs a { text-decoration: none; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(150, 175, 230, .25); }
.sy-foot-socs a:hover { border-color: #e2cb8f; color: #e2cb8f; }
.sy-foot-col { display: grid; align-content: start; gap: .5rem; }
.sy-foot-col h3 { margin: 0 0 .2rem; font-size: .95rem; color: #eef1f8; }
.sy-foot-col a { text-decoration: none; width: fit-content; }
.sy-foot-col a:hover { color: #e2cb8f; }
.sy-foot-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(150, 175, 230, .1); text-align: center; }
.sy-foot .sm-credit { color: #8c94ae; font-size: .82rem; text-decoration: none; }
.sy-foot .sm-credit:hover { color: #e2cb8f; }

@media (max-width: 899px) { .mp .sy-foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }

/* ── Type layer (2026-11-29): calmer rhythm, readable measure, no collisions ─ */
.mp-brand > span:last-child { display: grid; gap: .3rem; line-height: 1.25; }
.mp-brand > span:last-child small { display: block; line-height: 1; padding-top: 1px; }
.mp-top-cafe span { line-height: 1.4; }
body.mp { font-size: 15.5px; line-height: 1.85; letter-spacing: 0; font-feature-settings: "ss01"; }
.mp-main h1 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.45; letter-spacing: -.005em; text-wrap: balance; margin-bottom: .35rem; }
.mp-h2 { font-size: 1.06rem; line-height: 1.6; letter-spacing: -.003em; text-wrap: balance; }
.mp-card > p, .mp-hint, .mp-guide p, .mp-card li { text-wrap: pretty; }
.mp-card > p, .mp-guide p { max-width: 70ch; }
.mp-hint { font-size: .86rem; line-height: 1.9; color: var(--muted); }
.mp-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; }
.mp-page-head h1 { margin: 0; }
.mp-card { padding: clamp(1rem, .8rem + .6vw, 1.35rem); }
.mp-card + .mp-card { margin-top: 1rem; }
.mp-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.mp-panel-head .mp-h2 { margin: 0; }
.mp-field > span:first-child { font-weight: 600; font-size: .92rem; }
.mp-btn { letter-spacing: 0; line-height: 1.5; }
.mp-strip strong, .mp-pill, .mp-price, td, .mp-count { font-variant-numeric: tabular-nums; }
.mp-strip span { font-size: .84rem; }
.mp-strip small { line-height: 1.6; }

/* subscription page (2026-11-29) */
.mp-substatus { display: grid; gap: 1rem; }
.mp-substatus-main { display: grid; gap: .35rem; }
.mp-substatus-main p { margin: 0; }
.mp-substatus-plan { font-size: 1.6rem; font-weight: 900; line-height: 1.4; }
.mp-meter { display: block; height: 8px; border-radius: 999px; background: var(--field); overflow: hidden; margin: .4rem 0; max-width: 420px; }
.mp-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--cyan)); }
.mp-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mp-feature-list li { display: flex; gap: .5rem; align-items: baseline; font-size: .92rem; }
.mp-feature-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); transform: translateY(-2px); }
.mp-faq-list details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.mp-faq-list summary { cursor: pointer; font-weight: 700; }
.mp-faq-list p { margin: .5rem 0 0; color: var(--ink-2, #c9d0e2); max-width: 70ch; }
.mp-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; }
.mp-tabs a { white-space: nowrap; }
.mp-tabs .mp-count { margin-inline-start: .3rem; }

/* ── SYBO Menu's own sign-in / sign-up page (2026-11-30) ───────────────────── */
.mp-auth-page .mp-main { max-width: 980px; margin-inline: auto; }
.mp-auth { display: grid; gap: 1.5rem; align-items: center; min-height: calc(100svh - 220px); padding: 1rem 0 2rem; }
@media (min-width: 900px) { .mp-auth { grid-template-columns: minmax(0, 440px) 1fr; } }
.mp-auth-card { padding: clamp(1.2rem, 1rem + 1vw, 2rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mp-auth-card h1 { margin: .4rem 0 .5rem; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
.mp-auth-lead { margin: 0 0 1.1rem; color: var(--ink-2, #c9d0e2); line-height: 1.95; text-wrap: pretty; }
.mp-auth-form { display: grid; gap: .9rem; }
.mp-auth-form input { width: 100%; font-size: 1.05rem; min-height: 52px; }
.mp-code-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem !important; font-variant-numeric: tabular-nums; }
.mp-auth-form .mp-link { justify-self: center; background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.mp-auth-small { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }
.mp-auth-eye { display: block; width: 48px; height: 48px; border-radius: 50%; outline: 6px solid #0b0f22;
  background: radial-gradient(circle, #01030b 26%, transparent 27%), repeating-conic-gradient(#00d4ff 0 4deg, #0076a8 4deg 8deg);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .1), 0 0 26px rgba(0, 212, 255, .5); }
.mp-auth-side { display: none; padding: 1rem 2rem; }
@media (min-width: 900px) { .mp-auth-side { display: block; } }
.mp-auth-quote { margin: 0 0 1.2rem; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 900; line-height: 1.5; text-wrap: balance; }
.mp-auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--ink-2, #c9d0e2); }
.mp-auth-side li { display: flex; gap: .6rem; align-items: center; }
.mp-auth-side li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* «ادامه‌ی ساخت منو»: the builder's unsaved work, kept on this phone */
.mp-restore { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 1rem; padding: .8rem 1rem;
  border-radius: 16px; border: 1px solid rgba(0, 212, 255, .45); background: rgba(0, 212, 255, .08); }
.mp-restore p { margin: 0; flex: 1 1 260px; }

/* phones: «بیشتر» opens every section of the panel as a sheet (2026-11-30) */
.mp-nav-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; min-height: 56px;
  font: inherit; font-size: .78rem; color: var(--muted); background: none; border: 0; cursor: pointer; }
.mp-nav-more svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .mp-nav-more { display: none; } }
@media (max-width: 899px) {
  .mp-nav.is-open { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; max-height: 80svh; overflow-y: auto;
    border-radius: 24px 24px 0 0; padding: .9rem .6rem calc(.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -24px 60px rgba(0, 0, 0, .6); background: rgba(8, 12, 30, .98); }
  .mp-nav.is-open a, .mp-nav.is-open .mp-nav-wide { display: flex; min-height: 64px; text-align: center; line-height: 1.5; }
  .mp-nav.is-open .mp-nav-group { display: block; grid-column: 1 / -1; margin: .7rem .5rem .15rem; font-size: .74rem; color: #6d7694; font-weight: 700; }
  .mp-nav.is-open .mp-nav-more { grid-column: 1 / -1; flex-direction: row; gap: .4rem; min-height: 46px; margin-top: .4rem; border-top: 1px solid var(--line); }
  body.mp-more-open::after { content: ""; position: fixed; inset: 0; z-index: 29; background: rgba(2, 3, 10, .55); }
}
