/* ==========================================================================
   Talabwa — main stylesheet (mobile-first, logical properties for RTL/LTR)
   Sections: tokens · base · layout · components · shells · areas
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  --brand: #047857;
  --brand-600: #065f46;
  --brand-soft: #e7f5ef;
  --brand-ink: #ffffff;
  --accent: #f59e0b;
  --accent-soft: #fff4dc;

  --ink: #0b1324;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e5e9f0;
  --line-2: #eef1f5;
  --bg: #f5f7fa;
  --card: #ffffff;

  --ok: #15803d;      --ok-soft: #e8f7ee;
  --warn: #b45309;    --warn-soft: #fff5e1;
  --danger: #dc2626;  --danger-soft: #fdecec;
  --info: #1d4ed8;    --info-soft: #eaf1ff;
  --violet: #6d28d9;  --violet-soft: #f1ebff;

  --wa: #25d366;
  --wa-dark: #128c4b;

  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 6px 20px -6px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, .22);

  --font: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 60px;
  --bottomnav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
html[lang="ar"] body { line-height: 1.7; letter-spacing: 0; }
@media (min-width: 768px) { body { font-size: 15.5px; } }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
small, .small { font-size: .86em; }
strong, b { font-weight: 700; }
code, kbd { font-family: var(--mono); font-size: .9em; background: var(--line-2); padding: .1em .35em; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.i { display: inline-block; width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 1.6em; height: 1.6em; }
.i-xl { width: 2.2em; height: 2.2em; }

/* ---------------------------------------------------------------- utilities */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.container-sm { max-width: 720px; }
.container-xs { max-width: 480px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.stack-sm { --gap: 8px; } .stack-lg { --gap: 24px; }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.row-nowrap { flex-wrap: nowrap; }
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--gap, 16px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-ok { color: var(--ok); } .text-danger { color: var(--danger); } .text-warn { color: var(--warn); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-100 { width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767.98px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .show-mobile { display: none !important; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--card); --btn-fg: var(--ink); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  cursor: pointer; user-select: none; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s, color .15s;
  position: relative;
}
.btn:hover { background: color-mix(in srgb, var(--btn-bg) 92%, var(--ink)); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: transparent; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent; }
.btn-dark:hover { background: #1e293b; }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand); --btn-bd: transparent; }
.btn-soft:hover { background: color-mix(in srgb, var(--brand-soft) 85%, var(--brand)); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: transparent; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-wa { --btn-bg: var(--wa); --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 8px 20px -8px rgba(18, 140, 75, .65); }
.btn-wa:hover { background: #1fbe5b; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .87rem; border-radius: var(--r-xs); gap: 6px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; border-radius: var(--r); }
.btn-block { display: flex; width: 100%; }
.btn-icon { padding: 0; width: 44px; min-width: 44px; }
.btn-icon.btn-sm { width: 36px; min-width: 36px; }
.btn-pill { border-radius: var(--r-full); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--btn-fg); border-inline-end-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--danger); }

/* ---------------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-weight: 650; font-size: .92rem; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label .opt { font-weight: 500; color: var(--faint); font-size: .85em; }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.field-error { font-size: .84rem; color: var(--danger); margin: 0; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: #cfd6e0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); background: #fffafa; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.select {
  padding-inline-end: 40px; 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='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 12px center;
}
[dir="rtl"] .select { background-position: left 12px center; }
.input-sm { min-height: 38px; padding: 7px 11px; font-size: 15px; }
.input[type="number"] { -moz-appearance: textfield; }
.input[type="number"]::-webkit-inner-spin-button, .input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[readonly] { background: var(--line-2); }

.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.is-invalid .input-group { border-color: var(--danger); }
.input-group .input, .input-group .select { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.input-group .addon { display: flex; align-items: center; padding-inline: 12px; color: var(--muted); background: var(--line-2); font-size: .92rem; white-space: nowrap; direction: ltr; }
.input-group .select { flex: 0 0 auto; width: auto; background-color: var(--line-2); border-inline-end: 1px solid var(--line); padding-inline-start: 10px; }
.input-group-ltr { direction: ltr; }
.input-group-ltr .input { text-align: left; }
.phone-group .select { max-width: 128px; font-size: 15px; }
.phone-group .input { direction: ltr; text-align: left; letter-spacing: .02em; }

.counter { font-size: .78rem; color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); }

/* switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 4px 0; }
.switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch-text strong { font-weight: 650; font-size: .95rem; }
.switch-text span { font-size: .84rem; color: var(--muted); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: var(--r-full); background: #d5dbe4; transition: background .2s var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch-ui { background: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .93rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* choice chips / radio cards */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-full); background: var(--card);
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .15s;
}
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.choice input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.choice input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 50%; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--c); transform: scale(1.04); }
.swatch input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 4px; }

/* file upload */
.upload-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 1; border: 2px dashed #cfd6e0; border-radius: var(--r); background: var(--card);
  color: var(--muted); font-size: .82rem; font-weight: 600; text-align: center; cursor: pointer; padding: 8px;
  transition: border-color .15s, background .15s, color .15s;
}
.upload-tile:hover, .upload-tile.is-drag { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.upload-tile input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15,23,42,.72); color: #fff; cursor: pointer; }
.thumb-badge { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: .7rem; font-weight: 700; background: rgba(15,23,42,.72); color: #fff; padding: 2px 8px; border-radius: var(--r-full); }
.thumb.is-removed { opacity: .35; }
.thumb.is-removed img { filter: grayscale(1); }

/* ---------------------------------------------------------------- cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-body { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.02rem; }
.card-foot { padding: 14px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 768px) { .card-body { padding: 24px; } .card-head { padding: 18px 24px; } .card-foot { padding: 16px 24px; } }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d9dfe8; }
.section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
html[lang="ar"] .section-title { letter-spacing: 0; font-size: .85rem; }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-full); font-size: .76rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { background: var(--ok-soft); color: var(--ok); }
.badge-amber { background: var(--warn-soft); color: var(--warn); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-violet { background: var(--violet-soft); color: var(--violet); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-pro { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

/* ---------------------------------------------------------------- alerts & toasts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r); font-size: .93rem; border: 1px solid transparent; background: var(--info-soft); color: #1e3a8a; }
.alert .i { margin-top: 2px; }
.alert p:last-child { margin: 0; }
.alert-success { background: var(--ok-soft); color: #14532d; border-color: #c9ecd6; }
.alert-error { background: var(--danger-soft); color: #7f1d1d; border-color: #f7cfcf; }
.alert-warning { background: var(--warn-soft); color: #78350f; border-color: #f7e0b5; }
.alert-info { background: var(--info-soft); color: #1e3a8a; border-color: #d3e1ff; }
.alert-close { margin-inline-start: auto; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; opacity: .6; }

.toasts { position: fixed; inset-inline: 0; bottom: calc(16px + var(--safe-bottom)); z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.has-bottomnav .toasts { bottom: calc(var(--bottomnav-h) + 16px + var(--safe-bottom)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 440px; padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; font-size: .93rem; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease); }
.toast.is-leaving { animation: toast-out .25s var(--ease) forwards; }
.toast-success .i { color: #4ade80; } .toast-error .i { color: #f87171; } .toast-warning .i { color: #fbbf24; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------------------------------------------------------------- tabs / segmented */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; scroll-snap-type: x proximity; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 15px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 650; font-size: .9rem; white-space: nowrap; cursor: pointer; text-decoration: none !important; scroll-snap-align: start; transition: all .15s; }
.tab:hover { border-color: #cfd6e0; }
.tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab .count { font-size: .75rem; padding: 0 7px; border-radius: var(--r-full); background: var(--line-2); color: var(--ink-2); }
.tab.is-active .count { background: rgba(255,255,255,.2); color: #fff; }

.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-sm); background: var(--line-2); gap: 2px; }
.segmented a, .segmented button { border: 0; background: none; padding: 6px 14px; border-radius: 7px; font-weight: 650; font-size: .87rem; color: var(--muted); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.segmented .is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); min-width: 0; color: inherit; }
.list-item:last-child { border-bottom: 0; }
a.list-item { text-decoration: none !important; transition: background .15s; }
a.list-item:hover { background: #fafbfc; }
.list-item .body { flex: 1 1 auto; min-width: 0; }
.list-item .title { font-weight: 650; color: var(--ink); }
.list-item .meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.list-item .end { flex: none; display: flex; align-items: center; gap: 8px; }
.list-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--line-2); flex: none; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint); overflow: hidden; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item.is-dragging { background: var(--card); box-shadow: var(--shadow-lg); border-radius: var(--r); position: relative; z-index: 5; }
.drag-handle { cursor: grab; color: var(--faint); padding: 8px 4px; margin-inline-start: -8px; touch-action: none; display: grid; place-items: center; border: 0; background: none; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: .35; }

