/* OABH — one stylesheet for the store, the customer dashboard and the admin panel.
   Colour tokens below are the defaults; the admin panel overrides them with an inline :root block. */

@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/static/fonts/cairo-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/static/fonts/cairo-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07070b; --surface: #101018; --surface2: #16161f; --text: #f3efe4; --muted: #a39e92;
  --primary: #d4af37; --primary-text: #16130a;
  --line: color-mix(in srgb, var(--primary) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--primary) 34%, transparent);
  --tint: color-mix(in srgb, var(--primary) 8%, transparent);
  --glow: color-mix(in srgb, var(--primary) 32%, transparent);
  --ok: #22c55e; --warn: #f59e0b; --danger: #ef4444; --info: #3b82f6;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #faf7ef; --surface: #ffffff; --surface2: #f3eee1; --text: #1a1712; --muted: #6b6457;
  --primary: #a8841c; --primary-text: #ffffff;
  --shadow: 0 24px 50px -28px rgba(60, 45, 10, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { font-family: var(--font-en); }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--glow); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .92em; direction: ltr; unicode-bidi: isolate; }
code { background: var(--tint); border: 1px solid var(--line); padding: .1em .45em; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.gold { color: var(--primary); }
.text-grad {
  background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 70%, #fff) 0%, var(--primary) 50%, color-mix(in srgb, var(--primary) 80%, #000) 100%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--surface2); --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--b); color: var(--c); font-weight: 700; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, filter .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { color: var(--c); transform: translateY(-2px); border-color: var(--primary); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary {
  --b: linear-gradient(135deg, color-mix(in srgb, var(--primary) 82%, #fff), var(--primary) 55%, color-mix(in srgb, var(--primary) 75%, #000));
  --c: var(--primary-text); border-color: transparent; box-shadow: 0 10px 30px -10px var(--glow);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px var(--glow); filter: brightness(1.06); }
.btn-ghost { --b: transparent; border-color: var(--line); }
.btn-danger { --b: color-mix(in srgb, var(--danger) 14%, transparent); --c: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { border-color: var(--danger); }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.btn-icon { padding: .55em; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.25rem; letter-spacing: .06em; font-family: var(--font-en); }
.brand-mark { width: 34px; height: 34px; color: var(--primary); }
.nav { display: flex; gap: .25rem; margin-inline-start: 1rem; }
.nav a { padding: .45em .85em; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .95rem; transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--tint); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; }
.chip-btn {
  display: inline-flex; align-items: center; gap: .35em; height: 38px; padding: 0 .75em; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; font-size: .8rem; cursor: pointer; font-family: var(--font-en);
}
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
.user-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .3rem .25rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .9rem; }
[dir="rtl"] .user-pill { padding: .25rem .8rem .25rem .3rem; }
.user-pill img { width: 30px; height: 30px; border-radius: 50%; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; inset: 68px 0 auto 0; flex-direction: column; padding: .75rem 16px 1rem; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .menu-btn { display: inline-flex; }
  .user-pill span { display: none; }
  .user-pill { padding: .25rem !important; }
}
@media (max-width: 480px) { .header-actions .hide-xs { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3.5rem, 8vw, 6rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: -20%; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; transform: perspective(900px) rotateX(58deg) translateY(-8%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 25%, transparent 75%);
  animation: grid-move 18s linear infinite;
}
@keyframes grid-move { to { background-position: 0 56px, 56px 0; } }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 16s var(--ease) infinite alternate; }
.hero-bg .orb.a { width: 420px; height: 420px; inset-inline-start: -120px; top: -80px; background: radial-gradient(circle, var(--glow), transparent 70%); }
.hero-bg .orb.b { width: 360px; height: 360px; inset-inline-end: -100px; bottom: -60px; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, #6d28d9 10%), transparent 70%); animation-delay: -6s; }
@keyframes float { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.hero-shapes { position: absolute; inset: 0; }
.hero-shapes svg { position: absolute; color: var(--primary); opacity: .35; }
.hero-shapes .s1 { width: 140px; top: 14%; inset-inline-end: 8%; animation: spin 40s linear infinite; }
.hero-shapes .s2 { width: 90px; bottom: 16%; inset-inline-start: 7%; animation: spin 30s linear infinite reverse; }
.hero-shapes .s3 { width: 60px; top: 22%; inset-inline-start: 18%; animation: bob 7s ease-in-out infinite; }
.hero-shapes .s4 { width: 70px; bottom: 20%; inset-inline-end: 20%; animation: bob 9s ease-in-out infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-18px) rotate(12deg); } }
.hero-inner { text-align: center; max-width: 860px; margin-inline: auto; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em 1em; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--tint); color: var(--primary); font-weight: 800; font-size: .85rem; margin-bottom: 1.4rem;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }
.hero .cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.hero-trust span { display: inline-flex; gap: .4em; align-items: center; }
.hero-trust .ic { color: var(--primary); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section.alt { background: linear-gradient(180deg, transparent, var(--tint) 30%, var(--tint) 70%, transparent); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.8rem; }
.section-head .kicker { color: var(--primary); font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--font-en); }
.section-head p { color: var(--muted); }

/* ---------- cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--primary) 8%), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card.flat { box-shadow: none; }
.card-title { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; margin-bottom: .75rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.bot-card {
  --accent: var(--primary);
  display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)) 0%, var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  position: relative; isolation: isolate; color: var(--text);
}
.bot-card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
}
.bot-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--text);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
.bot-card:hover::before { opacity: 1; }
.bot-icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transform: rotate(-4deg); transition: transform .45s var(--ease);
}
.bot-card:hover .bot-icon { transform: rotate(0) scale(1.06); }
.bot-icon .ic { width: 28px; height: 28px; }
.bot-card h3 { margin: 0; font-size: 1.3rem; }
.bot-card p { color: var(--muted); margin: 0; flex: 1; }
.bot-card .foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .9rem; }
.bot-card .price { font-weight: 800; }
.bot-card .go { display: inline-flex; align-items: center; gap: .3em; color: var(--accent); font-weight: 800; }
[dir="rtl"] .bot-card .go .ic, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.badge { display: inline-flex; align-items: center; gap: .35em; padding: .2em .7em; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: var(--tint); color: var(--primary); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.badge.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.badge.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.badge.muted { color: var(--muted); background: transparent; border-color: var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- feature rows / showcase ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5rem); }
.feature-row.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row.reverse > :first-child { order: 0; } }
.feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; }
.feature-list .ic { color: var(--primary); margin-top: .25em; }
.window {
  border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px var(--line); transform: perspective(1400px) rotateY(var(--tilt, -4deg)) rotateX(2deg);
  transition: transform .8s var(--ease);
}
[dir="rtl"] .window { --tilt: 4deg; }
.window:hover { transform: none; }
.window-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface2); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window-bar span { margin-inline-start: .6rem; font-size: .78rem; color: var(--muted); font-family: var(--font-en); direction: ltr; }
.window img { width: 100%; }
.mock { padding: 1.1rem; display: grid; gap: .8rem; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock-card { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: var(--surface2); display: grid; gap: .5rem; }
.mock-line { height: 8px; border-radius: 99px; background: var(--line-strong); }
.mock-line.short { width: 45%; } .mock-line.mid { width: 70%; }
.mock-line.gold { background: var(--primary); opacity: .8; width: 35%; }
.mock-toggle { width: 30px; height: 16px; border-radius: 99px; background: var(--primary); position: relative; opacity: .85; }
.mock-toggle::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-text); top: 2px; inset-inline-end: 2px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.stat b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; font-family: var(--font-en); color: var(--primary); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: .92rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 1rem; inset-inline-end: 1.2rem; font-family: var(--font-en);
  font-size: 3rem; font-weight: 900; line-height: 1; color: var(--tint); -webkit-text-stroke: 1px var(--line-strong); }
.step .ic { width: 30px; height: 30px; color: var(--primary); margin-bottom: .8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 800; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s var(--ease); color: var(--primary); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--muted); white-space: pre-line; }

/* ---------- final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line-strong);
  background: radial-gradient(600px 240px at 50% 0%, var(--glow), transparent 70%), linear-gradient(180deg, var(--surface2), var(--surface));
}
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 1.6rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 3rem 0 1.5rem; background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h4 { font-size: .95rem; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; color: var(--muted); font-size: .92rem; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.socials a:hover { color: var(--primary); border-color: var(--line-strong); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.credit { font-family: var(--font-en); font-weight: 800; letter-spacing: .04em; direction: ltr; }
.credit b { color: var(--primary); }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; position: relative; }
.page-head p { color: var(--muted); max-width: 680px; }
.breadcrumb { display: flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* bot page */
.bot-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .bot-hero { grid-template-columns: 1fr; } }
.bot-hero .bot-icon { width: 72px; height: 72px; border-radius: 20px; }
.bot-hero .bot-icon .ic { width: 36px; height: 36px; }
.buy-box { position: sticky; top: 90px; }
.stock { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line); font-weight: 800; }
.stock .bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stock .bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.plan-opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface2); }
.plan-opt.hl { border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.plan-opt b { font-family: var(--font-en); font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface2); }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { padding: .6rem .9rem; font-size: .88rem; color: var(--muted); }
.cmd-list { display: grid; gap: .6rem; }
.cmd { display: grid; grid-template-columns: minmax(140px, auto) 1fr auto; gap: 1rem; align-items: center; padding: .85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.cmd code { font-size: .95rem; }
@media (max-width: 640px) { .cmd { grid-template-columns: 1fr; gap: .35rem; } }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(0, 0, 0, .85); padding: 1rem; cursor: zoom-out; }
.lightbox img { max-height: 90vh; border-radius: var(--radius-sm); }

