/* =====================================================================
   ShopVerse — owner dashboard, FINLIT visual language (dark glass, gradient accents).
   The hue follows the business theme: --a / --b are set in <head> by admin_header().
   ===================================================================== */
:root {
  --a: #FF4FD8; --b: #6E4BFF; --b2: var(--b);   /* --b2 = surfaces (set by the server close to --a's hue) */
  --bg: color-mix(in oklab, var(--a) 7%, #0B0716); --bg2: color-mix(in oklab, var(--a) 12%, #140C26); --bg3: color-mix(in oklab, var(--a) 4%, #05030B); --bg4: color-mix(in oklab, var(--a) 17%, #1A1030);   /* FINLIT night base, tinted with the store hue */
  --ink: #fff; --ink2: rgba(255,255,255,.78); --ink3: rgba(255,255,255,.56);
  --line: color-mix(in srgb, var(--a) 16%, rgba(255,255,255,.12)); --glass: color-mix(in srgb, var(--a) 6%, rgba(255,255,255,.055)); --glass2: color-mix(in srgb, var(--a) 8%, rgba(255,255,255,.1));
  --mid: color-mix(in srgb, var(--a) 55%, var(--b));
  --grad: linear-gradient(120deg, var(--a) 0%, var(--mid) 45%, var(--b) 100%);
  --grad-text: linear-gradient(90deg, color-mix(in srgb, var(--a) 55%, #fff), color-mix(in srgb, var(--b) 25%, #fff) 55%, color-mix(in srgb, var(--b) 45%, #fff));
  --glow: color-mix(in srgb, var(--a) 70%, transparent);
  --ok: #2EE6A6; --okbg: rgba(46,230,166,.15); --warn: #FFC83D; --warnbg: rgba(255,200,61,.15); --bad: #FF5C8A; --badbg: rgba(255,92,138,.15);
  --pri: var(--a); --pri2: var(--b); --card: var(--glass);
  --r: 24px;
}
* { box-sizing: border-box; }
html { scrollbar-color: rgba(255,255,255,.25) transparent; }
body { margin: 0; font-family: 'Rubik', 'Heebo', 'Segoe UI', system-ui, Arial, sans-serif; color: var(--ink2); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: color-mix(in srgb, var(--a) 60%, #fff); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; color: #fff; }
b, strong { color: #fff; }
code { background: rgba(255,255,255,.1); padding: 1px 6px; border-radius: 6px; font-size: .92em; color: #fff; }
::selection { background: color-mix(in srgb, var(--a) 45%, transparent); }
[hidden] { display: none !important; }

/* ---------- animated page canvas ---------- */
.fl-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(45% 40% at 85% 5%, color-mix(in srgb, var(--a) 30%, transparent) 0%, transparent 70%),
    radial-gradient(40% 45% at 5% 30%, color-mix(in srgb, var(--b2) 30%, transparent) 0%, transparent 70%),
    radial-gradient(35% 35% at 90% 80%, rgba(34,211,238,.13) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 55%, var(--bg3) 100%); }
.fl-canvas::after { content: ""; position: absolute; inset: 0; opacity: .32; background-image: radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.2px); background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(75% 65% at 55% 25%, #000 0%, transparent 75%); mask-image: radial-gradient(75% 65% at 55% 25%, #000 0%, transparent 75%); }
.fl-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: flBlob 22s ease-in-out infinite alternate; }
.fl-blob.b1 { width: 520px; height: 520px; left: -140px; top: 30%; background: radial-gradient(circle, var(--b2) 0%, transparent 70%); }
.fl-blob.b2 { width: 460px; height: 460px; right: -120px; top: -120px; background: radial-gradient(circle, var(--a) 0%, transparent 70%); animation-duration: 26s; animation-delay: -6s; }
.fl-blob.b3 { width: 380px; height: 380px; right: 18%; bottom: -160px; background: radial-gradient(circle, #22D3EE 0%, transparent 70%); opacity: .28; animation-duration: 30s; animation-delay: -12s; }
@keyframes flBlob { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,-40px) scale(1.12); } 100% { transform: translate(-40px,30px) scale(.95); } }
.fl-obj { position: absolute; bottom: -80px; opacity: 0; animation: flRise linear infinite; will-change: transform, opacity; }
@keyframes flRise { 0% { transform: translate3d(0,0,0) rotate(0); opacity: 0; } 10% { opacity: var(--o,.5); } 85% { opacity: var(--o,.5); } 100% { transform: translate3d(var(--dx,40px),-118vh,0) rotate(var(--rot,240deg)); opacity: 0; } }
.fl-spark { width: var(--s,14px); height: var(--s,14px); background: conic-gradient(from 0deg, #fff 0 25%, transparent 0 50%, #fff 0 75%, transparent 0); -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); filter: drop-shadow(0 0 6px #F0ABFC); }
.fl-ring { width: var(--s,40px); height: var(--s,40px); border-radius: 50%; border: 2px solid color-mix(in srgb, color-mix(in srgb, var(--b2) 60%, #fff) 55%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--b2) 40%, transparent), inset 0 0 12px color-mix(in srgb, var(--b2) 35%, transparent); }
.fl-gem { width: var(--s,22px); height: var(--s,22px); background: linear-gradient(135deg, #67E8F9, var(--b2) 60%, var(--a)); clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%); filter: drop-shadow(0 4px 12px rgba(34,211,238,.45)); }
.fl-food { font-size: var(--s,26px); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
@media (prefers-reduced-motion: reduce) { .fl-obj, .fl-blob { animation: none !important; } .fl-obj { opacity: 0 !important; } }

/* ---------- sidebar ---------- */
.ad-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; display: flex; flex-direction: column; z-index: 30; transition: transform .25s;
  background: color-mix(in srgb, var(--bg2) 62%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-inline-end: 1px solid var(--line); }
.ad-logo { display: flex; align-items: center; gap: 12px; height: 84px; padding: 0 22px; color: #fff; border-bottom: 1px solid var(--line); flex: none; }
.ad-logo .mk { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 14px var(--glow)); }
.ad-logo .mk svg { width: 100%; height: 100%; display: block; }
.ad-logo .tx { display: grid; line-height: 1.05; }
.ad-logo .tx b { font-size: 25px; font-weight: 800; letter-spacing: .4px; background: linear-gradient(90deg, #fff 0%, color-mix(in srgb, var(--a) 35%, #fff) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ad-logo .tx small { font-size: 9.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink3); margin-top: 4px; direction: ltr; text-align: start; }
.ad-biz { margin: 16px 16px 6px; padding: 14px; border-radius: 18px; display: grid; gap: 6px; background: linear-gradient(120deg, color-mix(in srgb, var(--a) 18%, transparent), color-mix(in srgb, var(--b2) 18%, transparent)); border: 1px solid var(--line); }
.ad-biz b { font-size: 16px; } .ad-biz a { font-size: 13.5px; font-weight: 600; } .ad-biz .pill { justify-self: start; }
.ad-side nav { display: grid; gap: 2px; padding: 10px 0; overflow-y: auto; }
.ad-side nav a { display: flex; align-items: center; gap: 12px; margin: 2px 14px; padding: 9px 12px; border-radius: 16px; color: var(--ink2); font-weight: 600; font-size: 15.5px; transition: background .2s, color .2s; }
.ad-side nav a i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--glass2); color: color-mix(in srgb, var(--b2) 25%, #fff); transition: background .2s, box-shadow .2s; }
.ad-side nav a i svg { width: 19px; height: 19px; }
.ad-side nav a:nth-child(2) i { color: #FFE08A; } .ad-side nav a:nth-child(3) i { color: #7CFCD0; } .ad-side nav a:nth-child(4) i { color: #67E8F9; } .ad-side nav a:nth-child(5) i { color: #FFB3C8; }
.ad-side nav a:hover { background: var(--glass2); color: #fff; }
.ad-side nav a.act { background: linear-gradient(120deg, color-mix(in srgb, var(--a) 24%, transparent), color-mix(in srgb, var(--b2) 24%, transparent)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.ad-side nav a.act i { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--glow); }
.ad-badge { margin-inline-start: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12.5px; display: grid; place-items: center; font-weight: 800; box-shadow: 0 0 12px var(--glow); }
.ad-user { margin-top: auto; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink3); line-height: 1.6; }
.ad-user b { color: #fff; font-weight: 700; }
.ad-main { margin-inline-start: 270px; min-height: 100vh; }

/* ---------- top bar ---------- */
.ad-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 84px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--line); box-shadow: 0 14px 40px -24px rgba(0,0,0,.9); }
.ad-top h1 { font-size: 22px; font-weight: 800; }
.ad-top .sp { flex: 1; }
.ad-ic { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line); color: #fff; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.ad-ic:hover { background: color-mix(in srgb, var(--a) 22%, transparent); transform: translateY(-2px); box-shadow: 0 10px 26px -12px var(--glow); }
.ad-ic svg { width: 21px; height: 21px; }
.ad-ic .ad-badge { position: absolute; top: -4px; inset-inline-end: -4px; border: 2px solid var(--bg); min-width: 22px; height: 22px; font-size: 11.5px; }
.ad-me { display: flex; align-items: center; gap: 12px; color: #fff; }
.ad-me span { font-size: 15px; } .ad-me span b { font-weight: 800; }
.ad-av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 21px; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 10px 26px -10px var(--glow); }
.ad-burger { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass2); color: #fff; font-size: 20px; cursor: pointer; }
.ad-content { padding: 26px 28px 70px; max-width: 1320px; }
.ad-shade { display: none; }
@media (max-width: 900px) {
  .ad-side { transform: translateX(100%); } body.nav-open .ad-side { transform: none; background: color-mix(in srgb, var(--bg2) 96%, transparent); }
  body.nav-open .ad-shade { display: block; position: fixed; inset: 0; background: rgba(5,2,15,.6); z-index: 25; }
  .ad-main { margin: 0; } .ad-burger { display: block; } .ad-top { padding: 0 14px; height: 70px; gap: 10px; } .ad-top h1 { font-size: 18px; }
  .ad-me span { display: none; } .ad-av { width: 44px; height: 44px; font-size: 18px; } .ad-ic { width: 44px; height: 44px; }
  .ad-content { padding: 18px 14px 60px; }
}

/* ---------- hero (dashboard greeting) ---------- */
.fl-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 24px 28px; border-radius: 28px; margin-bottom: 24px; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--a) 20%, transparent), color-mix(in srgb, var(--b2) 22%, transparent) 55%, rgba(34,211,238,.14)); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -36px var(--glow); }
.fl-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.14), transparent 60%); pointer-events: none; }
.fl-hero-av { position: relative; flex: none; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 44px; background: var(--grad); box-shadow: 0 14px 30px -12px var(--glow); animation: flBob 4.5s ease-in-out infinite; }
.fl-hero-av::after { content: ""; position: absolute; inset: -6px; border-radius: 30px; border: 2px dashed rgba(255,255,255,.28); animation: flSpin 18s linear infinite; }
@keyframes flBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes flSpin { to { transform: rotate(360deg); } }
.fl-hero-txt { flex: 1; min-width: 0; position: relative; }
.fl-hi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.fl-hero-txt h2 { margin: 6px 0; font-size: 32px; font-weight: 800; line-height: 1.15; }
.fl-hero-txt h2 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fl-hero-txt p { margin: 0; font-size: 15px; }
.fl-mode { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--okbg); color: #7CFCD0; border: 1px solid rgba(46,230,166,.35); }
.fl-mode.off { background: var(--badbg); color: #FFB3C8; border-color: rgba(255,92,138,.4); }
.fl-mode i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: flPing 1.8s infinite; }
@keyframes flPing { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 100% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } }
.fl-date { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); color: #fff; border: 1px solid var(--line); }
.fl-hero-end { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
@media (max-width: 767px) { .fl-hero { flex-wrap: wrap; padding: 18px; gap: 14px; } .fl-hero-av { width: 60px; height: 60px; font-size: 30px; border-radius: 18px; } .fl-hero-txt h2 { font-size: 23px; } .fl-hero-end { align-items: stretch; width: 100%; } }

/* ---------- blocks ---------- */
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 20px; box-shadow: 0 24px 50px -34px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .35s, box-shadow .35s; }
.card:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 30px 60px -32px color-mix(in srgb, var(--b2) 70%, transparent); }
.card > h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(0,0,0,.85); overflow: hidden; }
.stat .si { width: 58px; height: 58px; flex: none; border-radius: 20px; display: grid; place-items: center; font-size: 26px; background: var(--grad); box-shadow: 0 14px 30px -14px var(--glow); }
.stat:nth-child(2) .si { background: linear-gradient(120deg, #2EE6A6, #14B8A6); box-shadow: 0 14px 30px -14px rgba(46,230,166,.8); }
.stat:nth-child(3) .si { background: linear-gradient(120deg, #FFC83D, #FF8A3D); box-shadow: 0 14px 30px -14px rgba(255,200,61,.8); }
.stat:nth-child(4) .si { background: linear-gradient(120deg, #22D3EE, #2563EB); box-shadow: 0 14px 30px -14px rgba(34,211,238,.8); }
.stat small { display: block; color: var(--ink3); font-weight: 600; font-size: 13.5px; }
.stat b { display: block; font-size: 28px; font-weight: 800; margin-top: 4px; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--b2) 25%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--ink3); } .small { font-size: 13.5px; }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--glass2); color: var(--ink2); border: 1px solid var(--line); }
.pill.ok { background: var(--okbg); color: #7CFCD0; border-color: rgba(46,230,166,.35); } .pill.warn { background: var(--warnbg); color: #FFE08A; border-color: rgba(255,200,61,.4); }
.pill.bad { background: var(--badbg); color: #FFB3C8; border-color: rgba(255,92,138,.4); } .pill.pri { background: color-mix(in srgb, var(--a) 18%, transparent); color: color-mix(in srgb, var(--a) 40%, #fff); border-color: color-mix(in srgb, var(--a) 40%, transparent); }
.flash { padding: 13px 16px; border-radius: 16px; margin-bottom: 18px; font-weight: 600; white-space: pre-line; border: 1px solid var(--line); background: var(--glass2); color: #fff; }
.flash-ok { background: var(--okbg); border-color: rgba(46,230,166,.4); color: #B7FBE3; } .flash-err { background: var(--badbg); border-color: rgba(255,92,138,.45); color: #FFD0DC; }
.flash-warn { background: var(--warnbg); border-color: rgba(255,200,61,.45); color: #FFE9A8; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- forms ---------- */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.inp, label.f input:not([type=checkbox]):not([type=radio]):not([type=color]), label.f select, label.f textarea, input[type=time], .modal-in input:not([type=checkbox]):not([type=radio]):not([type=color]), .modal-in select, .modal-in textarea {
  width: 100%; height: 46px; padding: 0 13px; border: 1.5px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(0,0,0,.24); color: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
label.f textarea, .modal-in textarea { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; }
.inp:focus, label.f input:focus, label.f select:focus, label.f textarea:focus, input[type=time]:focus, .modal-in input:focus, .modal-in select:focus, .modal-in textarea:focus { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 22%, transparent); }
::placeholder { color: rgba(255,255,255,.42); }
select option { background: var(--bg2); color: #fff; }
input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .7; }
label.f small { display: block; margin-top: 5px; color: var(--ink3); font-size: 12.5px; }
.chk { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; cursor: pointer; color: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--a); }
.chk input { width: 20px; height: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; white-space: nowrap;
  background: var(--grad); color: #fff; box-shadow: 0 12px 28px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s, opacity .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sec { background: var(--glass2); color: #fff; border: 1px solid var(--line); box-shadow: none; }
.btn.sec:hover { background: rgba(255,255,255,.17); }
.btn.ok { background: linear-gradient(120deg, #2EE6A6, #14B8A6); color: #062B22; box-shadow: 0 12px 28px -14px rgba(46,230,166,.8); }
.btn.danger { background: linear-gradient(120deg, #FF5C8A, #E0257E); color: #fff; box-shadow: 0 12px 28px -14px rgba(255,92,138,.8); }
.btn.sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 11px; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; color: var(--ink2); }
.tbl th { text-align: start; font-size: 13px; color: var(--ink3); font-weight: 600; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; } .tbl tbody tr:hover, .tbl tr:hover > td { background: rgba(255,255,255,.035); }
.tbl .thumb { width: 50px; height: 50px; object-fit: contain; border-radius: 12px; background: rgba(0,0,0,.25); padding: 4px; }
.tbl input.price { width: 90px; height: 38px; text-align: center; }
.lowconf > td { background: rgba(255,200,61,.08); } .lowconf td:first-child { box-shadow: inset -4px 0 0 var(--warn); }
.tbl-wrap { overflow-x: auto; }

/* ---------- switch ---------- */
.sw { position: relative; display: inline-block; width: 48px; height: 27px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: inset-inline-start .2s; }
.sw input:checked + i { background: linear-gradient(120deg, #2EE6A6, #14B8A6); }
.sw input:checked + i::after { inset-inline-start: 24px; }

/* ---------- theme picker (settings) ---------- */
.hours-row { display: grid; grid-template-columns: 64px 48px minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: center; margin-bottom: 8px; color: #fff; }
.hours-row input[type=time] { height: 42px; padding: 0 8px; }

/* ---------- orders board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(4, 270px); } }
.col { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 22px; padding: 12px; min-height: 220px; }
.col > h3 { font-size: 15px; padding: 4px 6px 12px; display: flex; justify-content: space-between; align-items: center; }
.oc { background: var(--glass2); border-radius: 18px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); box-shadow: 0 16px 30px -22px rgba(0,0,0,.9); }
.oc.fresh { animation: ocIn .6s; border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 30%, transparent), 0 16px 30px -18px var(--glow); }
@keyframes ocIn { from { transform: scale(.9); opacity: 0; } }
.oc .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.oc .hd b { font-size: 21px; font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.oc ul { margin: 8px 0; padding: 0; list-style: none; font-size: 14px; color: #fff; }
.oc li { padding: 3px 0; } .oc li small { display: block; color: var(--ink3); }
.oc li [style*="background"], .oc [style*="#FFF7E0"] { background: var(--warnbg) !important; color: #FFE9A8 !important; }
.oc .ft { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.oc .tot { font-weight: 800; color: #fff; }

/* ---------- import / drop zones ---------- */
.drop, label.drop { display: block; border: 2px dashed rgba(255,255,255,.22); border-radius: 22px; padding: 30px; text-align: center; background: rgba(0,0,0,.18); cursor: pointer; transition: background .15s, border-color .15s; color: var(--ink2); }
.drop:hover, .drop.over { background: color-mix(in srgb, var(--a) 12%, transparent); border-color: var(--a); }
.drop b { color: #fff; }
.drop img.prev { max-height: 260px; margin: 12px auto 0; border-radius: 14px; display: block; }
.vis-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 4px; }
.vis-pick label { cursor: pointer; border-radius: 14px; background: rgba(0,0,0,.28); padding: 6px; text-align: center; color: #fff; font-size: 11px; border: 2px solid transparent; }
.vis-pick label:has(input:checked) { border-color: var(--a); box-shadow: 0 0 16px -4px var(--glow); }
.vis-pick input { position: absolute; opacity: 0; }
.vis-pick img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.vis-pick label[hidden] { display: none; }
.imp-tbl td, .imp-tbl th { padding: 6px 8px; font-size: 14px; }
.imp-tbl img { width: 40px; height: 40px; object-fit: contain; background: rgba(0,0,0,.25); border-radius: 8px; padding: 3px; }
.conf { display: inline-block; min-width: 44px; text-align: center; padding: 2px 6px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--okbg); color: #7CFCD0; }
.conf.mid { background: var(--warnbg); color: #FFE08A; } .conf.low { background: var(--badbg); color: #FFB3C8; }

/* ---------- auth (login / register) ---------- */
body.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: transparent; }
.auth-box { width: 100%; max-width: 460px; background: color-mix(in srgb, var(--bg2) 72%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; padding: 30px; box-shadow: 0 40px 90px -40px var(--glow); }
.auth-box .ad-logo { justify-content: center; border: 0; height: auto; padding: 0 0 18px; }
.auth-box h1 { text-align: center; font-size: 24px; margin-bottom: 20px; }
.auth-box .btn { width: 100%; height: 52px; font-size: 17px; }
.auth-box .alt { text-align: center; margin-top: 16px; color: var(--ink2); }
.slug-in { display: flex; direction: ltr; border: 1.5px solid rgba(255,255,255,.18); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,.24); }
.slug-in span { padding: 0 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--ink3); font-size: 13px; white-space: nowrap; }
.slug-in input { border: 0 !important; box-shadow: none !important; direction: ltr; background: transparent !important; }

/* ---------- modal (menu editor) ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-bd { position: absolute; inset: 0; background: rgba(5,2,15,.62); backdrop-filter: blur(4px); }
.modal-in { position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: linear-gradient(170deg, color-mix(in srgb, var(--bg4) 98%, transparent), color-mix(in srgb, var(--bg) 98%, transparent)); border: 1px solid rgba(255,255,255,.16); border-radius: 26px; padding: 26px; box-shadow: 0 40px 90px -30px #000, 0 0 60px -30px var(--glow); color: var(--ink2); }
.modal-in h2 { margin: 0 0 16px; }
.modal-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass2); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- StoreAI import page ---------- */
.sa-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.sa-steps > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 13px 15px; }
.sa-steps i { grid-row: span 2; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--glass2); color: var(--ink3); }
.sa-steps b { font-size: 14.5px; } .sa-steps small { color: var(--ink3); font-size: 12px; }
.sa-steps .on { border-color: color-mix(in srgb, var(--a) 60%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--a) 16%, transparent), color-mix(in srgb, var(--b2) 16%, transparent)); }
.sa-steps .on i { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px var(--glow); }
.sa-steps .done i { background: linear-gradient(120deg, #2EE6A6, #14B8A6); color: #062B22; font-size: 0; } .sa-steps .done i::after { content: "✓"; font-size: 17px; }
@media (max-width: 800px) { .sa-steps { grid-template-columns: 1fr 1fr; } }
.sa-busy { display: flex; align-items: center; gap: 16px; border-color: color-mix(in srgb, var(--a) 55%, transparent); }
.sa-spin { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--a); border-right-color: var(--b2); animation: saSpin .8s linear infinite; flex: none; box-shadow: 0 0 24px -6px var(--glow); }
@keyframes saSpin { to { transform: rotate(360deg); } }
.sa-work { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }
.sa-work.one { grid-template-columns: 1fr; }
.sa-orig { position: sticky; top: 100px; } .sa-orig img { width: 100%; border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 1000px) { .sa-work { grid-template-columns: 1fr; } .sa-orig { position: static; } }
.sa-head { align-items: flex-end; }
.sa-cat { border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; overflow: hidden; background: rgba(0,0,0,.12); }
.sa-cat-h { display: flex; gap: 8px; align-items: center; padding: 10px; background: linear-gradient(120deg, color-mix(in srgb, var(--a) 14%, transparent), color-mix(in srgb, var(--b2) 14%, transparent)); border-bottom: 1px solid var(--line); }
.sa-cat-h .inp { flex: 1; font-weight: 800; font-size: 15px; height: 42px; }
.sa-tbl th { font-size: 12px; } .sa-tbl td { padding: 6px; }
.sa-tbl .inp { height: 40px; font-size: 14px; padding: 0 10px; }
.sa-tbl .inp.price.bad { border-color: rgba(255,92,138,.7); background: rgba(255,92,138,.12); } .sa-tbl .inp.price.mid { border-color: rgba(255,200,61,.7); background: rgba(255,200,61,.1); }
.sa-tbl td.th { width: 56px; } .sa-tbl td.th img, .sa-tbl td.th .ph { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; background: rgba(0,0,0,.3); display: grid; place-items: center; font-size: 20px; }
.sa-tbl tr.sa-opts td { padding-top: 0; font-size: 12.5px; color: var(--ink3); }
#saJson { width: 100%; min-height: 60vh; font: 12.5px/1.45 Consolas, monospace; border: 1.5px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px; background: rgba(0,0,0,.3); color: color-mix(in srgb, var(--b2) 25%, #fff); }
.sa-actions { margin-top: 16px; position: sticky; bottom: 0; z-index: 2; padding: 14px 0 4px; border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--bg2) 92%, transparent), color-mix(in srgb, var(--bg) 98%, transparent)); }
.sa-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-bottom: 8px; }
.sa-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 14px var(--glow); transition: width .4s; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sa-pic { display: grid; justify-items: center; gap: 6px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 18px; text-align: center; background: rgba(0,0,0,.18); }
.sa-pic img, .sa-pic .ph { width: 116px; height: 116px; object-fit: contain; border-radius: 14px; display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--b2) 30%, transparent), transparent 70%); }
.sa-pic b { font-size: 13px; line-height: 1.25; min-height: 2.5em; }
.sa-pic.ok { border-color: rgba(46,230,166,.45); } .sa-pic.err { border-color: rgba(255,92,138,.6); background: rgba(255,92,138,.08); } .sa-pic.busy { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 25%, transparent); }
.sa-or { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--ink3); font-size: 13px; }
.sa-or::before, .sa-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- dine-in: floor ---------- */
.dn-bar { padding: 14px 18px; } .dn-bar .row { gap: 12px; }
.dn-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink3); }
.dn-legend i { width: 12px; height: 12px; border-radius: 4px; } .dn-legend .free { background: rgba(255,255,255,.25); } .dn-legend .busy { background: var(--grad); } .dn-legend .ready { background: var(--ok); } .dn-legend .call { background: var(--bad); }
.dn-floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.dn-t { position: relative; display: grid; gap: 8px; align-content: start; min-height: 190px; padding: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s, transform .2s; }
.dn-t:hover { transform: translateY(-2px); }
.dn-t.busy { border-color: color-mix(in srgb, var(--a) 55%, transparent); background: linear-gradient(150deg, color-mix(in srgb, var(--a) 14%, transparent), color-mix(in srgb, var(--b2) 10%, transparent)); }
.dn-t.ready { border-color: rgba(46,230,166,.7); box-shadow: 0 0 0 3px rgba(46,230,166,.18); }
.dn-t.call { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,92,138,.22); animation: dnPulse 1.4s ease-in-out infinite; }
@keyframes dnPulse { 50% { box-shadow: 0 0 0 7px rgba(255,92,138,.12); } }
.dn-th { display: flex; align-items: baseline; gap: 8px; } .dn-th b { font-size: 34px; font-weight: 900; line-height: 1; } .dn-th span { color: var(--ink3); font-size: 12.5px; flex: 1; }
.dn-ed { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass2); color: #fff; cursor: pointer; }
.dn-bill { font-size: 26px; font-weight: 800; color: #fff; direction: ltr; text-align: end; } .dn-meta { font-size: 12.5px; color: var(--ink3); }
.dn-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 24px; } .dn-free { color: var(--ink3); font-weight: 700; margin-top: auto; }
.dn-t .btn { margin-top: auto; }
.dn-calls { display: grid; gap: 10px; margin-bottom: 18px; }
.dn-call { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: rgba(255,92,138,.14); border: 1px solid rgba(255,92,138,.5); color: #fff; animation: dnPulse 1.4s ease-in-out infinite; }
.dn-call.bill { background: rgba(255,200,61,.13); border-color: rgba(255,200,61,.5); }
.dn-call .ic { font-size: 24px; } .dn-call b { font-size: 18px; } .dn-call span { flex: 1; color: var(--ink2); }
.dn-round { border: 1px solid var(--line); border-radius: 18px; padding: 10px 14px; margin-bottom: 12px; background: rgba(0,0,0,.15); }
.dn-rh { display: flex; justify-content: space-between; margin-bottom: 4px; }
.dn-it { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: #fff; }
.dn-it small { display: block; color: var(--ink3); font-size: 12px; } .dn-it.cancelled > span:first-child, .dn-it.cancelled b { text-decoration: line-through; opacity: .6; }
.dn-ia { display: flex; gap: 6px; }
.dn-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px 0; font-size: 16px; } .dn-total b { font-size: 26px; }
@media (max-width: 700px) { .dn-it { grid-template-columns: minmax(0,1fr) auto; } .dn-ia { grid-column: 1 / -1; } }

/* ---------- dine-in: kitchen display ---------- */
.kd-head { margin-bottom: 14px; } #kdSound.on { background: linear-gradient(120deg, #2EE6A6, #14B8A6); color: #062B22; }
.kd-flash { margin-bottom: 14px; padding: 14px 18px; border-radius: 18px; font-size: 18px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 18px 40px -16px var(--glow); animation: kdIn .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes kdIn { from { transform: translateY(-14px) scale(.96); opacity: 0; } }
.kd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; align-items: start; }
.kd-card { border-radius: 22px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 40px -28px #000; }
.kd-card.fresh { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 30%, transparent), 0 20px 40px -20px var(--glow); animation: kdIn .6s cubic-bezier(.3,1.5,.5,1); }
.kd-card.warm .kd-h { background: linear-gradient(120deg, rgba(255,200,61,.3), rgba(255,138,61,.2)); } .kd-card.late .kd-h { background: linear-gradient(120deg, rgba(255,92,138,.4), rgba(224,37,126,.25)); }
.kd-h { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--a) 22%, transparent), color-mix(in srgb, var(--b2) 22%, transparent)); border-bottom: 1px solid var(--line); }
.kd-t { width: 70px; height: 70px; flex: none; border-radius: 18px; display: grid; place-items: center; align-content: center; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18); }
.kd-t small { font-size: 11px; color: var(--ink3); } .kd-t b { font-size: 32px; font-weight: 900; line-height: 1; }
.kd-m b { display: block; font-size: 18px; } .kd-m span { font-size: 13px; color: var(--ink2); } .kd-m i { font-style: normal; font-weight: 700; color: #fff; }
.kd-card ul { list-style: none; margin: 0; padding: 6px 10px; }
.kd-card li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 8px; border-radius: 14px; cursor: pointer; transition: background .2s; color: #fff; }
.kd-card li + li { border-top: 1px solid var(--line); }
.kd-card li:hover { background: rgba(255,255,255,.05); } .kd-card li.busy { opacity: .5; }
.kd-card li .q { font-size: 20px; font-weight: 900; min-width: 34px; } .kd-card li .n { font-size: 16.5px; font-weight: 700; }
.kd-card li small { display: block; font-weight: 400; color: var(--ink3); font-size: 13px; } .kd-card li em { display: block; font-style: normal; color: #FFE08A; font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.kd-card li .s { font-size: 12.5px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: rgba(34,211,238,.15); color: #A5F3FC; white-space: nowrap; }
.kd-card li.preparing .s { background: var(--warnbg); color: #FFE08A; } .kd-card li.ready .s { background: var(--okbg); color: #7CFCD0; } .kd-card li.served { opacity: .45; } .kd-card li.served .s { background: var(--glass2); color: var(--ink3); }
.kd-card li.cancelled { opacity: .4; text-decoration: line-through; cursor: default; } .kd-card li.cancelled .s { background: var(--badbg); color: #FFB3C8; }
.kd-note { margin: 0 14px 8px; color: #FFE08A; font-size: 14px; }
.kd-acts { display: flex; gap: 6px; padding: 10px 12px 14px; flex-wrap: wrap; } .kd-acts .btn { flex: 1; }
.kd-empty { text-align: center; grid-column: 1 / -1; padding: 40px; }

/* ---------- language switcher ---------- */
.auth-lang { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 5; }
@media (max-width: 700px) { .ad-me span { display: none; } }

/* ---------- menu manager: same look as the diner's menu ---------- */
.mn-review { border-color: rgba(255,200,61,.5); background: rgba(255,200,61,.08); }
.mn-bar { padding: 16px 18px; }
.mn-view { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink3); font-weight: 600; }
.mn-view select { height: 40px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: #fff; padding: 0 10px; font: inherit; }
.mn-view select option { color: #fff; background: var(--bg2); }
.mn-tr { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mn-tr-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass2); font-size: 20px; }
.mn-tr-tx { flex: 1; min-width: 200px; display: grid; gap: 4px; } .mn-tr-tx b { color: #fff; }
.mn-tr-l { display: inline-block; margin-inline-end: 12px; } .mn-tr-l.miss { color: #FFE08A; } .mn-tr-l.ok { color: #7CFCD0; }

.mn-cats-w { position: sticky; top: 84px; z-index: 15; }
.mn-cats { position: relative; display: flex; gap: 8px; padding: 10px 2px 12px; margin-bottom: 6px; overflow-x: auto; scrollbar-width: none; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 90%, transparent), color-mix(in srgb, var(--bg) 55%, transparent) 80%, transparent); }
.mn-cats::-webkit-scrollbar { display: none; }
.mn-cats a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding-inline: 8px 14px; border-radius: 99px; background: var(--glass2); border: 1px solid var(--line); color: var(--ink2); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.mn-cats a img { width: 30px; height: 30px; object-fit: contain; }
.mn-cats a small { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: rgba(0,0,0,.3); font-size: 11.5px; }
.mn-cats a.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px var(--glow); }

.mn-sec { margin-bottom: 30px; scroll-margin-top: 150px; }
.mn-sec-h { display: flex; align-items: center; gap: 10px; margin: 8px 2px 14px; }
.mn-sec-h h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.mn-sec-h h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
[dir=rtl] .mn-sec-h h2::after { background: linear-gradient(-90deg, var(--line), transparent); }
.mn-sec-a { display: flex; gap: 6px; }
.mn-ic { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass2); color: #fff; cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: background .2s, transform .15s; }
.mn-ic:hover:not(:disabled) { background: rgba(255,255,255,.2); } .mn-ic:disabled { opacity: .3; cursor: default; } .mn-ic.bad:hover { background: rgba(255,92,138,.3); }

.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.mn-p { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; cursor: pointer; text-align: start; transition: transform .25s, border-color .25s, box-shadow .25s; animation: mnIn .45s ease both; outline: none; }
.mn-p:hover, .mn-p:focus-visible { transform: translateY(-4px); border-color: rgba(255,255,255,.28); box-shadow: 0 24px 40px -26px var(--glow); }
.mn-p:hover .mn-img img { transform: scale(1.06) rotate(-2deg); }
@keyframes mnIn { from { opacity: 0; transform: translateY(10px); } }
.mn-img { aspect-ratio: 1 / .82; display: grid; place-items: center; padding: 12px; background: radial-gradient(60% 55% at 50% 58%, color-mix(in srgb, var(--b2) 34%, transparent), transparent 72%); }
.mn-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(0,0,0,.5)); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.mn-p.na .mn-img img { filter: grayscale(1) brightness(.55); }
.mn-p .out { position: absolute; top: 12px; inset-inline-end: -34px; transform: rotate(45deg); background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 40px; z-index: 2; }
[dir=rtl] .mn-p .out { transform: rotate(-45deg); }
.mn-flag { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; height: 24px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; background: rgba(255,200,61,.9); color: #3A2600; }
.mn-flag.tr { top: 38px; background: rgba(34,211,238,.9); color: #052A33; }
.mn-info { padding: 4px 14px 14px; display: grid; gap: 5px; flex: 1; }
.mn-info h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; color: #fff; }
.mn-info p { margin: 0; font-size: 12.5px; color: var(--ink3); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mn-meta { display: flex; flex-wrap: wrap; gap: 4px; } .mn-meta i { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); color: var(--ink2); }
.mn-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.mn-price { font-size: 19px; font-weight: 900; color: #fff; direction: ltr; }
.mn-add { min-height: 220px; border-radius: 24px; border: 2px dashed rgba(255,255,255,.22); background: transparent; color: var(--ink2); font: inherit; font-weight: 700; cursor: pointer; display: grid; place-content: center; gap: 6px; transition: border-color .2s, background .2s, color .2s; }
.mn-add b { font-size: 40px; line-height: 1; color: #fff; } .mn-add:hover { border-color: var(--a); background: color-mix(in srgb, var(--a) 10%, transparent); color: #fff; }

.mn-modal { max-width: 760px; }
.mn-ed-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding-inline-end: 44px; }
.mn-ed-img { width: 96px; height: 96px; flex: none; border-radius: 22px; display: grid; place-items: center; padding: 8px; background: radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--b2) 40%, transparent), rgba(0,0,0,.25)); }
.mn-ed-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }
.mn-ed-top h2 { margin: 0 0 8px; }
.mn-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.mn-tabs button { flex: 1; min-height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink2); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mn-tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px var(--glow); }
.mn-tab { display: none; } .mn-tab.on { display: block; animation: mnIn .3s ease; }
.mn-grp { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: rgba(0,0,0,.15); }
.mn-trl { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; display: grid; gap: 8px; background: rgba(0,0,0,.15); }
.mn-trl-h { font-weight: 800; color: #fff; }
.mn-trl textarea { min-height: 60px !important; }
.mn-tr-opts { line-height: 1.6; }
.mn-ed-foot { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }

/* buttons without rounded corners (change --btn-r to round them again, e.g. 8px) */
:root { --btn-r: 9px; }
.btn, .btn.sm, .mn-ic, .mn-tabs, .mn-tabs button, .lang-sw > summary, .mn-add, .kd-acts .btn, .dn-ed { border-radius: var(--btn-r) !important; }
.fl-hero-end { flex-direction: row; align-items: center; flex-wrap: nowrap; }
@media (max-width: 767px) { .fl-hero-end { flex-direction: row; } .fl-hero-end .btn { flex: 1; } }

/* ---------- theme picker: each theme as a small live preview (same surfaces as the real screens) ---------- */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.theme { position: relative; cursor: pointer; display: grid; gap: 8px; transition: transform .2s; }
.theme input { position: absolute; opacity: 0; pointer-events: none; }
.theme .tp { --bg: color-mix(in oklab, var(--a) 7%, #0B0716); position: relative; overflow: hidden; display: grid; gap: 6px; padding: 0 10px 10px; border-radius: 20px; text-align: center;
  background: radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--b2) 16%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in oklab, var(--a) 12%, #140C26), var(--bg)); border: 2px solid color-mix(in srgb, var(--a) 16%, rgba(255,255,255,.12)); box-shadow: 0 16px 30px -20px #000; transition: border-color .2s, box-shadow .2s; }
.tp-top { position: relative; height: 62px; margin: 0 -10px; display: grid; place-items: end center; padding-bottom: 2px;
  background: linear-gradient(180deg, var(--a), color-mix(in srgb, var(--a) 40%, transparent) 60%, transparent); }
.tp-top::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.2px); background-size: 12px 12px; opacity: .35; }
.tp-ic { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; transform: translateY(14px);
  background: color-mix(in srgb, #fff 22%, var(--a)); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 10px 18px -8px color-mix(in srgb, var(--a) 80%, transparent); }
.tp-cf { position: absolute; width: 6px; height: 6px; border-radius: 2px; } .tp-cf.c1 { top: 12px; left: 22%; background: #FFD84D; transform: rotate(20deg); } .tp-cf.c2 { top: 22px; right: 20%; background: #67E8F9; border-radius: 50%; }
.tp-chip { justify-self: center; margin-top: 16px; padding: 2px 9px; border-radius: 99px; background: rgba(0,0,0,.3); font-size: 10px; color: rgba(255,255,255,.75); } .tp-chip b { color: #FFE08A; font-weight: 800; }
.tp-t { color: #fff; font-size: 13.5px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-row { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 9px; background: color-mix(in srgb, var(--a) 6%, rgba(255,255,255,.055)); border: 1px solid color-mix(in srgb, var(--a) 16%, rgba(255,255,255,.12)); }
.tp-row i { width: 15px; height: 15px; flex: none; border-radius: 5px; display: grid; place-items: center; font-style: normal; font-size: 9px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 60%, var(--b2))); }
.tp-row span, .tp-tip span { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.22); }
.tp-row + .tp-row span { flex: .7; }
.tp-tip { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 9px; background: color-mix(in srgb, var(--b2) 18%, transparent); border: 1px solid color-mix(in srgb, var(--b2) 40%, transparent); }
.tp-tip em { width: 14px; height: 14px; border-radius: 5px; background: color-mix(in srgb, var(--b2) 70%, #fff); flex: none; }
.tp-btn { margin-top: 2px; padding: 7px; border-radius: 9px; font-size: 11.5px; font-weight: 800; color: #fff; background: linear-gradient(120deg, var(--a), color-mix(in srgb, var(--a) 55%, var(--b)) 50%, var(--b)); box-shadow: 0 8px 16px -10px var(--a); }
.tp-nm { display: block; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink2); }
.theme:hover { transform: translateY(-3px); }
.theme:has(input:checked) .tp { border-color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 40%, transparent), 0 20px 36px -18px var(--a); }
.theme:has(input:checked) .tp-nm { color: #fff; }
.theme:has(input:checked) .tp-nm::before { content: "✓ "; color: var(--ok); }

/* ---------- logo ---------- */
.lg-card { overflow: hidden; }
.lg-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 70% at 85% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%), radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--b2) 18%, transparent), transparent 70%); }
.lg-head { position: relative; display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.lg-head > div { flex: 1; } .lg-head h2 { margin: 0 0 4px; } .lg-head p { margin: 0; color: var(--ink3); font-size: 14px; }
.lg-ai { padding: 6px 12px; border-radius: 99px; font-weight: 900; font-size: 12.5px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px var(--glow); letter-spacing: .5px; }
.lg-main { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .lg-main { grid-template-columns: 1fr; } }
.lg-stage { display: grid; justify-items: center; align-content: center; gap: 14px; padding: 22px 16px; border-radius: 24px; background: radial-gradient(70% 60% at 50% 38%, color-mix(in srgb, var(--a) 26%, transparent), transparent 70%), rgba(0,0,0,.28); border: 1px solid var(--line); }
.lg-spot { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.lg-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--a) 55%, transparent); animation: flSpin 26s linear infinite; }
.lg-ring.r2 { inset: 16px; border: 1px solid rgba(255,255,255,.12); border-style: solid; animation: none; background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%); }
.lg-cur { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.lg-cur img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); animation: tbPopA .5s cubic-bezier(.3,1.5,.5,1); }
@keyframes tbPopA { from { transform: scale(.7); opacity: 0; } }
.lg-mono { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; font-size: 48px; font-weight: 900; color: #fff; background: var(--grad); box-shadow: 0 16px 34px -12px var(--glow); }
.lg-mock { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 85%, transparent); border: 1px solid var(--line); }
.lg-mlogo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; font-weight: 900; color: #fff; background: rgba(255,255,255,.08); }
.lg-mlogo img { width: 100%; height: 100%; object-fit: contain; }
.lg-mock b { color: #fff; font-size: 14px; } .lg-mock em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; color: #fff; background: var(--grad); }
.lg-cap { font-size: 12.5px; color: var(--ink3); } .lg-link { border: 0; background: none; color: #FFB3C8; font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.lg-steps { display: grid; gap: 12px; align-content: start; }
.lg-step { display: flex; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.lg-step > i { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px var(--glow); }
.lg-sb { flex: 1; display: grid; gap: 10px; min-width: 0; } .lg-sb > b { color: #fff; font-size: 15px; padding-top: 4px; }
.lg-drop { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; cursor: pointer; border: 2px dashed color-mix(in srgb, var(--a) 40%, rgba(255,255,255,.18)); background: rgba(0,0,0,.18); transition: border-color .2s, background .2s, transform .2s; }
.lg-drop:hover, .lg-drop.on { border-color: var(--a); background: color-mix(in srgb, var(--a) 12%, transparent); transform: translateY(-1px); }
.lg-thumb { width: 64px; height: 64px; flex: none; border-radius: 14px; display: grid; place-items: center; padding: 6px; background: rgba(255,255,255,.06); color: color-mix(in srgb, var(--a) 60%, #fff); }
.lg-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; } .lg-thumb svg { width: 28px; height: 28px; }
.lg-dt { display: grid; gap: 2px; } .lg-dt b { color: #fff; font-size: 14px; } .lg-dt small { color: var(--ink3); font-size: 12px; letter-spacing: .5px; }
.lg-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 22px; }
.lg-grid:empty { display: none; }
.lg-c { position: relative; display: grid; justify-items: center; gap: 10px; padding: 14px 14px 16px; border-radius: 22px; text-align: center; background: var(--glass); border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; animation: mnIn .45s ease both; animation-delay: calc(var(--k) * 60ms); }
.lg-c.has:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a) 60%, transparent); box-shadow: 0 22px 40px -24px var(--glow); }
.lg-c .lg-box { width: 100%; height: 160px; border-radius: 16px; display: grid; place-items: center; padding: 14px; background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--a) 20%, transparent), transparent 75%), rgba(0,0,0,.3); }
.lg-c .lg-box img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.55)); animation: tbPopA .5s cubic-bezier(.3,1.5,.5,1); }
.lg-c .lg-box span { color: var(--ink3); font-size: 22px; }
.lg-vn { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: rgba(0,0,0,.45); border: 1px solid var(--line); }
.lg-c b { color: #fff; font-size: 14.5px; } .lg-c small.e { color: #FFB3C8; font-size: 11.5px; } .lg-c .btn { width: 100%; }
.lg-c.sel { border-color: var(--ok); box-shadow: 0 0 0 3px rgba(46,230,166,.22), 0 22px 40px -24px rgba(46,230,166,.6); }
.lg-c.sel::after { content: "✓"; position: absolute; top: 10px; inset-inline-end: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #062B22; background: var(--ok); }
.lg-c.busy .lg-box { background-size: 200% 100%; background-image: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.03) 70%); animation: lgShim 1.4s linear infinite; }
@keyframes lgShim { to { background-position: -200% 0; } }
.lg-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255,255,255,.15); border-top-color: var(--a); animation: saSpin .8s linear infinite; }
.ad-blogo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; background: rgba(0,0,0,.25); padding: 4px; }
.ad-biz.has-logo { grid-template-columns: 44px 1fr; align-items: center; } .ad-biz.has-logo .ad-blogo { grid-row: span 2; }