/* tables (become cards on phones) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang="ar"] .table th { letter-spacing: 0; font-size: .84rem; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
@media (max-width: 767.98px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .table-cards td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; }
  .table-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .84rem; font-weight: 600; }
  .table-cards td.td-main { font-weight: 700; font-size: 1rem; }
}

/* ---------------------------------------------------------------- empty states */
.empty { text-align: center; padding: 44px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.empty-icon .i { width: 34px; height: 34px; }
.empty h3 { margin: 0; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 10px; }

/* ---------------------------------------------------------------- avatar */
.avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: calc(var(--size) * .42); border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { --size: 32px; } .avatar-lg { --size: 64px; } .avatar-xl { --size: 92px; }

/* ---------------------------------------------------------------- modal / bottom sheet */
.modal { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 19, 36, .5); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade-in .2s ease; }
.modal-panel {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  padding-bottom: var(--safe-bottom); animation: sheet-up .32s var(--ease);
}
.modal-panel::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 5px; background: #d5dbe4; margin: 10px auto 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px 6px; }
.modal-head h2, .modal-head h3 { margin: 0; font-size: 1.12rem; }
.modal-body { padding: 12px 20px 20px; }
.modal-foot { position: sticky; bottom: 0; padding: 14px 20px calc(14px + var(--safe-bottom)); background: var(--card); border-top: 1px solid var(--line-2); display: flex; gap: 10px; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--line-2); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.modal-close:hover { background: var(--line); }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-panel { max-width: 520px; border-radius: var(--r-xl); animation: pop-in .25s var(--ease); padding-bottom: 0; }
  .modal-panel::before { display: none; }
  .modal-head { padding-top: 20px; }
  .modal-lg .modal-panel { max-width: 860px; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96) translateY(8px); } }
body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------- dropdown (details/summary) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 200px; z-index: 950; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; animation: pop-in .15s var(--ease); }
.dropdown-menu.align-start { inset-inline-end: auto; inset-inline-start: 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--r-xs); color: var(--ink); font-weight: 550; font-size: .93rem; text-decoration: none !important; border: 0; background: none; cursor: pointer; text-align: start; }
.dropdown-item:hover { background: var(--line-2); }
.dropdown-item.is-active { color: var(--brand); background: var(--brand-soft); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.dropdown-label { padding: 8px 12px 4px; font-size: .76rem; color: var(--faint); font-weight: 700; }

.lang-switch > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--card); font-weight: 650; font-size: .87rem; color: var(--ink-2); }
.lang-switch > summary:hover { border-color: #cfd6e0; }
.lang-switch .dropdown-menu { min-width: 160px; }

/* ---------------------------------------------------------------- stats & chart */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: .84rem; color: var(--muted); font-weight: 650; }
.stat-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.stat-icon.is-blue { background: var(--info-soft); color: var(--info); }
.stat-icon.is-amber { background: var(--warn-soft); color: var(--warn); }
.stat-icon.is-violet { background: var(--violet-soft); color: var(--violet); }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .8rem; color: var(--faint); }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 180px; padding-top: 10px; direction: ltr; }
.chart-col { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; position: relative; }
.chart-bar { width: 100%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); transition: height .6s var(--ease), opacity .15s; position: relative; }
.chart-bar.is-secondary { position: absolute; bottom: 22px; background: rgba(245, 158, 11, .9); max-width: 34px; width: 100%; }
.chart-col:hover .chart-bar { opacity: .85; }
.chart-label { font-size: .68rem; color: var(--faint); white-space: nowrap; height: 16px; }
.chart-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.chart-col:hover .chart-tip, .chart-col:focus .chart-tip { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); display: inline-block; }
.legend i.is-amber { background: var(--accent); }

/* ---------------------------------------------------------------- pagination */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 16px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 650; text-decoration: none !important; }
.pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-disabled { opacity: .4; }

/* ---------------------------------------------------------------- steps (onboarding) */
.steps { display: flex; gap: 8px; }
.steps span { flex: 1; height: 6px; border-radius: 6px; background: var(--line); transition: background .3s; }
.steps span.is-done { background: var(--brand); }

/* ---------------------------------------------------------------- brand logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; text-decoration: none !important; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { font-weight: 600; color: var(--muted); font-size: .7em; }

/* ==========================================================================
   SHELLS
   ========================================================================== */

/* ---------------------------------------------------------------- public site */
.site-header { position: sticky; top: 0; z-index: 800; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(229, 233, 240, .8); }
.site-header-inner { height: var(--header-h); display: flex; align-items: center; gap: 12px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.site-nav-link { padding: 8px 12px; border-radius: var(--r-xs); color: var(--ink-2); font-weight: 600; font-size: .93rem; text-decoration: none !important; }
.site-nav-link:hover, .site-nav-link.is-active { background: var(--line-2); color: var(--ink); }
.site-main { min-height: calc(100vh - var(--header-h) - 200px); }
.site-footer { margin-top: 64px; background: #0b1324; color: #cbd5e1; padding: 44px 0 calc(28px + var(--safe-bottom)); font-size: .92rem; }
.site-footer a { color: #e2e8f0; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { color: #fff; font-size: .9rem; margin-bottom: 4px; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #94a3b8; font-size: .84rem; }

.page-hero { padding: 40px 0 24px; }
.page-hero h1 { font-size: 1.9rem; }
@media (min-width: 768px) { .page-hero { padding: 56px 0 32px; } .page-hero h1 { font-size: 2.4rem; } }

/* ---------------------------------------------------------------- auth */
.auth-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background:
  radial-gradient(900px 500px at 100% -10%, rgba(16, 185, 129, .16), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(245, 158, 11, .12), transparent 60%), var(--bg); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; max-width: 1140px; width: 100%; margin-inline: auto; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 12px 16px 48px; }
@media (min-width: 640px) { .auth-main { align-items: center; padding-top: 24px; } }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 26px 20px; }
.auth-card.is-wide { max-width: 620px; }
@media (min-width: 640px) { .auth-card { padding: 36px 34px; } }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: .93rem; }

/* ---------------------------------------------------------------- app shell (merchant + admin) */
.app-body { background: var(--bg); }
.app-topbar { position: sticky; top: 0; z-index: 800; height: var(--header-h); background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.app-topbar-inner { height: 100%; display: flex; align-items: center; gap: 10px; padding-inline: 16px; }
.app-topbar .spacer { flex: 1; }
.app-layout { display: block; }
.app-sidebar { display: none; }
.app-main { padding: 18px 16px calc(var(--bottomnav-h) + 28px + var(--safe-bottom)); min-width: 0; max-width: 1080px; margin-inline: auto; }
@media (min-width: 1024px) {
  .app-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .app-sidebar { display: flex; flex-direction: column; gap: 4px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); padding: 18px 14px; border-inline-end: 1px solid var(--line); background: var(--card); overflow-y: auto; }
  .app-main { padding: 28px 32px 56px; width: 100%; }
  .app-bottomnav { display: none !important; }
}
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none !important; transition: background .15s, color .15s; }
.side-link .i { color: var(--faint); transition: color .15s; }
.side-link:hover { background: var(--line-2); color: var(--ink); }
.side-link.is-active { background: var(--brand-soft); color: var(--brand); }
.side-link.is-active .i { color: var(--brand); }
.side-link .badge { margin-inline-start: auto; }
.side-sep { height: 1px; background: var(--line-2); margin: 10px 8px; }
.side-label { font-size: .74rem; font-weight: 700; color: var(--faint); padding: 10px 12px 4px; text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .side-label { letter-spacing: 0; }
.side-card { margin-top: auto; padding: 14px; border-radius: var(--r); background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--line); font-size: .86rem; }

.app-bottomnav { position: fixed; inset-inline: 0; bottom: 0; z-index: 800; height: calc(var(--bottomnav-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .7rem; font-weight: 650; text-decoration: none !important; position: relative; }
.bottom-link .i { width: 24px; height: 24px; }
.bottom-link.is-active { color: var(--brand); }
.bottom-link.is-active::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.bottom-link .dot { position: absolute; top: 8px; inset-inline-start: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .64rem; display: grid; place-items: center; font-weight: 800; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 1.4rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 768px) { .page-head h1 { font-size: 1.65rem; } .page-head { margin-bottom: 24px; } }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 10px; text-decoration: none !important; }
.back-link:hover { color: var(--ink); }

.store-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 12px 4px 4px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 650; font-size: .88rem; text-decoration: none !important; }
[dir="rtl"] .store-chip { padding: 4px 4px 4px 12px; }
.store-chip:hover { border-color: #cfd6e0; }

/* sticky save bar for long forms on phones */
.savebar { position: sticky; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 10px); z-index: 50; display: flex; gap: 10px; justify-content: flex-end; padding: 12px; margin-top: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .savebar { bottom: 16px; } }
.savebar .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .savebar .btn { flex: 0 0 auto; } }

