:root{--i-upload:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M12%2016V4M7%209l5-5%205%205%22%2F%3E%3Cpath%20d%3D%22M4%2015v3a2%202%200%20002%202h12a2%202%200%20002-2v-3%22%2F%3E%3C/svg%3E");--i-print:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M7%209V3h10v6%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%2218%22%20height%3D%228%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%2014h10v7H7z%22%2F%3E%3C/svg%3E");--i-edit:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M4%2020h4L19%209l-4-4L4%2016v4z%22%2F%3E%3Cpath%20d%3D%22M13%207l4%204%22%2F%3E%3C/svg%3E");--i-qr:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%223%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2214%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M14%2014h3v3h-3zM20%2014v0M17%2020h4M20%2017v0%22%2F%3E%3C/svg%3E");--i-chart:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M4%2020V10M10%2020V4M16%2020v-7M22%2020H2%22%2F%3E%3C/svg%3E");--i-globe:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M3%2012h18M12%203c3%203%203%2015%200%2018M12%203c-3%203-3%2015%200%2018%22%2F%3E%3C/svg%3E");--i-file:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M6%203h8l4%204v14H6z%22%2F%3E%3Cpath%20d%3D%22M14%203v4h4M9%2013h6M9%2017h6%22%2F%3E%3C/svg%3E");--i-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M5%2012.5l4.5%204.5L19%207.5%22%2F%3E%3C/svg%3E");--i-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M19%2012H5M11%206l-6%206%206%206%22%2F%3E%3C/svg%3E");--i-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021c1-5%2015-5%2016%200%22%2F%3E%3C/svg%3E");--i-grid:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%223%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%2213%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%222%22%2F%3E%3Crect%20x%3D%2213%22%20y%3D%2213%22%20width%3D%228%22%20height%3D%228%22%20rx%3D%222%22%2F%3E%3C/svg%3E");--i-plus:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M12%205v14M5%2012h14%22%2F%3E%3C/svg%3E");--i-link:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M10%2014a4%204%200%20005.7%200l3-3a4%204%200%2000-5.7-5.7l-1%201M14%2010a4%204%200%2000-5.7%200l-3%203a4%204%200%20005.7%205.7l1-1%22%2F%3E%3C/svg%3E");--i-bolt:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M13%202L5%2014h6l-1%208%208-12h-6z%22%2F%3E%3C/svg%3E");--i-device:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect%20x%3D%227%22%20y%3D%222%22%20width%3D%2210%22%20height%3D%2220%22%20rx%3D%222.5%22%2F%3E%3Cpath%20d%3D%22M11%2018h2%22%2F%3E%3C/svg%3E");--i-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%2214%22%20height%3D%2210%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%2011V8a4%204%200%20018%200v3%22%2F%3E%3C/svg%3E");--i-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M12%203l7%203v6c0%204.5-3%207.5-7%209-4-1.5-7-4.5-7-9V6zM9%2012l2%202%204-4%22%2F%3E%3C/svg%3E");--i-trash:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M4%207h16M9%207V4h6v3M6%207l1%2013h10l1-13M10%2011v6M14%2011v6%22%2F%3E%3C/svg%3E");--i-alert:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M12%203l10%2018H2zM12%2010v5M12%2018v.5%22%2F%3E%3C/svg%3E");--i-x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M6%206l12%2012M18%206L6%2018%22%2F%3E%3C/svg%3E");--i-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C/svg%3E");--i-out:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M10%204H6a2%202%200%2000-2%202v12a2%202%200%20002%202h4M16%208l4%204-4%204M20%2012H9%22%2F%3E%3C/svg%3E");--i-chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A9B6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C/svg%3E");--i-chev-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141821' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath%20d%3D%22M6%209l6%206%206-6%22%2F%3E%3C/svg%3E");}
/* بوصلة الليل (الاتجاه B): حبر كامل + ليموني إشارة فقط + شبكة وعقد وتدفق + إبرة التوجيه.
   المصدر: marketing/design/impl-B-2026-11-26/tools (style.main.css + build-css.cjs). لا تعدّل public/style.css مباشرة.
   الليموني نص على الحبر فقط (13.86:1)، والنص فوق الليموني حبر دائماً. نظام واحد للموقع والتطبيق. */
:root {
  --ink: #141821; --s1: #1D2330; --s2: #2B3342; --s3: #3a4458;
  --mut: #A3A9B6; --mut2: #8B93A5; --lime: #C6F432; --tint: #26301A; --paper: #F7F7F2;
  --bad: #FF8A80; --good: #5FD39A;
  --r: 22px; --gut: 18px;
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --ring: 0 0 0 4px rgba(198, 244, 50, .16);
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.75 var(--font); overflow-x: clip; position: relative; -webkit-font-smoothing: antialiased; min-height: 100vh; }
@media (min-width: 761px) { body { font-size: 17px; } }
/* شبكة خافتة أعلى كل صفحة */
body::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 640px; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(43, 51, 66, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(43, 51, 66, .5) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 25%, #000 20%, transparent 75%); mask: radial-gradient(ellipse 70% 60% at 50% 25%, #000 20%, transparent 75%); }
.top, main, footer, .footer { position: relative; z-index: 1; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0 0 .8rem; }
a { color: inherit; text-underline-offset: .22em; }
.btn, .brand, .nav a, .menu-item, .tabs button, .t-item a, .textlink { text-decoration: none; }
img, svg { max-width: 100%; }
.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; position: relative; }
@media (min-width: 761px) { .wrap { width: min(1200px, 100% - 64px); } }
.hidden { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: start; }
bdi, .num-ltr { unicode-bidi: isolate; }
.hint { color: var(--mut); font-size: .92rem; line-height: 1.7; margin: 0 0 .6rem; }
.mut { color: var(--mut); }
em { font-style: normal; color: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
.on-lime :focus-visible, .btn.primary:focus-visible { outline-color: var(--paper); }
.on-lime :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--lime); color: var(--ink); }

/* ───────── أيقونات (قناع SVG، تأخذ لون النص) ───────── */
.ico, .btn.arrow::after, .ticks li::before, .menu-item::before, .ico-ring::before, .mi-i::before { content: ""; display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--i, none) center / contain no-repeat; mask: var(--i, none) center / contain no-repeat; }
.btn.arrow::after { --i: var(--i-arrow); width: 20px; height: 20px; transition: transform .15s; }
.btn.arrow:hover::after { transform: translateX(-3px); }
.ico-ring { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--s3); color: var(--lime); background: var(--ink); flex: none; }
.ico-ring::before { width: 26px; height: 26px; }
.ico-ring.sq { border-radius: 16px; }
.ico-ring.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
[data-i="upload"] { --i: var(--i-upload); } [data-i="print"] { --i: var(--i-print); } [data-i="edit"] { --i: var(--i-edit); }
[data-i="qr"] { --i: var(--i-qr); } [data-i="chart"] { --i: var(--i-chart); } [data-i="globe"] { --i: var(--i-globe); }
[data-i="file"] { --i: var(--i-file); } [data-i="link"] { --i: var(--i-link); } [data-i="bolt"] { --i: var(--i-bolt); }
[data-i="user"] { --i: var(--i-user); } [data-i="grid"] { --i: var(--i-grid); } [data-i="plus"] { --i: var(--i-plus); }
[data-i="check"] { --i: var(--i-check); } [data-i="arrow"] { --i: var(--i-arrow); } [data-i="lock"] { --i: var(--i-lock); }
[data-i="shield"] { --i: var(--i-shield); } [data-i="trash"] { --i: var(--i-trash); } [data-i="alert"] { --i: var(--i-alert); }