.kd-head .pill { height: 46px; padding: 0 18px; font-size: 15px; font-weight: 800; border-radius: var(--btn-r); }
.mn-info { width: 100%; } .mn-row { width: 100%; }

/* ---------- logo extras ---------- */
.lg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lg-btns .btn { width: 100%; height: 48px; padding: 0 14px; font-size: 14.5px; }
@media (max-width: 560px) { .lg-btns { grid-template-columns: 1fr; } }
.lg-drop { position: relative; }
.lg-sdel, .lg-del { position: absolute; z-index: 2; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: #FFB3C8;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,92,138,.35); transition: background .2s, color .2s, transform .15s; }
.lg-sdel svg, .lg-del svg { width: 16px; height: 16px; }
.lg-sdel:hover, .lg-del:hover { background: var(--bad); color: #fff; transform: scale(1.06); }
.lg-sdel { top: 50%; inset-inline-end: 12px; transform: translateY(-50%); } .lg-sdel:hover { transform: translateY(-50%) scale(1.06); }
.lg-del { top: 10px; inset-inline-end: 10px; }
.lg-c.sel::after { inset-inline-end: 48px; }
.lg-delall { grid-column: 1 / -1; justify-self: start; gap: 8px; color: #FFB3C8; } .lg-delall svg { width: 16px; height: 16px; }
.lg-c .lg-box, .lg-cur, .lg-thumb { background-image: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--a) 20%, transparent), transparent 75%); }