/* pricing table */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.price-table th, .price-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: start; }
.price-table th { color: var(--muted); font-size: .85rem; font-weight: 800; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* legal / prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 85%, var(--muted)); }

/* ---------- forms ---------- */
label.field { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
label.field .hint { font-weight: 500; color: var(--muted); font-size: .82rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface2); color: var(--text); transition: border-color .2s, box-shadow .2s; min-height: 44px;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.input.code-input { font-family: var(--font-en); font-size: 1.3rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; direction: ltr; font-weight: 800; }
input[type="color"].input { padding: .25rem; height: 44px; cursor: pointer; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 700; }
.switch input { appearance: none; width: 44px; height: 24px; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .25s var(--ease); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { inset-inline-start: 23px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem 1.2rem; margin: 0; }
legend { padding: 0 .5rem; font-weight: 800; }

/* alerts */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface2); margin-bottom: 1rem; }
.alert.error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.alert.success { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); }
.alert.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.alert .ic { margin-top: .2em; }
.toast-zone { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(440px, 100% - 32px); }
[dir="rtl"] .toast-zone { transform: translateX(50%); }
.toast { padding: .8rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-weight: 700; animation: toast-in .35s var(--ease); }
.toast.error { border-color: var(--danger); } .toast.success { border-color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- app layout (dashboard + admin) ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 68px); }
.sidebar { border-inline-end: 1px solid var(--line); padding: 1.2rem .8rem; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; background: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.sidebar .group { font-size: .75rem; color: var(--muted); font-weight: 800; letter-spacing: .08em; padding: 1rem .8rem .4rem; text-transform: uppercase; }
.sidebar a { display: flex; align-items: center; gap: .7rem; padding: .62rem .8rem; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.sidebar a:hover { color: var(--text); background: var(--tint); }
.sidebar a.active { color: var(--primary); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.app-main { padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.app-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.app-head p { margin: .2rem 0 0; color: var(--muted); }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; inset: auto 0 0 0; top: auto; height: auto; padding: .4rem; display: flex; justify-content: space-around; gap: 0;
    border-inline-end: 0; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); overflow-x: auto; }
  .sidebar .group { display: none; }
  .sidebar a { flex-direction: column; gap: .15rem; font-size: .68rem; padding: .45rem .5rem; min-width: 64px; text-align: center; }
  .sidebar a .ic { width: 1.4em; height: 1.4em; }
  .app-main { padding-bottom: 6rem; }
}

/* subscription cards */
.sub-card { --accent: var(--primary); display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.sub-card .head { display: flex; gap: .9rem; align-items: center; }
.sub-card .head img, .sub-card .head .bot-icon { width: 52px; height: 52px; border-radius: 14px; }
.sub-card .meta { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; font-size: .9rem; }
.sub-card .meta div { padding: .6rem .8rem; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); min-width: 0; }
.sub-card .meta span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; }
.sub-card .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-card .actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 1rem; color: var(--primary); }