/* ───────── أزرار ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.4;
  padding: 10px 24px; border-radius: 99px; border: 1.5px solid var(--s3); background: var(--s1); color: var(--paper); min-height: 46px; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s; text-align: center; }
.btn:hover { border-color: var(--mut2); background: var(--s2); }
.btn.primary { background: var(--lime); color: var(--ink); border-color: var(--lime); box-shadow: 0 0 0 5px rgba(198, 244, 50, .12), 0 10px 36px rgba(198, 244, 50, .22); }
.btn.primary:hover { background: #D2FA55; border-color: #D2FA55; transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(198, 244, 50, .18), 0 14px 44px rgba(198, 244, 50, .34); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 16px; min-height: 44px; font-size: .94rem; }
.btn.big { min-height: 56px; padding: 14px 32px; font-size: 1.15rem; }
.btn.wide { width: 100%; }
.btn.dk { background: var(--ink); color: var(--lime); border-color: var(--ink); box-shadow: none; }
.btn.dk:hover { background: #0d1017; border-color: #0d1017; transform: translateY(-2px); }
.btn.danger, .btn.danger-outline { color: var(--bad); border-color: rgba(255, 138, 128, .55); background: transparent; }
.btn.danger:hover, .btn.danger-outline:hover { background: rgba(255, 138, 128, .1); border-color: var(--bad); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.textlink { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: .3em; display: inline-flex; align-items: center; min-height: 44px; }
.textlink:hover { color: var(--lime); }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--lime); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
.linkbtn:hover { color: var(--paper); }

/* ───────── شارات ───────── */
.chip, .badge { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; border-radius: 99px; padding: 3px 14px; background: var(--s1); border: 1px solid var(--s2); color: var(--mut); white-space: nowrap; line-height: 1.7; }
.chip i, .badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mut2); flex: none; }
.chip.ok, .badge { background: var(--tint); border-color: #3a4a1f; color: var(--lime); }
.chip.ok i, .badge::before { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.chip.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.chip.lime i { display: none; }
.chip.warn, .badge.off { color: var(--bad); border-color: rgba(255, 138, 128, .4); background: rgba(255, 138, 128, .08); }
.chip.warn i, .badge.off::before { background: var(--bad); box-shadow: none; }
.kick { color: var(--lime); font-weight: 600; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.kick::before { content: ""; width: 30px; height: 2px; background: var(--lime); }
.kick.c { justify-content: center; }

/* ───────── بطاقات ───────── */
.card { background: var(--s1); border: 1px solid var(--s2); border-radius: var(--r); padding: 22px; }
@media (min-width: 761px) { .card { padding: 28px; } }
.card.hi { background: linear-gradient(180deg, #26301A, #1D2330 72%); border: 1.5px solid var(--lime); box-shadow: 0 0 70px rgba(198, 244, 50, .14); }
.card.flat { padding: 0; overflow: hidden; }

/* ───────── ترويسة الموقع ───────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 24, 33, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.45rem; color: var(--paper); line-height: 1; }
.brand i { width: 38px; height: 38px; flex: none; background: url(/brand/mark-on-dark.svg) center / contain no-repeat; }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-link { color: var(--mut); font-weight: 500; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 99px; }
.nav-link:hover { color: var(--paper); }
.nav-link[aria-current="page"] { background: var(--s1); color: var(--paper); box-shadow: inset 0 0 0 1px var(--s2); }
.nav .btn { white-space: nowrap; }
@media (max-width: 760px) { .nav-link:not(.keep) { display: none; } .brand { font-size: 1.25rem; } .brand i { width: 32px; height: 32px; } .top > .wrap { min-height: 60px; } }
.landing .top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; position: absolute; inset-inline: 0; }
.landing .top.stuck { position: fixed; background: rgba(20, 24, 33, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--s2); }

/* ───────── حقول ───────── */
label { display: block; font-weight: 600; font-size: 1rem; margin: 18px 0 8px; }
label.check, .pay-consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin: 16px 0; cursor: pointer; line-height: 1.7; }
input, select, textarea { display: block; width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--mut2); background: var(--s1); color: var(--paper); padding: 10px 16px; font: inherit; font-size: 1rem; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--mut); opacity: .85; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: var(--ring); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 3px 0 0; accent-color: var(--lime); flex: none; display: inline-block; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: none; }
textarea { resize: vertical; min-height: 120px; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px; background-image: var(--i-chev); background-repeat: no-repeat; background-position: left 16px center; background-size: 18px; }
select option { background: var(--s1); color: var(--paper); }
input[type="file"] { padding: 8px; min-height: 56px; color: var(--mut); border-style: dashed; cursor: pointer; }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; background: var(--lime); color: var(--ink); border: 0; border-radius: 99px; padding: 8px 18px; margin-inline-end: 14px; min-height: 40px; cursor: pointer; }
input[disabled], select[disabled] { opacity: .5; border-style: dashed; }
input:user-invalid, .invalid input { border-color: var(--bad); }
progress { width: 100%; height: 10px; border-radius: 9px; border: 0; background: var(--s2); overflow: hidden; accent-color: var(--lime); }
progress::-webkit-progress-bar { background: var(--s2); } progress::-webkit-progress-value { background: var(--lime); border-radius: 9px; } progress::-moz-progress-bar { background: var(--lime); }
.wl-trap { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }
.tsbox { margin: .8rem 0; min-height: 4px; }
.tsbox:empty { display: none; }
.msg { margin-top: 1rem; padding: .7rem 1rem; border-radius: 14px; font-size: .96rem; line-height: 1.7; border: 1px solid transparent; }
.msg:empty, #createMsg:empty, #authMsg:empty, #wlMsg:empty, #billingMsg:empty, #sLogoMsg:empty, [role="alert"]:empty { display: none; }
.msg.err { background: rgba(255, 138, 128, .08); color: var(--bad); border-color: rgba(255, 138, 128, .4); }
.msg.ok { background: rgba(95, 211, 154, .09); color: var(--good); border-color: rgba(95, 211, 154, .4); }
.msg.err::before { content: "× "; font-weight: 700; } .msg.ok::before { content: "✓ "; font-weight: 700; }
.reveal { animation: slide-in .22s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tabs { display: flex; gap: 6px; background: var(--ink); border: 1px solid var(--s2); border-radius: 16px; padding: 5px; }
.tabs button { flex: 1; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--mut); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { background: var(--s1); color: var(--lime); box-shadow: inset 0 0 0 1px var(--s3); }

/* ───────── جدول ───────── */
.tbl-wrap { overflow-x: auto; padding: 8px 14px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; color: var(--mut); font-weight: 600; font-size: .92rem; padding: 14px 18px; border-bottom: 1px solid var(--s2); }
.tbl td { padding: 16px 18px; border-bottom: 1px solid var(--s2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }

/* ───────── الصفحة الرئيسية: بطل التحويل ───────── */
.landing .top > .wrap { min-height: 84px; }
.hero { position: relative; overflow: hidden; text-align: center; padding: 120px 0 56px; }
@media (min-width: 761px) { .hero { padding: 132px 0 80px; } }
.glow { position: absolute; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(198, 244, 50, .17), rgba(198, 244, 50, 0) 62%); }
.hero .glow { width: 1100px; height: 1100px; inset-inline-start: 50%; top: -250px; transform: translateX(-50%); max-width: 200vw; }
.hero-copy { position: relative; z-index: 3; padding-top: 24px; }
.hero h1 { font-size: clamp(40px, 6.7vw, 96px); line-height: 1.2; letter-spacing: -.5px; margin: 22px 0 16px; text-wrap: balance; }
.hero .lead { font-size: clamp(18px, 1.6vw, 23px); color: var(--mut); line-height: 1.7; max-width: 760px; margin: 0 auto 32px; }
.lead { font-size: 1.15rem; color: var(--mut); line-height: 1.7; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta .btn.big { min-width: 0; }
.hero .chip { font-size: .95rem; }
.xf { display: flex; align-items: center; justify-content: center; margin-top: 64px; position: relative; z-index: 2; }
.paper { width: 240px; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 22px 26px; transform: rotate(2.5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); flex: none; text-align: start; }
.paper h5 { font-size: 1.2rem; text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 4px; font-weight: 700; }
.mi { display: flex; align-items: center; gap: 8px; padding: 11px 0; }
.mi b { height: 10px; border-radius: 5px; background: #cfcfc4; }
.mi s { flex: 1; border-bottom: 2.5px dotted #8a909a; height: 12px; margin-top: 8px; }
.pt { border: 1.5px solid var(--ink); border-radius: 8px; padding: 0 10px; font-weight: 700; font-size: 1.05rem; direction: ltr; line-height: 1.5; }
.pt.x { text-decoration: line-through; opacity: .6; }
.xf-paper { position: relative; z-index: 2; }
.morph { flex: 1; max-width: 560px; height: 260px; position: relative; }
.morph > img.cells { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph .flow { position: absolute; inset-inline: 0; top: 50%; height: 2px; }
.flow line { stroke: var(--lime); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.node { position: absolute; display: grid; place-items: center; border-radius: 50%; background: var(--ink); border: 2px solid var(--lime); box-shadow: 0 0 30px rgba(198, 244, 50, .4); inset-inline-start: calc(50% - 42px); top: calc(50% - 42px); width: 84px; height: 84px; transition: transform .5s; }
.node img { width: 54px; height: 54px; transition: transform .5s; }
.node:hover img { transform: rotate(45deg); }
.fchip { position: absolute; background: rgba(29, 35, 48, .94); border: 1px solid var(--s3); border-radius: 16px; padding: 8px 16px; font-weight: 600; font-size: .95rem; display: flex; gap: 10px; align-items: center; z-index: 3; white-space: nowrap; color: var(--paper); }
.fchip .ico { color: var(--lime); width: 18px; height: 18px; }
.morph .fchip { inset-inline-start: calc(50% - 120px); top: -14px; }
.xf-paper .fchip { top: -26px; inset-inline-end: -26px; }
.qp { display: flex; align-items: center; gap: 30px; position: relative; z-index: 2; }
.qtile { background: #fff; padding: 12px; border-radius: 22px; line-height: 0; box-shadow: 0 0 0 2px var(--lime), 0 0 60px rgba(198, 244, 50, .35); flex: none; display: inline-block; }
.qtile img { display: block; width: 150px; height: 150px; }
.phone { width: 236px; flex: none; background: var(--s1); border: 2px solid var(--s3); border-radius: 34px; padding: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 60px rgba(198, 244, 50, .12); transform: rotate(-2deg); position: relative; text-align: start; }
.phone .hd { background: var(--lime); border-radius: 22px; padding: 12px 16px; color: var(--ink); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.phone .hd img { width: 26px; height: 26px; }
.phone .r { display: flex; align-items: center; gap: 8px; padding: 12px 6px; border-bottom: 1px solid var(--s2); }
.phone .r b { height: 10px; border-radius: 5px; background: var(--s3); }
.phone .r s { flex: 1; }
.phone .pt { border-color: var(--s3); color: var(--paper); }
.phone .pt.n { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.phone .ft { padding: 12px 4px 4px; }
.xf-phone { position: relative; }
.xf-phone .fchip { top: -22px; inset-inline-start: -30px; }
.morph-v { display: none; }
@media (max-width: 760px) {
  .xf { flex-direction: column; margin-top: 36px; }
  .morph.morph-h { display: none; }
  .morph-v { display: block; width: 140px; height: 200px; max-width: none; flex: none; }
  .morph-v .node { width: 64px; height: 64px; inset-inline-start: calc(50% - 32px); top: calc(50% - 32px); }
  .morph-v .node img { width: 40px; height: 40px; }
  .morph-v .flow { inset: 0 auto 0 50%; width: 2px; height: auto; top: 0; }
  .qp { flex-direction: column; gap: 22px; margin-top: 6px; }
  .paper { width: 215px; transform: rotate(1.5deg); }
  .phone { transform: none; width: 215px; }
  .xf-phone .fchip { inset-inline-start: 50%; transform: translateX(50%); top: -40px; }
  .hero h1 em { white-space: nowrap; }
}
/* حركة: كسح الخلايا + تدفق + نبض (تتوقف مع تقليل الحركة) */
@media (prefers-reduced-motion: no-preference) {
  .morph > img.cells { animation: sweep 1.3s cubic-bezier(.2, .7, .2, 1) both; -webkit-mask-image: linear-gradient(to left, #000 50%, transparent 100%); mask-image: linear-gradient(to left, #000 50%, transparent 100%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  .morph-v > img.cells { -webkit-mask-image: linear-gradient(to top, #000 50%, transparent 100%); mask-image: linear-gradient(to top, #000 50%, transparent 100%); -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-position: 0 100%; mask-position: 0 100%; }
  @keyframes sweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
  .morph-v > img.cells { animation-name: sweep-v; }
  @keyframes sweep-v { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
  .flow line { animation: flow 1.6s linear infinite; }
  @keyframes flow { to { stroke-dashoffset: -11; } }
  .chip.ok i { animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 2px var(--lime); opacity: .6; } }
  .paper { animation: float-a 6s ease-in-out infinite; } .phone { animation: float-b 6s ease-in-out infinite; }
  @keyframes float-a { 50% { transform: rotate(2.5deg) translateY(-6px); } }
  @keyframes float-b { 50% { transform: rotate(-2deg) translateY(-6px); } }
  @media (max-width: 760px) { @keyframes float-a { 50% { transform: rotate(1.5deg) translateY(-6px); } } @keyframes float-b { 50% { transform: translateY(-6px); } } }
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .45s ease-out, transform .45s ease-out; }
  .js .rv.in { opacity: 1; transform: none; }
}

/* ───────── الصفحة الرئيسية: أقسام ───────── */
.section { padding-block: clamp(56px, 8vw, 100px) 0; position: relative; }
.h2, .section h2 { font-size: clamp(32px, 3.75vw, 54px); letter-spacing: -.3px; line-height: 1.25; }
.section h2 + .lead { margin-top: 10px; }
.sec-top { margin-bottom: clamp(28px, 4vw, 48px); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cols3, .feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .cols2, .cols3, .feats { grid-template-columns: 1fr; } }
.ba-card { padding: 28px; }
@media (min-width: 761px) { .ba-card { padding: 36px; } }
.ba-card.before { border-style: dashed; }
.ba-top { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; color: var(--mut); font-weight: 700; font-size: 1.15rem; flex-wrap: wrap; }
.ba-top .ico { width: 26px; height: 26px; }
.ba-card.after .ba-top { color: var(--lime); }
.ba-card .paper { width: 100%; transform: none; box-shadow: none; margin-bottom: 20px; padding: 16px 20px; animation: none; }
.ba-card .q { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; margin: 0; line-height: 1.6; }
.ba-live { display: flex; gap: 22px; align-items: center; margin-bottom: 20px; }
.ba-live .qtile { padding: 8px; } .ba-live .qtile img { width: 104px; height: 104px; }
.ba-live .strip { flex: 1; height: 98px; position: relative; min-width: 0; } .ba-live .strip img { width: 100%; height: 100%; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.tl::before { content: ""; position: absolute; inset-inline: 8%; top: 38px; border-top: 2px dashed var(--s3); }
.step .num { width: 78px; height: 78px; border-radius: 50%; background: var(--ink); border: 2px solid var(--lime); display: grid; place-items: center; font-size: 2.1rem; font-weight: 700; color: var(--lime); position: relative; z-index: 2; box-shadow: 0 0 0 8px var(--ink), 0 0 30px rgba(198, 244, 50, .25); line-height: 1; }
.step .card { margin-top: 24px; min-height: 190px; }
.step h3 { font-size: clamp(22px, 2vw, 28px); margin: 14px 0 4px; }
.step p { color: var(--mut); font-size: 1.1rem; margin: 0; }
@media (max-width: 760px) {
  .tl { grid-template-columns: 1fr; gap: 18px; } .tl::before { display: none; }
  .step { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: start; }
  .step .num { width: 60px; height: 60px; font-size: 1.6rem; box-shadow: 0 0 0 6px var(--ink); }
  .step .card { margin-top: 0; min-height: 0; padding: 20px; }
}
.show { position: relative; overflow: hidden; }
.show .show-bar { padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--s2); gap: 12px; position: relative; }
.show-grid { display: grid; grid-template-columns: 1.7fr 1fr; position: relative; }
.show-list { padding: 8px 28px; }
.show-side { padding: 26px 28px; border-inline-start: 1px solid var(--s2); }
.crow { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--s2); }
.crow:last-child { border-bottom: 0; }
.crow .grow { flex: 1; min-width: 0; }
.crow .t { font-size: 1.3rem; font-weight: 600; }
.qsm { background: #fff; padding: 5px; border-radius: 12px; line-height: 0; flex: none; }
.qsm img, .qsm svg { width: 66px; height: 66px; display: block; }
.meter { height: 12px; border-radius: 9px; background: var(--s2); overflow: hidden; }
.meter i, .usage > div { display: block; height: 100%; border-radius: 9px; background: var(--lime); box-shadow: 0 0 14px rgba(198, 244, 50, .5); transition: width .5s ease-out; }
.usage { height: 12px; border-radius: 9px; background: var(--s2); overflow: hidden; margin-top: 14px; }
.promo-mini { margin-top: 22px; padding: 22px; border-radius: 22px; background: var(--lime); color: var(--ink); }
.promo-mini b { font-size: 1.5rem; display: block; line-height: 1.3; }
@media (max-width: 860px) { .show-grid { grid-template-columns: 1fr; } .show-side { border-inline-start: 0; border-top: 1px solid var(--s2); } .crow { flex-wrap: wrap; gap: 14px; } .show .show-bar { padding: 18px; } .show-list, .show-side { padding-inline: 18px; } }
.feat h3 { font-size: clamp(21px, 1.9vw, 26px); margin: 16px 0 6px; line-height: 1.4; }
.feat p { color: var(--mut); font-size: 1.1rem; margin: 0; }
.also { color: var(--mut); margin: 28px 0 0; font-size: 1.1rem; }
.also strong { color: var(--paper); }
.cycle { position: relative; display: inline-flex; padding: 5px; gap: 4px; background: var(--s1); border: 1px solid var(--s2); border-radius: 99px; margin-bottom: 40px; }
.cycle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cycle label { margin: 0; padding: 8px 24px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; cursor: pointer; font-weight: 600; color: var(--mut); transition: background-color .15s, color .15s; }
.cycle label .save-tag { font-size: .78rem; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 0 9px; }
.cycle input:checked + label { background: var(--lime); color: var(--ink); }
.cycle input:checked + label .save-tag { background: var(--ink); color: var(--lime); }
.cycle input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 3px; }
.pricing-head { text-align: center; }
.plans { display: grid; align-items: start; grid-template-columns: 1fr 1.1fr; gap: 28px; max-width: 1040px; margin: 0 auto; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; overflow: hidden; padding: 28px 24px; }
@media (min-width: 761px) { .plan { padding: 38px; } }
.plan h3 { font-size: 1.6rem; color: var(--mut); font-weight: 600; }
.plan.pro h3 { color: var(--lime); }
.amt { display: flex; align-items: baseline; gap: 10px; direction: ltr; justify-content: flex-end; flex-wrap: wrap; }
[dir="rtl"] .amt { justify-content: flex-start; direction: rtl; }
.amt .n { font-size: clamp(56px, 6vw, 78px); font-weight: 700; line-height: 1.15; direction: ltr; unicode-bidi: isolate; }
.amt .per { font-size: 1.4rem; font-weight: 500; color: var(--mut); }
.alt { font-size: 1.2rem; color: var(--mut); margin: 0; }
.old { text-decoration: line-through; }
.p-y { display: none; }
.pricing:has(#cyY:checked) .p-y { display: block; }
.pricing:has(#cyY:checked) .p-m { display: none; }
.ticks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 13px; font-size: 1.12rem; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.ticks li::before { --i: var(--i-check); color: var(--lime); width: 22px; height: 22px; margin-top: 3px; }
.ribbon { position: absolute; top: 24px; inset-inline-end: 24px; background: var(--lime); color: var(--ink); border-radius: 99px; padding: 2px 14px; font-weight: 700; font-size: .9rem; }
.plan .btn { width: 100%; }
.pay-note { text-align: center; color: var(--mut); margin: 36px 0 0; font-size: 1.05rem; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: 1fr 1fr; } } @media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.t-item { padding: 24px; display: block; }
.t-item .ico-ring { width: 46px; height: 46px; } .t-item .ico-ring::before { width: 22px; height: 22px; }
.t-item p { font-size: 1.08rem; margin: 14px 0 0; font-weight: 500; }
.t-item a { color: var(--lime); text-decoration: underline; }
.faq details { border-bottom: 1px solid var(--s2); padding: 4px 0; }
.faq summary { font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; min-height: 56px; padding-block: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime); font-size: 1.8rem; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--mut); margin: 0 0 18px; font-size: 1.1rem; max-width: 760px; }
.faq a { color: var(--lime); }
.final-panel { border-radius: 36px; background: var(--lime); color: var(--ink); padding: 28px 22px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (min-width: 761px) { .final-panel { padding: 60px; } }
@media (max-width: 860px) { .final-panel { grid-template-columns: 1fr; gap: 24px; border-radius: 28px; } }
.final-panel .deco { position: absolute; inset-inline-end: -90px; top: -90px; opacity: .12; width: 420px; height: 420px; pointer-events: none; }
.final-panel h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.25; }
.final-panel .lead { color: var(--ink); font-size: 1.25rem; margin-top: 10px; }
.final-form { position: relative; }
.final-form label { color: var(--ink); margin-top: 0; }
.final-form label + input, .final-form label + select { margin-bottom: 14px; }
.final-form input:not([type="checkbox"]), .final-form select { background-color: #fff; color: var(--ink); border-color: var(--ink); }
.final-form select { background-image: var(--i-chev-dark); background-repeat: no-repeat; }
.final-form input::placeholder { color: #5B6270; }
.final-form input:focus, .final-form select:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20, 24, 33, .22); }
.final-form label.check { color: var(--ink); font-size: .95rem; font-weight: 500; }
.final-form label.check a { color: var(--ink); font-weight: 700; }
.final-form input[type="checkbox"] { accent-color: var(--ink); }
.final-form .msg { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.final-form .msg.err { color: var(--bad); } .final-form .msg.ok { color: var(--good); }
.final-form .btn { margin-top: 6px; }
.final-form .center-t { text-align: center; font-weight: 600; margin: 14px 0 0; }
.final-form .center-t a { color: var(--ink); }
.footer { border-top: 1px solid var(--s2); margin-top: clamp(56px, 8vw, 90px); padding-block: 40px 48px; color: var(--mut); font-size: .98rem; }
.footer.wrap { padding-inline: 0; }
.footer a { color: var(--mut); } .footer a:hover { color: var(--paper); }
.foot-grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.foot-grid p { margin: 8px 0 0; max-width: 360px; }
.foot-links { display: flex; gap: 8px 26px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer:not(.wrap) { }
main + .footer.wrap, .footer.wrap { text-align: center; }
.landing .footer .foot-grid { text-align: start; }

/* ───────── التطبيق: الهيكل ───────── */
.app-top .aptabs { display: flex; gap: 6px; margin-inline-start: 18px; }
.app-top .aptabs a { padding: 9px 20px; border-radius: 99px; font-weight: 600; color: var(--mut); min-height: 44px; display: inline-flex; align-items: center; }
.app-top .aptabs a:hover { color: var(--paper); }
.app-top .aptabs a[aria-current="page"] { background: var(--s1); color: var(--paper); box-shadow: inset 0 0 0 1px var(--s2); }
.app-top .left { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .app-top .aptabs { display: none; } }
.acct { position: relative; }
.acct summary { display: flex; align-items: center; gap: 10px; border: 1px solid var(--s2); background: var(--s1); border-radius: 99px; padding: 4px 12px 4px 6px; min-height: 48px; cursor: pointer; list-style: none; }
.acct summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.acct .chev { color: var(--mut); transition: transform .2s; }
.acct[open] .chev { transform: rotate(180deg); }
.acct-panel { position: absolute; z-index: 60; top: calc(100% + 10px); inset-inline-end: 0; width: min(300px, 100vw - 36px); background: var(--s1); border: 1px solid var(--s3); border-radius: 22px; padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; gap: 2px; }
.am-head { padding: 12px 14px; display: grid; }
.am-head .hint { margin: 0; font-size: .85rem; }
.am-mail { font-weight: 700; overflow-wrap: anywhere; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--paper); font: inherit; font-weight: 500; text-align: start; cursor: pointer; }
.menu-item:hover, .menu-item:focus-visible { background: var(--s2); }
.menu-item.danger { color: var(--bad); }
.menu-item::before { width: 20px; height: 20px; }
.menu-sep { border: 0; border-top: 1px solid var(--s2); margin: 6px 0; }
.mi-plan::before { --i: var(--i-grid); } .mi-biz::before { --i: var(--i-file); } .mi-rec::before { --i: var(--i-print); }
.mi-out::before { --i: var(--i-out); } .mi-del::before { --i: var(--i-trash); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; }
.page-head .hint { margin: 6px 0 0; font-size: 1.05rem; }
.app-main { padding-bottom: 80px; position: relative; z-index: 1; }
.dash-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } .dash-side { order: -1; } }
.dash-side { display: grid; gap: 24px; }
.stat-card { display: grid; gap: 4px; }
.stat-label { font-weight: 700; font-size: 1.2rem; }
.stat-val { color: var(--mut); font-size: 1.05rem; }
.paid-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--mut); }
.upgrade-banner { background: var(--lime); color: var(--ink); border-radius: 28px; padding: 28px; position: relative; overflow: hidden; display: grid; gap: 16px; }
.upgrade-banner::before { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px; opacity: .14; background: url(/brand/needle.svg) center / contain no-repeat; filter: brightness(0); pointer-events: none; }
.upgrade-banner > * { position: relative; }
.upgrade-banner h2 { font-size: 1.9rem; line-height: 1.2; }
.upgrade-banner p { margin: 6px 0 4px; font-size: 1.05rem; }
.ub-tag { font-weight: 700; font-size: .9rem; background: var(--ink); color: var(--lime); border-radius: 99px; padding: 2px 12px; display: inline-block; }
.ub-price { font-size: 1.9rem !important; font-weight: 700; line-height: 1.4; margin: 4px 0 0 !important; }
.ub-nums { display: none; }
.upgrade-banner .btn.primary { background: var(--ink); color: var(--lime); border-color: var(--ink); box-shadow: none; }
.upgrade-banner .btn.primary:hover { background: #0d1017; }
.upgrade-banner :focus-visible { outline-color: var(--ink); }
.limit-promo { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; background: var(--lime); color: var(--ink); border-radius: 18px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.limit-promo .textlink { color: var(--ink); text-decoration-color: var(--ink); }
.limit-promo :focus-visible { outline-color: var(--ink); }
.promo-x { margin-inline-start: auto; width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 12px; }
.dash-codes { padding: 6px 22px; }
@media (min-width: 761px) { .dash-codes { padding: 6px 28px; } }
.sec-head { display: none; }
.list { display: grid; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 0; border-bottom: 1px solid var(--s2); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 1 1 340px; }
.row-info { min-width: 0; flex: 1; display: grid; gap: 2px; }
.meta { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.meta .t { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.row-date, .u { color: var(--mut); font-size: .92rem; }
.u { overflow-wrap: anywhere; }
.u.dest { max-width: 100%; }
.row-link { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row .btn.small { padding-inline: 14px; }
.btn.copy { background: transparent; }
.empty { padding: 22px; text-align: center; color: var(--mut); }
.empty.big { position: relative; overflow: hidden; padding: 56px 24px; border-radius: var(--r); background: var(--s1) url(/brand/morph-wide.svg) center / cover no-repeat; border: 1px solid var(--s2); margin-block: 18px; }
.empty.big::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(29, 35, 48, .92) 30%, rgba(29, 35, 48, .55) 100%); }
.empty.big > * { position: relative; }
.empty.big .qtile { padding: 10px; } .empty.big .qtile img { width: 110px; height: 110px; }
.empty.big h3 { font-size: clamp(24px, 2.4vw, 30px); margin: 22px 0 8px; color: var(--paper); }
.empty.big p { font-size: 1.15rem; color: var(--mut); }
.dash-codes .list > .empty.big { margin-inline: -4px; }

/* إنشاء كود (نافذة) */
.create h2 { font-size: 1.7rem; }
.create-head { display: grid; gap: 14px; margin-bottom: 8px; padding-inline-end: 56px; }
.create-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; margin-top: 12px; align-items: start; }
.create:has(#fStatic:not(.hidden)) .create-body { grid-template-columns: 1fr; }
.create:has(#fStatic:not(.hidden)) .create-prev { display: none; }
@media (max-width: 760px) { .create-body { grid-template-columns: 1fr; } .create-prev { display: none; } }
.create-prev { background: var(--ink); border: 1px solid var(--s2); border-radius: 22px; padding: 22px; text-align: center; position: relative; overflow: hidden; align-self: stretch; display: grid; place-items: center; min-height: 340px; }
.create-prev::before { content: ""; position: absolute; inset: 0; opacity: .35; background: url(/brand/morph-tall.svg) center / cover no-repeat; }
.create-prev > div { position: relative; }
.create-prev .qtile { padding: 10px; } .create-prev .qtile img { width: 150px; height: 150px; }
.pane { margin: 0; }
.pane label:first-child, .fld:first-child > label { margin-top: 14px; }
.fld-go { margin-top: 22px; }
.fld-go .btn { width: 100%; min-height: 56px; font-size: 1.1rem; }
.pane-wide { margin-top: 10px; }
.qrbox { text-align: center; margin: 18px 0; }
.qrbox canvas { max-width: min(100%, 300px); height: auto; background: #fff; padding: 14px; border-radius: 22px; box-shadow: 0 0 0 2px var(--lime), 0 0 60px rgba(198, 244, 50, .3); }
.qrbox .u { margin-top: 14px; }
.qrbox .actions { justify-content: center; margin-top: 16px; }
.qrbox .actions .btn:first-child { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* نوافذ */
dialog { border: 1px solid var(--s3); border-radius: 28px; background: var(--s1); color: var(--paper); padding: 28px 26px 26px; width: min(560px, 100% - 32px); max-height: min(92vh, 900px); overflow-y: auto; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); overscroll-behavior: contain; }
#createDlg { width: min(940px, 100% - 32px); }
dialog[open] { animation: dlg-in .22s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: rgba(10, 12, 18, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog h3 { font-size: 1.75rem; margin: 0 0 6px; padding-inline-end: 56px; line-height: 1.4; }
dialog h4 { margin: 1.2rem 0 .3rem; font-size: 1.05rem; color: var(--mut); }
dialog p:last-child { margin-bottom: 0; }
dialog .list { max-height: 55vh; overflow-y: auto; }
dialog form p { margin-top: 18px; }
dialog .row { padding: 14px 0; }
dialog .row .meta .t { font-size: 1.05rem; }
#dlgClose, .dlg-x { position: absolute; top: 24px; inset-inline-end: 24px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 14px; font-size: 0; color: transparent; z-index: 2; }
#dlgClose::before, .dlg-x::before { content: ""; width: 20px; height: 20px; background: var(--paper); -webkit-mask: var(--i-x) center / contain no-repeat; mask: var(--i-x) center / contain no-repeat; }
@media (max-width: 760px) {
  dialog { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; padding: 24px 20px 28px; max-height: 92vh; }
  #createDlg { width: 100%; }
  dialog[open] { animation: sheet-in .26s ease-out; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
}
.stat { font-size: 2.6rem; font-weight: 700; line-height: 1.3; color: var(--lime); margin: 4px 0 8px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-block: 8px; border-bottom: 1px solid var(--s2); margin: 12px 0; }
.bars > div, .bars > i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--s3); min-height: 3px; transition: background-color .15s; }
.bars > .h { background: var(--lime); box-shadow: 0 0 16px rgba(198, 244, 50, .35); }
.bars > div:hover { background: var(--mut); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s2); }
.kv:last-child { border-bottom: 0; } .kv strong { font-variant-numeric: tabular-nums; }
.upsell { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin-top: 18px; border: 1px dashed var(--s3); border-radius: 22px; }
.upsell p { flex: 1 1 200px; margin: 0; }
.swap { display: flex; align-items: center; gap: 12px; margin: 22px 0 6px; flex-wrap: wrap; justify-content: center; }
.swap .chip { max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.swap .line { flex: 1 1 24px; min-width: 24px; border-top: 2px dotted var(--lime); }
.swap img { width: 44px; height: 44px; }
.danger-box { margin: 16px 0; padding: 18px 20px; border: 1px solid rgba(255, 138, 128, .5); background: rgba(255, 138, 128, .07); border-radius: 18px; }
.danger-box p { margin: 0; }

/* ───────── الدخول والصفحات المركزية ───────── */
.stage { min-height: calc(100vh - 68px); display: grid; place-items: start center; padding: 32px 0 64px; position: relative; }
.card.auth, .authc { width: min(480px, 100%); margin: 28px auto; background: rgba(29, 35, 48, .92); border: 1px solid var(--s3); border-radius: 32px; padding: 28px 22px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); position: relative; z-index: 3; }
@media (min-width: 761px) { .card.auth, .authc { padding: 36px; } }
.card.auth h1 { font-size: clamp(28px, 3vw, 34px); margin: 18px 0 14px; }
.auth-head { display: flex; flex-direction: column; gap: 4px; }
.auth-head .logo { width: 56px; height: 56px; background: url(/brand/mark-on-dark.svg) center / contain no-repeat; }
.auth .tabs { margin: 8px 0 4px; }
.auth form label:first-child { margin-top: 12px; }
.auth-actions { margin-top: 24px; } .auth-actions .btn { width: 100%; }
.auth-links { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 10px; }
.auth-fine { text-align: center; margin: 14px 0 0; } .auth-fine a { color: var(--paper); }
.oauth { display: grid; gap: 12px; margin-bottom: 8px; }
.oauth .hint { display: flex; align-items: center; gap: 14px; text-align: center; margin: 12px 0 4px; } .oauth .hint::before, .oauth .hint::after { content: ""; flex: 1; border-top: 1px solid var(--s2); }
.notice { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 22px 18px; margin: 14px 0 18px; border-radius: 22px; border: 1px solid var(--s3); background: var(--ink); }
.notice p { margin: 0; font-size: 1.05rem; }
.notice::before { content: ""; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--lime); box-shadow: 0 0 40px rgba(198, 244, 50, .3); background: var(--ink) url(/brand/needle.svg) center / 46px no-repeat; }
.biz-note { margin-top: 6px; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-block: 18px 0; padding: 14px 18px; border-radius: 18px; }
.banner span { flex: 1 1 260px; }
body:has(#authView:not(.hidden)) .app-main { background: url(/brand/dial.svg) center 40px / min(980px, 160vw) no-repeat; background-blend-mode: normal; }
body:has(#authView:not(.hidden)) .app-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 50% at 50% 40%, rgba(198, 244, 50, .1), transparent 70%); pointer-events: none; }
.stage::before { content: ""; position: absolute; inset: 0; background: url(/brand/dial.svg) center 0 / min(980px, 160vw) no-repeat; opacity: .6; pointer-events: none; }
.ring-icon { display: inline-grid; place-items: center; }
.rep-head { display: flex; gap: 14px; align-items: center; }

/* ───────── الخطط ───────── */
.plans-hero { text-align: center; padding: 28px 0 8px; position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); min-height: 44px; margin-top: 20px; }
.back-link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transform: scaleX(-1); }
.plans-hero h1 { font-size: clamp(44px, 5.7vw, 68px); line-height: 1.2; margin: 6px 0 14px; }
.plans-hero .lead { max-width: 640px; margin: 0 auto 22px; font-size: clamp(18px, 1.6vw, 22px); }
.promo-note { color: var(--mut); margin-bottom: 20px; }
.plans-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; max-width: 1040px; margin: 24px auto 0; }
@media (max-width: 860px) { .plans-grid { grid-template-columns: 1fr; } }
.plans-grid .plan .pr { font-size: clamp(56px, 6vw, 78px); font-weight: 700; line-height: 1.15; direction: ltr; text-align: start; }
.cur-chip { margin: 8px 0 4px; }
#billing { margin-top: 18px; display: grid; gap: 0; }
#billingMsg.msg { margin-top: 0; text-align: center; margin-bottom: 14px; }
#billingMsg.hint { margin-top: 0; text-align: start; }
.plan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.plan-choice:has(> :only-child) { grid-template-columns: 1fr; }
@media (max-width: 440px) { .plan-choice { grid-template-columns: 1fr; } }
.plan-opt { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; margin: 0; padding: 14px 16px; background: var(--ink); border: 1.5px solid var(--s3); border-radius: 18px; cursor: pointer; font-weight: 400; transition: border-color .15s, background-color .15s; align-content: start; }
.plan-opt:hover { border-color: var(--mut2); }
.plan-opt:has(input:checked) { border-color: var(--lime); background: var(--tint); box-shadow: 0 0 0 1px var(--lime); }
.plan-opt:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 3px; }
.plan-opt input { grid-row: 1 / span 3; margin: 0; }
.po-name { font-weight: 700; font-size: 1.05rem; }
.po-amt { display: flex; align-items: baseline; gap: 6px; direction: ltr; justify-content: flex-end; }
.po-price { font-size: 1.9rem; font-weight: 700; line-height: 1.2; } .po-per { color: var(--mut); font-size: .9rem; }
.po-badge { position: absolute; top: -12px; inset-inline-end: 14px; background: var(--lime); color: var(--ink); font-size: .78rem; font-weight: 700; border-radius: 99px; padding: 0 10px; }
.po-save { grid-column: 2; font-size: .92rem; color: var(--mut); } .po-save.none { visibility: hidden; }
.trust-row { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; color: var(--mut); font-size: .95rem; }
.trust-row li { display: flex; gap: 10px; align-items: flex-start; }
.trust-row li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; flex: none; background: var(--lime); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.pay-panel { border-top: 1px solid var(--s2); padding-top: 16px; }
.pay-renew { color: var(--mut); font-size: .95rem; margin-bottom: 4px; line-height: 1.75; }
.pay-consent { margin: 12px 0 4px; padding: 14px 16px; border: 1.5px solid var(--s3); border-radius: 16px; background: var(--ink); }
.pay-consent a { color: var(--lime); font-weight: 600; }
.pay-consent.invalid { border-color: var(--bad); background: rgba(255, 138, 128, .08); }
.pay-err { color: var(--bad); font-weight: 600; margin: 6px 0 0; min-height: 0; } .pay-err:empty { display: none; }
.pp-host { margin-top: 14px; min-height: 48px; }
.current-plan { border: 1px solid var(--s3); border-radius: 18px; padding: 16px 18px; background: var(--ink); }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
#cancelSub { margin-top: 18px; justify-self: center; background: transparent; border-color: transparent; color: var(--bad); text-decoration: underline; text-underline-offset: .25em; }
#cancelSub:hover { background: rgba(255, 138, 128, .08); }
.cmp { background: var(--s1); border: 1px solid var(--s2); border-radius: var(--r); padding: 8px 12px; max-width: 1040px; margin: 0 auto; }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--s2); align-items: start; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-head { color: var(--mut); font-weight: 600; font-size: .95rem; }
.cmp-head .cmp-paid { color: var(--lime); }
.cmp-row [role="rowheader"] { font-weight: 700; }
.cmp-row [role="cell"]:not(.cmp-paid) { color: var(--mut); }
@media (max-width: 640px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 6px; }
  .cmp-row [role="cell"]::before { content: attr(data-l) ": "; color: var(--mut2); font-size: .88rem; }
  .cmp-row [role="cell"] { color: var(--paper) !important; }
}
.back-row { margin-top: 28px; }
.legal-links { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--mut); margin-top: 28px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mut); }

/* ───────── الصفحات القانونية ───────── */
.doc { max-width: 900px; padding-block: 28px 20px; }
.doc.has-toc { max-width: 1200px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.doc.has-toc > h1, .doc.has-toc > .hint { grid-column: 2; }
.doc.has-toc > .toc { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 92px; }
.doc.has-toc > :not(h1):not(.hint):not(.toc) { grid-column: 2; }
@media (max-width: 900px) { .doc.has-toc { display: block; } .doc.has-toc > .toc { position: static; margin-block: 8px 12px; } }
.doc h1 { font-size: clamp(36px, 4.4vw, 60px); margin: 32px 0 8px; }
.doc h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 38px 0 10px; scroll-margin-top: 90px; }
.doc p, .doc li { color: #C4C9D4; font-size: 1.08rem; line-height: 1.95; max-width: 760px; }
.doc li { margin-bottom: 6px; }
.doc ul, .doc ol { padding-inline-start: 24px; }
.doc a { color: var(--lime); }
.doc strong { color: var(--paper); }
.doc .hint { font-size: 1.05rem; }
.doc .tbl-wrap { margin: 14px 0; }
.doc .tbl td, .doc .tbl th { font-size: 1rem; }
.doc .tbl td { color: #C4C9D4; }
.toc { padding: 20px; }
.toc b { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--mut); min-height: 44px; line-height: 1.5; }
.toc a:hover { color: var(--paper); background: var(--s2); }
.toc a.on { background: var(--s2); color: var(--lime); font-weight: 600; }

/* ───────── الإيصال ───────── */
.bar { display: flex; gap: 10px; justify-content: center; margin: 16px; flex-wrap: wrap; }
.sheet { max-width: 794px; margin: 1.5rem auto 3rem; width: min(794px, 100% - 2 * var(--gut)); background: var(--paper); color: var(--ink); padding: clamp(20px, 4vw, 40px); border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); position: relative; z-index: 1; }
.sheet h1 { margin: 0 0 .2rem; font-size: 1.7rem; }
.sheet .head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
.sheet .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-block: 1.4rem; }
@media (max-width: 600px) { .sheet .grid2 { grid-template-columns: 1fr; } }
.sheet h3 { margin: 0 0 .4rem; font-size: .95rem; color: #4b5260; }
.sheet p { margin: .15rem 0; overflow-wrap: anywhere; }
.sheet table { width: 100%; border-collapse: collapse; margin-block: 1rem; }
.sheet th, .sheet td { text-align: start; padding: .6rem .5rem; border-bottom: 1px solid #d8d8cf; }
.sheet .total { font-size: 1.3rem; font-weight: 800; }
.sheet .stamp { display: inline-block; border: 2px solid #b42318; color: #b42318; padding: .1rem .8rem; border-radius: 6px; font-weight: 800; }
.sheet .foot { color: #4b5260; font-size: .88rem; margin-top: 1.5rem; }
.sheet a { color: var(--ink); }
@media print { html, body { background: #fff !important; } body::before { display: none; } .bar, .top { display: none !important; } .sheet { box-shadow: none; border-radius: 0; margin: 0; padding: 0; max-width: none; width: 100%; } }

/* ───────── لوحة الإدارة (تأخذ النظام تلقائياً) ───────── */
h2.sec { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.cards .card .n { font-size: 2rem; font-weight: 700; color: var(--lime); display: block; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--good); margin-inline-end: 8px; }

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

/* وضعا الصفحة الرئيسية: الافتراضي = قائمة الانتظار (الواقع الحالي) حتى يردّ /api/config */
html[data-mode="open"] .wl-only { display: none !important; }
.op-only { display: none; } html[data-mode="open"] .op-only { display: revert; }
.show [aria-hidden="true"] { pointer-events: none; user-select: none; }
.footer a { text-decoration: none; }
.footer.wrap a { text-decoration: underline; text-underline-offset: .2em; }
.btn.plus::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; flex: none; }
.app-top #userNav { flex: 1; justify-content: space-between; }
.app-top .aptabs { display: flex; margin-inline-start: 14px; }
.app-top .left { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.stat-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.oauth .btn::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-user) center / contain no-repeat; mask: var(--i-user) center / contain no-repeat; flex: none; }
.banner.warn { border-color: rgba(255, 138, 128, .45); background: rgba(255, 138, 128, .07); margin-top: 20px; padding: 16px 20px; }
@media (max-width: 760px) { .xf { margin-top: 56px; } .app-top #userNav { flex: 0 1 auto; } }

/* تحسينات الشبكة والصفوف */
.dash-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.dash-grid > *, .row-main, .row-info { min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; }
.row-main { flex: 1 1 100%; }
.row .actions { flex: 1 1 100%; padding-inline-start: 94px; }
dialog .row .actions { padding-inline-start: 0; }
dialog .row-main { flex: 1 1 auto; }
dialog .row .actions { flex: 0 0 auto; }
@media (max-width: 760px) { .row .actions { padding-inline-start: 0; } .qsm img, .qsm svg { width: 58px; height: 58px; } }
.row .u.dest, .row .u.short { max-width: 100%; }
#planCard:not(.hi) #planStatTxt { display: none; }
#planCard.hi .stat-val { color: var(--lime); font-size: 1.5rem; font-weight: 700; }
.upgrade-banner::before { opacity: .09; }
@media (max-width: 760px) { .app-top .aptabs { display: none; } .app-top .left { margin-inline-start: 0; } }
.dash-codes { overflow: hidden; }
.dash-codes .list > .empty.big { margin: 0 -22px; border: 0; border-radius: 0; padding-block: 64px; }
@media (min-width: 761px) { .dash-codes .list > .empty.big { margin-inline: -28px; } }
.dash-codes:has(.empty.big) { padding-block: 0; }
.wide-auth { width: min(620px, 100%); }
.card.auth, .authc { background: var(--s1); }
.create .limit-promo { margin: 14px 0 0; }
.brand { min-height: 44px; }
.footer.wrap a, .footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.footer.wrap { line-height: 1; }
#dlgClose, .dlg-x { color: var(--paper); }
.pt.x { opacity: .78; }
.auth-head:has(+ .notice:not(.hidden)) .logo { display: none; }
.bar { position: relative; z-index: 1; }

/* تنقّل «أكوادي»: تمرير سلس وتمييز قصير للقسم، والرابط الحالي مميّز */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.dash-codes.flash { animation: codesFlash 1.2s ease; }
@keyframes codesFlash { 0% { box-shadow: 0 0 0 0 rgba(198,244,50,.0); } 20% { box-shadow: 0 0 0 4px rgba(198,244,50,.55); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }
@media (prefers-reduced-motion: reduce) { .dash-codes.flash { animation: none; outline: 3px solid var(--lime, #C6F432); outline-offset: 2px; } }

/* ───────── ميزات 2026-11-26: واتساب/منيو، الطاولات، العملاء، طلب التحويل، صندوق الأدمن ───────── */
.codes-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 18px 0 14px; border-bottom: 1px solid var(--s2); }
.codes-bar .cb-filter { flex: 1 1 220px; max-width: 320px; }
.codes-bar select { min-height: 44px; padding-block: 6px; }
.codes-bar .actions .btn { white-space: nowrap; }
.cl-list .kv { padding: 8px 0; }
.cl-n { color: var(--mut); font-size: .92rem; }
.pane-wa .fld-go { margin-top: 18px; }
.menu-box { display: grid; gap: 10px; }
.win-tabs { margin: 10px 0 14px; }
.tbar { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--s2); }
.tbar .tl { overflow-wrap: anywhere; }
.tbar .tb { height: 10px; border-radius: 99px; background: var(--s2); overflow: hidden; display: block; }
.tbar .tb i { display: block; height: 100%; background: var(--lime); border-radius: 99px; box-shadow: 0 0 12px rgba(198, 244, 50, .35); min-width: 2px; }
.tbar.dim .tb i { background: var(--s3); box-shadow: none; }
.tbar strong { font-variant-numeric: tabular-nums; }
.tbl-add { margin: 14px 0 6px; }
.tbl-add-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.tbl-add-row .fld { flex: 1 1 150px; }
.tbl-add-row .fld label { margin-top: 0; }
.tbl-add-row .fld-go { margin-top: 0; }
.tbl-add-row .fld-go .btn { width: auto; min-height: 52px; font-size: 1rem; padding-inline: 26px; }
.tbl-add details { margin-top: 12px; color: var(--mut); }
.tbl-add summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.tbl-add details textarea { margin-top: 8px; min-height: 90px; }
.tbl-list { display: grid; max-height: 42vh; overflow-y: auto; border-top: 1px solid var(--s2); margin-top: 10px; }
.tbl-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) minmax(0, 1.3fr) auto; gap: 10px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--s2); }
.tbl-row input { min-height: 44px; padding-block: 6px; }
.tbl-row .u { overflow-wrap: anywhere; }
@media (max-width: 760px) { .tbl-row { grid-template-columns: 1fr; } }
.tbl-foot { margin-top: 16px; align-items: center; gap: 14px; }
.tbl-foot .hint { margin: 0; }
.imp-res { margin-top: 12px; max-height: 30vh; overflow: auto; }
#importBtn, #exportBtn, #clientsBtn { min-height: 44px; }
.by-table { margin-top: 6px; }

/* طلب تحويل المنيو (الصفحة الرئيسية) */
.conv-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: start; }
@media (max-width: 860px) { .conv-card { grid-template-columns: 1fr; gap: 20px; } }
.conv-card h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.35; margin: 0 0 10px; }
.conv-card .lead { color: var(--mut); font-size: 1.1rem; margin: 0 0 12px; }
.conv-card .fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .conv-card .fld-2 { grid-template-columns: 1fr; } }
.conv-card .wl-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.conv-card .btn.primary { margin-top: 8px; }
.conv-card #cvMsg { margin-top: 14px; }

/* صندوق الأدمن */
.cv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cv-note { min-width: 160px; min-height: 44px; padding-block: 6px; }
.tbl select.cv-status { min-height: 44px; padding-block: 6px; min-width: 130px; }

/* ورقة طباعة الطاولات (A4): تظهر عند الطباعة فقط */
#printSheet { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.printing { background: #fff !important; color: #000 !important; }
  body.printing > *:not(#printSheet) { display: none !important; }
  body.printing #printSheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; direction: rtl; }
  .ps-card { break-inside: avoid; border: .4mm solid #000; border-radius: 4mm; padding: 5mm 4mm; text-align: center; display: grid; gap: 2mm; justify-items: center; color: #000; background: #fff; font-family: var(--font); }
  .ps-label { font-size: 15pt; font-weight: 700; line-height: 1.3; }
  .ps-svg { width: 44mm; height: 44mm; }
  .ps-name { font-size: 9pt; min-height: 1.3em; }
  .ps-url { font-size: 7pt; direction: ltr; color: #333; }
}
