/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--ink); color: var(--mist);
  font-family: var(--font-ar); font-size: var(--fs-md); line-height: 1.7;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); font-size: 16px; line-height: 1.6; }
.latin, .num, code, .key { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--white); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: var(--fs-3xl); } h2 { font-size: var(--fs-2xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; max-width: 72ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- buttons & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--line-strong);
  background: transparent; color: var(--white); font-weight: 700; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { border-color: var(--violet); background: rgba(139, 61, 255, .08); }
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--purple-deep)); border-color: transparent; box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(135deg, var(--violet-hi), var(--violet)); }
.btn-danger { border-color: rgba(255, 92, 122, .5); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 92, 122, .08); border-color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--violet-hi); font-weight: 700; }
.link:hover { text-decoration: underline; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; color: var(--white); font-size: var(--fs-sm); }
.field .hint { color: var(--muted); font-size: var(--fs-xs); }
.input, select.input, textarea.input {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-btn);
  border: 1px solid var(--line); background: var(--ink); color: var(--white);
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(139, 61, 255, .25); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: var(--fs-sm); margin: 0; }
.errbox { border: 1px solid rgba(255, 92, 122, .45); background: rgba(255, 92, 122, .07); color: var(--mist); padding: 12px 16px; border-radius: var(--r-btn); margin-bottom: 16px; }
.errbox ul { margin: 6px 0 0; padding-inline-start: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
/* grid children must be allowed to shrink below their content (tabs, code blocks, tables) */
.p-layout > *, .two-col > *, .co > *, .hero > *, .grid-2 > *, .shell > * { min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- logo & brand devices ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-word { font-family: var(--font-en); font-weight: 700; line-height: .95; letter-spacing: -.01em; direction: ltr; text-align: start; }
.logo-word b { display: block; color: var(--white); }
.logo-word i { display: block; font-style: normal; color: var(--violet); }

.glow-divider { display: flex; align-items: center; gap: 14px; margin: 56px 0 32px; color: var(--violet); }
.glow-divider::before, .glow-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), transparent); box-shadow: 0 0 12px var(--violet); }
.glow-divider .spark { width: 14px; height: 14px; filter: drop-shadow(0 0 6px var(--violet)); }
.glow-divider .slashes { font-family: var(--font-en); font-weight: 800; letter-spacing: -2px; opacity: .8; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: var(--fs-xl); }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* the slanted cut — the one memorable element */
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
[dir="rtl"] .cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.shards {
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(139, 61, 255, .22) 58% 59%, transparent 59%),
    linear-gradient(160deg, transparent 0 70%, rgba(74, 29, 150, .45) 70% 100%),
    linear-gradient(35deg, rgba(74, 29, 150, .55) 0 18%, transparent 18%),
    radial-gradient(120% 90% at 85% 10%, rgba(139, 61, 255, .35), transparent 55%),
    radial-gradient(80% 80% at 10% 100%, rgba(74, 29, 150, .5), transparent 60%),
    var(--panel);
}