/* ---------- form controls: one look everywhere (select arrow, checkbox, radio) ---------- */
select, .mn-view select, label.f select, .modal-in select {
  -webkit-appearance: none !important; appearance: none !important; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(120deg, var(--a), var(--b2)) !important;
  background-repeat: no-repeat, no-repeat !important; background-size: 14px 14px, 30px 30px !important; background-color: rgba(0,0,0,.25) !important;
  background-position: left 13px center, left 5px center !important; padding-inline-start: 46px !important; padding-inline-end: 14px !important; border-radius: 12px !important;
}
[dir=ltr] select, [dir=ltr] .mn-view select, [dir=ltr] label.f select, [dir=ltr] .modal-in select { background-position: right 13px center, right 5px center !important; }
select:hover { border-color: color-mix(in srgb, var(--a) 60%, transparent) !important; }
input[type=checkbox]:not(.sw input), input[type=radio]:not(.theme input):not(.vis-pick input) {
  -webkit-appearance: none; appearance: none; flex: none; width: 22px !important; height: 22px !important; margin: 0; cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle;
  border-radius: 7px; border: 2px solid color-mix(in srgb, var(--a) 45%, rgba(255,255,255,.35)); background: rgba(0,0,0,.28); transition: background .2s, border-color .2s, box-shadow .2s;
}
input[type=radio]:not(.theme input):not(.vis-pick input) { border-radius: 50%; }
input[type=checkbox]:not(.sw input):hover, input[type=radio]:not(.theme input):not(.vis-pick input):hover { border-color: var(--a); }
input[type=checkbox]:not(.sw input):checked { border-color: transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(135deg, var(--a), var(--b2)); box-shadow: 0 4px 12px -4px var(--glow); }
input[type=radio]:not(.theme input):not(.vis-pick input):checked { border-color: var(--a); background: radial-gradient(circle, var(--a) 0 42%, transparent 46%), rgba(0,0,0,.28); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible, select:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 28%, transparent); }
.chk input { width: 22px; height: 22px; }