/* guild picker */
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .8rem; }
.guild { display: flex; align-items: center; gap: .8rem; padding: .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: start; width: 100%; transition: border-color .2s, transform .25s var(--ease); }
.guild:hover { border-color: var(--primary); transform: translateY(-2px); }
.guild img, .guild .gi { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.guild .gi { display: grid; place-items: center; background: var(--surface2); font-weight: 900; color: var(--muted); }
.guild b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* tables (admin) */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.table th { color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; background: var(--surface2); position: sticky; top: 0; }
.table tr:hover td { background: var(--tint); }
.table td .row { flex-wrap: nowrap; gap: .4rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.kpi b { display: block; font-size: 1.8rem; font-weight: 900; font-family: var(--font-en); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a, .tabs button { padding: .7rem 1rem; color: var(--muted); font-weight: 800; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs a.active, .tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.codes-out { font-family: var(--font-en); direction: ltr; white-space: pre; padding: 1rem; border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--line-strong); max-height: 320px; overflow: auto; }

/* list editor (admin content) */
.list-editor { display: grid; gap: .7rem; }
.le-item { display: grid; gap: .6rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface2); position: relative; }
.le-item .le-fields { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.le-item .le-fields .wide { grid-column: 1 / -1; }
.le-tools { display: flex; gap: .3rem; justify-content: flex-end; }
.thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--surface); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-strong); vertical-align: middle; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .window { transform: none; }
}
@media (max-width: 900px) { .sidebar form, .sidebar .group { display: none; } }
[dir="ltr"] .flip-ltr { transform: scaleX(-1); }

