/* =========================================================
   مدعوم — design system (RTL, Readex Pro)
   ========================================================= */
:root {
  --primary: #5B3DF5;
  --primary-dark: #3B23C9;
  --primary-tint: #EEEBFF;
  --ink: #0F1222;
  --ink-2: #1B1F36;
  --ink-3: #262B4A;
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --line: #E6E8F0;
  --field: #D3D6E2;
  --soft: #F0F1F7;
  --text-2: #363A52;
  --muted: #5D6279;
  --mint: #22B8FF;
  --ok-bg: #E1F7EE; --ok: #0B6B47;
  --warn-bg: #FCEBD0; --warn: #7A4E0E;
  --blue-bg: #E4E8F8; --blue: #2A3E9E;
  --danger-bg: #FBE3E0; --danger: #8E2A1E;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 24px 48px rgba(40, 30, 120, .10);
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(91, 61, 245, .45); outline-offset: 2px; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 600; }
.ltr { direction: ltr; unicode-bidi: embed; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--field); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #F1C7C1; }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 8px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; position: relative; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.card-pad-lg { padding: 28px; }
.card h2 { font-size: 18px; }
.card-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-dark .muted { color: #B9BED3; }
.card-primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 500; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--field); background: var(--surface); font-size: 15px; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(91, 61, 245, .15); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--field); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.input-group .input { border: none; border-radius: 0; box-shadow: none; }
.input-group .addon { display: flex; align-items: center; padding: 0 14px; background: var(--soft); color: var(--muted); font-size: 14px; white-space: nowrap; direction: ltr; }
.help { font-size: 13px; color: var(--muted); }
.error { font-size: 13px; color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.color-input { width: 56px; height: 50px; padding: 4px; border-radius: var(--radius); border: 1px solid var(--field); background: var(--surface); }

/* ---------- Pills & alerts ---------- */
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-primary { background: var(--primary-tint); color: var(--primary-dark); }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-muted { background: var(--soft); color: var(--muted); }
.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--primary-tint); color: var(--primary-dark); }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; text-align: right; }
.table th { padding: 14px 16px; font-weight: 500; color: var(--muted); background: #FAFBFD; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid #EEF0F5; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--soft); object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; color: #A3A8BC; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- KPIs & chart ---------- */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.kpi .k-label { font-size: 13px; color: var(--muted); }
.kpi .k-value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; min-height: 4px; background: #D9D2FF; border-radius: 8px 8px 0 0; }
.bars span.today { background: var(--primary); }
.bar-labels { display: flex; gap: 10px; font-size: 12px; color: var(--muted); text-align: center; }
.bar-labels span { flex: 1; }
.progress { height: 8px; border-radius: 999px; background: #EEF0F5; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.steps-list { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.step .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--field); flex: none; display: flex; align-items: center; justify-content: center; }
.step.done .dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.done { color: var(--muted); text-decoration: line-through; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Platform landing ---------- */
.p-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.p-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.p-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.p-nav a { color: var(--text-2); font-weight: 500; }
.hero { padding: 80px 0 64px; }
.hero .container { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.5px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 19px; color: var(--text-2); line-height: 1.9; }
.hero-card { flex: 1 1 440px; }
.section { padding: 80px 0; }
.section h2 { font-size: clamp(28px, 3.5vw, 40px); }
.section-dark { background: var(--ink); color: #fff; }
.feature { display: flex; flex-direction: column; gap: 10px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.step-card { background: var(--ink-2); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-card .num { font-size: 32px; font-weight: 700; color: var(--mint); }
.price-card { display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--primary); }
.price { font-size: 34px; font-weight: 700; }
.p-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-steps { display: flex; gap: 6px; }
.auth-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.auth-steps span.on { background: var(--primary); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp-inputs input { width: 64px; height: 68px; text-align: center; font-size: 26px; font-weight: 600; border-radius: 16px; border: 1px solid var(--field); background: var(--surface); }
.otp-inputs input:focus { border: 2px solid var(--primary); outline: none; }
.cat-options { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-options label { cursor: pointer; }
.cat-options input { position: absolute; opacity: 0; }
.cat-options span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field); background: var(--surface); font-size: 14px; }
.cat-options input:checked + span { border: 2px solid var(--primary); background: var(--primary-tint); color: var(--primary-dark); font-weight: 600; }
.cat-options input:focus-visible + span { outline: 3px solid rgba(91, 61, 245, .45); }

/* ---------- Merchant shell ---------- */
.m-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.m-side { flex: 1 1 250px; max-width: 100%; background: var(--ink); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; }
.m-side .brand { color: #fff; padding: 0 8px; }
.m-nav { display: flex; flex-direction: column; gap: 4px; }
.m-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #B9BED3; font-size: 15px; }
.m-nav a:hover { background: var(--ink-2); color: #fff; }
.m-nav a.active { background: var(--ink-3); color: #fff; font-weight: 600; }
.m-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.m-side-foot .store-link { padding: 14px; border-radius: 14px; background: var(--ink-2); font-size: 13px; color: #B9BED3; word-break: break-all; }
.m-main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
.m-title h1 { font-size: 26px; }
@media (max-width: 860px) {
  .m-side { flex-basis: 100%; padding: 14px; gap: 12px; }
  .m-nav { flex-direction: row; overflow-x: auto; }
  .m-nav a { flex: none; padding: 9px 12px; font-size: 14px; }
  .m-side-foot { display: none; }
  .m-main { padding: 20px 16px 40px; }
}

/* ---------- Storefront ---------- */
.s-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.s-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; }
.s-hero { margin: 20px 0; border-radius: 24px; background: var(--ink); color: #fff; padding: 40px 32px; display: flex; flex-direction: column; gap: 10px; }
.s-hero h1 { font-size: clamp(24px, 4vw, 40px); }
.s-hero p { color: #B9BED3; font-size: 16px; }
.cart-badge { position: absolute; top: -4px; left: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent, var(--primary)); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.p-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.p-card:hover { color: var(--ink); }
.p-img { aspect-ratio: 1 / 1; border-radius: 18px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A3A8BC; position: relative; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-img .pill { position: absolute; top: 10px; right: 10px; }
.p-name { font-size: 15px; font-weight: 500; }
.p-price { font-size: 16px; font-weight: 700; }
.p-old { font-size: 13px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 24px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A3A8BC; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 72px; height: 72px; flex: none; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--soft); cursor: pointer; }
.gallery-thumbs button.on { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--field); border-radius: 14px; background: var(--surface); }
.qty button { width: 44px; height: 46px; border: none; background: transparent; font-size: 20px; cursor: pointer; }
.qty input { width: 44px; text-align: center; border: none; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary-line { display: flex; justify-content: space-between; font-size: 14px; }
.summary-line.total { font-size: 18px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.pay-option input { width: 20px; height: 20px; accent-color: var(--primary); }
.pay-option:has(input:checked) { border: 2px solid var(--primary); background: #F3F0FF; }
.s-footer { margin-top: 56px; padding: 40px 0 0; border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.sf-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-brand .brand { font-size: 18px; }
.sf-tagline { margin: 0; line-height: 1.8; max-width: 300px; }
.sf-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #E3F8EC; color: #0B6B47; font-weight: 600; font-size: 13px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.sf-wa:hover { background: #CDF2DD; transform: translateY(-2px); }
.sf-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.sf-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink); }
.sf-col a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.sf-col a:hover { color: var(--accent, var(--primary)); }
.sf-line { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.sf-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-pay span { padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 600; }
.sf-trust { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; font-size: 12px; }
.sf-trust span { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sf-trust b { color: var(--ink); font-weight: 600; }
.sf-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 12px; }
.sf-powered { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; }
.sf-powered:hover { color: var(--ink); }
@media (max-width: 900px) { .sf-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .sf-brand, .sf-grid > .sf-col:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .sf-bottom { justify-content: center; text-align: center; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink); }
.pagination .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .off { color: var(--muted); }

/* ---------- Empty state ---------- */
.empty { padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.empty .ic { width: 64px; height: 64px; border-radius: 20px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* ---------- Invoice / print ---------- */
.invoice { max-width: 820px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .invoice { border: none; margin: 0; padding: 0; max-width: none; }
}

/* ---------- Campaign banner & assistant ---------- */
.s-banner { background: var(--accent, var(--primary)); color: #fff; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.chat { position: fixed; bottom: 20px; left: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chat-toggle { width: 60px; height: 60px; border-radius: 50%; border: none; background: var(--accent, var(--primary)); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.chat-panel { width: min(360px, calc(100vw - 40px)); height: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { padding: 14px 16px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.chat-msg.bot { background: var(--soft); align-self: flex-start; }
.chat-msg.me { background: var(--accent, var(--primary)); color: #fff; align-self: flex-end; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form .input { min-height: 44px; }
.chat-form .btn { min-height: 44px; }
.stat-neg { color: var(--danger); }
.stat-pos { color: var(--ok); }

/* =========================================================
   Motion & art direction (v2)
   ========================================================= */
.logo-mark { width: 40px; height: 40px; flex: none; display: block; object-fit: contain; }
.brand-logo img { display: block; height: 40px; width: auto; }
.auth .brand-logo { align-self: center; }
.auth .brand-logo img { height: 48px; }
.brand { letter-spacing: -.2px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Buttons */
.btn-shine { position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(91,61,245,.35); }
.btn-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(120%); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-primary { transition: transform .15s, background .15s, box-shadow .15s; }
.btn-primary:hover { transform: translateY(-1px); }

/* ---------- Landing hero ---------- */
.hero-dark { position: relative; overflow: hidden; background: #0B0D1C; color: #fff; padding: 96px 0 110px; }
.hero-dark .container { position: relative; z-index: 1; }
.hero-dark p { color: #C3C7DA; }
.hero-bg { position: absolute; inset: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #5B3DF5; top: -160px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #22B8FF; bottom: -200px; left: 10%; opacity: .35; animation-duration: 22s; }
.b3 { width: 360px; height: 360px; background: #C04BF2; top: 30%; left: -120px; opacity: .45; animation-duration: 26s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,70px) scale(.95); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.hero-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 14px; color: #E4E1FF; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22B8FF; box-shadow: 0 0 0 0 rgba(34,184,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,184,255,0); } 100% { box-shadow: 0 0 0 0 rgba(34,184,255,0); } }
.grad-text { background: linear-gradient(90deg, #B98CFF, #4FC8FF, #B98CFF); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 6s linear infinite; }
@keyframes gradmove { to { background-position: 200% center; } }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 24px; }
.hero-stats span { font-size: 13px; color: #9EA3BD; }

.hero-visual { flex: 1 1 440px; position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.phone { width: 290px; height: 560px; border-radius: 44px; background: #15182E; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; animation: floatY 7s ease-in-out infinite; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #0B0D1C; z-index: 2; }
.phone-screen { height: 100%; border-radius: 34px; background: #fff; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.ps-head { display: flex; align-items: center; gap: 8px; padding: 50px 14px 10px; font-size: 13px; }
.ps-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ps-head b { flex: 1; }
.ps-cart { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ink); }
.ps-banner { margin: 0 12px; height: 104px; border-radius: 16px; background-size: cover; background-position: 30% center; display: flex; align-items: flex-end; padding: 10px; }
.ps-banner span { color: #fff; font-size: 13px; font-weight: 700; margin-inline-start: auto; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.ps-item { display: flex; flex-direction: column; gap: 3px; font-size: 11px; }
.ps-item img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.ps-item b { font-size: 12px; }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.35); font-size: 13px; animation: floatY 6s ease-in-out infinite; }
.float-card div { display: flex; flex-direction: column; }
.float-card span { color: var(--muted); font-size: 12px; }
.float-card .mint { color: #0B6B47; font-weight: 600; }
.fc-ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.fc-ic.ok { background: var(--primary-tint); color: var(--primary); }
.fc-ic.wa { background: #DCF8C6; color: #128C4B; }
.fc-ic.up { background: var(--ok-bg); color: var(--ok); }
.fc-1 { top: 70px; right: 0; animation-delay: -1s; }
.fc-2 { bottom: 120px; left: 0; animation-delay: -3s; }
.fc-3 { bottom: 30px; right: 20px; animation-delay: -4.5s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 560px) { .hero-visual { min-height: 520px; } .fc-1 { right: -6px; } .fc-2 { left: -6px; } .float-card { font-size: 12px; padding: 10px 12px; } }

/* Marquee */
.marquee { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0; direction: ltr; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 18px; font-weight: 600; color: #8A90A6; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feature cards hover */
.feature { padding: 22px; border-radius: 20px; transition: transform .25s, box-shadow .25s, background .25s; }
.feature:hover { transform: translateY(-4px); background: var(--bg); box-shadow: 0 18px 40px rgba(40,30,120,.08); }
.reveal:nth-child(2) { transition-delay: .06s; } .reveal:nth-child(3) { transition-delay: .12s; } .reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; } .reveal:nth-child(6) { transition-delay: .3s; } .reveal:nth-child(7) { transition-delay: .36s; } .reveal:nth-child(8) { transition-delay: .42s; }

/* ---------- Store slider ---------- */
.slider { position: relative; margin-top: 4px; border-radius: 28px; overflow: hidden; min-height: 340px; background: #0F1222; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; padding: 40px clamp(24px, 5vw, 64px); color: #fff; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.on { opacity: 1; visibility: visible; position: relative; min-height: 340px; }
.slide::before { content: ""; position: absolute; inset: 0; background-image: var(--slide-img, none); background-size: cover; background-position: left center; transform: scale(1.08); transition: transform 7s ease; }
.slide.on::before { transform: scale(1); }
.theme-ink { background: linear-gradient(120deg, #1B1236, #2E1D63 55%, #5B3DF5); }
.theme-violet { background: linear-gradient(120deg, #3B23C9, #8A4BF2); }
.theme-mint { background: linear-gradient(120deg, #0B6B47, #13A673 60%, #3DDC97); }
.theme-gold { background: linear-gradient(120deg, #2A1B0C, #7A4E0E 55%, #C9993F); }
.slide-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); animation: drift 14s ease-in-out infinite alternate; }
.slide-orb.o1 { width: 260px; height: 260px; top: -80px; left: 8%; }
.slide-orb.o2 { width: 160px; height: 160px; bottom: -60px; left: 38%; animation-duration: 18s; }
.slide-body { position: relative; z-index: 1; max-width: 520px; display: flex; flex-direction: column; gap: 12px; margin-inline-start: 0; }
.slide-kicker { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 600; }
.slide h1 { font-size: clamp(26px, 4.2vw, 46px); line-height: 1.25; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.slide p { color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.8; }
.slide-cta { align-self: flex-start; background: #fff; color: var(--ink); }
.slide-cta:hover { color: var(--ink); background: #F0EEFF; }
.slide.on .slide-body > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.slide.on .slide-body > :nth-child(2) { animation-delay: .1s; } .slide.on .slide-body > :nth-child(3) { animation-delay: .2s; } .slide.on .slide-body > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; border: none; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button.on { width: 28px; background: #fff; }
@media (max-width: 560px) { .slide { align-items: flex-end; padding-bottom: 54px; } .slide::before { opacity: .55; } .slider, .slide.on { min-height: 420px; } }

.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.perks > div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.perks > div:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(40, 30, 120, .10); }
.perks span:not(.perk-ico) { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.perks b { font-size: 14px; color: var(--ink); }
.perk-ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.perk-ico svg { display: block; }
.perk-ico--fast { box-shadow: 0 8px 18px rgba(91, 61, 245, .30); }
.perk-ico--cod { box-shadow: 0 8px 18px rgba(11, 138, 91, .28); }
.perk-ico--secure { box-shadow: 0 8px 18px rgba(42, 59, 196, .30); }
.perk-ico--return { box-shadow: 0 8px 18px rgba(240, 100, 43, .28); }
.perks > div:hover .perk-ico svg { animation: perk-pop .5s ease; }
@keyframes perk-pop { 40% { transform: scale(1.08) rotate(-4deg); } 100% { transform: none; } }
@media (max-width: 860px) { .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product cards */
.p-card .p-img { transition: box-shadow .3s; }
.p-card .p-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.p-card:hover .p-img { box-shadow: 0 20px 40px rgba(40,30,120,.16); }
.p-card:hover .p-img img { transform: scale(1.06); }
.gallery-main img { transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
/* Text contrast over banner images (text sits on the right in RTL) */
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(15,18,34,.78), rgba(15,18,34,.35) 55%, transparent 80%); pointer-events: none; }
.theme-mint::after, .theme-violet::after, .theme-gold::after { background: linear-gradient(to left, rgba(0,0,0,.18), transparent 70%); }