/* ---------- in-app dialog (replaces alert / confirm / prompt) ---------- */
.ad-dlg { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.ad-dlg.on { opacity: 1; }
.ad-dlg-bd { position: absolute; inset: 0; background: rgba(5,2,15,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-dlg-in-box { position: relative; width: min(440px, 100%); padding: 26px 24px 20px; border-radius: 26px; text-align: center; display: grid; gap: 10px;
  background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%), linear-gradient(170deg, var(--bg4), var(--bg)); border: 1px solid color-mix(in srgb, var(--a) 30%, rgba(255,255,255,.14));
  box-shadow: 0 40px 80px -30px #000, 0 0 60px -30px var(--glow); transform: translateY(14px) scale(.96); transition: transform .3s cubic-bezier(.2,.9,.3,1.25); }
.ad-dlg.on .ad-dlg-in-box { transform: none; }
.ad-dlg-in-box.danger { border-color: rgba(255,92,138,.45); background: radial-gradient(80% 60% at 50% 0%, rgba(255,92,138,.2), transparent 70%), linear-gradient(170deg, var(--bg4), var(--bg)); }
.ad-dlg-ic { justify-self: center; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--glass2); border: 1px solid var(--line); margin-bottom: 4px; }
.ad-dlg h3 { margin: 0; color: #fff; font-size: 19px; font-weight: 800; }
.ad-dlg p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.55; }
.ad-dlg-in { width: 100%; height: 50px; margin-top: 6px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.18); background: rgba(0,0,0,.3); color: #fff; font: inherit; font-size: 17px; text-align: center; outline: none; }
.ad-dlg-in:focus { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 22%, transparent); }
.ad-dlg-in.bad { border-color: var(--bad); animation: tbShakeA .35s; }
@keyframes tbShakeA { 25%, 75% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.ad-dlg-err { color: #FFB3C8; font-size: 13px; }
.ad-dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ad-dlg-btns .btn { width: 100%; height: 48px; }
.ad-dlg-btns .btn:only-child { grid-column: 1 / -1; }

/* select arrow: a full-height chip inside the field, same corner radius */
select, .mn-view select, label.f select, .modal-in select {
  background-size: 14px 14px, 34px calc(100% - 8px) !important;
  background-position: left 14px center, left 4px center !important;
  padding-inline-start: 48px !important;
}
[dir=ltr] select, [dir=ltr] .mn-view select, [dir=ltr] label.f select, [dir=ltr] .modal-in select { background-position: right 14px center, right 4px center !important; padding-inline-start: 14px !important; padding-inline-end: 48px !important; }
/* rounded chip: selects are wrapped by admin.js in .sel-w (a <select> cannot have ::after) */
.sel-w select, .sel-w .mn-view select { background-image: none !important; }
.sel-w { position: relative; display: inline-block; vertical-align: middle; }
label.f .sel-w, .modal-in .sel-w { display: block; }
.sel-w > select { width: 100%; }
.sel-w::after { content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: 34px; border-radius: 9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px no-repeat, linear-gradient(135deg, var(--a), var(--b2));
  box-shadow: 0 4px 10px -4px var(--glow); transition: transform .2s; }
[dir=ltr] .sel-w::after { inset-inline-start: auto; inset-inline-end: 4px; }
.sel-w:hover::after { transform: scale(1.04); }

/* (final) arrow chip on the end side: left in Hebrew/Arabic, right in English/Russian */
.sel-w > select, label.f .sel-w > select, .modal-in .sel-w > select, .mn-view .sel-w > select { background-image: none !important; padding-inline-start: 14px !important; padding-inline-end: 48px !important; }
[dir] .sel-w::after { inset-inline-start: auto; inset-inline-end: 4px; }
.ad-dlg-in::-webkit-outer-spin-button, .ad-dlg-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ad-dlg-in[type=number] { -moz-appearance: textfield; }

/* menu from a link */
.sa-url { display: flex; gap: 10px; }
.sa-url .inp { flex: 1; min-width: 0; height: 46px; }
@media (max-width: 560px) { .sa-url { flex-direction: column; } }
.sa-link { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; border-radius: 18px; text-align: center; text-decoration: none; background: rgba(0,0,0,.25); border: 1px dashed var(--line); color: #fff; word-break: break-all; }
.sa-link span { font-size: 34px; } .sa-link b { font-size: 14px; direction: ltr; } .sa-link small { color: var(--ink3); }
.sa-link:hover { border-color: var(--a); }
.sa-urlerr { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; word-break: break-word; }

/* ---------- several pages + continue on the phone ---------- */
.sa-prevs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.sa-prevs span { position: relative; width: 74px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.3); }
.sa-prevs img { width: 100%; height: 100%; object-fit: cover; }
.sa-prevs i { position: absolute; top: 4px; inset-inline-start: 4px; min-width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: rgba(0,0,0,.6); }
.sa-prevs em { flex-basis: 100%; text-align: center; font-style: normal; font-size: 12.5px; color: #FFE08A; }
.sa-phone { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; cursor: pointer; text-align: start; color: #fff; font: inherit;
  border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--a) 18%, transparent), color-mix(in srgb, var(--b2) 14%, transparent)); transition: transform .2s, box-shadow .2s; }
.sa-phone:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px -18px var(--glow); }
.sa-phone:disabled { opacity: .45; cursor: not-allowed; }
.sa-phone .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 8px 18px -8px var(--glow); }
.sa-phone .ic svg { width: 24px; height: 24px; }
.sa-phone .tx { flex: 1; display: grid; gap: 2px; } .sa-phone b { font-size: 15px; } .sa-phone small { color: var(--ink3); font-size: 12.5px; }
.sa-phone .ar { font-size: 26px; color: var(--ink3); } [dir=rtl] .sa-phone .ar { transform: scaleX(-1); }
.sa-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 8px; } .sa-more img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

.mu { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; }
.mu-bd { position: absolute; inset: 0; background: rgba(5,2,15,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mu-in { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 28px; display: grid; gap: 18px;
  background: radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--a) 22%, transparent), transparent 70%), linear-gradient(170deg, var(--bg4), var(--bg)); border: 1px solid color-mix(in srgb, var(--a) 30%, rgba(255,255,255,.14));
  box-shadow: 0 40px 80px -30px #000, 0 0 60px -30px var(--glow); animation: mnIn .35s cubic-bezier(.2,.9,.3,1.2); }
