/* ===================== Jefoe Affiliate — Design System ===================== */
:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e7e9f2;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-dark: #3730a3;
  --primary-soft: #eef0ff;
  --accent: #06b6d4;
  --accent-soft: #e0f7fb;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --grad-2: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
  --gold: #f59e0b;
  --gold-soft: #fff7e6;
  --success: #10b981;
  --success-soft: #e7f8f1;
  --danger: #ef4444;
  --danger-soft: #fdecec;
  --warn: #d97706;
  --warn-soft: #fff4e0;
  --info: #0284c7;
  --info-soft: #e6f4fd;
  --side: #120f2f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(79, 70, 229, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html[lang="en"] body { font-family: "Plus Jakarta Sans", "Cairo", system-ui, sans-serif; }
a { color: var(--primary); text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #c7d2fe; }

/* ---------- icons ---------- */
.ico { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -0.2em; display: inline-block; }
[dir="ltr"] .i-back, [dir="ltr"] .flip { transform: scaleX(-1); }
.i-heartFill { color: #f43f5e; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; height: 64px;
}
.topbar .page-title { font-weight: 800; font-size: 18px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .page-title small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); line-height: 1.2; }
.icon-btn { position: relative; display: grid; place-items: center; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; width: 42px; height: 42px; cursor: pointer; font-size: 18px; flex: 0 0 42px; transition: .2s var(--ease); }
.icon-btn:hover { border-color: #c7d2fe; color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn .dot { position: absolute; top: -5px; inset-inline-end: -5px; background: #f43f5e; color: #fff; font-size: 11px; font-weight: 800; border-radius: 99px; min-width: 20px; height: 20px; line-height: 20px; padding: 0 5px; border: 2px solid #fff; animation: pop .4s var(--ease); }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 800; font-size: 13px; transition: .2s; }
.lang-btn:hover { border-color: #c7d2fe; color: var(--primary); }
.menu-btn { display: none; }
.top-user { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); }
[dir="rtl"] .top-user { padding: 4px 12px 4px 4px; }
.top-user b { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- layout & sidebar ---------- */
.layout { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.side {
  background: var(--side); background-image: radial-gradient(120% 60% at 100% 0%, rgba(124, 58, 237, .35), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(6, 182, 212, .18), transparent 60%);
  color: #cbd0f5; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b2760 transparent;
  display: flex; flex-direction: column; z-index: 45;
}
.side > * { flex-shrink: 0; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; }
.logo { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(124, 58, 237, .45); flex: 0 0 40px; }
.logo svg { width: 24px; height: 24px; }
.side-brand b { font-size: 17px; font-weight: 800; letter-spacing: .2px; line-height: 1.1; display: block; }
.side-brand small { color: #9ea3d6; font-size: 12px; font-weight: 600; }
.side-user { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 8px; overflow: hidden; }
.side-user > div:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.side-user .small { color: #9ea3d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; background: var(--grad-2); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.avatar.sm { width: 32px; height: 32px; flex-basis: 32px; border-radius: 99px; font-size: 13px; }
.side-group { font-size: 11px; font-weight: 800; color: #7a7fb5; letter-spacing: .8px; padding: 16px 12px 6px; text-transform: uppercase; }
.side nav { flex: 1; }
.side nav button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; padding: 11px 12px; border-radius: 13px; cursor: pointer; color: #cbd0f5; font-weight: 700; text-align: start; transition: .18s var(--ease); position: relative; }
.side nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav button.on { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, .35); }
.side nav .ic { width: 22px; display: grid; place-items: center; font-size: 18px; }
.side nav .ic .ico { width: 20px; height: 20px; }
.side nav .badge { margin-inline-start: auto; background: #f43f5e; color: #fff; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 8px; }
.side-help { margin-top: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(6, 182, 212, .25), rgba(124, 58, 237, .25)); color: #fff; font-size: 13px; }
.side-help .btn { margin-top: 8px; background: #fff; color: var(--primary-dark); border: 0; }
.side-bg { display: none; }
.content { min-width: 0; }
main { max-width: 1180px; margin: 0 auto; padding: 22px 20px 90px; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* bottom nav (mobile) */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .layout { display: block; }
  .side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: 280px; height: 100%; transform: translateX(100%); transition: transform .28s var(--ease); visibility: hidden; }
  body.side-open .side { visibility: visible; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  [dir="ltr"] .side { transform: translateX(-100%); }
  body.side-open .side { transform: none; }
  body.side-open .side-bg { display: block; position: fixed; inset: 0; background: rgba(15, 13, 46, .5); backdrop-filter: blur(2px); z-index: 44; }
  .topbar { padding: 10px 12px; height: 60px; }
  .top-user b { display: none; }
  .top-user { padding: 3px !important; }
  main { padding: 16px 14px 100px; }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 39; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 2px; cursor: pointer; position: relative; border-radius: 12px; }
  .bottom-nav button .ico { width: 22px; height: 22px; }
  .bottom-nav button.on { color: var(--primary); }
  .bottom-nav button.on::before { content: ""; position: absolute; top: -6px; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
  .bottom-nav .badge { position: absolute; top: 0; inset-inline-end: 22%; background: #f43f5e; color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; }
  .cart-fab { bottom: 84px !important; }
}

/* ---------- headings & helpers ---------- */
.section-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 2px 0 18px; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 800; flex: 1; letter-spacing: -.2px; }
.notice { background: linear-gradient(135deg, #fff7e6, #fff1f2); border: 1px solid #fde3c1; color: #7c4a03; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; white-space: pre-line; display: flex; gap: 10px; }
.demo-banner { background: var(--grad); color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 10px; position: relative; z-index: 41; }
.demo-banner a { color: #fff; text-decoration: underline; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--danger); font-size: 13px; }
.profit { color: var(--success); }
.neg { color: var(--danger); }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 8px; padding: 1px 8px; direction: ltr; display: inline-block; font-weight: 700; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border: 1px solid rgba(231, 233, 242, .7); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 20px; }
.stat { position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border: 1px solid rgba(231, 233, 242, .7); transition: .25s var(--ease); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; inset-inline-end: -26px; top: -26px; background: var(--c, var(--primary)); opacity: .1; }
.stat::before { content: ""; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--c, var(--primary)); }
.stat:nth-child(6n+1) { --c: #4f46e5; } .stat:nth-child(6n+2) { --c: #06b6d4; } .stat:nth-child(6n+3) { --c: #10b981; }
.stat:nth-child(6n+4) { --c: #f59e0b; } .stat:nth-child(6n+5) { --c: #f43f5e; } .stat:nth-child(6n) { --c: #8b5cf6; }
.stat .k { color: var(--muted); font-size: 13px; font-weight: 700; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.3px; margin-top: 2px; }
.stat.hl { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.stat.hl::before { display: none; }
.stat.hl::after { background: #fff; opacity: .12; width: 140px; height: 140px; }
.stat.hl .k { color: rgba(255, 255, 255, .85); }

/* ---------- product card ---------- */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product .thumb { position: relative; aspect-ratio: 1/1; background: linear-gradient(135deg, #f1f2fb, #e9ecfb); cursor: pointer; overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product:hover .thumb img { transform: scale(1.05); }
.product .thumb .media-count { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(15, 23, 42, .65); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 10px; display: inline-flex; gap: 4px; align-items: center; z-index: 3; }
.product .thumb .off { position: absolute; top: 12px; inset-inline-end: 12px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 12px; z-index: 3; }
.product .thumb .hot { position: absolute; top: 12px; inset-inline-end: 12px; background: linear-gradient(135deg, #f59e0b, #f43f5e); color: #fff; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 2px 10px; z-index: 3; display: inline-flex; gap: 4px; align-items: center; }
.product .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .name { font-weight: 800; font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .cat { color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 800; border-radius: 99px; padding: 1px 9px; }
.price-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.price { font-weight: 800; font-size: 20px; letter-spacing: -.3px; }
.comm { background: var(--success-soft); color: #047857; font-weight: 800; border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.product .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.product .actions .btn:first-child { grid-column: 1 / -1; }
.fav { position: absolute; top: 12px; inset-inline-start: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 16px; display: grid; place-items: center; z-index: 3; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transition: .2s var(--ease); color: #475569; }
.fav:hover { transform: scale(1.12); color: #f43f5e; }
.stock-low { color: var(--warn); font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: #a5b4fc; font-size: 44px; }
.noimg .ico { width: 54px; height: 54px; }
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product .body { padding: 10px; }
  .product .name { font-size: 14px; }
  .price { font-size: 17px; }
  .product .actions { grid-template-columns: 1fr; }
  .product .actions .btn { font-size: 12px; padding: 4px 6px; }
  .fav { width: 32px; height: 32px; top: 8px; inset-inline-start: 8px; }
}

/* ---------- slider (product images) ---------- */
.slides { position: relative; width: 100%; height: 100%; }
.slides .track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides .track::-webkit-scrollbar { display: none; }
.slides .track > * { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; }
.slides .track img, .slides .track video { width: 100%; height: 100%; object-fit: cover; }
.slides .dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.slides .dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .6); transition: .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.slides .dots i.on { width: 20px; background: #fff; }
.slides .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; z-index: 3; opacity: 0; transition: .2s; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); color: var(--text); }
.slides .nav.prev { inset-inline-start: 8px; } .slides .nav.next { inset-inline-end: 8px; }
.slides:hover .nav { opacity: 1; }
@media (hover: none) { .slides .nav { display: none; } }
[dir="rtl"] .slides .nav .ico { transform: scaleX(-1); }

.gallery-main { background: linear-gradient(135deg, #f1f2fb, #e9ecfb); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; position: relative; }
.gallery-main .slides .track img, .gallery-main .slides .track video { object-fit: contain; background: #0f172a08; }
.gallery-main .slides .nav { width: 42px; height: 42px; opacity: 1; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.thumbs .t { flex: 0 0 70px; height: 70px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; position: relative; background: #e9ecfb; opacity: .7; transition: .2s; }
.thumbs .t.on { border-color: var(--primary); opacity: 1; }
.thumbs .t img, .thumbs .t video { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .3); }

/* featured carousel */
.carousel { position: relative; margin-bottom: 22px; }
.carousel .row-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; scroll-behavior: smooth; }
.carousel .row-track::-webkit-scrollbar { display: none; }
.carousel .row-track > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .carousel .row-track { grid-auto-columns: calc((100% - 48px) / 4); } }
@media (max-width: 560px) { .carousel .row-track { grid-auto-columns: 72%; } }
.car-nav { display: flex; gap: 6px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 9px 16px; border-radius: 13px; cursor: pointer; font-weight: 700; text-decoration: none;
  min-height: 42px; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: #c7d2fe; color: var(--primary); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(99, 72, 230, .3); }
.btn.primary:hover { box-shadow: 0 12px 28px rgba(99, 72, 230, .42); transform: translateY(-1px); color: #fff; }
.btn.gold { background: linear-gradient(135deg, #f59e0b, #f97316); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.btn.success { background: linear-gradient(135deg, #10b981, #059669); border: 0; color: #fff; }
.btn.danger { color: var(--danger); border-color: #fbcaca; background: #fff; }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 5px 12px; min-height: 34px; font-size: 13px; border-radius: 11px; }
.btn.lg { padding: 13px 26px; min-height: 52px; font-size: 16px; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.white { background: #fff; color: var(--primary-dark); border: 0; }
label.f { display: block; font-size: 13px; color: #334155; font-weight: 700; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 13px;
  padding: 10px 14px; min-height: 46px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:hover { border-color: #d5d9ea; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 38px; }
[dir="ltr"] select.input { background-position: right 14px center; padding-left: 14px; padding-right: 38px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; flex: 1; min-width: 180px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .ico { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--muted); }
.search .input { padding-inline-start: 42px; width: 100%; }

/* choices (select → buttons) */
.seg-src { display: none !important; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice button { flex: 1 1 auto; min-height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 13px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 14px; color: #334155; transition: .18s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.choice button:hover { border-color: #c7d2fe; }
.choice button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.choice button:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; background: #eceefa; border-radius: 14px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 11px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: .2s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.filters, .chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.filters button, .chips button { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 16px; cursor: pointer; font-size: 13px; font-weight: 700; color: #334155; transition: .18s var(--ease); display: inline-flex; gap: 6px; align-items: center; }
.filters button:hover, .chips button:hover { border-color: #c7d2fe; color: var(--primary); }
.filters button.on, .chips button.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(99, 72, 230, .28); }
.tabs { position: sticky; top: 64px; z-index: 19; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 700; }
.tabs button.on { background: var(--primary-soft); color: var(--primary); }
.tabs .badge { background: #f43f5e; color: #fff; border-radius: 99px; font-size: 11px; padding: 0 6px; margin-inline-start: 4px; }
.ptabs { display: flex; gap: 6px; margin: 18px 0 14px; overflow-x: auto; background: #eceefa; border-radius: 14px; padding: 4px; scrollbar-width: none; }
.ptabs button { flex: 1 0 auto; border: 0; background: none; padding: 9px 14px; cursor: pointer; font-weight: 700; color: var(--muted); border-radius: 11px; white-space: nowrap; transition: .2s; }
.ptabs button.on { color: var(--primary); background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.pager button.on { background: var(--grad); color: #fff; border-color: transparent; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.role-pick label { border: 2px solid var(--line); border-radius: 18px; padding: 16px 12px; cursor: pointer; text-align: center; transition: .2s var(--ease); background: #fff; }
.role-pick label:hover { border-color: #c7d2fe; }
.role-pick input { display: none; }
.role-pick label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 4px rgba(79, 70, 229, .1); }
.role-pick .big { font-size: 28px; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 6px; background: var(--grad); color: #fff; }
.role-pick .big .ico { width: 26px; height: 26px; }
.split-note { background: var(--info-soft); color: #075985; border-radius: 13px; padding: 10px 14px; font-size: 13px; margin-top: 8px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 2px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-new { background: var(--info-soft); color: var(--info); }
.s-confirmed { background: #f1ebff; color: #6d28d9; }
.s-shipped { background: var(--warn-soft); color: var(--warn); }
.s-delivered, .s-paid, .s-active, .s-approved { background: var(--success-soft); color: #047857; }
.s-returned, .s-rejected, .s-blocked { background: var(--danger-soft); color: var(--danger); }
.s-cancelled { background: #f1f5f9; color: #64748b; }
.s-pending { background: var(--warn-soft); color: var(--warn); }

/* ---------- details ---------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 16px; } }
.detail h2 { font-size: 26px; line-height: 1.35; }
.pricebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.pricebox > div { background: var(--bg); border-radius: 16px; padding: 12px 14px; border: 1px solid var(--line); }
.pricebox > div:first-child { background: var(--grad); color: #fff; border: 0; }
.pricebox > div:first-child .k { color: rgba(255, 255, 255, .85); }
.pricebox .k { font-size: 12px; color: var(--muted); font-weight: 700; }
.pricebox .v { font-weight: 800; font-size: 20px; }
.desc { white-space: pre-line; background: var(--bg); border-radius: 14px; padding: 14px 16px; font-size: 14px; border: 1px solid var(--line); }
.vrow { display: grid; grid-template-columns: 1fr 110px 40px; gap: 8px; margin-bottom: 6px; }

/* ---------- orders ---------- */
.order { transition: .2s; }
.order:hover { box-shadow: var(--shadow-lg); }
.order .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order .top .id { font-weight: 800; font-size: 16px; }
.order .top .date { color: var(--muted); font-size: 12px; margin-inline-start: auto; }
.order .lines { margin: 10px 0; padding: 10px 12px; background: var(--bg); border-radius: 13px; font-size: 14px; }
.order .lines div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.money-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.money-line b { font-size: 16px; }

/* ---------- cart ---------- */
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-item .noimg { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #eef0ff; font-size: 22px; }
.cart-item .ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cart-item .ctrl .input { width: 96px; min-height: 36px; padding: 4px 10px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.qty button { border: 0; background: none; width: 34px; height: 34px; cursor: pointer; font-size: 18px; font-weight: 800; color: var(--primary); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }
.summary div { display: flex; justify-content: space-between; padding: 5px 0; }
.summary .total { border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 10px; font-weight: 800; font-size: 18px; }
.cart-fab { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 30; border-radius: 99px !important; padding: 12px 22px !important; animation: pop .4s var(--ease); }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 13, 46, .5); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) { .modal-bg { align-items: center; padding: 20px; } }
.modal { background: var(--card); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 20px; animation: slideUp .3s var(--ease); box-shadow: 0 30px 80px rgba(15, 13, 46, .35); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
@media (min-width: 700px) { .modal { border-radius: 24px; } }
.modal.wide { max-width: 920px; }
.modal .mh { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal .mh h3 { margin: 0; flex: 1; font-size: 19px; font-weight: 800; }
.modal .x { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 12px; cursor: pointer; font-size: 20px; display: grid; place-items: center; transition: .2s; }
.modal .x:hover { background: var(--danger-soft); color: var(--danger); }
.notes .note { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; transition: .2s; }
.notes .note:hover { border-color: #c7d2fe; }
.notes .note.unread { background: var(--primary-soft); border-color: #c7d2fe; }

/* ---------- media admin ---------- */
.media-admin { display: flex; gap: 10px; flex-wrap: wrap; }
.media-admin .m { position: relative; width: 86px; height: 86px; border-radius: 14px; overflow: hidden; background: #e9ecfb; }
.media-admin .m img, .media-admin .m video { width: 100%; height: 100%; object-fit: cover; }
.media-admin .m button { position: absolute; top: 4px; inset-inline-end: 4px; background: rgba(15, 23, 42, .7); color: #fff; border: 0; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.t th { color: var(--muted); font-weight: 700; font-size: 12px; background: #fafbff; text-transform: uppercase; letter-spacing: .3px; }
table.t tbody tr { transition: background .15s; }
table.t tbody tr:hover { background: #fafbff; }
table.t .input { min-height: 36px; padding: 4px 10px; }

/* ---------- toast & empty ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 20px; border-radius: 14px; z-index: 100; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); max-width: calc(100% - 32px); text-align: center; font-weight: 700; display: flex; gap: 8px; align-items: center; animation: slideUp .3s var(--ease); }
.toast.bad { background: var(--danger); }
@media (max-width: 900px) { .toast { bottom: 90px; } }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty .ic { font-size: 40px; width: 76px; height: 76px; border-radius: 24px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .ic .ico { width: 34px; height: 34px; }
.loading { padding: 20px 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.loading::before, .loading::after { content: ""; height: 130px; border-radius: var(--radius); background: linear-gradient(90deg, #eceefa 25%, #f6f7fd 50%, #eceefa 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.loading { color: transparent; font-size: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ===================== auth (login) ===================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--side); background-image: radial-gradient(80% 60% at 100% 0%, rgba(168, 85, 247, .55), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(6, 182, 212, .4), transparent 60%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h2 { font-size: 40px; line-height: 1.25; margin: 0 0 12px; font-weight: 800; }
.auth-art p { color: #cfd3f7; font-size: 17px; max-width: 480px; }
.auth-art .pts { display: grid; gap: 12px; margin-top: 28px; }
.auth-art .pts div { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.auth-art .pts .ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); }
.auth-art .floating { position: absolute; inset-inline-end: -40px; bottom: 90px; width: 260px; opacity: .95; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.auth-side { display: flex; flex-direction: column; padding: 28px; overflow-y: auto; }
.auth-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.auth-box { width: 100%; max-width: 440px; margin: auto; padding: 24px 0; }
.auth-box h1 { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.3px; }
.brand-row { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: #eceefa; border-radius: 16px; padding: 5px; margin: 20px 0; }
.switch button { border: 0; background: none; padding: 10px; border-radius: 12px; cursor: pointer; font-weight: 800; color: var(--muted); transition: .2s; }
.switch button.on { background: #fff; color: var(--primary); box-shadow: 0 2px 10px rgba(15, 23, 42, .08); }
.demo-box { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--primary-soft); border: 1px dashed #c7d2fe; }
.demo-box .chips { margin: 8px 0 0; flex-wrap: wrap; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-side { padding: 18px; } }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--side); background-image: radial-gradient(80% 60% at 100% 0%, rgba(168, 85, 247, .5), transparent 60%); }
.auth { width: 100%; max-width: 440px; }
.auth h2 { margin: 10px 0; }

/* ===================== landing ===================== */
.lp-head { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lp-head .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.lp-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.lp-nav a { color: #334155; font-weight: 700; padding: 8px 14px; border-radius: 12px; transition: .2s; }
.lp-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.lp-acts { display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .lp-nav { display: none; } .lp-head .brand-row { flex: 1; } .lp-acts .hide-m { display: none; } }

.hero { position: relative; overflow: hidden; }
.hero .slide { display: none; min-height: 560px; padding: 70px 0 90px; color: #fff; position: relative; }
.hero .slide.on { display: block; animation: fade .6s; }
.hero .slide .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero .s1 { background: radial-gradient(70% 80% at 100% 0%, #a855f7 0%, transparent 60%), radial-gradient(60% 70% at 0% 100%, #06b6d4 0%, transparent 60%), #1e1b4b; }
.hero .s2 { background: radial-gradient(70% 80% at 0% 0%, #22d3ee 0%, transparent 55%), radial-gradient(60% 70% at 100% 100%, #4f46e5 0%, transparent 60%), #0c2a4a; }
.hero .s3 { background: radial-gradient(70% 80% at 100% 100%, #f59e0b 0%, transparent 55%), radial-gradient(60% 70% at 0% 0%, #7c3aed 0%, transparent 60%), #2a1250; }
.hero .tag { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; backdrop-filter: blur(6px); }
.hero h1 { font-size: 52px; line-height: 1.2; margin: 18px 0 14px; font-weight: 800; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #67e8f9, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: #dbe0ff; max-width: 540px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .art { position: relative; height: 380px; }
.hero .fcard { position: absolute; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 22px; padding: 16px 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); display: flex; gap: 12px; align-items: center; animation: float 6s ease-in-out infinite; }
.hero .fcard .ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.hero .fcard .ic .ico { width: 24px; height: 24px; }
.hero .fcard b { display: block; font-size: 20px; }
.hero .fcard span { color: var(--muted); font-size: 13px; font-weight: 600; }
.hero .big-ic { position: absolute; inset: 40px 60px; border-radius: 40px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); display: grid; place-items: center; backdrop-filter: blur(8px); }
.hero .big-ic .ico { width: 140px; height: 140px; color: #fff; opacity: .9; stroke-width: 1.3; }
.hero-ctrl { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 8px; }
.hero-ctrl i { width: 10px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .3s; }
.hero-ctrl i.on { width: 32px; background: #fff; }
.hero-arrow { position: absolute; top: 50%; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transform: translateY(-50%); transition: .2s; }
.hero-arrow:hover { background: rgba(255, 255, 255, .25); }
.hero-arrow.prev { inset-inline-start: 18px; } .hero-arrow.next { inset-inline-end: 18px; }
[dir="rtl"] .hero-arrow .ico { transform: scaleX(-1); }
.hero .wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; z-index: 3; }
@media (max-width: 900px) {
  .hero .slide { min-height: 0; padding: 46px 0 80px; }
  .hero .slide .wrap { grid-template-columns: 1fr; }
  .hero .art { height: 240px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .hero-arrow { display: none; }
}

.lp-stats { margin-top: -44px; position: relative; z-index: 6; }
.lp-stats .in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px; }
.lp-stats .in div { text-align: center; }
.lp-stats b { display: block; font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stats span { color: var(--muted); font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .lp-stats .in { grid-template-columns: 1fr 1fr; } }

.lp-sec { padding: 80px 0; }
.lp-sec.alt { background: #fff; }
.lp-title { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.lp-title .eyebrow { display: inline-block; color: var(--primary); background: var(--primary-soft); font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 99px; }
.lp-title h2 { font-size: 36px; margin: 12px 0 8px; font-weight: 800; letter-spacing: -.3px; }
.lp-title h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-title p { color: var(--muted); font-size: 17px; margin: 0; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat .f { background: #fff; border-radius: 22px; padding: 26px; border: 1px solid var(--line); transition: .3s var(--ease); position: relative; overflow: hidden; }
.feat .f:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat .f .ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; box-shadow: 0 12px 24px rgba(79, 70, 229, .25); }
.feat .f .ic .ico { width: 28px; height: 28px; }
.feat .f h3 { margin: 0 0 6px; font-size: 19px; }
.feat .f p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } .lp-sec { padding: 56px 0; } .lp-title h2 { font-size: 28px; } }

.steps-tabs { display: flex; justify-content: center; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps .s { background: var(--bg); border-radius: 22px; padding: 26px; position: relative; border: 1px solid var(--line); }
.steps .s::before { counter-increment: s; content: counter(s); position: absolute; top: 20px; inset-inline-end: 22px; font-size: 54px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #c7d2fe; }
.steps .s .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.steps .s h3 { margin: 0 0 4px; }
.steps .s p { margin: 0; color: var(--muted); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cats .c { border-radius: 22px; padding: 22px 18px; color: #fff; position: relative; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; transition: .3s var(--ease); }
.cats .c:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .18); }
.cats .c .ico { position: absolute; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; opacity: .95; }
.cats .c::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .14); bottom: -60px; inset-inline-start: -40px; }
.cats .c b { font-size: 18px; position: relative; z-index: 1; }
@media (max-width: 800px) { .cats { grid-template-columns: 1fr 1fr; } }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: #c7d2fe; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: .25s; color: var(--primary); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.cta-band { background: var(--grad); border-radius: 30px; padding: 46px; color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .1); inset-inline-end: -80px; top: -120px; }
.cta-band h2 { margin: 0 0 6px; font-size: 32px; }
.cta-band p { margin: 0; color: #e0e3ff; }
.lp-foot { background: var(--side); color: #a9aee0; padding: 54px 0 26px; margin-top: 80px; }
.lp-foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.lp-foot h4 { color: #fff; margin: 0 0 12px; }
.lp-foot a { color: #a9aee0; display: block; padding: 3px 0; }
.lp-foot a:hover { color: #fff; }
.lp-foot .copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 18px; text-align: center; font-size: 13px; }
@media (max-width: 700px) { .lp-foot .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; bottom: 22px; inset-inline-start: 22px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .45); z-index: 40; transition: .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 30px; height: 30px; }
.reveal { opacity: 0; transform: translateY(24px); transition: .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== متغيرات المنتج (لون / مقاس / شكل) ===== */
.optbox { border: 1.5px dashed #d5d9ea; border-radius: var(--radius); padding: 14px; background: #fafbff; }
.optg { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-top: 10px; }
.optg-h { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-bottom: 8px; }
.optvals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.optvals .input { flex: 1; min-width: 150px; }
.optval { display: inline-flex; align-items: center; gap: 4px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; animation: pop .3s var(--ease); }
.optval button { border: 0; background: none; color: var(--danger); font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }
.vtable { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vhead, .vrow2 { display: grid; grid-template-columns: 1fr 120px; gap: 8px; align-items: center; padding: 7px 12px; }
.vhead { background: var(--primary-soft); font-weight: 800; font-size: 13px; color: var(--primary-dark); }
.vtable .vrow2 + .vrow2 { border-top: 1px solid var(--line); }
.pick-g { margin-bottom: 12px; }
.pick-vals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pick-vals button { border: 1.5px solid var(--line); background: var(--card); border-radius: 13px; padding: 8px 18px; font: inherit; font-weight: 800; cursor: pointer; transition: .18s var(--ease); min-width: 56px; }
.pick-vals button:hover { border-color: #c7d2fe; }
.pick-vals button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.pick-vals button.out { opacity: .45; text-decoration: line-through; }
.vmatrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vmatrix th, .vmatrix td { border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); padding: 8px; text-align: center; }
.vmatrix tr:last-child td, .vmatrix tr:last-child th { border-bottom: 0; }
.vmatrix th { background: var(--primary-soft); color: var(--primary-dark); }

/* ===================== v3: المساعدة · الدعم · التعليم · الاستيراد · التقارير ===================== */
.help-w { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 48; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-weight: 800; padding: 13px 18px; border-radius: 99px; box-shadow: 0 14px 34px rgba(99, 72, 230, .45); transition: .25s var(--ease); animation: pop .5s var(--ease); }
.help-fab .ico { width: 22px; height: 22px; }
.help-fab:hover { transform: translateY(-2px) scale(1.03); }
.help-w.open .help-fab span { display: none; }
.help-panel { width: min(370px, calc(100vw - 28px)); max-height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(15, 13, 46, .3); display: flex; flex-direction: column; overflow: hidden; animation: slideUp .3s var(--ease); border: 1px solid var(--line); }
.hp-head { background: var(--side); background-image: radial-gradient(90% 120% at 100% 0%, rgba(168, 85, 247, .55), transparent 60%); color: #fff; padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.hp-head .small { color: #c7cbf5; }
.hp-head > div:nth-child(2) { flex: 1; min-width: 0; }
.hp-head .x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.hp-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fafbff; min-height: 180px; }
.hp-msg { max-width: 85%; padding: 9px 13px; border-radius: 16px; font-size: 14px; white-space: pre-line; animation: pop .25s var(--ease); }
.hp-msg.assistant { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.hp-msg.user { background: var(--grad); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.hp-msg.typing { color: var(--muted); letter-spacing: 3px; }
.hp-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; scrollbar-width: none; background: #fafbff; }
.hp-quick button { flex: 0 0 auto; border: 1px solid #c7d2fe; background: #fff; color: var(--primary-dark); border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.hp-form { display: flex; gap: 8px; padding: 10px 12px; background: #fafbff; border-bottom: 1px solid var(--line); }
.hp-form .input { min-height: 42px; }
.hp-form .btn { min-width: 46px; padding: 0; }
.hp-acts { padding: 12px; display: grid; gap: 8px; }
@media (max-width: 900px) { .help-w { bottom: 84px; inset-inline-end: 14px; } .help-fab span { display: none; } .help-fab { padding: 14px; } .help-panel { max-height: calc(100vh - 190px); } .hp-body { min-height: 120px; } }

.help-tile { display: flex; gap: 12px; align-items: center; text-align: start; cursor: pointer; border: 1px solid var(--line); color: var(--text); font: inherit; transition: .2s var(--ease); }
.help-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.help-tile .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: 0 0 50px; }
.help-tile .ic.wa { background: #25d366; }
.help-tile .ic .ico { width: 24px; height: 24px; }
.ticket { display: block; width: 100%; text-align: start; cursor: pointer; font: inherit; color: var(--text); border: 1px solid var(--line); transition: .2s; }
.ticket:hover { border-color: #c7d2fe; box-shadow: var(--shadow-lg); }
.ticket .top { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.thread { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; }
.msg .b { padding: 10px 14px; border-radius: 16px; white-space: pre-line; }
.msg.me { align-self: flex-end; text-align: end; }
.msg.me .b { background: var(--grad); color: #fff; border-start-end-radius: 4px; }
.msg.staff .b { background: var(--bg); border: 1px solid var(--line); border-start-start-radius: 4px; }

.learn-hero { display: flex; gap: 14px; align-items: center; background: var(--grad); color: #fff; border: 0; margin-bottom: 6px; }
.learn-hero .ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.learn-hero .ic .ico { width: 28px; height: 28px; }
.lessons { display: grid; gap: 10px; }
.lesson summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 15px; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary b { flex: 1; }
.lesson summary .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.lesson summary > .ico { color: var(--muted); transition: .25s; }
.lesson[open] summary > .ico { transform: rotate(180deg); }
.lesson[open] { box-shadow: var(--shadow-lg); }
.vid { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; margin-top: 12px; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-mini .card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.steps-mini .n { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps-mini .btn { margin-top: auto; }
@media (max-width: 760px) { .steps-mini { grid-template-columns: 1fr; } }
.err-box { background: var(--danger-soft); color: #991b1b; border-radius: 13px; padding: 10px 14px; font-size: 13px; margin-bottom: 10px; max-height: 220px; overflow-y: auto; }

.chart-wrap { position: relative; margin-top: 10px; }
.bars { width: 100%; height: auto; display: block; overflow: visible; }
.bars .grid-l { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.bars .base-l { stroke: #cbd2e6; stroke-width: 1; }
.bars .b { fill: var(--primary); transition: fill .15s; }
.bars .bar.on .b { fill: var(--primary-dark); }
.bars text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart-wrap .tip { position: absolute; transform: translate(-50%, -110%); background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; }
.bosta-chip { background: #fff1e6; color: #c2410c; }[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
.btn.pulse { animation: pulseG 1.2s ease-in-out 3; } @keyframes pulseG { 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, .25); transform: scale(1.02); } }

/* ===== الأقسام (الأدمن) ===== */
.cat-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.cat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); transition: .2s var(--ease); }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card.off { opacity: .6; }
.cat-top { color: #fff; padding: 18px 16px; display: flex; align-items: center; gap: 10px; min-height: 84px; }
.cat-top .ico { width: 30px; height: 30px; }
.cat-top b { flex: 1; font-size: 17px; }
.cat-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.icon-pick button { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: #334155; }
.icon-pick button .ico { width: 22px; height: 22px; }
.icon-pick button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.color-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.color-pick button { width: 40px; height: 40px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.color-pick button.on { box-shadow: 0 0 0 3px var(--primary); }
.cat-preview .cats { grid-template-columns: 1fr; }
.cat-preview .c { min-height: 110px; cursor: default; }

/* ===== التواصل في الصفحة الرئيسية ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-grid .ct { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; gap: 14px; align-items: center; color: var(--text); transition: .25s var(--ease); }
.contact-grid a.ct:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.contact-grid .ct .ic { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; flex: 0 0 54px; }
.contact-grid .ct .ic .ico { width: 26px; height: 26px; }
.contact-grid .ct b { display: block; }
.contact-grid .ct span { color: var(--muted); font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff !important; padding: 0 !important; }
.socials a:hover { background: var(--primary); }
.socials .ico { width: 20px; height: 20px; }
.lp-wa-top { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; color: #fff; background: #25d366; border-radius: 14px; box-shadow: 0 6px 16px rgba(37, 211, 102, .35); transition: .2s var(--ease); }
.lp-wa-top:hover { transform: translateY(-2px) scale(1.05); }
.lp-wa-top .ico { width: 22px; height: 22px; }
.lp-nav a, .lp-wa-top, .brand-row, .lp-acts .btn { white-space: nowrap; }
.lp-head .brand-row { flex-shrink: 0; }
@media (max-width: 1360px) { .lp-nav a { padding: 8px 9px; } }
@media (max-width: 1100px) { .lp-nav a[href="#contact"] { display: none; } }