.icon-box { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); font-size: 1.7rem; font-weight: 900; color: var(--muted); }
.icon-box img { width: 100%; height: 100%; object-fit: cover; }
svg.ic { display: inline-block; vertical-align: -0.22em; }
summary { list-style-position: inside; }
@media (max-width: 640px) { .hero-shapes .s1, .hero-shapes .s3, .hero-shapes .s4 { display: none; } .hero-shapes .s2 { opacity: .2; } }

/* ---------- bot control pages (views/manage/*): section sidebar + panes ---------- */
.mg { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.mg-nav { position: sticky; top: 84px; display: grid; gap: .25rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mg-nav .mg-group { font-size: .72rem; color: var(--muted); font-weight: 800; padding: .7rem .7rem .2rem; }
.mg-nav button { display: flex; align-items: flex-start; gap: .65rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 12px; background: none; color: var(--muted); text-align: start; cursor: pointer; font-weight: 800; font-size: .93rem; line-height: 1.4; }
.mg-nav button .ic { margin-top: .1em; }
.mg-nav button small { display: block; font-weight: 600; font-size: .76rem; color: var(--muted); opacity: .85; }
.mg-nav button:hover { color: var(--text); background: var(--tint); }
.mg-nav button.active { color: var(--primary); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.mg-nav button .mg-dirty { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-inline-start: auto; margin-top: .45em; flex: none; display: none; }
.mg-nav button.dirty .mg-dirty { display: block; }
.mg-main { min-width: 0; }
.mg-pane > * + * { margin-top: 1rem; }
.mg-head { margin-bottom: .2rem; }
.mg-head h2 { font-size: 1.35rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .5rem; }
.mg-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.mg .card-title + .hint, .mg .lead { color: var(--muted); font-size: .88rem; margin: -.4rem 0 .4rem; }
.mg .field > .hint, .mg .switch-field .hint, .mg .hint { font-weight: 500; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.switch-field { display: grid; gap: .25rem; align-content: start; }
.mg-sub { font-size: 1rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .45rem; }
@media (max-width: 1100px) {
  .mg { grid-template-columns: 1fr; gap: 1rem; }
  .mg-nav { top: 68px; z-index: 20; display: flex; overflow-x: auto; gap: .25rem; padding: .35rem; scrollbar-width: none; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); }
  .mg-nav .mg-group, .mg-nav button small { display: none; }
  .mg-nav button { width: auto; white-space: nowrap; align-items: center; padding: .5rem .8rem; }
  .mg-nav button .mg-dirty { margin-top: 0; }
  .mg-nav { align-items: center; }
  .mg-nav > label.field { flex: 0 0 140px; padding: 0 !important; }
  .mg-nav > label.field > span { display: none; }
  .mg-nav > label.field .input { min-height: 38px; padding-block: .35rem; }
}

/* sticky save bar at the bottom of each settings form */
.savebar { position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem .9rem; margin-top: 1.2rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface2) 94%, transparent); backdrop-filter: blur(10px); }
.savebar .savebar-note { color: var(--muted); font-size: .85rem; font-weight: 700; margin-inline-end: auto; display: flex; align-items: center; gap: .4rem; }
.savebar .savebar-note .dirty-txt { display: none; color: var(--warn); }
form.dirty .savebar { border-color: color-mix(in srgb, var(--warn) 55%, transparent); box-shadow: var(--shadow); }
form.dirty .savebar .dirty-txt { display: inline; }
form.dirty .savebar .clean-txt { display: none; }
@media (max-width: 900px) { .savebar { bottom: 84px; } }
@media (max-width: 600px) {
  .savebar { padding: .55rem .6rem; gap: .4rem; }
  .savebar .clean-txt { display: none; }
  .savebar .btn { flex: 1 1 auto; justify-content: center; padding-inline: .8rem; }
  form:not(.dirty) .savebar .savebar-note { display: none; }
}

/* ---------- searchable role / channel picker (public/js/picker.js) ---------- */
.pk-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.pk { position: relative; font-weight: 500; }
.pk-btn { display: flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 44px; padding-block: .35rem; padding-inline-end: .6rem; text-align: start; }
.pk-btn:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--tint); }
.pk-btn.pk-invalid { border-color: var(--danger); }
.pk.pk-disabled .pk-btn { opacity: .6; cursor: not-allowed; }
.pk-placeholder { color: var(--muted); flex: 1; }
.pk-value { display: flex; align-items: center; gap: .45rem; flex: 1; min-width: 0; }
.pk-value > span:not(.pk-ico):not(.pk-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-value small { font-size: .78rem; white-space: nowrap; }
.pk-caret { margin-inline-start: auto; color: var(--muted); display: grid; transition: transform .2s; }
.pk.open .pk-caret { transform: rotate(180deg); }
.pk-chips { display: flex; flex-wrap: wrap; gap: .3rem; flex: 1; min-width: 0; }
.pk-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .2rem .1rem .55rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-strong); font-size: .84rem; max-width: 100%; }
[dir="rtl"] .pk-chip { padding: .1rem .55rem .1rem .2rem; }
.pk-chip > span:not(.pk-ico):not(.pk-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; padding: 0; }
.pk-x:hover { background: var(--tint); color: var(--danger); }
.pk-x .ic { width: 14px; height: 14px; }
.pk-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 10%, transparent); }
.pk-ico { display: grid; place-items: center; width: 18px; flex: none; color: var(--muted); }
.pk-ico .ic { width: 17px; height: 17px; }
.pk-pop { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px); min-width: 260px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.pk.up .pk-pop { top: auto; bottom: calc(100% + 6px); }
.pk-search-row { display: flex; align-items: center; gap: .4rem; padding: .5rem .6rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.pk-search { min-height: 38px; padding: .45rem .7rem; border: 0; background: transparent; box-shadow: none !important; }
.pk-list { max-height: 280px; overflow-y: auto; padding: .3rem; }
.pk-opt { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; text-align: start; font-size: .92rem; }
.pk-opt:hover, .pk-opt.hl { background: var(--tint); }
.pk-opt.on { color: var(--primary); font-weight: 800; }
.pk-opt .pk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-opt .pk-meta { color: var(--muted); font-size: .76rem; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
.pk-opt .pk-check { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; }
.pk-opt.on .pk-check { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.pk-opt .pk-check .ic { width: 13px; height: 13px; }
.pk-empty { padding: 1rem; text-align: center; color: var(--muted); font-size: .88rem; }
form .dirty-txt { display: none; }
form.dirty .dirty-txt { display: inline; }

/* bot profile preview (dashboard "Look" tab) */
.profile-preview { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface2); border: 1px solid var(--line); }
.profile-preview .pp-banner { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 45%, #000), var(--surface)); }
.profile-preview .pp-banner[data-empty] { object-position: -9999px 0; }
.profile-preview .pp-avatar { position: relative; margin: -46px 18px 0; width: 88px; height: 88px; border-radius: 50%; border: 6px solid var(--surface2); object-fit: cover; background: var(--surface); }
.profile-preview .pp-body { padding: .4rem 1.1rem 1rem; }
