/* =========================================================================
   Aroitech Shop design system: "Hanar" (pomegranate)
   RTL-first, logical properties everywhere, light + dark.
   ========================================================================= */

:root {
  --bg: #F6F4F6;
  --surface: #FFFFFF;
  --surface-2: #F1EDF0;
  --surface-3: #E9E3E8;
  --ink: #211821;
  --ink-2: #4B3F4A;
  --muted: #7B707A;
  --line: #E6E0E5;
  --line-strong: #D5CCD3;

  --brand: #B0243F;
  --brand-hover: #971C35;
  --brand-deep: #6E1128;
  --brand-soft: #FBEAEE;
  --brand-ink: #FFFFFF;
  --seed: #F2C6CF;

  --ok: #23734A;   --ok-soft: #E3F2E9;
  --warn: #9A5B00; --warn-soft: #FFF1D6;
  --info: #2B58A6; --info-soft: #E6EDFA;
  --danger: #B42318; --danger-soft: #FDE8E6;
  --violet: #6A3FA0; --violet-soft: #EFE7F8;

  --font-display: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Noto Sans Arabic", "Noto Sans", "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Consolas, monospace;

  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --shadow-1: 0 1px 0 rgba(33, 24, 33, .04), 0 1px 3px rgba(33, 24, 33, .06);
  --shadow-2: 0 1px 0 rgba(33, 24, 33, .04), 0 12px 32px -14px rgba(33, 24, 33, .28);
  --shadow-brand: 0 10px 30px -12px rgba(176, 36, 63, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar: 264px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141014; --surface: #1C171C; --surface-2: #241E24; --surface-3: #2E272E;
    --ink: #F3EDF2; --ink-2: #D2C8D0; --muted: #A095A0; --line: #2F282F; --line-strong: #3E353E;
    --brand: #E0506C; --brand-hover: #EA6B84; --brand-deep: #F7A9B8; --brand-soft: #3A1A23; --seed: #5A2432;
    --ok: #5CC28A; --ok-soft: #173125; --warn: #E6A94A; --warn-soft: #33260F; --info: #7EA6F0; --info-soft: #1A2640;
    --danger: #F2796B; --danger-soft: #3A1B18; --violet: #B695E3; --violet-soft: #2A2038;
    --shadow-1: 0 1px 0 rgba(0,0,0,.3); --shadow-2: 0 16px 40px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--seed); color: var(--ink); }