/* ---------- top nav ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(7, 5, 12, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.topnav { display: flex; gap: 4px; align-items: center; flex: 1; }
.topnav a, .topnav button.navbtn { padding: 8px 12px; border-radius: 8px; color: var(--mist); background: none; border: 0; cursor: pointer; font-weight: 500; }
.topnav a:hover, .topnav button.navbtn:hover, .topnav a[aria-current="page"] { color: var(--white); background: rgba(139, 61, 255, .1); }
.nav-end { display: flex; gap: 8px; align-items: center; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: 8px; display: none; box-shadow: 0 20px 50px -10px #000; }
.dropdown.open .dropdown-menu { display: grid; }
.dropdown-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.dropdown-menu a:hover { background: rgba(139, 61, 255, .12); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--purple-deep)); color: var(--white); font-weight: 800; font-family: var(--font-en); flex: none; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .topnav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; display: none; }
  .topnav.open { display: flex; }
  .topnav .dropdown-menu { position: static; display: grid; box-shadow: none; border: 0; padding: 0 12px; min-width: 0; background: none; }
  .nav-end .hide-sm { display: none; }
  .topbar .wrap { gap: 12px; }
}

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(74, 29, 150, .12), transparent); }
.footer .wrap { padding-top: 40px; padding-bottom: 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: var(--fs-sm); color: var(--white); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.footer ul a:hover { color: var(--white); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mist); }
.socials a:hover { border-color: var(--violet); color: var(--white); }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; grid-template-columns: none; color: var(--muted); font-size: var(--fs-xs); flex-wrap: wrap; }
@media (max-width: 800px) { .footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { margin-top: 28px; border-radius: var(--r-hero); padding: 56px 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.hero h1 { margin: 18px 0 14px; }
.hero h1 .tag { display: block; color: var(--white); }
.hero .lead { color: var(--mist); font-size: var(--fs-lg); max-width: 34ch; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; color: var(--muted); font-size: var(--fs-sm); flex-wrap: wrap; }
.hero-stats strong { display: block; color: var(--white); font-family: var(--font-en); font-size: var(--fs-lg); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 36px 22px; } }

/* mock Discord channel */
.discord { background: #1e1f22; border-radius: 14px; border: 1px solid #2b2d31; overflow: hidden; font-family: var(--font-ar); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(139, 61, 255, .25); }
html[lang="en"] .discord { font-family: var(--font-en); }
.discord-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #2b2d31; color: #f2f3f5; font-weight: 700; font-size: var(--fs-sm); }
.discord-top .hash { color: #80848e; font-family: var(--font-en); font-size: 20px; line-height: 1; }
.discord-body { padding: 16px; display: grid; gap: 16px; min-height: 300px; align-content: start; }
.dmsg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.dmsg .avatar { width: 40px; height: 40px; }
.dmsg .who { color: #f2f3f5; font-weight: 700; font-size: var(--fs-sm); display: flex; gap: 6px; align-items: center; }
.dmsg .bot-tag { background: #5865f2; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 4px; font-family: var(--font-en); }
.dmsg .time { color: #80848e; font-size: 11px; font-weight: 400; font-family: var(--font-en); }
.dembed { margin-top: 6px; background: #2b2d31; border-inline-start: 4px solid var(--violet); border-radius: 4px; padding: 12px 14px; color: #dbdee1; font-size: var(--fs-sm); }
.dembed h5 { margin: 0 0 4px; color: #fff; font-size: var(--fs-sm); }
.dbuttons { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.dbtn { background: #4e5058; color: #fff; border: 0; border-radius: 4px; padding: 6px 14px; font-size: 13px; cursor: pointer; font-weight: 500; }
.dbtn.primary { background: #5865f2; }
.dbtn:hover { filter: brightness(1.12); }
.dbtn[disabled] { opacity: .5; cursor: default; }
.dmsg.enter { animation: dmsgIn .45s var(--ease) both; }
@keyframes dmsgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s var(--ease); }
.pcard:hover { border-color: var(--line-strong); }
.pcard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h3 { margin: 0; font-size: var(--fs-md); }
.pcard p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.pcard .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.price { font-family: var(--font-en); color: var(--white); font-weight: 700; }
html[lang="ar"] .price { font-family: var(--font-ar); }
.price small { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }
.cover { aspect-ratio: 16 / 8; position: relative; display: grid; place-items: center; color: var(--white); overflow: hidden; }
.cover svg.icon { width: 46px; height: 46px; filter: drop-shadow(0 0 14px rgba(139, 61, 255, .9)); position: relative; }
.cover .ribbon { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; border: 1px solid var(--line-strong); background: rgba(7, 5, 12, .6); color: var(--mist); white-space: nowrap; }
.chip.best { color: #FFD27A; border-color: rgba(245, 181, 68, .45); }
.chip.new { color: var(--success); border-color: rgba(43, 212, 138, .45); }
.chip.pro { color: var(--violet-hi); }
.chip.offer { color: var(--danger); border-color: rgba(255, 92, 122, .45); }
.stars { color: #FFD27A; font-family: var(--font-en); font-size: var(--fs-sm); white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--success); background: rgba(43, 212, 138, .1); }
.status.warn { color: var(--warning); background: rgba(245, 181, 68, .1); }
.status.bad { color: var(--danger); background: rgba(255, 92, 122, .1); }
.status.info { color: var(--violet-hi); background: rgba(139, 61, 255, .12); }
.status.mute { color: var(--muted); background: rgba(142, 134, 163, .12); }

/* ---------- panels, chips row, offers ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .chips button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; color: var(--mist); font-size: var(--fs-sm); }
.chips a[aria-current="true"], .chips button[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.offer-banner { border-radius: var(--r-hero); padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.offer-banner h2 { font-size: var(--fs-xl); margin-bottom: 6px; }
.coupon-code { font-family: var(--font-en); font-size: var(--fs-lg); font-weight: 800; letter-spacing: .08em; padding: 10px 18px; border: 1px dashed var(--violet-hi); border-radius: var(--r-btn); color: var(--white); background: rgba(7, 5, 12, .5); }
@media (max-width: 700px) { .offer-banner { grid-template-columns: 1fr; padding: 28px 22px; } }

.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; }
.review p { margin: 8px 0 12px; }
.review .by { color: var(--muted); font-size: var(--fs-sm); }

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--violet); font-family: var(--font-en); font-size: 22px; line-height: 1; transition: transform .2s var(--ease); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- product page ---------- */
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: var(--fs-sm); margin: 24px 0 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--white); }
.p-head { border-radius: var(--r-hero); padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.p-head .cover { width: 132px; aspect-ratio: 1; border-radius: 24px; border: 1px solid var(--line-strong); }
.p-head h1 { font-size: var(--fs-2xl); margin: 6px 0; }
@media (max-width: 640px) { .p-head { grid-template-columns: 1fr; padding: 24px; } .p-head .cover { width: 88px; } }
.p-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; margin-top: 28px; align-items: start; }
.p-layout aside { position: sticky; top: 92px; }
@media (max-width: 960px) { .p-layout { grid-template-columns: 1fr; } .p-layout aside { position: static; order: -1; } }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-panel); border: 1px solid var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); }
.play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(139, 61, 255, .9); color: var(--white); box-shadow: var(--glow); margin: 0 auto 10px; border: 0; cursor: pointer; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 28px 0 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 700; }
.tabs button[aria-selected="true"] { color: var(--white); border-color: var(--violet); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checklist svg { color: var(--violet-hi); width: 20px; height: 20px; margin-top: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.timeline li { padding: 0 20px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--violet); }
.timeline li:first-child::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }

.plan-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 10px; }
.plan-opt:has(input:checked) { border-color: var(--violet); background: rgba(139, 61, 255, .08); box-shadow: inset 0 0 0 1px var(--violet); }
.plan-opt input { accent-color: var(--violet); margin-top: 6px; width: 18px; height: 18px; }
.plan-opt b { color: var(--white); display: block; }
.note { font-size: var(--fs-xs); color: var(--muted); border-inline-start: 2px solid var(--violet); padding-inline-start: 10px; margin: 12px 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; background: rgba(7, 5, 12, .4); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(139, 61, 255, .04); }
td .row { flex-wrap: nowrap; }

/* ---------- dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { border-inline-end: 1px solid var(--line); background: linear-gradient(180deg, rgba(74, 29, 150, .14), transparent 40%), var(--ink); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--mist); font-weight: 500; font-size: var(--fs-sm); }
.side nav a svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.side nav a:hover { background: rgba(139, 61, 255, .08); color: var(--white); }
.side nav a[aria-current="page"] { background: rgba(139, 61, 255, .16); color: var(--white); box-shadow: inset 3px 0 0 var(--violet); }
[dir="rtl"] .side nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--violet); }
.side nav a[aria-current="page"] svg { color: var(--violet-hi); }
.side .count { margin-inline-start: auto; background: var(--violet); color: var(--white); border-radius: 999px; font-size: 11px; padding: 0 7px; font-family: var(--font-en); }
.side .who { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: auto; }
.main { padding: 28px 32px 64px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: var(--fs-xl); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s var(--ease); }
  [dir="rtl"] .side { transform: translateX(100%); }
  .side.open { transform: none !important; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); }
  .mobile-bar { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(7, 5, 12, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .main { padding: 20px 16px 72px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; }
.stat .label { color: var(--muted); font-size: var(--fs-sm); }
.stat .value { color: var(--white); font-size: var(--fs-xl); font-weight: 700; font-family: var(--font-en); margin-top: 4px; }
html[lang="ar"] .stat .value { font-family: var(--font-ar); }
.stat .delta { font-size: var(--fs-xs); color: var(--success); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: end; gap: 8px; height: 160px; padding-top: 10px; }
.bars div { flex: 1; background: linear-gradient(180deg, var(--violet), var(--purple-deep)); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; }
.bars div span { position: absolute; bottom: -22px; inset-inline: 0; text-align: center; font-size: 11px; color: var(--muted); font-family: var(--font-en); }

.keybox { display: flex; gap: 8px; align-items: center; background: var(--ink); border: 1px dashed var(--line-strong); border-radius: var(--r-btn); padding-block: 8px; padding-inline: 14px 8px; flex-wrap: wrap; }
.keybox code { flex: 1; font-size: var(--fs-md); color: var(--white); letter-spacing: .05em; direction: ltr; text-align: start; min-width: 0; flex-basis: 160px; overflow-wrap: anywhere; }
.banner { padding: 14px 18px; border-radius: var(--r-btn); margin-bottom: 18px; border: 1px solid; }
.banner.bad { border-color: rgba(255, 92, 122, .45); background: rgba(255, 92, 122, .07); }
.banner.warn { border-color: rgba(245, 181, 68, .45); background: rgba(245, 181, 68, .07); }
.banner.ok { border-color: rgba(43, 212, 138, .45); background: rgba(43, 212, 138, .07); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
pre.code { background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px; overflow-x: auto; direction: ltr; text-align: left; font-size: 13px; color: var(--mist); margin: 0; }

.thread { display: grid; gap: 12px; }
.bubble { max-width: 640px; padding: 12px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.bubble.staff { background: rgba(139, 61, 255, .12); border-color: var(--line-strong); justify-self: end; }
.bubble .meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.attach { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }

.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); }
.empty h3 { margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; color: var(--muted); }

/* ---------- checkout ---------- */
.co { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.method { border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; display: grid; gap: 4px; justify-items: start; }
.method:has(input:checked) { border-color: var(--violet); background: rgba(139, 61, 255, .08); box-shadow: inset 0 0 0 1px var(--violet); }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method .mlogo { font-family: var(--font-en); font-weight: 800; color: var(--white); font-size: var(--fs-md); }
.method:has(input:focus-visible) { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: var(--fs-lg); color: var(--white); font-weight: 700; }
.webhook-sim { border: 1px dashed var(--warning); border-radius: var(--r-panel); padding: 18px; margin-top: 18px; background: rgba(245, 181, 68, .05); }
.pulse { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--violet); animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- demo switcher, toast, modal ---------- */
.demo { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 60; display: flex; gap: 4px; align-items: center; padding: 6px; border-radius: 14px; background: rgba(17, 12, 28, .94); border: 1px solid var(--line-strong); box-shadow: 0 10px 40px -8px #000; font-size: var(--fs-xs); }
.demo span { color: var(--muted); padding: 0 6px; }
.demo a, .demo button { padding: 7px 10px; border-radius: 9px; color: var(--mist); background: none; border: 0; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; }
.demo a[aria-current="true"] { background: var(--violet); color: var(--white); }
.demo button:hover, .demo a:hover { color: var(--white); }
@media (max-width: 600px) { .demo { inset-inline: 8px; bottom: 8px; justify-content: center; } .demo span { display: none; } }
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--panel-2); border: 1px solid var(--violet); color: var(--white); padding: 12px 20px; border-radius: 12px; box-shadow: var(--glow); animation: toastIn .3s var(--ease) both; width: max-content; max-width: calc(100vw - 32px); text-align: center; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.modal-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: 24px; width: min(520px, 100%); max-height: 90vh; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