.mu-grid { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 640px) { .mu-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.mu-qr { display: grid; justify-items: center; gap: 8px; }
.mu-qrbox { width: 244px; height: 244px; padding: 12px; border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--a) 30%, transparent), 0 20px 40px -18px var(--glow); }
.mu-qrbox img, .mu-qrbox canvas { width: 220px !important; height: 220px !important; }
.mu-qr small { color: var(--ink3); font-size: 12.5px; }
.mu-tx h2 { margin: 0 0 10px; } .mu-tx ol { margin: 0 0 14px; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink2); line-height: 1.45; } .mu-tx li::marker { color: var(--a); font-weight: 900; }
.mu-live { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.mu-live .dot { width: 10px; height: 10px; border-radius: 50%; background: #FFC83D; box-shadow: 0 0 0 0 rgba(255,200,61,.6); animation: muPing 1.6s infinite; }
.mu-live.some .dot { background: var(--a); } .mu-live.done { border-color: rgba(46,230,166,.5); } .mu-live.done .dot { background: var(--ok); animation: none; }
@keyframes muPing { 100% { box-shadow: 0 0 0 10px rgba(255,200,61,0); } }
.mu-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; } .mu-pages:empty { display: none; }
.mu-pg { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); animation: mnIn .4s cubic-bezier(.3,1.5,.5,1); }
.mu-pg img { width: 100%; height: 100%; object-fit: cover; } .mu-pg i { position: absolute; top: 6px; inset-inline-start: 6px; min-width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: rgba(0,0,0,.6); color: #fff; }
.mu-foot { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; } .mu-foot .btn { width: 100%; height: 50px; }
.btn.pulse { animation: muPulse 1.4s ease-in-out infinite; } @keyframes muPulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--a) 25%, transparent), 0 14px 30px -12px var(--glow); } }
.mu-qrbox { overflow: hidden; } .mu-qrtxt { color: #12082B; font-weight: 700; text-align: center; word-break: break-all; }
/* extraction check */
.sa-val { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in oklab, var(--b2) 10%, transparent); font-size: 13.5px; }
.sa-val.warn { border-color: color-mix(in srgb, #F5B83D 45%, transparent); background: color-mix(in srgb, #F5B83D 8%, transparent); }
.sa-val.ok { border-color: color-mix(in srgb, #2BD99F 40%, transparent); }
.sa-val-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sa-val-h b { margin-inline-end: auto; }
.sa-val-c { padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.07); font-weight: 600; }
.sa-val-c.bad { background: color-mix(in srgb, #FF5C7A 22%, transparent); color: #FFB3C1; }
.sa-val details { margin-top: 8px; } .sa-val summary { cursor: pointer; font-weight: 700; }
.sa-val ul { margin: 6px 0 0; padding-inline-start: 20px; line-height: 1.6; color: var(--mut, #cfc6e6); }
.sa-cn { min-width: 28px; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 700; text-align: center; }
.sa-tbl tr.sa-rev td:first-child { box-shadow: inset 3px 0 0 #F5B83D; }
[dir=rtl] .sa-tbl tr.sa-rev td:first-child { box-shadow: inset -3px 0 0 #F5B83D; }

/* dish editor: details only + AI picture */
.mn-ed-img { position: relative; width: 120px; height: 120px; }
.mn-ed-img img.busy { opacity: .35; filter: blur(2px); transition: .3s; }
.mn-ed-spin { position: absolute; inset: 38px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--a); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mn-ai { margin-top: 8px; background: linear-gradient(100deg, color-mix(in srgb, var(--a) 85%, #fff 0%), var(--b)); }
#pAiHint { margin-top: 6px; }
.mn-ext { color: var(--ink2); font-size: 12.5px; margin-top: 4px !important; opacity: .85; }
.sa-prevs span b { position: absolute; top: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }

/* ================= dashboard ================= */
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.dash-c { margin: 0; min-width: 0; animation: dashIn .6s cubic-bezier(.2,.8,.2,1) both; }
.dash-grid > .dash-c:nth-child(2) { animation-delay: .06s; } .dash-grid > .dash-c:nth-child(3) { animation-delay: .12s; } .dash-grid > .dash-c:nth-child(4) { animation-delay: .18s; } .dash-grid > .dash-c:nth-child(5) { animation-delay: .24s; } .dash-grid > .dash-c:nth-child(6) { animation-delay: .3s; }
@keyframes dashIn { from { opacity: 0; transform: translateY(16px); } }
.dash-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dash-h h2 { margin: 0; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

/* charts */
.chart { position: relative; min-height: 200px; }
.ch-svg { display: block; overflow: visible; }
.ch-grid { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.ch-ax { fill: var(--ink2); font-size: 11px; opacity: .75; font-family: inherit; }
.ch-val { fill: #fff; font-size: 12px; font-weight: 800; font-family: inherit; }
.ch-hit { fill: transparent; }
.ch-b path { fill: color-mix(in srgb, var(--a) 70%, var(--b)); opacity: .78; transform-origin: center bottom; transform-box: fill-box; animation: barUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transition: opacity .15s; }
.ch-b.hi path { fill: var(--a); opacity: 1; }
.ch-b.on path { opacity: 1; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--a) 60%, transparent)); }
@keyframes barUp { from { transform: scaleY(0); } }
.ch-empty { display: grid; place-items: center; min-height: 190px; color: var(--ink2); text-align: center; padding: 20px; border-radius: 16px; border: 1px dashed var(--line); }
.ch-tip { position: fixed; z-index: 400; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: rgba(12,6,26,.95); border: 1px solid var(--line); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); white-space: nowrap; }

/* donut — categorical slots (validated on the dark surface) */
.donut-w { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut { width: 180px; height: 180px; animation: dnIn .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dnIn { from { transform: rotate(-90deg) scale(.7); opacity: 0; } }
.dn { transition: opacity .15s, transform .15s; transform-origin: 90px 90px; }
.donut-w.hov .dn:not(.on), .donut-w.hov .dn-leg li:not(.on) { opacity: .35; }
.dn.on { transform: scale(1.04); }
.dn-t { fill: #fff; font-size: 17px; font-weight: 800; font-family: inherit; }
.dn-s { fill: var(--ink2); font-size: 11px; font-family: inherit; }
.dn-leg { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.dn-leg li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink2); cursor: default; transition: opacity .15s; }
.dn-leg li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-leg li b { color: #fff; font-variant-numeric: tabular-nums; }
.dn-leg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.s0 { fill: #3987e5; background: #3987e5; } .s1 { fill: #d95926; background: #d95926; } .s2 { fill: #199e70; background: #199e70; }
.s3 { fill: #c98500; background: #c98500; } .s4 { fill: #d55181; background: #d55181; } .s5 { fill: #6f6c80; background: #6f6c80; }
circle.dn.s0 { stroke: #3987e5; } circle.dn.s1 { stroke: #d95926; }

/* my business + best sellers */
.dash-acts { gap: 8px; flex-wrap: nowrap; }
.dash-acts form { margin: 0; }
.dash-sub { margin: 4px 0 12px; font-size: 16px; }
.dash-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 16px; border: 1px dashed var(--line); color: var(--ink2); }
.dash-empty { font-size: 15px; } .dash-empty::first-letter { font-size: 26px; }
.best { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.best-i { position: relative; padding: 12px 10px 12px; border-radius: 18px; text-align: center; background: linear-gradient(170deg, color-mix(in srgb, var(--b2) 22%, transparent), rgba(255,255,255,.02)); border: 1px solid var(--line); animation: bestIn .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transition: transform .2s, box-shadow .2s; }
.best-i:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px var(--glow); }
.best-i.first { border-color: color-mix(in srgb, var(--a) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--a) 35%, transparent), 0 20px 40px -24px var(--glow); }
@keyframes bestIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
.best-r { position: absolute; top: 8px; inset-inline-start: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.1); }
.best-i.first .best-r { background: var(--grad); }
.best-img { height: 92px; display: grid; place-items: center; margin-bottom: 8px; }
.best-img img { max-width: 100%; max-height: 92px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.5)); transition: transform .3s; }
.best-i:hover .best-img img { transform: scale(1.08) rotate(-3deg); }
.best-n { display: block; font-size: 14px; line-height: 1.25; min-height: 2.5em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.best-m { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 8px; font-size: 12px; color: var(--ink2); }
.best-m span:last-child { color: #fff; font-weight: 800; font-size: 13px; }
.best-bar { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.best-bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); animation: barW 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) + .2s); }
@keyframes barW { from { width: 0 !important; } }
@media (max-width: 760px) { .best { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .best-i { scroll-snap-align: start; } }

/* steps to go live */
.steps-n { font-weight: 800; padding: 4px 12px; border-radius: 99px; background: color-mix(in srgb, var(--a) 22%, transparent); }
.steps-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 12px; }
.steps-bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; animation: barW 1.1s cubic-bezier(.2,.8,.2,1) both; }
.steps { display: grid; gap: 8px; }
.st-f { margin: 0; }
.st { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; text-decoration: none; font: inherit; text-align: start; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.st:hover { background: color-mix(in srgb, var(--a) 14%, transparent); border-color: color-mix(in srgb, var(--a) 45%, transparent); transform: translateX(calc(var(--dirx, -1) * 3px)); }
[dir=ltr] .st:hover { --dirx: 1; }
.st-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; background: rgba(255,255,255,.07); }
.st-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-tx b { font-size: 15px; } .st-tx small { color: var(--ink2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ok { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: rgba(255,255,255,.08); color: var(--ink2); }
[dir=rtl] .st:not(.done) .st-ok { transform: scaleX(-1); }
.st.done { opacity: .72; } .st.done .st-ok { background: #2BD99F; color: #062a1d; }
.st.done .st-tx b { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }

/* one QR for the whole business */
.qr1 { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr1 #qr { padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 16px 30px -16px rgba(0,0,0,.7); }
.qr1 #qr img, .qr1 #qr canvas { display: block; }
/* kitchen header: sound + count on one row everywhere */
.kd-head { flex-wrap: nowrap; gap: 10px; }
.kd-head .btn, .kd-head .pill { white-space: nowrap; }
@media (max-width: 640px) { .kd-head > .small { display: none; } .kd-head .btn, .kd-head .pill { height: 42px; font-size: 14px; padding: 0 14px; } }

/* ===== phones: compact forms, nothing wider than the screen ===== */
.grid > *, .card { min-width: 0; }
@media (max-width: 900px) { .grid.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 640px) {
  .ad-content { padding-inline: 12px; }
  .card { padding: 16px 14px; border-radius: 20px; }
  .card h2 { font-size: 18px; margin-bottom: 12px; }
  .f { margin-bottom: 10px; }
  .f > span { font-size: 13px; margin-bottom: 4px; }
  .f input, .f select, .f textarea, .inp { min-height: 42px; font-size: 15px; }
  .f textarea { min-height: 64px; }
  .grid { gap: 12px; }
  .hours-row { gap: 8px; } .hours-row input[type=time] { min-width: 0; width: 100%; }
  .row { gap: 8px; }
  .btn { min-height: 42px; }
  img, svg, video, canvas, table { max-width: 100%; }
  .tbl { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .mn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mn-p { border-radius: 18px; }
  .mn-img { aspect-ratio: 1 / .78; padding: 8px; }
  .mn-info h3 { font-size: 14px; } .mn-info p { font-size: 12px; }
  .dn-bar { padding: 10px 12px; }
  .dn-bar .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .dn-bar .row::-webkit-scrollbar { display: none; }
  .dn-bar .row > * { flex: none; }
  .dn-bar .spacer { display: none; }
  .dn-legend { display: none; }
}

/* ================= login / register ================= */
body.auth { display: block; padding: 0; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 70px 32px 40px; }
.auth-box { justify-self: center; position: relative; z-index: 2; animation: authIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.lang-sw.auth-lang { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 50; }
.lang-sw.auth-lang .lang-pop { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; bottom: auto; inset-inline-start: auto; width: min(820px, calc(100vw - 32px)); border-radius: 20px; }
@media (max-width: 600px) { .lang-sw.auth-lang .lang-pop { position: fixed; top: 64px; inset-inline: 12px; width: auto; } }
.auth-show { position: relative; padding: 10px 0; animation: authIn .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.as-brand .ad-logo, .as-brand { display: inline-flex; }
.as-brand .mk svg { width: 44px; height: 44px; }
.auth-show h2 { margin: 26px 0 14px; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; font-weight: 900; letter-spacing: -1.5px; }
.as-word { display: inline-block; background: linear-gradient(100deg, var(--a), #B65CFF 55%, #7C8CFF); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s, transform .35s, filter .35s; }
.as-word.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.auth-show p { max-width: 460px; color: var(--ink2); font-size: 17px; line-height: 1.6; margin: 0 0 22px; }
.as-flags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 470px; }
.as-flags img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 8px 18px -8px rgba(0,0,0,.7); animation: flagPop .5s cubic-bezier(.2,1.5,.4,1) both, flagBob 4s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms + .4s), calc(var(--i) * 300ms); }
@keyframes flagPop { from { transform: scale(0); opacity: 0; } }
@keyframes flagBob { 50% { transform: translateY(-5px); } }
.as-cards { position: relative; height: 170px; margin-top: 26px; max-width: 470px; }
.as-card { position: absolute; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--bg2) 75%, transparent); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); animation: cardFloat 6s ease-in-out infinite; }
.as-card span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; background: rgba(255,255,255,.08); }
.as-card b { font-size: 15px; } .as-card small { color: var(--ink2); font-size: 13px; }
.as-card.c1 { inset-inline-start: 0; top: 0; } .as-card.c2 { inset-inline-start: 38%; top: 54px; animation-delay: -2s; border-color: rgba(43,217,159,.5); } .as-card.c3 { inset-inline-start: 8%; top: 110px; animation-delay: -4s; }
@keyframes cardFloat { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); padding: 70px 16px 30px; } .auth-show { display: none; } }
/* Google */
.g-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--ink2); font-size: 13px; }
.g-or::before, .g-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.g-err { margin-top: 10px; text-align: center; color: #FFB3C1; font-size: 14px; }
.g-top { margin-bottom: 6px; } .g-top .g-or { margin: 14px 0 6px; }
.as-brand .ad-logo { border: 0; padding: 0; height: auto; }
.auth-box .grid.keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .auth-box { padding: 22px 16px; border-radius: 24px; } .auth-box h1 { font-size: 21px; margin-bottom: 12px; } .auth-box .ad-logo { padding-bottom: 10px; } .slug-in > span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
/* select chip: full field height, the field's own corner radius (a segment of the field, not a floating button) */
.sel-w > select { border-radius: 14px !important; padding-inline-start: 54px !important; }
.sel-w::after { top: 1.5px; bottom: 1.5px; inset-inline-start: 1.5px; width: 42px; border-radius: 0; border-start-start-radius: 12.5px; border-end-start-radius: 12.5px; box-shadow: none; background-size: 16px, auto; }
[dir=ltr] .sel-w::after { inset-inline-start: 1.5px; inset-inline-end: auto; }
.sel-w:hover::after { transform: none; filter: brightness(1.12); }
/* select chip — physical sides (logical props gave mirrored corners): RTL → chip on the left, LTR → on the right; rounded on the outer side */
html[dir=rtl] .sel-w::after { left: 1.5px !important; right: auto !important; inset-inline-start: auto; border-radius: 12.5px 0 0 12.5px !important; }
html[dir=rtl] .sel-w > select { padding-left: 54px !important; padding-right: 14px !important; }
html[dir=ltr] .sel-w::after { right: 1.5px !important; left: auto !important; inset-inline-start: auto; border-radius: 0 12.5px 12.5px 0 !important; }
html[dir=ltr] .sel-w > select { padding-right: 54px !important; padding-left: 14px !important; }
/* rising dishes in the background */
.fl-dish { width: var(--s, 54px); height: var(--s, 54px); object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)) saturate(.9); }
@media (max-width: 640px) { .fl-dish:nth-of-type(n+8) { display: none; } }

/* ===== kitchen: finished rounds, history, calendar ===== */
.kd-card.done { opacity: .5; filter: saturate(.55); transition: opacity .25s, filter .25s; }
.kd-card.done:hover { opacity: .95; filter: none; }
.kd-done { margin-top: 10px; padding: 8px; border-radius: 12px; text-align: center; font-weight: 800; color: #7CF5CC; background: rgba(43,217,159,.1); border: 1px dashed rgba(43,217,159,.35); }
.kd-grid.hist .kd-card { opacity: .9; }
.kd-grid.swap { animation: kdSwap .45s cubic-bezier(.2,.8,.2,1); }
@keyframes kdSwap { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.kd-head { position: relative; }
.kd-calb { gap: 8px; } .kd-calb svg { width: 18px; height: 18px; } .kd-calb.on { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 25%, transparent); }
.kd-hist { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--a) 18%, transparent), color-mix(in srgb, var(--b2) 14%, transparent)); border: 1px solid color-mix(in srgb, var(--a) 40%, transparent); animation: kdSwap .4s ease; }
.kd-cal { position: absolute; z-index: 120; top: 128px; inset-inline-start: 50%; transform: translateX(50%); width: min(380px, calc(100vw - 24px)); padding: 16px; border-radius: 24px; background: color-mix(in oklab, var(--a) 8%, #120826); border: 1px solid color-mix(in srgb, var(--a) 35%, rgba(255,255,255,.12)); box-shadow: 0 30px 70px -20px rgba(0,0,0,.85); animation: kcIn .35s cubic-bezier(.2,1.3,.3,1); }
[dir=ltr] .kd-cal { transform: translateX(-50%); }
@keyframes kcIn { from { opacity: 0; margin-top: -14px; } }
.kc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .kc-h b { font-size: 17px; }
.kc-nav { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.kc-nav:disabled { opacity: .3; cursor: default; } [dir=rtl] .kc-nav { transform: scaleX(-1); }
.kc-wd, .kc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.kc-wd span { text-align: center; font-size: 12px; color: var(--ink2); font-weight: 700; padding-bottom: 4px; }
.kc-g.in-r { animation: kcSlideR .35s ease; } .kc-g.in-l { animation: kcSlideL .35s ease; }
@keyframes kcSlideR { from { opacity: 0; transform: translateX(-30px); } } @keyframes kcSlideL { from { opacity: 0; transform: translateX(30px); } }
[dir=rtl] .kc-g.in-r { animation-name: kcSlideL; } [dir=rtl] .kc-g.in-l { animation-name: kcSlideR; }
.kc-d { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: #fff; font: inherit; cursor: pointer; display: grid; place-items: center; animation: kcPop .4s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--k) * 12ms); transition: background .15s, transform .15s; }
@keyframes kcPop { from { opacity: 0; transform: scale(.4); } }
.kc-d:hover:not(:disabled) { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.kc-d b { font-size: 14px; font-weight: 700; z-index: 1; }
.kc-d.has { background: color-mix(in srgb, var(--a) calc(var(--h, .4) * 55%), rgba(255,255,255,.04)); }
.kc-d em { position: absolute; bottom: 3px; font-style: normal; font-size: 9px; font-weight: 800; color: rgba(255,255,255,.8); }
.kc-d.today { border-color: color-mix(in srgb, var(--a) 70%, transparent); }
.kc-d.sel { background: var(--grad) !important; box-shadow: 0 8px 18px -8px var(--glow); }
.kc-d.fut { opacity: .25; cursor: default; }
.kc-f { margin-top: 12px; display: flex; justify-content: center; }
.kd-cal { top: calc(100% + 10px); inset-inline-start: 0; transform: none !important; }

/* new table order pop-up (every dashboard screen except the kitchen) */
.ad-newo { position: fixed; z-index: 500; top: 86px; inset-inline-start: 50%; transform: translate(50%, -30px) scale(.95); opacity: 0; transition: opacity .3s, transform .45s cubic-bezier(.2,1.4,.3,1); width: min(460px, calc(100vw - 24px)); pointer-events: none; }
[dir=ltr] .ad-newo { transform: translate(-50%, -30px) scale(.95); }
.ad-newo.on { opacity: 1; transform: translate(50%, 0) scale(1); pointer-events: auto; } [dir=ltr] .ad-newo.on { transform: translate(-50%, 0) scale(1); }
.ad-newo-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; border-radius: 22px; background: color-mix(in oklab, var(--a) 10%, #130827); border: 1.5px solid color-mix(in srgb, var(--a) 60%, transparent); box-shadow: 0 30px 70px -20px rgba(0,0,0,.85), 0 0 50px -10px var(--glow); }
.ad-newo-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--grad); animation: newoRing 1s ease-in-out 3; }
.ad-newo-ic svg { width: 28px; height: 28px; color: #fff; }
@keyframes newoRing { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.ad-newo-tx > b { display: block; font-size: 18px; margin-bottom: 4px; }
.ad-newo-r { padding: 6px 0; border-top: 1px solid var(--line); } .ad-newo-r:first-of-type { border-top: 0; }
.ad-newo-r span { display: block; font-size: 14.5px; } .ad-newo-r small { display: block; color: var(--ink2); font-size: 13px; margin-top: 2px; }
.ad-newo-a { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.auth-home { position: fixed; top: 16px; inset-inline-start: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--btn-r, 12px); background: var(--glass2, rgba(255,255,255,.08)); border: 1px solid var(--line); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s; }
.auth-home:hover { background: rgba(255,255,255,.14); } .auth-home svg { width: 18px; height: 18px; }

/* ================= order history (FINLIT calendar) ================= */
.hs-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.hs-nav { display: flex; align-items: center; gap: 8px; }
.hs-ar { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s, transform .15s; }
.hs-ar:hover:not(:disabled) { background: rgba(255,255,255,.14); transform: scale(1.06); } .hs-ar:disabled { opacity: .3; cursor: default; }
[dir=rtl] .hs-ar { transform: scaleX(-1); } [dir=rtl] .hs-ar:hover:not(:disabled) { transform: scaleX(-1) scale(1.06); }
.hs-title { margin: 0; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.hs-tog { justify-self: end; display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.hs-tog button { border: 0; background: none; color: var(--ink2); font: inherit; font-weight: 700; padding: 7px 16px; border-radius: 10px; cursor: pointer; }
.hs-tog button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px var(--glow); }
.hs-sum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hs-pill { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 99px; font-size: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.hs-pill.a b { color: #7CF5CC; } .hs-pill.b b { color: #FF9BD9; }
.hs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.hs-cal { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(20,10,40,.55); backdrop-filter: blur(10px); }
.hs-wd, .hs-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hs-wd span { padding: 12px 6px; text-align: center; font-weight: 800; font-size: 13px; color: var(--ink2); background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.hs-g.in .hs-d:not(.out) { animation: hsIn .45s cubic-bezier(.2,1.2,.3,1) both; animation-delay: calc(var(--k) * 12ms); }
.hs-g.nx { animation: hsNx .4s ease; } .hs-g.pv { animation: hsPv .4s ease; }
[dir=rtl] .hs-g.nx { animation-name: hsPv; } [dir=rtl] .hs-g.pv { animation-name: hsNx; }
@keyframes hsIn { from { opacity: 0; transform: scale(.85); } } @keyframes hsNx { from { opacity: 0; transform: translateX(40px); } } @keyframes hsPv { from { opacity: 0; transform: translateX(-40px); } }
.hs-d { position: relative; min-height: 118px; padding: 8px 6px 6px; display: flex; flex-direction: column; gap: 4px; align-items: stretch; text-align: start; border: 0; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: #fff; font: inherit; cursor: pointer; transition: background .15s; overflow: hidden; }
.hs-g > .hs-d:nth-child(7n) { border-inline-end: 0; }
.hs-d:hover:not(:disabled):not(.out) { background: rgba(255,255,255,.05); }
.hs-d.out { background: rgba(0,0,0,.18); cursor: default; }
.hs-d.fut { opacity: .35; cursor: default; }
.hs-n { font-weight: 800; font-size: 14px; padding: 0 4px 2px; }
.hs-d.today .hs-n { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--grad); }
.hs-d.sel { background: color-mix(in srgb, var(--a) 14%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a) 70%, transparent); }
.hs-c { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 700; border-inline-start: 3px solid; }
.hs-c em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hs-c b { flex: none; font-weight: 800; }
.hs-c.r { background: rgba(43,217,159,.14); border-color: #2BD99F; color: #9DF7D6; }
.hs-c.s { background: rgba(255,79,216,.14); border-color: #FF4FD8; color: #FFB3EC; }
.hs-c.d { background: rgba(255,255,255,.05); border-color: transparent; color: var(--ink2); padding-inline-start: 8px; } .hs-c.d i { width: 6px; height: 6px; border-radius: 50%; background: #FF8BE6; flex: none; }
/* side panel */
.hs-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding: 14px; border-radius: 22px; border: 1px solid var(--line); background: rgba(20,10,40,.6); backdrop-filter: blur(10px); transition: opacity .2s; scrollbar-width: thin; }
.hs-side.busy { opacity: .5; }
.hs-hint, .hs-empty { padding: 26px 10px; text-align: center; color: var(--ink2); }
.hs-dh { margin-bottom: 10px; } .hs-dh > b { font-size: 18px; display: block; margin-bottom: 8px; }
.hs-ds { display: flex; gap: 6px; flex-wrap: wrap; } .hs-ds span { padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 13px; font-weight: 700; }
.hs-r { margin-top: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: hsIn .4s ease both; animation-delay: calc(var(--k) * 40ms); }
.hs-r.x { opacity: .5; }
.hs-rh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hs-tb { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--grad); line-height: 1; } .hs-tb small { font-size: 9px; opacity: .85; } .hs-tb b { font-size: 18px; }
.hs-rm { flex: 1; display: grid; } .hs-rm small { color: var(--ink2); font-size: 12px; }
.hs-rs { font-weight: 800; }
.hs-r ul { list-style: none; margin: 0; padding: 0; }
.hs-r li { display: flex; gap: 8px; padding: 4px 0; font-size: 13.5px; border-top: 1px dashed rgba(255,255,255,.07); } .hs-r li span { flex: 1; } .hs-r li em { font-style: normal; color: var(--ink2); }
.hs-r li.x { text-decoration: line-through; opacity: .5; }
.hs-note { margin: 6px 0 0; font-size: 12.5px; color: #FFD777; }
/* list view */
.hs-list { display: grid; gap: 8px; }
.hs-li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: rgba(20,10,40,.55); color: #fff; font: inherit; text-align: start; cursor: pointer; animation: hsIn .4s ease both; animation-delay: calc(var(--k) * 30ms); }
.hs-li.sel { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--a) 70%, transparent); }
.hs-ld { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.06); line-height: 1.1; } .hs-ld b { font-size: 20px; } .hs-ld small { font-size: 11px; color: var(--ink2); }
.hs-lc { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) { .hs-wrap { grid-template-columns: minmax(0, 1fr); } .hs-side { position: static; max-height: none; } }
@media (max-width: 700px) {
  .hs-top { grid-template-columns: 1fr auto; } .hs-title { grid-column: 1 / -1; grid-row: 1; font-size: 21px; } .hs-tog { justify-self: end; }
  .hs-d { min-height: 64px; padding: 4px; } .hs-c { display: none; } .hs-d.has::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--a); box-shadow: 0 0 8px var(--a); }
  .hs-wd span { font-size: 11px; padding: 8px 2px; }
}
/* light theme previews (cream / mint / sky / rose) */
.theme.lt .tp { --bg: color-mix(in oklab, var(--a) 5%, #FFFCF8); background: radial-gradient(90% 60% at 100% 100%, color-mix(in srgb, var(--b2) 14%, transparent), transparent 70%), var(--bg); border-color: color-mix(in srgb, var(--a) 25%, rgba(40,20,60,.1)); box-shadow: 0 16px 30px -20px rgba(0,0,0,.5); }
.theme.lt .tp-t { color: #23142E; }
.theme.lt .tp-chip { background: rgba(255,255,255,.75); color: rgba(35,20,46,.7); } .theme.lt .tp-chip b { color: #B45309; }
.theme.lt .tp-row { background: #fff; border-color: color-mix(in srgb, var(--a) 18%, rgba(40,20,60,.08)); }
.theme.lt .tp-row span, .theme.lt .tp-tip span { background: rgba(35,20,46,.16); }
.theme.lt .tp-nm::after { content: " ☀"; color: #F59E0B; }
.hs-pill.d { font-weight: 800; color: var(--ink); background: color-mix(in srgb, var(--a) 14%, transparent); border-color: color-mix(in srgb, var(--a) 35%, transparent); }
/* theme previews: the colour fades smoothly down the whole card (like the diner menu), no hard band at the top */
.theme .tp { background: radial-gradient(90% 55% at 100% 100%, color-mix(in srgb, var(--b2) 16%, transparent), transparent 70%),
  linear-gradient(180deg, color-mix(in oklab, var(--a) 62%, var(--bg)) 0%, color-mix(in oklab, var(--a) 30%, var(--bg)) 30%, color-mix(in oklab, var(--a) 10%, var(--bg)) 58%, var(--bg) 85%); }
.theme .tp-top { background: none; }
.theme .tp-top::after { opacity: .18; -webkit-mask: linear-gradient(180deg, #000, transparent); mask: linear-gradient(180deg, #000, transparent); }
.theme.lt .tp { --bg: #FFFFFF; background: radial-gradient(90% 55% at 100% 100%, color-mix(in srgb, var(--b2) 10%, transparent), transparent 70%),
  linear-gradient(180deg, color-mix(in oklab, var(--a) 48%, #fff) 0%, color-mix(in oklab, var(--a) 24%, #fff) 30%, color-mix(in oklab, var(--a) 9%, #fff) 58%, #fff 88%); }

/* ---------- digital menu (the diner's menu inside a phone, live demo orders) ---------- */
.dg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 421px; gap: 26px; align-items: start; }
.dg-info { position: sticky; top: 100px; } .dg-info h2 { margin-bottom: 8px; }
.dg-stat { display: flex; align-items: baseline; gap: 8px; margin: 16px 0; } .dg-stat b { font-size: 34px; font-weight: 900; }
.dg-ph-st { width: 421px; max-width: 100%; justify-self: center; }
.dg-phone { position: relative; width: 421px; height: 880px; transform-origin: top center; padding: 14px; border-radius: 68px; background: linear-gradient(145deg, #4b4552, #1b1820 40%, #3a3540 70%, #121015); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 0 0 1px #000, 0 50px 100px -30px rgba(0,0,0,.7), 0 0 100px -30px var(--glow); }
.dg-scr { position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden; background: #0B0716; }
.dg-scr iframe { width: 100%; height: 100%; border: 0; display: block; }
.dg-isl { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 22px; background: #000; z-index: 3; pointer-events: none; }
@media (max-width: 1100px) { .dg-wrap { grid-template-columns: minmax(0, 1fr); } .dg-info { position: static; } }
/* line icons (assets/css/icons.css) inside the coloured tiles */
.si .ico, .fl-hero-av .ico, .tp-ic .ico { color: #fff; }
.st-ic .ico, .ad-dlg-ic .ico, .as-card > span .ico { color: color-mix(in srgb, var(--a) 70%, #fff); }
.si .ico { width: 26px; height: 26px; } .st-ic .ico { width: 20px; height: 20px; }
.fl-hero-av .ico { width: 48px; height: 48px; }
.kd-empty .ico, .hs-empty .ico, .ch-empty .ico, .dash-empty .ico { color: var(--a); }
.ad-dlg-ic .ico { width: 30px; height: 30px; }
.btn .ico { margin-inline-end: 2px; }

/* horizontal strip arrows (admin.js hscroll) */
.hs-w { position: relative; }
.hs-w .hs-ar { position: absolute; top: 50%; z-index: 3; width: 38px; height: 38px; margin-top: -21px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--grad); color: #fff; border: 2px solid color-mix(in srgb, var(--bg) 70%, transparent); box-shadow: 0 8px 20px -8px var(--glow); font-size: 18px; transition: transform .15s, opacity .2s; }
.hs-w .hs-ar:hover { transform: scale(1.08); } .hs-w .hs-ar.l { left: -6px; } .hs-w .hs-ar.r { right: -6px; }
.hs-w.over [data-hscroll] { padding-inline: 34px; cursor: grab; } [data-hscroll].drag { cursor: grabbing; user-select: none; } [data-hscroll].drag a { pointer-events: none; }
/* native controls (select pop-up lists, scrollbars) follow the dark look */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--a) 45%, rgba(255,255,255,.2)) transparent; }
select option, select optgroup { background: var(--bg2); color: var(--ink); }
/* demo rounds (from the digital menu) — clearly marked, deletable right in the kitchen / bar */
.kd-card.demo { border: 2px dashed color-mix(in srgb, #FFC83D 70%, transparent); }
.kd-demo-rb { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: repeating-linear-gradient(135deg, rgba(255,200,61,.22) 0 12px, rgba(255,200,61,.1) 12px 24px); border-bottom: 1px solid rgba(255,200,61,.35); }
.kd-demo-rb b { padding: 2px 9px; border-radius: 8px; background: #FFC83D; color: #2A1A00; font-weight: 900; letter-spacing: 1px; font-size: 12px; }
.kd-demo-rb span { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.kd-demo-x { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(255,92,138,.5); background: rgba(255,92,138,.14); color: var(--bad); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.kd-demo-x:hover { background: rgba(255,92,138,.25); }
.kd-card.demo .kd-t b { font-size: 17px; letter-spacing: .5px; }
/* the category strip: a solid glass bar while it sticks — nothing shows through under it */
.mn-cats-w { margin: 0 -10px 14px; padding: 6px 10px; border-radius: 0 0 22px 22px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 14px 26px -18px rgba(0,0,0,.8); }
.mn-cats-w .mn-cats { background: none; margin: 0; padding: 6px 2px; }
.mn-cats-w .hs-ar.l { left: 4px; } .mn-cats-w .hs-ar.r { right: 4px; }
.mn-sec { scroll-margin-top: 170px; }
.mn-cats-w.hs-w { position: sticky; top: 84px; z-index: 15; }
/* "Continue with Google" — white pill, Google's G, same in every language */
.g-btn2 { width: 100%; height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 16px; background: #F4F4F6; color: #1F1F1F; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); transition: transform .15s, box-shadow .2s, background .2s; }
.g-btn2:hover:not(:disabled) { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.9); }
.g-btn2:disabled { opacity: .6; cursor: default; } .g-btn2.busy span { opacity: .55; }
/* business address (Google Places) */
.addr-in { position: relative; } .addr-in svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; margin-top: -9px; color: var(--a); pointer-events: none; }
.addr-in input { padding-inline-start: 42px !important; padding-inline-end: 40px !important; } .addr-in input.bad { border-color: var(--bad) !important; }
.addr-ok { position: absolute; top: 50%; inset-inline-end: 12px; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 900; color: #fff; background: #16A34A; }
.addr-msg { color: var(--ink3); } .addr-msg.err { color: var(--bad); }
.pac-container { z-index: 10000; border-radius: 14px; margin-top: 6px; border: 1px solid rgba(255,255,255,.12); background: #1A1030; box-shadow: 0 20px 40px -12px rgba(0,0,0,.8); font-family: inherit; }
.pac-item { padding: 8px 12px; color: rgba(255,255,255,.75); border-top-color: rgba(255,255,255,.08); cursor: pointer; } .pac-item:hover, .pac-item-selected { background: rgba(255,79,216,.14); }
.pac-item-query { color: #fff; } .pac-matched { color: #FF9BE9; } .pac-icon { filter: invert(1) opacity(.6); }
.pac-logo::after { filter: invert(1) opacity(.6); }
/* tooltips (data-tip): a small card under the button */
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60; width: max-content; max-width: 260px; padding: 10px 13px; border-radius: 12px; white-space: normal; text-align: start;
  font-size: 13px; font-weight: 600; line-height: 1.5; color: #fff; background: rgba(24,13,46,.97); border: 1px solid color-mix(in srgb, var(--a) 45%, transparent);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,.9), 0 0 24px -10px var(--glow); opacity: 0; transform: translate(-50%, -4px); pointer-events: none; transition: opacity .18s, transform .18s; }
[data-tip]::before { content: ""; position: absolute; top: calc(100% + 4px); left: 50%; z-index: 61; width: 12px; height: 12px; margin-left: -6px; background: rgba(24,13,46,.97);
  border-top: 1px solid color-mix(in srgb, var(--a) 45%, transparent); border-left: 1px solid color-mix(in srgb, var(--a) 45%, transparent); transform: rotate(45deg) translateY(-4px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .25s; }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; transform: rotate(45deg); transition-delay: .25s; }
@media (hover: none) { [data-tip]::after, [data-tip]::before { display: none; } }
/* session paid in the app (closed automatically) */
.dn-paid { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.dn-paid.app { background: linear-gradient(120deg, rgba(34,197,94,.18), rgba(20,184,166,.1)); border-color: rgba(34,197,94,.5); }
.dn-paid > .ico { width: 30px; height: 30px; color: #2EE6A6; flex: none; } .dn-paid b { display: block; font-size: 16px; } .dn-paid small { display: block; color: var(--ink2); margin-top: 2px; }
/* tooltips v2: bigger, solid, clear frame */
[data-tip]::after { max-width: 340px; padding: 14px 16px; font-size: 14px; line-height: 1.6; background: #1C1033; border: 2px solid var(--a); border-radius: 14px; box-shadow: 0 22px 44px -14px rgba(0,0,0,.95), 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent); }
[data-tip]::before { background: #1C1033; border-top: 2px solid var(--a); border-left: 2px solid var(--a); width: 14px; height: 14px; margin-left: -7px; top: calc(100% + 3px); }
/* tooltips v3: fully opaque and above everything (the floor cards were painting over them) */
.dn-bar { position: relative; z-index: 40; }
.card:has([data-tip]:hover), .card:has([data-tip]:focus-visible) { z-index: 90; }
[data-tip]:hover, [data-tip]:focus-visible { z-index: 95; }
[data-tip]::after, [data-tip]::before { background-color: #1C1033; opacity: 0; backdrop-filter: none; z-index: 100; }
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; }
.dn-qty { display: inline-flex; align-items: center; gap: 4px; } .dn-qty .btn { min-width: 38px; padding: 0 10px; font-size: 18px; font-weight: 800; } .dn-qty b { min-width: 24px; text-align: center; font-size: 15px; }
/* page loader (same look as the diner menu loader) */
.ad-loader { position: fixed; inset: 0; z-index: 9000; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center;
  background: radial-gradient(60% 45% at 50% 40%, color-mix(in srgb, var(--a) 26%, transparent), transparent 70%), radial-gradient(50% 40% at 20% 90%, color-mix(in srgb, var(--b) 22%, transparent), transparent 70%), var(--bg); transition: opacity .45s, visibility .45s; }
.ad-loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.ad-loader.go { transition-duration: .2s; }
.ad-ld-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 8px; }
.ad-ld-ring i { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--a); border-inline-end-color: color-mix(in srgb, var(--a) 40%, transparent); animation: adLdSpin 1.1s linear infinite; filter: drop-shadow(0 0 10px var(--glow)); }
.ad-ld-ring i:nth-child(2) { inset: 14px; border-top-color: var(--b); border-inline-end-color: transparent; border-bottom-color: color-mix(in srgb, var(--b) 40%, transparent); animation-duration: 1.6s; animation-direction: reverse; }
.ad-ld-ring i:nth-child(3) { inset: 28px; border-width: 3px; border-top-color: #FFE08A; animation-duration: 2.2s; }
.ad-ld-ring img, .ad-ld-ring .mk { position: relative; width: 52px; height: 52px; object-fit: contain; display: grid; place-items: center; animation: adLdPulse 1.6s ease-in-out infinite; }
.ad-ld-ring .mk svg { width: 52px; height: 52px; }
@keyframes adLdSpin { to { transform: rotate(360deg); } }
@keyframes adLdPulse { 50% { transform: scale(1.12); } }
.ad-loader b { font-size: 22px; font-weight: 900; background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--a) 40%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ad-loader small { color: var(--ink2); font-size: 14px; }
.ad-ld-bar { width: 180px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 6px; }
.ad-ld-bar em { display: block; height: 100%; width: 6%; border-radius: inherit; background: var(--grad); transition: width .3s; }
.ad-ld-n { font-size: 12px !important; font-variant-numeric: tabular-nums; min-height: 16px; }
@media (prefers-reduced-motion: reduce) { .ad-ld-ring i, .ad-ld-ring img, .ad-ld-ring .mk { animation: none; } }
/* the language list opens above everything on the page (the toolbar / cards were painting over it) */
.ad-top:has(.lang-sw[open]) { z-index: 300; }
/* kitchen / bar card: the dish name gets the full width on its own line, the status chip sits under it */
.kd-card li { grid-template-columns: auto minmax(0,1fr); grid-template-areas: "q n" ". s"; row-gap: 6px; align-items: start; }
.kd-card li .q { grid-area: q; line-height: 1.25; } .kd-card li .n { grid-area: n; line-height: 1.3; overflow-wrap: anywhere; }
.kd-card li .s { grid-area: s; justify-self: start; }
/* kitchen / bar order card: everything in lower-case letters */
.kd-card { text-transform: lowercase; }
/* service mode chooser (register / settings) */
.svm { display: grid; gap: 10px; margin: 6px 0 14px; }
.svm-l { font-size: 14px; font-weight: 700; color: var(--ink2); }
.svm-o { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; transition: border-color .2s, background .2s; }
.svm-o input { position: absolute; opacity: 0; pointer-events: none; }
.svm-r { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); display: grid; place-items: center; }
.svm-o input:checked ~ .svm-r { border-color: var(--a); } .svm-o input:checked ~ .svm-r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--a); box-shadow: 0 0 10px var(--glow); }
.svm-o:has(input:checked) { border-color: var(--a); background: color-mix(in srgb, var(--a) 12%, transparent); }
.svm-o input:focus-visible ~ .svm-r { box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 30%, transparent); }
.svm-t { display: grid; gap: 2px; min-width: 0; } .svm-t b { font-size: 16px; } .svm-t small { color: var(--ink2); font-size: 13px; }
.svm-f { margin-top: 4px; } .svm-f > span { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.svm-f ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; } .svm-f li { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.svm-f li .ico { width: 18px; height: 18px; color: #2EE6A6; padding: 2px; border-radius: 50%; background: rgba(46,230,166,.15); }
.cnt-set h2 { display: flex; align-items: center; gap: 10px; } .cnt-qr { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
/* counter pickup on the kitchen / bar board */
.kd-t.pk { background: linear-gradient(135deg, #2EE6A6, #14B8A6) !important; color: #062A1E !important; } .kd-t.pk small { color: #0B3B2B !important; }
.kd-unpaid { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 8px; background: rgba(255,200,61,.16); color: #FFE08A; font-weight: 800; } .kd-unpaid .ico { width: 13px; height: 13px; }
.kd-collect { flex: 1; background: linear-gradient(110deg, #22C55E, #14B8A6) !important; color: #fff !important; border: 0 !important; font-weight: 800; }
.kd-collect .ico { width: 16px; height: 16px; }
.svm-f li .ico { width: 18px; height: 18px; padding: 0; background: #2EE6A6 !important; flex: none; }
/* register: spread over the screen — 3 columns (you · the business · how you work), the showcase gives way */
.reg-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.reg-h span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--grad); }
.reg-col + .reg-col { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.reg .svm { margin-top: 0; } .reg .svm-l { display: none; }
@media (min-width: 1100px) {
  .reg .auth-wrap { max-width: 1500px; grid-template-columns: minmax(0, 1fr); padding: 80px 40px 40px; }
  .reg .auth-show { display: none; }
  .reg .auth-box { max-width: 1320px; padding: 30px 36px 28px; }
  .reg .auth-box > .ad-logo { padding-bottom: 6px; } .reg .auth-box h1 { margin-bottom: 14px; }
  .reg .g-top { max-width: 460px; margin: 0 auto 6px; }
  .reg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; align-items: start; }
  .reg-col + .reg-col { border-top: 0; padding-top: 0; margin-top: 0; border-inline-start: 1px solid var(--line); padding-inline-start: 30px; }
  .reg .auth-box form > .btn { max-width: 460px; display: flex; margin: 18px auto 0; }
}
@media (min-width: 1100px) and (max-height: 860px) { .reg .auth-wrap { padding-top: 66px; } .reg .f { margin-bottom: 10px; } }
/* feature list side by side (2 columns), always the room of the longest list → the card never jumps when the choice changes */
.svm-f ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; min-height: calc(4 * 22px + 3 * 8px); align-content: start; }
.svm-f li { font-size: 14px; line-height: 22px; min-width: 0; } .svm-f li .ico { flex: none; }
@media (max-width: 380px) { .svm-f li { font-size: 13px; } }
.svm-f ul { min-height: calc(5 * 22px + 4 * 8px); }
.svm-f ul { grid-template-columns: repeat(2, auto); justify-content: start; gap: 8px 22px; min-height: calc(4 * 22px + 3 * 8px); } .svm-f li { white-space: nowrap; }
@media (max-width: 520px) { .svm-f ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; min-height: calc(4 * 36px + 3 * 8px); } .svm-f li { white-space: normal; font-size: 13px; line-height: 18px; align-items: flex-start; } .svm-f li .ico { margin-top: 1px; } }
/* country picker */
.cty-f { display: block; }
.cty-btn { width: 100%; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: start; transition: border-color .2s, box-shadow .2s; }
.cty-btn:hover, .cty-btn:focus-visible { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent); outline: 0; }
.cty-btn img, .cty-ph { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.25); object-fit: cover; } .cty-ph { background: rgba(255,255,255,.1); }
.cty-btn b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cty-btn b.muted { color: var(--ink3); font-weight: 500; }
.cty-btn svg { width: 18px; height: 18px; flex: none; opacity: .7; }
.cty-btn.bad { border-color: #FF5C8A; box-shadow: 0 0 0 4px rgba(255,92,138,.2); }
.cty-btn.flash { animation: ctyFlash 1.2s ease; } @keyframes ctyFlash { 30% { border-color: #2EE6A6; box-shadow: 0 0 0 5px rgba(46,230,166,.3); } }
.cty-msg { display: block; min-height: 0; font-size: 13px; color: var(--ink3); margin-top: 4px; } .cty-msg.err { color: #FFB3C8; font-weight: 600; }
.cty-f { position: relative; }
.cty-btn.open { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent); } .cty-btn.open svg { transform: rotate(180deg); } .cty-btn svg { transition: transform .2s; }
.cty-dd { position: absolute; inset-inline-start: 0; width: min(640px, calc(100vw - 32px)); z-index: 60; margin-top: 6px; padding: 8px; border-radius: 16px; background: #1a0f2e; background: color-mix(in oklab, var(--a) 9%, #140a26); border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(0,0,0,.8); }
.cty-dd[hidden] { display: none; }
.cty-q { width: 100%; height: 40px; padding: 0 12px; margin-bottom: 6px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: #fff; font: inherit; font-size: 14.5px; outline: 0; } .cty-q:focus { border-color: var(--a); }
.cty-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; gap: 2px; }
@media (max-width: 600px) { .cty-dd { width: auto; inset-inline: 0; } .cty-list { grid-template-columns: 1fr; max-height: 280px; } }
.cty-list button { display: flex; align-items: center; gap: 10px; flex: none; height: 40px; padding: 0 10px; border-radius: 10px; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: start; }
.cty-list button[hidden] { display: none; }
.cty-list button:hover, .cty-list button:focus-visible { background: rgba(255,255,255,.08); outline: 0; } .cty-list button.on { background: color-mix(in srgb, var(--a) 24%, transparent); }
.cty-list img { width: 24px; height: 24px; border-radius: 50%; flex: none; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.cty-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* form errors inside the fields (form_errs) */
input.fe { border-color: #FF5C8A !important; box-shadow: 0 0 0 4px rgba(255,92,138,.16); }
input.fe::placeholder { color: #FF6B93; opacity: 1; font-weight: 600; }
.cty-btn.fe b { color: #FF6B93; font-weight: 600; }
.shake { animation: svShake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes svShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }
html[dir=rtl] input.fe:placeholder-shown { direction: rtl; }

/* picture style picker (import) */
.sty-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sty { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 0 0 14px; border-radius: 18px; border: 2px solid var(--line); background: rgba(255,255,255,.04); color: #fff; font: inherit; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sty:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--a) 55%, transparent); }
.sty.on { border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 22%, transparent), 0 16px 34px -18px var(--a); background: color-mix(in srgb, var(--a) 12%, transparent); }
.sty-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 12px 14px 26px; background: #fff; overflow: hidden; }
.sty-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 14px; }
.sty-ic { width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: #1B2A52; color: #FFD45C; border: 2px solid rgba(255,255,255,.85); position: relative; }
.sty-ic svg { width: 21px; height: 21px; }
.sty b { margin-top: 6px; font-size: 15.5px; } .sty small { font-size: 12.5px; color: var(--ink3); } .sty-d { font-size: 12.5px; color: var(--ink2); padding: 4px 10px 0; line-height: 1.35; }
.sty em { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #FFE27A, #F5B301); color: #3A2600; box-shadow: 0 4px 12px -4px rgba(245,179,1,.8); }
.sty.on::after { content: '✓'; position: absolute; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--a); color: #fff; font-weight: 900; font-size: 14px; }
@media (max-width: 1100px) { .sty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .sty-d { display: none; } .sty b { font-size: 14px; } }
.sa-cur-style { margin: 4px 0 8px; } .sa-cur-style a { color: var(--a); }
.sa-limit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--a) 55%, transparent); font-size: 14px; }
.sa-limit input { width: 90px; min-height: 36px !important; height: 36px; text-align: center; } .sa-limit small { flex-basis: 100%; color: var(--ink3); font-size: 12px; }

/* "the pictures are for illustration only" */
.ai-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: 14px; line-height: 1.45; }
.ai-note b { display: block; color: #fff; } .ai-note span { color: var(--ink2); }
.ai-ni { flex: none; width: 22px; height: 22px; color: #FFD45C; } .ai-ni svg { width: 22px; height: 22px; display: block; }
.ai-note.sm { margin: 8px 0 12px; font-size: 13px; }
.sa-pdfthumb { width: 100%; height: 100%; min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(160deg, #E5484D, #A32025); border-radius: 10px; }
.sa-pdfthumb small { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; opacity: .85; }

/* history: delete an upload */
.sa-hdel { width: 34px; height: 34px; padding: 0 !important; display: inline-grid !important; place-items: center; }
.sa-hdel svg { width: 17px; height: 17px; }
/* site owner test: choose dishes per category */
.tp-box { max-width: 560px !important; padding: 22px !important; }
.tp-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 4px 0 10px; }
.tp-sum small { display: block; font-size: 12.5px; color: var(--ink3); } .tp-sum b { font-size: 24px; color: #fff; }
.tp-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 12px; } .tp-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--a), var(--b, var(--a))); transition: width .2s; }
.tp-tbl { width: 100%; border-collapse: collapse; } .tp-tbl th { font-size: 12.5px; color: var(--ink3); font-weight: 600; text-align: start; padding: 6px 4px; }
.tp-tbl td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; } .tp-tbl td b { display: block; font-size: 14.5px; } .tp-tbl td small { font-size: 11.5px; color: var(--ink3); }
.tp-tbl input[type=number] { width: 86px; height: 38px; min-height: 38px !important; text-align: center; border-radius: 12px; }
.tp-tg { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: none; cursor: pointer; display: inline-grid; place-items: center; color: #fff; font-size: 13px; padding: 0; }
.tp-tg.on { background: var(--a); border-color: var(--a); } .tp-tg.on::after { content: '✓'; font-weight: 900; }
.tp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 12px; } .tp-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; }
.tp-go { width: 100%; } .tp-list { max-height: min(52vh, 460px); overflow: auto; }

/* dialogs: a close (×) in the corner */
.ad-dlg-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ad-dlg-x:hover { background: rgba(255,255,255,.16); }
/* menu analysis: estimated progress */
.sa-busy-tx { flex: 1; min-width: 0; }
.sa-prog { height: 10px; margin-top: 12px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
.sa-prog i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--a), color-mix(in srgb, var(--a) 40%, #8B5CF6)); transition: width .4s linear; box-shadow: 0 0 14px -2px var(--a); }
.sa-prog-t { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--ink2); } .sa-prog-t b { color: #fff; font-variant-numeric: tabular-nums; }
/* editor: the type select fits */
.sa-tbl select.inp { min-width: 96px; padding-inline: 8px 26px !important; font-size: 13.5px; }
.sa-tbl .sel-w { display: block; min-width: 96px; }
.sa-actions [data-tip]::after { top: auto; bottom: calc(100% + 10px); } .sa-actions [data-tip]::before { top: auto; bottom: calc(100% + 3px); transform: rotate(225deg); }
.sa-actions [data-tip]:hover::before, .sa-actions [data-tip]:focus-visible::before { transform: rotate(225deg); }

/* actions row: one line */
.sa-actions { flex-wrap: wrap; gap: 7px; } .sa-actions .btn { padding-inline: 13px; font-size: 14px; white-space: nowrap; }
.sa-actions #saSaved { flex-basis: 100%; }

/* style picker — navy & gold, like the ShopVerse AI pictures card */
.sty-card { background: radial-gradient(40% 60% at 6% 100%, rgba(255,170,60,.2), transparent 70%), radial-gradient(35% 50% at 98% 0%, rgba(120,170,255,.25), transparent 70%), linear-gradient(160deg, #10306A, #0A1F4A 60%, #0B1838) !important; border: 1px solid rgba(160,190,255,.25) !important; color: #fff; }
.sty-hd { text-align: center; margin-bottom: 18px; position: relative; }
.sty-hd h2 { display: block; margin: 0 0 6px; font-size: 24px; color: #fff; } .sty-hd h2 em { font-style: normal; background: linear-gradient(110deg, #FFE7A0, #F5B301); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sty-hd p { margin: 0; color: rgba(225,235,255,.82); font-size: 14px; } .sty-saved { position: absolute; top: 4px; inset-inline-end: 0; font-size: 13px; color: #9BF5C9; }
.sty-grid { gap: 14px; padding-top: 14px; }
.sty { background: #F4F7FC !important; border: 0 !important; color: #0E2348 !important; padding: 10px 10px 14px !important; border-radius: 20px !important; box-shadow: 0 18px 34px -20px rgba(0,0,0,.7); overflow: visible !important; }
.sty:hover { transform: translateY(-4px); }
.sty.rec { background: linear-gradient(180deg, #FFF7DF, #FFE7A8) !important; box-shadow: 0 0 0 3px #F5B301, 0 0 28px -4px rgba(245,179,1,.7), 0 18px 34px -20px rgba(0,0,0,.7); }
.sty.on { box-shadow: 0 0 0 4px #FF4FD8, 0 0 0 8px rgba(255,79,216,.28), 0 18px 34px -16px rgba(255,79,216,.7) !important; transform: translateY(-4px); }
.sty-img { background: transparent !important; padding: 2px 2px 6px !important; aspect-ratio: 4 / 3; }
.sty-ic { margin-top: -6px !important; background: #0E2B5E !important; color: #FFD45C !important; border: 3px solid #fff !important; width: 42px !important; height: 42px !important; }
.sty b { display: block; width: 100%; margin-top: 8px !important; padding: 7px 4px 1px; border-radius: 12px 12px 0 0; background: #0E2B5E; color: #fff; font-size: 15.5px; }
.sty small { display: block; width: 100%; margin-top: -2px; padding: 0 4px 7px; border-radius: 0 0 12px 12px; background: #0E2B5E; color: rgba(255,255,255,.8) !important; }
.sty-d { color: #1B2E55 !important; font-weight: 600; padding-top: 8px !important; }
.sty em { top: -12px !important; inset-inline-start: 50% !important; transform: translateX(-50%); background: linear-gradient(180deg, #FFE45C, #F5B301) !important; border-radius: 8px !important; padding: 3px 14px !important; font-size: 13px !important; }
[dir=ltr] .sty em { transform: translateX(-50%); } [dir=rtl] .sty em { transform: translateX(50%); }
.sty.rec::before { content: ""; position: absolute; top: -34px; left: 50%; width: 34px; height: 24px; transform: translateX(-50%); background: #F5B301; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 10H5z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 10H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.sty.on::after { top: 6px !important; inset-inline-end: 6px !important; background: #FF4FD8 !important; z-index: 2; }
.sty-card .sty-grid { padding-top: 26px; }
.sty-card .ai-note { background: #EEF3FB; border: 0; color: #0E2348; margin-top: 20px; } .sty-card .ai-note b { color: #0E2348; } .sty-card .ai-note span { color: #33466E; } .sty-card .ai-ni { color: #0E2348; background: #FFD45C; border-radius: 50%; padding: 2px; }

/* table event pop-up sits under the new-order one */
.ad-newo.ev { top: 220px; }

/* menu pictures load near the screen: soft fade-in, a light shimmer until then */
img.lz { opacity: 0; transition: opacity .35s ease; } img.lz.in { opacity: 1; }
.mn-img:has(img.lz:not(.in)) { background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.03) 70%) 0 0 / 300% 100%; animation: lzShim 1.4s linear infinite; border-radius: 16px; }
@keyframes lzShim { to { background-position: -150% 0; } }