.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; flex: none; }
.i-lg { width: 26px; height: 26px; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; }
.logo small { font-weight: 500; color: var(--muted); font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: var(--r-sm);
  background: var(--b-bg); color: var(--b-ink); border: 1px solid var(--b-line);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s var(--ease), border-color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: var(--brand); --b-ink: var(--brand-ink); --b-line: transparent; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { --b-bg: var(--ink); --b-ink: var(--surface); --b-line: transparent; }
.btn-dark:hover { background: var(--ink-2); }
.btn-soft { --b-bg: var(--brand-soft); --b-ink: var(--brand); --b-line: transparent; }
.btn-soft:hover { background: var(--seed); }
.btn-ghost { --b-bg: transparent; --b-line: transparent; }
.btn-danger { --b-bg: var(--danger-soft); --b-ink: var(--danger); --b-line: transparent; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink-2); }
.label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-repeat: no-repeat; background-position: 16px 50%, 21px 50%; padding-inline-start: 14px; }
[dir="ltr"] .select { background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input[type="number"], .input.num { direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }
[dir="ltr"] .input.num { text-align: start; }
.hint { font-size: 12.5px; color: var(--muted); }
.error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; direction: ltr; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: inset-inline-start .2s var(--ease); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { inset-inline-start: 21px; }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Language tabs inside forms */
.lang-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.lang-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lang-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.lang-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.lang-tabs .dot.on { background: var(--ok); }
.lang-pane[hidden] { display: none; }

/* ---------- Cards, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-md) var(--r-md); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 600; font-family: var(--font-display); white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-pending { background: var(--warn-soft); color: var(--warn); }
.b-confirmed, .b-processing { background: var(--info-soft); color: var(--info); }
.b-shipped { background: var(--violet-soft); color: var(--violet); }
.b-delivered, .b-active, .b-ok { background: var(--ok-soft); color: var(--ok); }
.b-cancelled, .b-returned, .b-expired, .b-suspended, .b-rejected, .b-danger { background: var(--danger-soft); color: var(--danger); }
.b-trial, .b-brand { background: var(--brand-soft); color: var(--brand); }
.b-draft, .b-archived { background: var(--surface-2); color: var(--muted); }
.b-approved { background: var(--ok-soft); color: var(--ok); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 90; inset-inline: 0; top: 16px; display: grid; justify-items: center; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: var(--shadow-2); font-weight: 600; font-size: 14px; animation: toast-in .35s var(--ease) both; }
.toast.is-error { background: var(--danger); color: #fff; }
.toast .i { width: 18px; height: 18px; }
.toast.is-leaving { animation: toast-out .25s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--info-soft); color: var(--info); font-size: 14px; }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert strong { font-family: var(--font-display); }
.alert .grow p { color: inherit; opacity: .9; }

/* =========================================================================
   MARKETING
   ========================================================================= */
.mk { background: var(--surface); }
.mk-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mk-nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.mk-nav.is-stuck { border-bottom-color: var(--line); }
.mk-nav .mk-wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.mk-links { display: flex; gap: 4px; margin-inline-start: 12px; }
.mk-links a { padding: 8px 12px; border-radius: 8px; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mk-links a:hover { background: var(--surface-2); color: var(--ink); }
.mk-nav .actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 880px) { .mk-links { display: none; } .mk-nav .hide-sm { display: none; } }

/* language switch (dropdown via details) */
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 9px; cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); }
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary { background: var(--surface-2); }
.langs .menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 160px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-2); z-index: 60; }
.langs .menu a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.langs .menu a:hover { background: var(--surface-2); }
.langs .menu a.is-current { color: var(--brand); font-weight: 700; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(900px 480px at 85% -10%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 70%),
  radial-gradient(700px 400px at 0% 110%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 70%); }
.hero .mk-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .mk-wrap { grid-template-columns: 1fr; gap: 40px; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-1); }
[dir="rtl"] .hero-kicker { padding: 6px 6px 6px 14px; }
.hero-kicker .pulse { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-size: 12px; }
.hero-kicker .pulse::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; line-height: 1.22; margin: 22px 0 18px; letter-spacing: -.02em; }
.hero h1 .line2 { display: block; color: var(--muted); font-weight: 700; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 36em; line-height: 1.85; }