/* ==========================================================================
   AREA STYLES — each area appends below its own marker.
   ========================================================================== */

/* == area: setup & errors == */
.req-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); font-size: .92rem; }
.req-list li + li { border-top: 1px solid var(--line-2); }
.req-list .i { color: var(--ok); }
.req-list .is-bad .i { color: var(--danger); }
.req-list .is-warn .i { color: var(--warn); }
.req-list .val { margin-inline-start: auto; color: var(--muted); font-size: .85rem; direction: ltr; }
.error-page { text-align: center; }
.error-code { font-size: 4.2rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--brand), #10b981); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* == area: landing & platform pages == */
.is-landing .site-main { overflow-x: clip; }
.is-landing .site-footer { margin-top: 72px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
html[lang="ar"] .lp-kicker { letter-spacing: 0; font-size: .9rem; }

/* hero */
.lp-hero { position: relative; overflow: hidden; padding: 28px 0 48px; }
.lp-hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(640px 420px at 85% 10%, rgba(16, 185, 129, .20), transparent 65%),
  radial-gradient(520px 380px at 0% 90%, rgba(245, 158, 11, .14), transparent 65%),
  linear-gradient(180deg, #f0faf5 0%, var(--bg) 100%); }
.lp-hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(4, 120, 87, .12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.lp-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .lp-hero { padding: 64px 0 88px; } .lp-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); background: rgba(255,255,255,.8); border: 1px solid #cfeadc; color: var(--brand-600); font-weight: 700; font-size: .84rem; box-shadow: var(--shadow-xs); }
.lp-title { font-size: clamp(2.05rem, 7.4vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 850; margin: 18px 0 16px; }
html[lang="ar"] .lp-title { letter-spacing: 0; line-height: 1.35; }
.lp-title-hl { display: block; background: linear-gradient(100deg, #047857 10%, #10b981 55%, #22c55e 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.lp-sub { font-size: 1.06rem; color: var(--ink-2); max-width: 560px; margin-bottom: 22px; }
@media (min-width: 768px) { .lp-sub { font-size: 1.15rem; } }
.lp-linkbox { display: flex; align-items: center; gap: 6px; max-width: 480px; padding: 6px; padding-inline-start: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 18px; }
.lp-linkbox-url { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: .95rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: ltr; }
.lp-linkbox-url b { color: var(--ink); }
.lp-linkbox .btn { flex: none; min-height: 40px; padding: 8px 14px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-ctas.is-center { justify-content: center; }
@media (max-width: 479.98px) { .lp-hero-copy .lp-ctas .btn { flex: 1 1 100%; } .lp-linkbox { display: none; } }
.lp-trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; max-width: 480px; }
.lp-trust li { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.lp-trust .i { color: var(--ok); }

/* phone mockup */
.lp-hero-visual { display: flex; justify-content: center; padding-bottom: 18px; }
.lp-device { position: relative; width: 252px; }
@media (min-width: 400px) { .lp-device { width: 272px; } }
.lp-phone { position: relative; border-radius: 42px; padding: 10px; background: linear-gradient(145deg, #1e293b, #0b1324); box-shadow: 0 40px 80px -24px rgba(4, 47, 34, .45), 0 0 0 1.5px #334155 inset; transform: rotate(-2deg); }
[dir="rtl"] .lp-phone { transform: rotate(2deg); }
.lp-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 12px; background: #0b1324; z-index: 3; }
.lp-screen { position: relative; border-radius: 33px; overflow: hidden; background: #fff; height: 520px; font-size: 11px; line-height: 1.4; }
@media (min-width: 400px) { .lp-screen { height: 556px; } }
.mk-cover { height: 96px; background: linear-gradient(135deg, #be123c, #fb7185 60%, #fda4af); position: relative; }
.mk-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at 80% 30%, rgba(255,255,255,.35), transparent 70%); }
.mk-lang { position: absolute; top: 36px; inset-inline-end: 10px; z-index: 1; font-size: 8.5px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(255,255,255,.85); color: #9f1239; letter-spacing: .04em; direction: ltr; }
.mk-head { text-align: center; padding: 0 14px 8px; margin-top: -30px; position: relative; }
.mk-logo { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff1f2; color: #be123c; font-weight: 900; font-size: 22px; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(190, 18, 60, .25); }
.mk-title { font-weight: 800; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.mk-verified { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #0ea5e9; color: #fff; }
.mk-verified .i { width: 9px; height: 9px; stroke-width: 3.5; }
.mk-bio { color: var(--muted); font-size: 10px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-social { display: flex; justify-content: center; gap: 6px; margin-top: 7px; }
.mk-social span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: var(--ink-2); }
.mk-social span.is-wa { background: var(--wa); color: #fff; }
.mk-social .i { width: 12px; height: 12px; }
.mk-tabs { display: flex; gap: 5px; padding: 4px 12px 8px; overflow: hidden; }
.mk-tabs span { flex: none; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); font-weight: 700; font-size: 9.5px; color: var(--ink-2); }
.mk-tabs span.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.mk-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; }
.mk-img { aspect-ratio: 1 / .92; position: relative; }
.mk-img::after { content: ""; position: absolute; left: 30%; right: 30%; top: 28%; bottom: 14%; border-radius: 10px 10px 6px 6px; background: rgba(255,255,255,.55); }
.mk-img.tone-rose { background: linear-gradient(160deg, #ffe4e6, #fda4af); }
.mk-img.tone-amber { background: linear-gradient(160deg, #fef3c7, #fcd34d); }
.mk-img.tone-indigo { background: linear-gradient(160deg, #e0e7ff, #a5b4fc); }
.mk-img.tone-emerald { background: linear-gradient(160deg, #d1fae5, #6ee7b7); }
.mk-img.tone-amber::after { border-radius: 50%; left: 32%; right: 32%; top: 30%; bottom: 22%; }
.mk-img.tone-emerald::after { border-radius: 50%; left: 28%; right: 28%; top: 24%; bottom: 18%; background: transparent; border: 5px solid rgba(255,255,255,.7); }
.mk-name { padding: 5px 7px 0; font-weight: 700; font-size: 9.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-price { padding: 0 7px 7px; font-weight: 800; font-size: 10px; color: #be123c; white-space: nowrap; }
.mk-price s { color: var(--faint); font-weight: 600; font-size: 8.5px; }
.mk-cartbar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--wa); color: #fff; font-weight: 800; font-size: 10.5px; box-shadow: 0 10px 22px -8px rgba(18, 140, 75, .7); }
.mk-cartbar b { margin-inline-start: auto; white-space: nowrap; }
.mk-count { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--wa-dark); font-size: 10px; }

/* WhatsApp chat bubble */
.lp-chat { position: absolute; z-index: 4; bottom: -14px; inset-inline-start: -22px; width: 228px; border-radius: 18px; overflow: hidden; background: #efeae2; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6); font-size: 10.5px; line-height: 1.45; animation: lp-float 6s ease-in-out infinite; }
@media (min-width: 400px) { .lp-chat { inset-inline-start: -44px; width: 240px; } }
@media (min-width: 960px) { .lp-chat { inset-inline-start: -110px; bottom: 26px; width: 262px; font-size: 11px; } }
.lp-chat-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #075e54; color: #fff; }
.lp-chat-head strong { display: block; font-size: 11.5px; }
.lp-chat-head small { display: block; opacity: .8; font-size: 9.5px; }
.lp-chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex: none; }
.lp-chat-avatar .i { width: 16px; height: 16px; }
.lp-bubble { position: relative; margin: 10px; margin-inline-start: 22px; padding: 8px 10px 16px; border-radius: 10px; border-start-end-radius: 2px; background: #d9fdd3; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.lp-bubble p { margin: 0 0 2px; }
.lp-bubble p:empty { display: none; }
.lp-bubble-meta { position: absolute; bottom: 3px; inset-inline-end: 8px; display: inline-flex; align-items: center; font-size: 8.5px; color: #667781; direction: ltr; }
.lp-bubble-meta .i { width: 11px; height: 11px; color: #53bdeb; stroke-width: 2.6; }
.lp-bubble-meta .lp-tick2 { margin-inline-start: -7px; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* social strip */
.lp-social { border-block: 1px solid var(--line); background: var(--card); }
.lp-social-inner { display: flex; align-items: center; justify-content: center; gap: 14px 22px; flex-wrap: wrap; padding-block: 18px; text-align: center; }
.lp-social-text { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.lp-social-icons { display: flex; gap: 10px; }
.lp-social-icons span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.lp-social-icons .is-ig { background: linear-gradient(45deg, #f59e0b, #e11d48 50%, #7c3aed); }
.lp-social-icons .is-tt { background: #0b1324; }
.lp-social-icons .is-wa { background: var(--wa); }
.lp-social-icons .is-fb { background: #1877f2; }
.lp-social-icons .is-sc { background: #fde047; color: #0b1324; }
.lp-social-icons .is-x { background: #111827; }

/* sections */
.lp-section { padding: 64px 0; }
@media (min-width: 768px) { .lp-section { padding: 96px 0; } }
.lp-section-alt { background: linear-gradient(180deg, #fff 0%, #f8faf9 100%); border-block: 1px solid var(--line-2); }
.lp-head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.lp-head h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); letter-spacing: -.02em; margin-bottom: 10px; }
html[lang="ar"] .lp-head h2 { letter-spacing: 0; }
.lp-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
@media (min-width: 768px) { .lp-head { margin-bottom: 52px; } }

/* steps */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 860px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.lp-step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px 22px 24px; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s; }
.lp-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lp-step h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.lp-step p { color: var(--muted); margin: 0; }
.lp-step-num { position: absolute; top: 18px; inset-inline-end: 20px; font-size: 3rem; font-weight: 900; line-height: 1; color: var(--line-2); letter-spacing: -.04em; }
.lp-step-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.lp-step-icon .i { width: 26px; height: 26px; }
.lp-step-icon.is-wa { background: var(--wa); color: #fff; }
@media (min-width: 860px) {
  .lp-step:not(:last-child)::after { content: ""; position: absolute; top: 52px; inset-inline-end: -25px; width: 26px; border-top: 2px dashed #cfd6e0; }
}

/* features */
.lp-features { display: grid; gap: 14px; }
@media (min-width: 560px) { .lp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lp-features { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.lp-feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lp-feature:hover { border-color: #cbe8da; box-shadow: var(--shadow); transform: translateY(-2px); }
.lp-feature h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.lp-feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.lp-feature-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #10b981, #047857); box-shadow: 0 8px 18px -8px rgba(4, 120, 87, .7); }

/* directory cards (landing examples + explore) */
.dir-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dir-card { overflow: hidden; display: flex; flex-direction: column; border-radius: var(--r-lg); }
.dir-cover { height: 96px; background: var(--brand); background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #fff)); position: relative; overflow: hidden; }
.dir-cover img { width: 100%; height: 100%; object-fit: cover; }
.dir-body { position: relative; padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.dir-logo { margin-top: -32px; border: 3px solid var(--card); background: var(--brand-soft); color: var(--brand); box-shadow: var(--shadow-sm); margin-bottom: 10px; }
.dir-name { font-size: 1.05rem; margin: 0 0 4px; }
.dir-bio { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.dir-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; font-weight: 600; margin-top: auto; }
.dir-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dir-visit { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand); font-weight: 750; font-size: .9rem; }
.dir-card.is-example { box-shadow: var(--shadow-xs); }

/* pricing */
.lp-plans { display: grid; gap: 18px; max-width: 880px; margin-inline: auto; }
@media (min-width: 760px) { .lp-plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-xs); }
.lp-plan.is-pro { border: 2px solid var(--brand); background: linear-gradient(180deg, #f2fbf7 0%, #fff 45%); box-shadow: 0 24px 50px -24px rgba(4, 120, 87, .45); }
.lp-plan-badge { position: absolute; top: -13px; inset-inline-start: 22px; padding: 5px 12px; font-size: .78rem; }
.lp-plan-head h3 { font-size: 1.3rem; margin: 0 0 4px; }
.lp-plan-head p { color: var(--muted); margin: 0; }
.lp-price { display: flex; align-items: baseline; gap: 8px; }
.lp-price-num { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.lp-price-num.is-text { font-size: 2rem; letter-spacing: -.02em; }
html[lang="ar"] .lp-price-num.is-text { letter-spacing: 0; }
.lp-price-per { color: var(--muted); font-weight: 650; }
.lp-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-plan-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--ink-2); }
.lp-plan-list .i { color: var(--brand); margin-top: 3px; stroke-width: 2.6; }
.lp-plan-list .is-soon { color: var(--muted); }
.lp-plan-list .is-soon .i { color: var(--faint); stroke-width: 2; }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.lp-faq-item[open] { border-color: #cbe8da; box-shadow: var(--shadow-sm); }
.lp-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: 1rem; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-chevron { color: var(--muted); transition: transform .25s var(--ease); }
.lp-faq-item[open] .lp-faq-chevron { transform: rotate(180deg); color: var(--brand); }
.lp-faq-item p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }

/* final CTA */
.lp-cta { position: relative; overflow: hidden; margin-top: 24px; text-align: center; color: #e2f5ec; padding: 48px 22px; border-radius: var(--r-xl); background: linear-gradient(135deg, #053b2c 0%, #065f46 45%, #047857 100%); box-shadow: 0 30px 60px -30px rgba(4, 59, 44, .8); }
@media (min-width: 768px) { .lp-cta { padding: 72px 40px; } }
.lp-cta-glow { position: absolute; inset: 0; background: radial-gradient(420px 220px at 15% 0%, rgba(37, 211, 102, .35), transparent 70%), radial-gradient(380px 240px at 90% 100%, rgba(245, 158, 11, .22), transparent 70%); pointer-events: none; }
.lp-cta > * { position: relative; }
.lp-cta h2 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 8px; }
.lp-cta p { max-width: 520px; margin: 0 auto 24px; font-size: 1.05rem; opacity: .9; }
.lp-cta-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; background: var(--wa); color: #fff; margin-bottom: 16px; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .8); }
.lp-btn-ghost { --btn-bg: rgba(255,255,255,.1); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.25); }
.lp-btn-ghost:hover { background: rgba(255,255,255,.18); }

/* reveal on scroll (only when landing.js enables it) */
@media (prefers-reduced-motion: no-preference) {
  .lp-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .lp-anim .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-chat { animation: none; }
  .lp-step, .lp-feature { transition: none; }
}

/* explore */
.ex-hero { padding: 36px 0 28px; background: radial-gradient(600px 300px at 90% 0%, rgba(16, 185, 129, .14), transparent 70%), linear-gradient(180deg, #f0faf5, var(--bg)); border-bottom: 1px solid var(--line-2); }
.ex-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 6px; }
.ex-lead { color: var(--muted); font-size: 1.04rem; max-width: 560px; margin-bottom: 20px; }
@media (min-width: 768px) { .ex-hero { padding: 52px 0 36px; } }
.ex-filters { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.ex-search { grid-column: 1 / -1; position: relative; }
.ex-search .i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--faint); pointer-events: none; }
.ex-search .input { padding-inline-start: 42px; }
.ex-filters .btn { grid-column: 1 / -1; }
.ex-filters .select:only-of-type { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .ex-filters { display: flex; align-items: center; }
  .ex-search { flex: 1 1 auto; }
  .ex-filters .select { width: auto; min-width: 170px; max-width: 220px; }
  .ex-filters .btn { flex: none; }
}
.ex-results { padding-top: 24px; }
.ex-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; padding: 22px; border-radius: var(--r-xl); background: linear-gradient(135deg, #ecfdf5, #fff); border: 1px solid #cfeadc; }
.ex-cta h2 { font-size: 1.2rem; margin: 0 0 2px; }
.ex-cta p { margin: 0; color: var(--muted); }
.ex-cta-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--wa); color: #fff; flex: none; }
@media (max-width: 559.98px) { .ex-cta .btn { width: 100%; } }

/* legal */
.legal-hero { padding: 40px 0 24px; text-align: center; }
.legal-hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 8px; }
.legal-hero .muted { display: inline-flex; align-items: center; gap: 6px; }
.legal-layout { display: grid; gap: 20px; align-items: start; padding-bottom: 8px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 32px; max-width: 1080px; } }
.legal-toc-inner { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 960px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 20px); } }
.legal-toc ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.legal-toc a { color: var(--ink-2); font-weight: 600; }
.legal-toc a:hover { color: var(--brand); }
.legal-switch { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-weight: 700; font-size: .92rem; }
.legal-intro { margin-bottom: 26px; }
.legal-section { scroll-margin-top: calc(var(--header-h) + 16px); padding-bottom: 8px; }
.legal-section + .legal-section { border-top: 1px solid var(--line-2); padding-top: 22px; }
.legal-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.legal-section p { color: var(--ink-2); line-height: 1.8; }
.legal-num { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: .9rem; font-weight: 800; }
.legal-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.legal-up { transform: rotate(180deg); }

/* == area: public store == */
.store-body { background: #f4f6f8; }
.store-body.sf-has-fab { padding-bottom: calc(84px + var(--safe-bottom)); }
.store-body .toasts { bottom: calc(88px + var(--safe-bottom)); }
.store-body.sf-has-buybar .toasts { bottom: calc(160px + var(--safe-bottom)); }
.sf { max-width: 1120px; margin-inline: auto; }
.sf-section { padding: 0 16px; margin-bottom: 14px; }
@media (min-width: 768px) { .sf-section { padding: 0 24px; } }

/* hero */
.sf-cover {
  position: relative; height: 150px; background-color: var(--brand); background-size: cover; background-position: center;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.22) 0 60px, transparent 61px),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.14) 0 110px, transparent 111px),
    radial-gradient(circle at 70% 120%, rgba(0,0,0,.18) 0 140px, transparent 141px),
    linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, #000));
}
.sf-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 45%); pointer-events: none; }
@media (min-width: 768px) { .sf-cover { height: 250px; border-radius: 0 0 var(--r-xl) var(--r-xl); } }
.sf-topbar { position: absolute; inset-inline: 0; top: 0; z-index: 3; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; }
.sf-pill { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--r-full); border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sf-topbar .lang-switch > summary { background: rgba(255,255,255,.92); border-color: rgba(255,255,255,.6); box-shadow: var(--shadow-sm); }
.sf-head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 16px 18px; margin-top: -46px; }
.sf-logo { --size: 92px; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--brand-soft); color: var(--brand); }
.sf-name { font-size: 1.45rem; margin: 10px 0 2px; }
.sf-bio { color: var(--ink-2); max-width: 540px; margin: 2px auto 6px; white-space: pre-line; }
.sf-loc { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .86rem; margin: 0 0 4px; }
.sf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; }
.sf-social { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink-2); transition: color .15s, border-color .15s, transform .15s; }
.sf-social:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
@media (min-width: 768px) { .sf-name { font-size: 1.8rem; } .sf-logo { --size: 112px; } .sf-head { margin-top: -56px; } }

/* notes + closed banner */
.sf-notes { display: grid; gap: 10px; }
@media (min-width: 768px) { .sf-notes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.sf-note { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.sf-note-icon { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sf-note-text { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; line-height: 1.5; }
.sf-note-text small { color: var(--muted); font-weight: 650; font-size: .78rem; }
.sf-note-text span { white-space: pre-line; overflow-wrap: anywhere; }
.sf-closed { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid #f7e0b5; color: #78350f; }
.sf-closed p { margin: 2px 0 0; font-size: .92rem; }
.sf-closed-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--warn); }

/* category tabs */
.sf-tabs-wrap { position: sticky; top: 0; z-index: 40; padding: 10px 16px; margin-bottom: 4px; background: rgba(244,246,248,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); }
@media (min-width: 768px) { .sf-tabs-wrap { padding-inline: 24px; } }
.sf-tabs .tab.is-active { background: var(--brand); border-color: var(--brand); }

/* product grid */
.sf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 16px 8px; }
@media (min-width: 640px) { .sf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .sf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-inline: 24px; } }
.sf-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.sf-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sf-card-link { display: block; color: inherit; text-decoration: none !important; }
.sf-card-media { position: relative; aspect-ratio: 1; background: var(--brand-soft); overflow: hidden; }
.sf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.sf-card:hover .sf-card-media img { transform: scale(1.04); }
.sf-ph { width: 100%; height: 100%; display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 40%, #fff); background: linear-gradient(135deg, var(--brand-soft), #fff); }
.sf-ph .i { width: 38%; height: 38%; stroke-width: 1.3; }
.sf-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 9px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: .74rem; font-weight: 800; direction: ltr; box-shadow: 0 2px 6px rgba(220,38,38,.35); }
.sf-soldout { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.5); }
.sf-soldout span { padding: 5px 12px; border-radius: var(--r-full); background: rgba(11,19,36,.82); color: #fff; font-size: .8rem; font-weight: 700; }
.sf-card.is-soldout .sf-card-media img { filter: grayscale(.75); }
.sf-card-body { padding: 10px 12px 12px; }
.sf-card-name { font-size: .93rem; font-weight: 650; line-height: 1.4; margin: 0 0 6px; min-height: 2.8em; }
html[lang="ar"] .sf-card-name { line-height: 1.5; min-height: 3em; }
.sf-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; padding-inline-end: 38px; }
.sf-price-now { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.sf-price s { color: var(--faint); font-size: .8rem; }
.sf-quick { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .12s; }
.sf-quick:active { transform: scale(.9); }

/* floating cart */
.sf-fab {
  position: fixed; z-index: 700; left: 50%; bottom: calc(14px + var(--safe-bottom)); transform: translateX(-50%);
  width: min(440px, calc(100% - 28px)); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; min-height: 58px;
  border: 0; border-radius: var(--r-full); background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 18px 40px -12px rgba(11,19,36,.55); animation: sf-fab-in .35s var(--ease);
}
[dir="rtl"] .sf-fab { padding: 8px 14px 8px 8px; }
.sf-fab-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; }
.sf-fab-icon .i { width: 26px; height: 26px; }
.sf-fab-count { position: absolute; top: -4px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wa); color: #fff; font-size: .72rem; display: grid; place-items: center; border: 2px solid var(--ink); }
.sf-fab-label { flex: 1; text-align: start; }
.sf-fab-total { padding: 9px 14px; border-radius: var(--r-full); background: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-fab.is-bump { animation: sf-bump .45s var(--ease); }
@keyframes sf-fab-in { from { opacity: 0; transform: translate(-50%, 20px); } }
@keyframes sf-bump { 35% { transform: translateX(-50%) scale(1.05); } }
.sf-has-buybar .sf-fab { bottom: calc(88px + var(--safe-bottom)); }
@media (min-width: 900px) { .sf-has-buybar .sf-fab { bottom: calc(18px + var(--safe-bottom)); } }

/* product detail (modal + page) */
.sf-gallery-wrap { position: relative; background: var(--brand-soft); }
.sf-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; aspect-ratio: 1; }
.sf-gallery::-webkit-scrollbar { display: none; }
.sf-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; background-size: cover; background-position: center; }
.sf-slide img { width: 100%; height: 100%; object-fit: cover; }
.sf-dots { position: absolute; inset-inline: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.sf-dots span { width: 7px; height: 7px; border-radius: 7px; background: rgba(255,255,255,.65); box-shadow: 0 0 0 1px rgba(0,0,0,.08); transition: width .25s var(--ease), background .25s; }
.sf-dots span.is-active { width: 20px; background: #fff; }
.sf-gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.sf-gal-btn.is-prev { inset-inline-start: 12px; }
.sf-gal-btn.is-next { inset-inline-end: 12px; }
@media (hover: hover) and (min-width: 640px) { .sf-gal-btn { display: grid; } }
.sf-detail-body { padding: 18px 20px 6px; }
.sf-detail-name { font-size: 1.3rem; margin: 0 0 6px; }
.sf-detail-price { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.sf-detail-price s { color: var(--faint); font-size: .8em; font-weight: 600; }
.sf-desc { color: var(--ink-2); line-height: 1.75; margin-bottom: 18px; overflow-wrap: anywhere; }
.sf-opt { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sf-opt legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.sf-opt .choice span small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.sf-opt .choice input:checked + span small { color: inherit; }
.sf-opt .field-error { margin-top: 8px; }
.sf-opt.is-error .choice span { border-color: var(--danger); }
.sf-opt.is-error .choices { animation: sf-shake .4s; }
@keyframes sf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.sf-buy { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; padding: 12px 20px calc(12px + var(--safe-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line-2); }
.sf-buy-note { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r); background: var(--line-2); color: var(--ink-2); font-weight: 650; text-align: center; padding: 8px 12px; }
.sf-buy-note.is-soldout { background: var(--danger-soft); color: var(--danger); }
.sf-qty { display: flex; align-items: center; flex: none; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.sf-qty button { width: 42px; height: 50px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.sf-qty button:active { background: var(--line-2); }
.sf-qty output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.sf-add-btn { flex: 1; min-width: 0; padding-inline: 14px; }
.sf-add-price { font-weight: 600; opacity: .9; font-variant-numeric: tabular-nums; }
.sf-add-btn { overflow: hidden; }
.sf-add-btn > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 419.98px) {
  .sf-add-btn { padding-inline: 10px; gap: 6px; font-size: .93rem; }
  .sf-add-btn > .i { display: none; }
  .sf-qty button { width: 38px; }
  .sf-buy { padding-inline: 16px; }
}
@media (max-width: 339.98px) { .sf-add-price { display: none; } }
#sf-cart-title { display: flex; align-items: center; gap: 8px; }

.sf-product-modal .modal-panel { padding-bottom: 0; overflow: hidden; display: flex; flex-direction: column; }
.sf-product-modal #sf-product-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.sf-product-modal .modal-panel::before { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 4; background: rgba(255,255,255,.85); }
.sf-pm-close { position: absolute; top: 16px; inset-inline-end: 14px; z-index: 6; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.sf-product-modal .sf-gallery-wrap { border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
@media (min-width: 640px) {
  .sf-product-modal .modal-panel { max-width: 560px; }
}
@media (min-width: 900px) {
  .sf-product-modal .modal-panel { max-width: 940px; flex-direction: row; }
  .sf-product-modal #sf-product-body { width: 100%; display: flex; overflow: hidden; }
  .sf-product-modal .sf-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; width: 100%; max-height: 88vh; min-height: min(540px, 84vh); }
  .sf-product-modal .sf-gallery-wrap { grid-row: 1 / span 2; border-radius: 0; }
  .sf-product-modal .sf-gallery { height: 100%; aspect-ratio: auto; }
  .sf-product-modal .sf-detail-body { overflow-y: auto; padding: 28px 28px 10px; }
  .sf-product-modal .sf-buy { padding: 14px 28px; }
}

/* product page */
.sf-pagebar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.sf-back { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 700; text-decoration: none !important; }
.sf-pagebar .sf-pill { border-color: var(--line); box-shadow: none; }
.sf-product-main { background: #fff; }
@media (min-width: 900px) {
  .sf-product-main { margin: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
  .sf-product-main .sf-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sf-product-main .sf-gallery-wrap { grid-row: 1 / span 2; }
  .sf-product-main .sf-detail-body { padding: 32px 32px 8px; }
  .sf-product-main .sf-detail-name { font-size: 1.7rem; }
  .sf-product-main .sf-buy { position: static; align-self: start; padding: 8px 32px 32px; border: 0; background: none; }
}
.sf-more { margin-top: 22px; }
.sf-section-head { padding: 0 16px; margin-bottom: 4px; }
.sf-section-head h2 { font-size: 1.1rem; margin: 0; }
.sf-section-head a { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
@media (min-width: 1000px) { .sf-section-head { padding-inline: 24px; } }

/* cart sheet */
.sf-lines { display: flex; flex-direction: column; }
.sf-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sf-line-img { width: 62px; height: 62px; flex: none; border-radius: 12px; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; border: 1px solid var(--line); }
.sf-line-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-line-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sf-line-name { font-weight: 650; line-height: 1.35; }
.sf-line-opt { color: var(--muted); font-size: .84rem; }
.sf-line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sf-line-total { font-weight: 800; }
.sf-qty-sm { border-radius: var(--r-sm); }
.sf-qty-sm button { width: 34px; height: 34px; }
.sf-qty-sm .i { width: 1.05em; height: 1.05em; }
.sf-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 18px; font-size: 1.1rem; font-weight: 800; }
.sf-order-form { gap: 14px; padding-top: 16px; border-top: 1px dashed var(--line); }
.sf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
.sf-success { text-align: center; padding: 12px 4px 4px; }
.sf-success-icon { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: var(--wa-dark); animation: pop-in .4s var(--ease); box-shadow: 0 0 0 10px #f0fdf4; }
.sf-success-icon .i { width: 42px; height: 42px; stroke-width: 2.6; }
.sf-success h3 { font-size: 1.25rem; }

/* footer */
.sf-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px 24px; text-align: center; }
.sf-cta { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 440px; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: start; text-decoration: none !important; box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; }
.sf-cta:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.sf-cta .brand-mark { width: 38px; height: 38px; }
.sf-cta-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sf-cta-text strong { font-size: .95rem; }
.sf-cta-text small { color: var(--muted); }
.sf-cta > .i { color: var(--brand); }
.sf-footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .82rem; color: var(--faint); }
.sf-footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.sf-report-store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); margin-bottom: 18px; min-width: 0; }

/* == area: merchant == */
.badge-gray { background: var(--line-2); color: var(--muted); }
.dash-h2 { font-size: 1.08rem; }

/* store link hero */
.share-hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 18px; color: #fff;
  background: radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #065f46 0%, #047857 45%, #0d9488 100%);
  box-shadow: 0 18px 40px -18px rgba(4, 120, 87, .6); }
.share-hero::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.share-hero-top { display: flex; align-items: center; gap: 14px; min-width: 0; position: relative; z-index: 1; }
.share-hero-avatar { border: 3px solid rgba(255,255,255,.35); background: #fff; color: var(--brand); }
.share-hero-label { font-size: .82rem; font-weight: 650; opacity: .82; }
.share-hero-link { display: block; color: #fff; font-weight: 800; font-size: 1.12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.share-hero-link:hover { color: #fff; }
.share-hero-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.share-hero-actions .btn { min-width: 0; padding-inline: 10px; }
.share-hero-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .share-hero { padding: 24px; } .share-hero-actions { grid-template-columns: repeat(4, auto); justify-content: start; } .share-hero-link { font-size: 1.3rem; } }
.btn-light { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: transparent; }
.btn-light:hover { background: #f0fdf7; }
.btn-glass { --btn-bg: rgba(255,255,255,.14); --btn-fg: #fff; --btn-bd: rgba(255,255,255,.22); }
.btn-glass:hover { background: rgba(255,255,255,.24); }

.qr-frame { background: var(--bg); border-radius: var(--r-lg); padding: 14px; display: grid; place-items: center; }
.qr-canvas { width: 100%; max-width: 300px; height: auto; border-radius: 16px; box-shadow: var(--shadow); background: #fff; }

/* continue setup / checklist / progress */
.onboard-cta { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), #fff 70%); }
.onboard-cta strong { display: block; }
.onboard-cta .muted { display: block; font-size: .88rem; }
.onboard-cta-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.progress { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, var(--brand)); transition: width .6s var(--ease); }
[dir="rtl"] .progress > span { background: linear-gradient(270deg, #10b981, var(--brand)); }
.progress.is-full > span { background: var(--accent); }
.checklist-body { padding-top: 14px; }
.checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
@media (min-width: 768px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; transition: background .15s, border-color .15s; }
.checklist a:hover { background: #fafbfc; border-color: var(--line); }
.check-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #cbd5e1; display: grid; place-items: center; flex: none; color: #fff; }
.check-dot .i { width: 15px; height: 15px; stroke-width: 3; }
.check-title { display: block; font-weight: 650; font-size: .93rem; }
.check-sub { display: block; font-size: .8rem; color: var(--muted); }
.checklist .is-done .check-dot { border: 0; background: var(--ok); }
.checklist .is-done .check-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* stats & chart extras */
a.stat-link { color: inherit; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
a.stat-link:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-of { font-size: .55em; color: var(--faint); font-weight: 700; margin-inline-start: 2px; }
.chart-stack { position: relative; flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.chart-stack .chart-bar { width: 72%; }
.chart-bar.is-order { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 34%; max-width: 14px; background: var(--accent); border-radius: 4px 4px 2px 2px; box-shadow: 0 0 0 2px var(--card); }
.chart.is-dense { gap: 2px; }
.chart.is-dense .chart-stack .chart-bar { width: 86%; border-radius: 3px 3px 1px 1px; }
.chart-tip { display: none; bottom: auto; top: -6px; transform: translate(-50%, -100%); }
.chart-col:hover .chart-tip, .chart-col:focus .chart-tip { display: block; }
.chart-col:first-child .chart-tip, .chart-col:nth-child(2) .chart-tip { left: 0; transform: translate(0, -100%); }
.chart-col:last-child .chart-tip, .chart-col:nth-last-child(2) .chart-tip { left: auto; right: 0; transform: translate(0, -100%); }
.chart-empty { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: var(--r); background: var(--bg); color: var(--muted); font-size: .9rem; }
.chart-empty p { margin: 0; }
.chart-empty .i { color: var(--faint); width: 28px; height: 28px; }
.empty-sm { padding: 28px 18px; }
.empty-sm .empty-icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 4px; }
.empty-sm .empty-icon .i { width: 24px; height: 24px; }
.rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); font-weight: 800; font-size: .82rem; flex: none; }
.list-item:first-child .rank { background: var(--accent-soft); color: var(--warn); }
.list-thumb-sm { width: 42px; height: 42px; border-radius: 10px; }
.mini-bar { display: block; height: 5px; border-radius: 5px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.mini-bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); opacity: .75; }
.order-num { flex: none; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .86rem; text-align: center; }

/* plan */
.plan-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.plan-card .grow { min-width: 200px; }
.plan-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--warn); }
.plan-card.is-pro { background: linear-gradient(135deg, #fff7ed, #fff); border-color: #fde3c4; }
.plan-card.is-pro .plan-icon { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }

/* onboarding */
.ob-wrap { max-width: 520px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; }
.ob-progress .steps span { height: 7px; }
.ob-card h1 { font-size: 1.45rem; }
.ob-card .card-body { padding: 22px 18px; }
@media (min-width: 640px) { .ob-card .card-body { padding: 32px; } }
.ob-logo { position: relative; display: grid; place-items: center; width: 148px; height: 148px; margin: 8px auto 0; border-radius: 50%; cursor: pointer;
  border: 3px dashed #cbd5e1; background: var(--bg) center / cover no-repeat; color: var(--muted); transition: border-color .15s, transform .15s; }
.ob-logo:hover { border-color: var(--brand); color: var(--brand); transform: scale(1.02); }
.ob-logo input, .ob-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.ob-logo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .82rem; font-weight: 650; text-align: center; padding: 10px; pointer-events: none; }
.ob-logo-edit { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 36px; height: 36px; border-radius: 50%; display: none; place-items: center; background: var(--brand); color: #fff; border: 3px solid var(--card); pointer-events: none; }
.ob-logo.has-image { border-style: solid; border-color: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.ob-logo.has-image .ob-logo-empty { display: none; }
.ob-logo.has-image .ob-logo-edit { display: grid; }
.ob-store-name { text-align: center; font-weight: 800; font-size: 1.15rem; margin-top: -4px; }
.ob-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-lg); border: 2px dashed #cbd5e1; background: var(--bg) center / cover no-repeat; color: var(--muted); cursor: pointer; transition: border-color .15s, background-color .15s; overflow: hidden; }
.ob-photo:hover { border-color: var(--brand); background-color: var(--brand-soft); color: var(--brand); }
.ob-photo-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 16px; pointer-events: none; }
.ob-photo.has-image { border-style: solid; border-color: var(--line); }
.ob-photo.has-image .ob-photo-empty { display: none; }
.is-invalid .ob-photo { border-color: var(--danger); }
.ob-celebrate { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: radial-gradient(circle, #fff7d6, var(--accent-soft)); animation: ob-pop .6s var(--ease); }
@keyframes ob-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.ob-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; margin: 18px 0 12px; border-radius: var(--r); border: 1.5px solid var(--brand); background: var(--brand-soft); font-weight: 800; color: var(--brand); text-align: start; }
[dir="rtl"] .ob-link { padding: 8px 14px 8px 8px; }
.ob-link > span { flex: 1; min-width: 0; display: block; }
.ob-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ob-actions .btn { padding-inline: 8px; }
.ob-tips { list-style: none; margin: 20px 0; padding: 14px; border-radius: var(--r); background: var(--bg); display: grid; gap: 10px; text-align: start; font-size: .9rem; color: var(--ink-2); }
.ob-tips li { display: flex; gap: 10px; align-items: flex-start; }
.ob-tips .i { color: var(--brand); margin-top: 2px; }

/* settings */
.settings-tabs { position: sticky; top: calc(var(--header-h) + 6px); z-index: 40; padding: 6px; margin: 0 -6px 16px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r-full); }
.settings-card { scroll-margin-top: calc(var(--header-h) + 70px); }
.settings-card .card-head h2 { display: flex; align-items: center; gap: 10px; }
.settings-card .card-head h2 .i { color: var(--brand); }
.textarea-sm { min-height: 76px; }
.brand-preview { border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.brand-cover { position: relative; aspect-ratio: 3 / 1; min-width: 0; background: linear-gradient(135deg, var(--brand-soft), #dff3ea 50%, #fdf3df) center / cover no-repeat; }
.brand-cover-actions { position: absolute; top: 10px; inset-inline-end: 10px; width: max-content; }
.brand-cover-actions .btn { box-shadow: var(--shadow); cursor: pointer; }
.brand-logo-row { display: flex; align-items: flex-start; gap: 14px; padding: 0 16px 16px; position: relative; }
.brand-logo { position: relative; flex: none; width: 92px; height: 92px; margin-top: -42px; border-radius: 50%; border: 4px solid var(--card); box-shadow: var(--shadow); background: var(--brand-soft) center / cover no-repeat; color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 2.1rem; }
.brand-logo.has-image > span { display: none; }
.brand-logo-btn { position: absolute; bottom: -2px; inset-inline-end: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; border: 3px solid var(--card); cursor: pointer; font-size: 15px; }
.brand-logo-btn:hover { background: var(--brand); }
.brand-logo-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; min-width: 0; }
.brand-logo-meta strong { font-size: 1.05rem; }
.slug-warning { margin-top: 6px; padding: 10px 12px; font-size: .86rem; }
.social-input .addon { padding-inline: 12px; }
.social-input.is-instagram .addon { color: #d62976; }
.social-input.is-tiktok .addon { color: #111; }
.social-input.is-facebook .addon { color: #1877f2; }
.social-input.is-snapchat .addon { color: #e5b800; }
.social-input.is-twitter_x .addon { color: #111; }

/* account */
.account-page .account-profile { order: 1; }
.account-page .account-password { order: 2; }
.account-page .account-session { order: 3; }
.account-page.must-change .account-password { order: 0; }

/* == area: merchant-catalog == */
/* plan usage meter + upgrade card */
.meter { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, var(--brand)); transition: width .6s var(--ease); }
.plan-meter.is-full .meter span { background: linear-gradient(90deg, #f59e0b, #f97316); }
.plan-meter .card-body { padding-block: 14px; }
.upgrade { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(135deg, var(--accent-soft), #fff); border: 1px solid #f7e0b5; }
.upgrade-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, #f97316); }

/* product rows */
.product-row { padding-inline: 14px; gap: 12px; }
@media (min-width: 768px) { .product-row { padding-inline: 18px; gap: 14px; } }
.product-row .title { color: var(--ink); text-decoration: none !important; }
.product-row .title:hover { color: var(--brand); }
.product-row .meta { align-items: center; }
.price-now { font-weight: 700; color: var(--ink-2); }
.price-old { color: var(--faint); font-size: .85em; }
.product-row.is-soldout .list-thumb img { filter: grayscale(.85); opacity: .7; }
.product-row.is-hidden-plan { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(245, 158, 11, .05) 10px 20px); }
.product-row .end { gap: 4px; }
.product-row .drag-handle { margin-inline-start: -6px; }

/* switch rendered as a button (submits without JS) */
.switch-btn { border: 0; background: none; padding: 6px; margin: 0; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-full); }
.switch-btn:disabled { opacity: .6; cursor: progress; }
.switch-btn[aria-checked="true"] .switch-ui { background: var(--brand); }
.switch-btn[aria-checked="true"] .switch-ui::after { transform: translateX(18px); }
[dir="rtl"] .switch-btn[aria-checked="true"] .switch-ui::after { transform: translateX(-18px); }
.switch-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }

/* product form */
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.product-grid > * { min-width: 0; }
@media (min-width: 1100px) { .product-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 20px; } }
.product-form .card-head h2 { display: flex; align-items: center; gap: 8px; }
.product-form .card-head h2 .i { color: var(--brand); }
.img-editor .upload-tile { aspect-ratio: 1; }
.product-form [data-image-order] ~ .hint, .product-form [data-image-order] ~ .field-error { margin-top: 12px; }
.img-editor .thumb { transition: opacity .2s, transform .2s; }
.img-editor .thumb.is-new { outline: 2px dashed color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: -2px; }
.img-editor .thumb-remove { z-index: 2; }
.img-editor .thumb-remove .i { pointer-events: none; }
.thumb-main { position: absolute; bottom: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--warn); cursor: pointer; box-shadow: var(--shadow-sm); }
.thumb-main:hover { background: #fff; transform: scale(1.06); }
.img-editor .thumb:first-child .thumb-main { display: none; }
.img-editor .thumb.is-removed .thumb-main, .img-editor .thumb.is-removed .thumb-badge { display: none; }
.img-editor .thumb.is-removed .thumb-remove { background: var(--danger); }
.avail-switch { padding: 12px 14px; border-radius: var(--r); background: var(--line-2); }
.product-form .grid-2 > .field { justify-content: flex-end; }
@media (max-width: 639.98px) { .product-form .savebar .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; white-space: normal; text-align: center; line-height: 1.25; } }

/* options editor */
.opt-groups { display: flex; flex-direction: column; gap: 12px; }
.opt-groups:not(:empty) { margin-bottom: 12px; }
.opt-group { border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px; background: #fcfdfe; animation: pop-in .2s var(--ease); }
.opt-group-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.opt-group-head .input { font-weight: 650; }
.opt-values { display: flex; flex-direction: column; gap: 8px; }
.opt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) auto; gap: 6px; align-items: center; }
.opt-delta .addon { padding-inline: 8px; font-size: .82rem; }
.opt-delta .input { text-align: center; padding-inline: 4px; }
@media (max-width: 400px) { .opt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 118px) auto; } .opt-delta .addon:first-child { display: none; } }

/* categories */
.cat-add .row .input { min-width: 0; }
.cat-item.is-editing { background: var(--brand-soft); }
.cat-item .meta a { color: var(--muted); }
.cat-item .meta a:hover { color: var(--brand); }
.cat-rename { flex: 1 1 auto; min-width: 0; }

/* orders list */
.order-row { gap: 12px; }
.order-num { flex: none; min-width: 58px; padding: 6px 8px; border-radius: 10px; text-align: center; font-weight: 800; font-size: .86rem; background: var(--line-2); color: var(--ink-2); direction: ltr; }
.order-row.is-new .order-num { background: var(--info-soft); color: var(--info); }
.order-row.is-confirmed .order-num { background: var(--warn-soft); color: var(--warn); }
.order-row.is-delivered .order-num { background: var(--ok-soft); color: var(--ok); }
.order-row.is-cancelled { opacity: .7; }
.order-row.is-cancelled .order-num { text-decoration: line-through; }
.order-end { flex-direction: column; align-items: flex-end; gap: 4px; }

/* order detail */
.order-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.order-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.order-steps li + li::before { content: ""; position: absolute; top: 15px; inset-inline-end: calc(50% + 20px); inset-inline-start: calc(-50% + 20px); height: 3px; border-radius: 3px; background: var(--line); }
.order-steps li.is-done + li::before, .order-steps li.is-done + li.is-current::before { background: var(--brand); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-weight: 800; font-size: .85rem; border: 2px solid var(--line); position: relative; z-index: 1; }
.order-steps li.is-done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.order-steps li.is-current .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); }
.step-label { font-size: .84rem; font-weight: 650; color: var(--muted); }
.order-steps li.is-done .step-label, .order-steps li.is-current .step-label { color: var(--ink); }
.order-actions { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.order-actions .dropdown > summary { height: 100%; }
.order-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.order-item { align-items: flex-start; }
.qty-pill { flex: none; min-width: 40px; padding: 4px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; text-align: center; font-size: .88rem; direction: ltr; }
.order-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-top: 1px dashed var(--line); font-size: 1.05rem; }
.order-total strong { font-size: 1.3rem; }
.order-total-hint { padding: 0 18px 16px; }
.detail-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.detail-list dt { font-size: .82rem; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
.detail-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pre-line { white-space: pre-line; }
.order-grid .card-head h2, .cat-add .label { display: flex; align-items: center; gap: 8px; }
.order-grid .card-head h2 .i { color: var(--brand); }
.order-actions .dropdown-menu { inset-inline-end: auto; inset-inline-start: 0; }

/* == area: admin == */
.is-admin .card-head h2 { display: flex; align-items: center; gap: 8px; }
.adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.adm-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 479.98px) { .adm-stats-3 .stat { padding: 12px; } .adm-stats-3 .stat-icon { display: none; } .adm-stats-3 .stat-value { font-size: 1.35rem; } }
.stat-icon.is-red { background: var(--danger-soft); color: var(--danger); }
.adm-chart { height: 160px; gap: 3px; }
@media (min-width: 768px) { .adm-chart { height: 200px; gap: 5px; } }
.adm-empty-sm { padding: 28px 16px; }

/* store identity cell */
.adm-store { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adm-store-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.adm-store-name { font-weight: 700; color: var(--ink); max-width: 260px; }
.adm-store-slug { font-size: .82rem; color: var(--muted); max-width: 220px; }
.adm-store-slug:hover { color: var(--brand); }
.adm-rank { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: .8rem; font-weight: 800; }
.list-item:first-child .adm-rank { background: var(--accent-soft); color: var(--warn); }
.adm-metric { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.list-item .end .adm-metric + .small { display: none; }
@media (min-width: 480px) { .list-item .end .adm-metric + .small { display: inline; } }

/* filters */
.adm-filters { display: grid; gap: 10px; padding: 12px; grid-template-columns: 1fr 1fr; }
.adm-search { grid-column: 1 / -1; }
.adm-filter-actions { grid-column: 1 / -1; }
.adm-filter-actions .btn-dark { flex: 1; }
@media (min-width: 900px) {
  .adm-filters { grid-template-columns: minmax(0, 1fr) 170px 150px auto; align-items: center; padding: 14px; }
  .adm-search, .adm-filter-actions { grid-column: auto; }
  .adm-filter-actions .btn-dark { flex: none; }
}

/* merchants table */
.adm-table tr.is-suspended td { background: #fffafa; }
.adm-owner { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.adm-expiry { display: block; margin-top: 4px; }
.adm-td-action { text-align: end; width: 1%; white-space: nowrap; }
@media (max-width: 767.98px) {
  .adm-table tr { position: relative; }
  .adm-table .adm-owner { align-items: flex-end; text-align: end; }
  .adm-table td.td-main { padding-bottom: 8px; padding-inline-end: 96px; }
  .adm-table td.adm-td-action { position: absolute; top: 14px; inset-inline-end: 16px; width: auto; padding: 0; display: block; }
  .adm-table td .row { justify-content: flex-end; }
}

/* temporary password */
.adm-temp { padding: 18px; margin-bottom: 16px; border: 2px solid #f7e0b5; background: linear-gradient(180deg, var(--warn-soft), #fff 70%); display: flex; flex-direction: column; gap: 14px; animation: pop-in .3s var(--ease); }
.adm-temp-head { display: flex; gap: 12px; align-items: flex-start; }
.adm-temp-pass { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: var(--r); background: #fff; border: 1px dashed #e8c98a; }
[dir="rtl"] .adm-temp-pass { padding: 10px 16px 10px 10px; }
.adm-temp-pass code { background: none; padding: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: .08em; color: var(--ink); }

/* merchant profile header */
.adm-profile { overflow: hidden; }
.adm-profile-cover { height: 96px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #fff)); background-size: cover; background-position: center; }
@media (min-width: 768px) { .adm-profile-cover { height: 130px; } }
.adm-profile-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 0 18px 18px; }
.adm-profile-logo { margin-top: -44px; border: 4px solid var(--card); box-shadow: var(--shadow-sm); background: var(--card); }
.adm-profile-info { flex: 1 1 220px; min-width: 0; }
.adm-profile-info h1 { font-size: 1.35rem; margin: 0; overflow-wrap: anywhere; }
.adm-profile-link { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.adm-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.adm-profile-actions .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .adm-profile-actions { width: auto; } .adm-profile-actions .btn { flex: none; } .adm-profile-body { padding: 0 24px 22px; } }

.adm-detail-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .adm-detail-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .adm-slugs-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }

.adm-dl { margin: 0; padding: 6px 18px 14px; display: grid; }
.adm-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.adm-dl > div:last-child { border-bottom: 0; }
.adm-dl dt { color: var(--muted); font-size: .88rem; font-weight: 600; flex: none; }
.adm-dl dd { margin: 0; font-weight: 600; text-align: end; min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .adm-dl { padding: 6px 24px 16px; }
  .adm-dl-cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .adm-dl-cols > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
.adm-info-foot { padding: 0 18px 16px; display: flex; gap: 6px; align-items: center; }
@media (min-width: 768px) { .adm-info-foot { padding: 0 24px 18px; } }

.adm-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.adm-perks li { display: flex; align-items: center; gap: 8px; }
.adm-perks .i { color: var(--ok); }
.adm-action { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-action .hint { margin-top: 2px; }
.adm-hr { margin: 0; border-top-color: var(--line-2); }

.adm-danger { border-color: #f5c8c8; }
.adm-danger .card-head { background: var(--danger-soft); color: var(--danger); border-bottom-color: #f5d4d4; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.adm-danger .card-head h2 { color: var(--danger); }
.adm-danger .label { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
.adm-delete-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-delete-row .input { flex: 1 1 200px; text-align: left; }

/* reports */
.adm-report { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.adm-report.is-open { border-inline-start: 4px solid var(--danger); }
.adm-report-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.adm-report-msg { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--bg); color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.adm-report-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .85rem; color: var(--muted); }
.adm-report-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.adm-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-report-actions form { margin-inline-start: auto; }
@media (max-width: 479.98px) { .adm-report-actions > * { flex: 1 1 auto; } .adm-report-actions form .btn { width: 100%; } }

/* reserved slug chips */
.adm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip { display: inline-flex; align-items: center; gap: 4px; padding-block: 4px; padding-inline: 12px 4px; border-radius: var(--r-full); background: var(--line-2); border: 1px solid var(--line); font-family: var(--mono); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.adm-chip form { display: contents; }
.adm-chip button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.adm-chip button:hover { background: var(--danger-soft); color: var(--danger); }
.adm-chip.is-used { background: var(--warn-soft); border-color: #f7e0b5; color: var(--warn); }
.adm-chip.is-used a { color: var(--warn); display: grid; place-items: center; }