/* Claim your link */
.claim { margin-top: 30px; display: flex; gap: 8px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); max-width: 560px; }
.claim:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft), var(--shadow-2); }
.claim-url { flex: 1; display: flex; align-items: center; direction: ltr; min-width: 0; padding-inline: 10px; font-size: 16px; font-weight: 600; }
.claim-url input { flex: 1; min-width: 40px; border: 0; outline: 0; background: transparent; padding: 10px 2px; text-align: right; font-weight: 700; color: var(--brand); }
.claim-url span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .claim { flex-direction: column; } .claim .btn { width: 100%; } }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 6px; }
.hero-notes .i { width: 16px; height: 16px; color: var(--ok); }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: 292px; height: 590px; border-radius: 46px; padding: 11px; background: #1a141a; box-shadow: 0 40px 80px -30px rgba(33,24,33,.55), inset 0 0 0 2px #3a303a; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; color: #211821; direction: rtl; }
[dir="ltr"] .phone-screen { direction: ltr; }
.phone-notch { position: absolute; top: 10px; inset-inline-start: 50%; transform: translateX(50%); width: 88px; height: 24px; background: #1a141a; border-radius: 20px; z-index: 3; }
[dir="ltr"] .phone-notch { transform: translateX(-50%); }
.ps-head { padding: 42px 16px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #F0EAEE; }
.ps-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.ps-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; line-height: 1.2; max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-url { font-size: 10.5px; color: #8b8089; direction: ltr; }
.ps-cart { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 10px; background: #F5F1F4; display: grid; place-items: center; }
.ps-cart .i { width: 17px; height: 17px; }
.ps-banner { margin: 12px; height: 118px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.ps-banner::after { content: ""; position: absolute; inset-inline-end: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ps-banner b { font-family: var(--font-display); font-size: 16px; }
.ps-banner small { opacity: .85; font-size: 11.5px; }
.ps-chips { display: flex; gap: 6px; padding: 0 12px 10px; overflow: hidden; }
.ps-chips span { padding: 5px 11px; border-radius: 99px; background: #F5F1F4; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ps-chips span:first-child { background: #211821; color: #fff; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.ps-item { border-radius: 14px; overflow: hidden; background: #FAF7F9; }
.ps-img { height: 96px; }
.ps-item:nth-child(1) .ps-img { background: linear-gradient(160deg, #F6D7C3, #E8A98A); }
.ps-item:nth-child(2) .ps-img { background: linear-gradient(160deg, #D5E4DA, #93B9A0); }
.ps-item:nth-child(3) .ps-img { background: linear-gradient(160deg, #DAD6F0, #A69CD8); }
.ps-item:nth-child(4) .ps-img { background: linear-gradient(160deg, #F3E3B5, #D9B458); }
.ps-meta { padding: 7px 9px 9px; }
.ps-line { height: 7px; border-radius: 4px; background: #E6DEE4; width: 80%; }
.ps-price { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 11.5px; color: var(--brand); }
.ps-order { position: absolute; z-index: 4; inset-inline: 14px; bottom: 18px; padding: 12px 14px; border-radius: 16px; background: rgba(33,24,33,.94); color: #fff; display: flex; gap: 11px; align-items: center; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); animation: order-in 4.8s var(--ease) 1.1s infinite both; }
.ps-order .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); display: grid; place-items: center; flex: none; }
.ps-order .ico .i { width: 18px; height: 18px; }
.ps-order b { display: block; font-family: var(--font-display); font-size: 12.5px; }
.ps-order small { font-size: 11px; opacity: .75; }
@keyframes order-in { 0% { opacity: 0; transform: translateY(24px) scale(.96); } 10%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(10px); } }

.float-card { position: absolute; z-index: 5; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.float-card b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.float-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-a { top: 70px; inset-inline-end: -8px; }
.float-a .ico { background: var(--ok-soft); color: var(--ok); }
.float-b { bottom: 110px; inset-inline-start: -14px; }
.float-b .ico { background: var(--info-soft); color: var(--info); }
@media (max-width: 1100px) { .float-a { inset-inline-end: 0; } .float-b { inset-inline-start: 0; } }
@media (max-width: 420px) { .float-card { display: none; } }

/* Sections */
.mk-section { padding: 96px 0; }
.mk-section.tint { background: var(--bg); }
.mk-head { max-width: 680px; margin-bottom: 48px; }
.mk-head.center { margin-inline: auto; text-align: center; }
.mk-head h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.015em; }
.mk-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); line-height: 1.85; }

/* Showcase marquee */
.showcase { padding: 30px 0; border-block: 1px solid var(--line); background: var(--surface); }
.showcase .mk-wrap { display: flex; align-items: center; gap: 28px; }
.showcase-label { flex: none; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted); max-width: 150px; line-height: 1.5; }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.shop-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; font-weight: 600; font-size: 14px; }
[dir="rtl"] .shop-pill { padding: 8px 8px 8px 16px; }
.shop-pill img, .shop-pill .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.shop-pill .ph { display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.shop-pill small { color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .showcase .mk-wrap { flex-direction: column; align-items: stretch; gap: 14px; } .showcase-label { max-width: none; } }

/* Before / after */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .contrast { grid-template-columns: 1fr; } }
.contrast-col { border-radius: var(--r-lg); padding: 30px; }
.contrast-col h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.contrast-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contrast-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.75; }
.contrast-col li .i { margin-top: 3px; }
.contrast-before { background: var(--surface-2); color: var(--ink-2); }
.contrast-before li .i { color: var(--muted); }
.contrast-after { background: var(--ink); color: var(--surface); }
.contrast-after h3 { color: var(--surface); }
.contrast-after li .i { color: var(--seed); }
.contrast-after .tag { margin-inline-start: auto; background: var(--brand); color: #fff; }

/* Steps: a real sequence */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: 22px; inset-inline-end: 24px; font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--surface-2); }
[lang="ckb"] .step::before, [lang="ar"] .step::before { content: counter(step, arabic-indic); }
.step .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.step h3 { font-size: 19px; margin-bottom: 8px; position: relative; }
.step p { color: var(--ink-2); position: relative; }

/* Feature explorer */
.explorer { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .explorer { grid-template-columns: 1fr; } }
.ex-tabs { display: grid; gap: 8px; }
.ex-tab { display: flex; gap: 14px; text-align: start; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid transparent; background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.ex-tab:hover { background: var(--surface-2); }
.ex-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-2); }
.ex-tab .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ink-2); transition: background .2s, color .2s; }
.ex-tab[aria-selected="true"] .ico { background: var(--brand); color: #fff; }
.ex-tab b { display: block; font-family: var(--font-display); font-size: 15.5px; margin-bottom: 3px; }
.ex-tab span { font-size: 14px; color: var(--muted); line-height: 1.7; }
.ex-panel { border-radius: var(--r-xl); background: linear-gradient(160deg, var(--surface-2), var(--bg)); border: 1px solid var(--line); padding: clamp(18px, 3vw, 34px); min-height: 440px; }
.ex-view[hidden] { display: none; }
.ex-view { animation: view-in .4s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* mini app UI inside explorer */
.mini { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; }
.mini-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.mini-bar .dots { display: flex; gap: 5px; margin-inline-end: 8px; }
.mini-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-av { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; flex: none; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.mini-kpis div { background: var(--surface); padding: 16px; }
.mini-kpis small { color: var(--muted); font-size: 12px; }
.mini-kpis b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-top: 2px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 18px 16px 12px; }
.mini-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--brand-soft); }
.mini-bars i:nth-last-child(-n+3) { background: var(--brand); }
.mini-city { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-city:last-child { border-bottom: 0; }
.mini-lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.mini-lang div { border-radius: 14px; border: 1px solid var(--line); padding: 14px; }
.mini-lang small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 6px; }
.mini-lang b { font-family: var(--font-display); font-size: 15px; }
@media (max-width: 560px) { .mini-lang { grid-template-columns: 1fr; } }

/* Feature grid (quiet) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }
.feature .i-lg { color: var(--brand); margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15px; line-height: 1.8; }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--surface-2); margin: 0 auto 36px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 10px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.billing-toggle .save { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.is-featured { background: var(--ink); color: var(--surface); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(33,24,33,.6); }
.plan.is-featured .muted, .plan.is-featured .plan-list li { color: color-mix(in srgb, var(--surface) 72%, transparent); }
.plan-ribbon { position: absolute; top: -12px; inset-inline-start: 30px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 99px; }
.plan h3 { font-size: 20px; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.plan-list li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.plan.is-featured .plan-list li .i { color: var(--seed); }
.plan-list li.off { opacity: .45; }
.plan-list li.off .i { color: var(--muted); }
.plan .btn { width: 100%; }
.plan.is-featured .btn:not(.btn-primary) { --b-bg: var(--surface); --b-ink: var(--ink); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.compare > div { padding: 30px; }
.compare .them { background: var(--surface-2); }
.compare .us { background: var(--brand-soft); }
.compare h3 { font-size: 16px; margin-bottom: 12px; color: var(--ink-2); }
.compare .big { font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.3; }
.compare .us .big { color: var(--brand); }
.compare p { margin-top: 10px; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s var(--ease); color: var(--muted); }
.faq details[open] summary .i { transform: rotate(45deg); color: var(--brand); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); line-height: 1.9; }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(36px, 6vw, 72px); background: var(--brand); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band::before { width: 420px; height: 420px; inset-inline-end: -120px; top: -160px; }
.cta-band::after { width: 220px; height: 220px; inset-inline-start: 30%; bottom: -140px; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; }
.cta-band p { margin-top: 10px; font-size: 17px; opacity: .88; }
.cta-band .btn { --b-bg: #fff; --b-ink: var(--brand-deep); box-shadow: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.mk-footer { padding: 48px 0 36px; border-top: 1px solid var(--line); }
.mk-footer .mk-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.mk-footer nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* reveal on scroll (one orchestrated effect) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================================
   AUTH
   ========================================================================= */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none !important; } }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 40px 0; }
.auth-box h1 { font-size: 30px; font-weight: 800; }
.auth-box .sub { margin: 8px 0 28px; color: var(--muted); }
.auth-art { position: relative; overflow: hidden; margin: 12px; border-radius: 28px; background: var(--ink); color: var(--surface); padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 80% 10%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 65%), radial-gradient(500px 300px at 10% 90%, color-mix(in srgb, var(--brand) 25%, transparent), transparent 70%); }
.auth-art > * { position: relative; }
.auth-art blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; line-height: 1.5; max-width: 16em; }
.auth-art .facts { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.auth-art .facts b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.auth-art .facts span { font-size: 13px; opacity: .7; }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plan-pick label { position: relative; cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick .opt-card { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); transition: border-color .15s, background .15s; }
.plan-pick b { font-family: var(--font-display); font-size: 14px; }
.plan-pick small { font-size: 12px; color: var(--muted); }
.plan-pick input:checked + .opt-card { border-color: var(--brand); background: var(--brand-soft); }
.plan-pick input:focus-visible + .opt-card { outline: 2px solid var(--brand); outline-offset: 2px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 46px; }
.pw-wrap button { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 6px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 1000px) { .app { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--surface); border-inline-end: 1px solid var(--line); overflow-y: auto; }
@media (max-width: 1000px) { .sidebar { display: none; } }
.sidebar .logo { padding: 6px 10px 18px; }
.store-switch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.store-av { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; }
.store-switch b { display: block; font-family: var(--font-display); font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-switch small { display: block; font-size: 11.5px; color: var(--muted); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .store-switch small { text-align: end; }
.nav-group { display: grid; gap: 2px; }
.nav-title { padding: 14px 12px 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-2); color: var(--ink); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); }
.nav-link .count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.trial-card { padding: 14px; border-radius: 14px; background: var(--ink); color: var(--surface); }
.trial-card b { font-family: var(--font-display); font-size: 14px; }
.trial-card p { font-size: 12.5px; opacity: .75; margin: 4px 0 10px; }
.trial-meter { height: 6px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin-bottom: 12px; }
.trial-meter i { display: block; height: 100%; background: var(--seed); border-radius: 4px; }
.trial-card .btn { --b-bg: var(--surface); --b-ink: var(--ink); min-height: 34px; font-size: 13px; width: 100%; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 clamp(16px, 3vw, 32px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .mobile-brand { display: none; }
@media (max-width: 1000px) { .topbar .mobile-brand { display: flex; } }
.topbar .actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.store-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; max-width: 320px; }
[dir="rtl"] .store-link { padding: 0 12px 0 6px; }
.store-link span { direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
@media (max-width: 720px) { .store-link span { display: none; } .store-link { padding: 0 6px; } }
.content { padding: clamp(18px, 3vw, 32px); padding-bottom: 110px; display: grid; gap: 22px; max-width: 1280px; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; }
.page-head h1 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 4px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.crumb:hover { color: var(--ink); }

/* Mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .bottom-nav { position: fixed; z-index: 50; inset-inline: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-2); padding-bottom: calc(6px + env(safe-area-inset-bottom) * .5); }
  .bottom-nav a, .bottom-nav button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 14px; border: 0; background: transparent; cursor: pointer; font-family: var(--font-display); font-size: 11px; font-weight: 600; color: var(--muted); }
  .bottom-nav .is-active { color: var(--brand); background: var(--brand-soft); }
  .bottom-nav .dot { position: absolute; top: 5px; inset-inline-end: calc(50% - 16px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 10px; display: grid; place-items: center; }
}
.sheet { position: fixed; inset: 0; z-index: 70; display: none; }
.sheet.is-open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 14, 20, .45); animation: fade .2s both; }
.sheet-panel { position: absolute; inset-inline: 0; bottom: 0; max-height: 86vh; overflow-y: auto; padding: 10px 16px 28px; border-radius: 24px 24px 0 0; background: var(--surface); animation: sheet-up .3s var(--ease) both; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.kpi .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.kpi b { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.is-brand { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kpi.is-brand .top, .kpi.is-brand .sub { color: color-mix(in srgb, var(--surface) 65%, transparent); }
.kpi.is-brand .ico { background: rgba(255,255,255,.1); color: var(--seed); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* Chart */
.chart { display: flex; align-items: flex-end; gap: clamp(3px, .8vw, 10px); height: 190px; padding: 6px 0 0; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart .bar i { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: var(--brand-soft); min-height: 4px; position: relative; transition: background .2s; }
.chart .bar.is-today i { background: var(--brand); }
.chart .bar:hover i { background: var(--brand-hover); }
.chart .bar small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart .bar i[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%); background: var(--ink); color: var(--surface); padding: 5px 9px; border-radius: 8px; font-size: 12px; white-space: nowrap; font-style: normal; z-index: 5; }
[dir="ltr"] .chart .bar i[data-tip]:hover::after { transform: translateX(-50%); }
@media (max-width: 600px) { .chart .bar:nth-child(odd) small { visibility: hidden; } }

.checklist { display: grid; gap: 4px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; transition: background .15s; }
.check-item:hover { background: var(--surface-2); }
.check-item .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; }
.check-item.done .tick { border: 0; background: var(--ok); color: #fff; }
.check-item.done .tick .i { width: 15px; height: 15px; }
.check-item.done b { text-decoration: line-through; color: var(--muted); }
.check-item b { display: block; font-family: var(--font-display); font-size: 14px; }
.check-item small { color: var(--muted); font-size: 12.5px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-hover)); }

.share-card { padding: 20px; border-radius: var(--r-md); background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; display: grid; gap: 14px; }
.share-card h3 { font-size: 17px; }
.share-url { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.14); }
.share-url span { flex: 1; min-width: 0; padding: 0 8px; direction: ltr; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-url .btn { --b-bg: #fff; --b-ink: var(--brand-deep); box-shadow: none; }
.share-card .row-wrap .btn { --b-bg: rgba(255,255,255,.14); --b-ink: #fff; box-shadow: none; }

/* Tables → cards on mobile */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table th:first-child { border-start-start-radius: var(--r-md); }
.table th:last-child { border-start-end-radius: var(--r-md); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .strong { font-family: var(--font-display); font-weight: 700; }
.row-link { position: relative; }
.row-link a.cover::after { content: ""; position: absolute; inset: 0; }
.thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: none; }
.thumb .i { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
  .table.responsive td { padding: 0; border: 0; }
  .table.responsive td[data-cell="main"] { grid-column: 1 / -1; }
  .table.responsive td[data-cell="hide"] { display: none; }
  .table.responsive td[data-cell="end"] { justify-self: end; }
}

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 13px; color: var(--muted); width: 18px; height: 18px; }
.search .input { padding-inline-start: 40px; min-height: 40px; }
.seg { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 12px; background: var(--surface-2); scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg a .n { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.seg a.is-active .n { background: var(--brand); color: #fff; }

.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 16px; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.pager span.is-current { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pager span.gap { border: 0; background: transparent; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 20px; }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.empty .ico .i { width: 30px; height: 30px; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 380px; }

/* Forms layout in dashboard */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .form-layout { grid-template-columns: 1fr; } }
.form-side { position: sticky; top: 84px; display: grid; gap: 22px; }
@media (max-width: 1100px) { .form-side { position: static; } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title h2 { font-size: 16px; font-weight: 700; }
.save-bar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: flex-end; padding: 14px clamp(16px, 3vw, 32px); margin: 0 calc(clamp(18px, 3vw, 32px) * -1) -110px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .save-bar { bottom: 84px; margin-bottom: -26px; border-radius: 16px; border: 1px solid var(--line); margin-inline: 0; } }

.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px; border-radius: var(--r-md); border: 2px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .i-lg { color: var(--brand); }
.images { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.img-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile .del { position: absolute; top: 6px; inset-inline-end: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(20,14,20,.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.img-tile .del .i { width: 15px; height: 15px; }
.img-tile .cover-tag { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface); }
.img-tile.is-new { outline: 2px solid var(--ok); outline-offset: -2px; }

.opt-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 10px; align-items: start; padding: 12px; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 640px) { .opt-row { grid-template-columns: 1fr auto; } .opt-row .opt-values { grid-column: 1 / -1; order: 3; } }
.variant-table .input { min-height: 38px; padding: 6px 10px; }
.variant-table td { padding: 8px 10px; }
.variant-table td:first-child { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-pick label { cursor: pointer; }
.mode-pick input { position: absolute; opacity: 0; }
.mode-pick .opt-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); height: 100%; }
.mode-pick .opt-card .i { color: var(--muted); margin-top: 2px; }
.mode-pick b { display: block; font-family: var(--font-display); font-size: 14px; }
.mode-pick small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.mode-pick input:checked + .opt-card { border-color: var(--brand); background: var(--brand-soft); }
.mode-pick input:checked + .opt-card .i { color: var(--brand); }
@media (max-width: 520px) { .mode-pick { grid-template-columns: 1fr; } }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 38px; height: 38px; border-radius: 12px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: transform .15s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px currentColor; transform: scale(.92); }
.swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 4px; }
.color-input { width: 46px; height: 38px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; background: var(--surface); cursor: pointer; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .theme-pick { grid-template-columns: 1fr; } }
.theme-pick label { cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-card { display: block; border-radius: 14px; border: 1.5px solid var(--line-strong); overflow: hidden; }
.theme-prev { height: 96px; padding: 10px; display: grid; gap: 6px; align-content: start; }
.theme-prev i { display: block; height: 10px; border-radius: 4px; }
.theme-prev .blocks { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 4px; }
.theme-prev .blocks i { height: 38px; }
.tp-hanar { background: #FFF; } .tp-hanar i { background: #F1EBEF; border-radius: 8px; } .tp-hanar i:first-child { background: var(--brand); width: 45%; }
.tp-zagros { background: #FAFAF7; } .tp-zagros i { background: #E6E4DE; border-radius: 0; } .tp-zagros i:first-child { background: #1b1b1b; width: 60%; }
.tp-shev { background: #151216; } .tp-shev i { background: #2A242B; border-radius: 6px; } .tp-shev i:first-child { background: var(--brand); width: 40%; }
.theme-card .cap { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; border-top: 1px solid var(--line); }
.theme-pick input:checked + .theme-card { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline li::before { content: ""; position: absolute; top: 26px; bottom: 0; inset-inline-start: 13px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.timeline .dot .i { width: 15px; height: 15px; }
.timeline li:last-child .dot { background: var(--brand); color: #fff; }
.timeline b { font-family: var(--font-display); font-size: 14px; }
.timeline small { display: block; color: var(--muted); font-size: 12.5px; }

.status-actions { display: grid; gap: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: end; font-weight: 600; }
.totals { display: grid; gap: 8px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { padding-top: 10px; border-top: 1px dashed var(--line-strong); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.item-line { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.item-line:last-child { border-bottom: 0; }

/* Shipping */
.ship-row { display: grid; grid-template-columns: 44px minmax(120px, 1fr) 170px 150px; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.ship-row:last-child { border-bottom: 0; }
.ship-row.is-off .ship-name, .ship-row.is-off .input { opacity: .45; }
.ship-name { font-family: var(--font-display); font-weight: 700; }
.ship-days { display: flex; gap: 6px; align-items: center; }
.ship-days .input { min-height: 38px; padding: 6px 8px; text-align: center; }
@media (max-width: 720px) { .ship-row { grid-template-columns: 44px 1fr; } .ship-row .ship-price { grid-column: 2; } .ship-row .ship-days { grid-column: 2; } }

.plan-now { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--surface); }
.plan-now h2 { font-size: 24px; }
.plan-now .muted { color: color-mix(in srgb, var(--surface) 65%, transparent); }
@media (max-width: 640px) { .plan-now { grid-template-columns: 1fr; } }
.pay-accounts { display: grid; gap: 8px; }
.pay-account { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }

/* Print (invoice) */
.print-page { max-width: 780px; margin: 24px auto; padding: 40px; background: #fff; color: #111; border-radius: 12px; box-shadow: var(--shadow-2); }
.print-page table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.print-page th, .print-page td { padding: 10px; border-bottom: 1px solid #e5e5e5; text-align: start; }
.print-actions { max-width: 780px; margin: 24px auto 0; display: flex; gap: 10px; justify-content: flex-end; }
@media print {
  body { background: #fff; }
  .print-actions { display: none; }
  .print-page { box-shadow: none; margin: 0; max-width: none; padding: 0; }
}

/* Error pages */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; color: var(--brand); letter-spacing: -.04em; }
.error-page h1 { font-size: 26px; margin-top: 8px; }
.error-page p { color: var(--muted); margin: 10px auto 24px; max-width: 420px; }
.debug { text-align: start; direction: ltr; margin-top: 20px; padding: 16px; background: var(--surface-2); border-radius: 12px; font-size: 12px; max-width: 900px; overflow: auto; white-space: pre-wrap; }

/* ---------- Mobile refinements ---------- */
.hero .mk-wrap > *, .explorer > *, .contrast > *, .dash-grid > *, .form-layout > * { min-width: 0; }
.claim.is-path .claim-url input { text-align: left; }
.logo-text { white-space: nowrap; }
@media (max-width: 560px) {
  .mk-nav .logo-text { display: none; }
  .mk-nav .mk-wrap { gap: 10px; }
  .mk-nav .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .langs summary .lname { display: none; }
  .hero { padding-top: 32px; }
  .phone-stage { min-height: 0; }
  .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -56px; }
}
@media (max-width: 720px) {
  .store-link { border: 0; background: transparent; padding: 0 !important; }
}
.bottom-nav a, .bottom-nav button { min-width: 0; }
.bottom-nav .lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack, .stack-sm, .form-side, .status-actions, .checklist, .field { grid-template-columns: minmax(0, 1fr); }
.select { max-width: 100%; text-overflow: ellipsis; }
.save-bar { flex-wrap: wrap; }
@media (max-width: 560px) { .save-bar .btn { flex: 1 1 auto; white-space: normal; min-height: 44px; line-height: 1.3; padding-block: 8px; } }
.store-picker { margin: -4px 0 8px; }
.store-picker .select { min-height: 38px; font-size: 13px; }
.upsell { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--brand-soft), var(--surface)); border: 1px solid var(--line); }
.upsell .ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--seed); }
.upsell h2 { font-size: 20px; }
.upsell p { color: var(--ink-2); max-width: 440px; }
.bars-list { display: grid; gap: 12px; }
.bars-list .bl-row { display: grid; gap: 6px; }
.bars-list .bl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.bars-list .bl-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bars-list .bl-track i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.code-pill { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 8px; background: var(--surface-2); border: 1px dashed var(--line-strong); }
.dns-box { direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.k3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
