/* =====================================================================
   جو تو دي هوست — الهوية الجديدة (dh2)
   توكنز فاتح/داكن عبر [data-theme] على <html> + مكوّنات مشتركة + صفحات المتجر
   IBM Plex Sans Arabic — RTL بخصائص منطقية
===================================================================== */

/* ---------- ١) التوكنز ---------- */
:root {
  color-scheme: light;
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --surface-2: #F1F1EC;
  --line: #E4E4DD;
  --line-2: #CFCFC6;
  --text: #1C1F1E;
  --muted: #5E6562;
  --brand: #0F766E;
  --brand-hover: #0B5F59;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3F2EF;
  --accent: #D97706;
  --accent-strong: #B45309;
  --accent-on: #FFFFFF;
  --accent-ink: #92400E;
  --accent-soft: #FDF1DF;
  --ok: #15803D;
  --ok-soft: #E4F4E9;
  --bad: #B42318;
  --bad-soft: #FDE9E7;
  --warn: #92400E;
  --warn-soft: #FDF1DF;
  --info: #0F5F8C;
  --info-soft: #E3F0F8;
  --input-bg: #FFFFFF;
  --ring: color-mix(in srgb, var(--brand) 28%, transparent);
  --shadow: 0 1px 2px rgba(16,24,20,.05), 0 8px 24px rgba(16,24,20,.06);
  --shadow-lg: 0 2px 4px rgba(16,24,20,.06), 0 18px 48px rgba(16,24,20,.12);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --header-h: 68px;
  /* مقياس المسافات */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --font: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1312;
  --surface: #151B1A;
  --surface-2: #1B2322;
  --line: #26302E;
  --line-2: #34413E;
  --text: #ECEFEE;
  --muted: #9BA6A3;
  --brand: #2DD4BF;
  --brand-hover: #5EEAD4;
  --brand-ink: #06201D;
  --brand-soft: #123532;
  --accent: #F5B04A;
  --accent-strong: #F5B04A;
  --accent-on: #2A1A04;
  --accent-ink: #F5B04A;
  --accent-soft: #3A2A12;
  --ok: #4ADE80;
  --ok-soft: #12301F;
  --bad: #FCA5A5;
  --bad-soft: #3A1815;
  --warn: #F5B04A;
  --warn-soft: #3A2A12;
  --info: #7DD3FC;
  --info-soft: #11293A;
  --input-bg: #101615;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 20px 56px rgba(0,0,0,.5);
}

/* أسماء قديمة (alias) — عشان أي ستايل inline أو ملف قديم ياخد الألوان الجديدة */
:root {
  --bg2: var(--surface-2); --sf: var(--surface); --sf2: var(--surface-2); --bd: var(--line);
  --tx: var(--text); --tx80: color-mix(in srgb, var(--text) 80%, transparent); --mu: var(--muted);
  --ac: var(--brand); --ac2: var(--brand); --ac-cc: var(--brand-hover); --ac-27: var(--brand-soft);
  --r: var(--radius); --r-lg: var(--radius-lg);
  /* لوحة العميل */
  --cl-bg: var(--bg); --cl-side: var(--surface); --cl-card: var(--surface); --cl-card2: var(--surface-2);
  --cl-line: var(--line); --cl-line2: var(--line-2); --cl-bd: var(--line-2); --cl-bg2: var(--input-bg);
  --cl-txt: var(--text); --cl-fg: var(--text); --cl-mu: var(--muted);
  --cl-ac: var(--brand); --cl-ac2: var(--brand); --cl-ok: var(--ok); --cl-bad: var(--bad);
  /* مدير الملفات والويب ميل (fileman.css / webmail.js) */
  --panel: var(--surface); --panel2: var(--surface-2); --txt: var(--text);
  --gold: var(--brand); --gold2: var(--brand);
}

/* ---------- ٢) الأساس ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.7; text-align: start; /* الاتجاه من <html dir> */
  -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--s3); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 var(--s4); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; }
code, .mono, textarea.code { direction: ltr; text-align: left; font-family: var(--mono); unicode-bidi: plaintext; }
code { font-size: .92em; background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
button { font-family: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1160px, 100% - 48px); } }
[hidden] { display: none !important; }
.stack { display: grid; gap: var(--s4); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.grid { display: grid; gap: var(--s5); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- ٣) الأزرار ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  background: var(--surface); color: var(--text); border-color: var(--line-2);
  transition: transform .15s, background-color .2s, border-color .2s, color .2s, filter .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn.tiny { min-height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
/* الأساسي */
.btn-primary, .btn-solid, .btn.primary, .btn.solid { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-primary:hover, .btn-solid:hover, .btn.primary:hover, .btn.solid:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink); }
.btn-primary::after, .btn-solid::after, .btn.primary::after, .btn.solid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.32) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .7s;
}
.btn-primary:hover::after, .btn-solid:hover::after, .btn.primary:hover::after, .btn.solid:hover::after { transform: translateX(-120%); }
/* الشبحي */
.btn-ghost, .btn.ghost, .btn-outline-ac { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline-ac { color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover, .btn.ghost:hover { background: var(--surface-2); }
.btn-outline-ac:hover { background: var(--brand-soft); color: var(--brand); }
/* الخطر */
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn.link { background: none; border: 0; min-height: 0; padding: 0; color: var(--brand); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; display: inline-grid; place-items: center; flex: none;
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- ٤) النماذج ---------- */
.field { margin-bottom: var(--s4); }
.field label, label.lbl { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]),
.field select, .field textarea,
.input {
  width: 100%; min-height: 46px; background: var(--input-bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px;
  font: 400 15px/1.5 var(--font); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring);
}
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field .err, .field-err { color: var(--bad); font-size: 13px; margin-top: 4px; display: block; }
.field .hint, .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: block; }
.field input.invalid, .field textarea.invalid { border-color: var(--bad); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }

/* ---------- ٥) شارات وتنبيهات ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.off, .chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--brand-soft); color: var(--brand); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.mok { background: var(--ok-soft); color: var(--ok); }
.chip.mwarn { background: var(--warn-soft); color: var(--warn); }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  font-size: 14.5px; margin-bottom: var(--s4); border: 1px solid transparent;
  border-inline-start-width: 4px;
}
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash.err { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.flash.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.flash.leaving { opacity: 0; transition: opacity .4s; }
.flash-wrap { padding-top: var(--s4); }

/* ---------- ٦) هيدر المتجر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; line-height: 1.15; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
/* لوجو مرفوع من لوحة الإدارة (نسخة فاتحة + نسخة داكنة اختيارية) */
.logo-img { display: block; height: 36px; width: auto; max-width: 180px; object-fit: contain; flex: none; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }
.cl-brand .logo-img { height: 32px; max-width: 150px; }
.auth-card .logo-img { height: 44px; max-width: 200px; }
.links { display: flex; gap: 28px; color: var(--muted); font-weight: 500; font-size: 15px; }
.links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.links a:hover { color: var(--text); border-color: var(--brand); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-end form { margin: 0; }
.nav-toggle { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: var(--s3) 0 var(--s4); }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .links { display: none; }
  .nav-toggle { display: inline-grid; }
  .site-header.open .mobile-menu { display: block; }
  .nav-end .btn-ghost.hide-sm, .nav-end .hide-sm { display: none; }
}
@media (max-width: 420px) { .logo small { display: none; } .nav-end .btn { padding: 0 12px; } }

/* ---------- ٧) الهيرو ---------- */
.hero-zone { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.b1 { width: 520px; height: 520px; background: var(--brand); top: -180px; inset-inline-end: -120px; opacity: .22; animation: float1 18s ease-in-out infinite; }
.b2 { width: 420px; height: 420px; background: var(--accent); bottom: -200px; inset-inline-start: 8%; opacity: .16; animation: float2 22s ease-in-out infinite; }
.b3 { width: 300px; height: 300px; background: #38BDF8; top: 30%; inset-inline-start: -120px; opacity: .12; animation: float1 26s ease-in-out infinite reverse; }
[data-theme="dark"] .b1 { opacity: .28; } [data-theme="dark"] .b2 { opacity: .18; }
@keyframes float1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -40px) scale(.92); } }
.grid-bg {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 22%, transparent) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero { padding-block: 56px 48px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: var(--s7); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0,1fr); gap: var(--s6); } .hero { padding-top: 36px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 13px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.25; margin: 18px 0 16px; font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.rotator { display: inline-block; color: var(--brand); min-width: 3.4em; }
.rotator span { display: inline-block; animation: wordIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes wordIn { from { opacity: 0; transform: translateY(.4em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.trust b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.trust span { color: var(--muted); font-size: 14px; }

/* كارت بحث الدومين */
.search-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); transition: transform .25s ease; }
.search-card h2, .search-card h3 { margin: 0 0 6px; font-size: 20px; }
.search-card p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.search input { flex: 1 1 140px; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: 10px 12px; outline: none; direction: ltr; text-align: right; }
.search select { flex: 0 1 auto; max-width: 100%; border: 0; background: var(--surface); color: var(--text); border-radius: 10px; padding: 0 10px; font: 500 14px var(--font); min-height: 44px; direction: ltr; cursor: pointer; }
.search .btn { flex: 0 0 auto; }
.result { margin-top: 14px; min-height: 46px; border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; background: var(--brand-soft); color: var(--brand); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; visibility: hidden; }
.result.show { opacity: 1; transform: none; visibility: visible; }
.result b { direction: ltr; }
.result a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
@media (max-width: 480px) { .tlds { grid-template-columns: repeat(2, 1fr); } }
.tld { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 14px; background: var(--surface); transition: border-color .2s, background-color .2s; }
.tld:hover { border-color: var(--brand); }
.tld b { direction: ltr; } .tld span { color: var(--muted); font-size: 13px; }
.tld.hot { border-color: var(--accent); background: var(--accent-soft); }
.tld.hot span { color: var(--accent-ink); }

/* شريط متحرك */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; margin-top: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 44px; width: max-content; animation: scroll 32s linear infinite; color: var(--muted); font-weight: 600; font-size: 15px; }
.track span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.track span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes scroll { to { transform: translateX(50%); } }

/* ---------- ٨) الأقسام ---------- */
.section { padding: var(--s8) 0; }
.section.tint { background: var(--surface-2); }
.section.flush-top { padding-top: 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; line-height: 1.3; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--brand); transform: translateY(-2px); }
.feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.feat:hover::before { opacity: 1; }
.feat > * { position: relative; }
.icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 0 0 6px; font-size: 17px; } .feat p { margin: 0; color: var(--muted); font-size: 15px; }

/* الأسعار */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 0 auto 32px; max-width: 100%; }
.toggle button { border: 0; background: transparent; color: var(--muted); font: 600 15px var(--font); padding: 8px 16px; border-radius: 9px; cursor: pointer; transition: background-color .2s, color .2s; }
.toggle button:hover { color: var(--text); }
.toggle button.on { background: var(--brand); color: var(--brand-ink); }
.toggle .save { font-size: 11px; color: var(--accent-ink); margin-inline-start: 4px; font-weight: 700; }
.toggle button.on .save { color: inherit; opacity: .9; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 340px)); justify-content: center; gap: 18px; align-items: stretch; text-align: right; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.pop { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 19px; }
.plan .desc { color: var(--muted); font-size: 14px; margin: 4px 0 18px; min-height: 44px; }
.price { font-size: 38px; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .num { display: inline-block; font-variant-numeric: tabular-nums; transition: transform .3s, opacity .3s; }
.price .num.swap { transform: translateY(-8px); opacity: 0; }
.price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-eq { color: var(--muted); font-size: 13px; min-height: 22px; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; font-size: 14.5px; flex: 1; align-content: start; }
.plan li { position: relative; padding-inline-start: 28px; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); }
.plan li::after { content: ""; position: absolute; inset-inline-start: 3px; top: 7px; width: 12px; height: 12px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.plan .btn { justify-content: center; }
.subhead { text-align: center; margin: var(--s8) auto var(--s5); max-width: 640px; }
.subhead h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.subhead p { color: var(--muted); margin: 0; }
.free-strip { margin-bottom: 28px; background: var(--surface); border: 1.5px dashed var(--brand); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; text-align: right; }
.free-strip b { color: var(--brand); }
.free-strip .limits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.free-strip .limits span { font-size: 13px; background: var(--brand-soft); color: var(--brand); border-radius: 8px; padding: 3px 10px; font-weight: 500; }
.free-strip .fp-cta { display: flex; align-items: center; gap: 16px; }
.free-strip .fp-cta strong { font-size: 28px; color: var(--brand); }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border-radius: var(--radius); background: var(--surface-2); }
.step::before { counter-increment: s; content: counter(s, arabic-indic); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-strong); color: var(--accent-on); font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 17px; } .step p { margin: 0; color: var(--muted); font-size: 15px; }
.pays { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pay { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--muted); }

/* الأسئلة */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
/* ستايل الأسئلة الشائعة بس — مش أي details في الموقع (كان بيبوّظ مجموعات سايدبار العميل) */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; flex: none; }
.faq details[open] > summary::after { content: "–"; }
.faq details p, .faq details .a { color: var(--muted); margin: 10px 0 0; }
details > summary { cursor: pointer; }

.final { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius-lg); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.final h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); flex: 1 1 280px; }
.final .btn { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.final .btn:hover { filter: brightness(1.15); color: var(--brand); border-color: var(--brand-ink); }
@media (max-width: 600px) { .final { padding: 28px 22px; } }

/* الفوتر */
.site-footer { border-top: 1px solid var(--line); margin-top: var(--s8); background: var(--surface); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s6); padding: 48px 0 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; padding: 36px 0 20px; } }
.site-footer h4 { font-size: 15px; margin-bottom: 12px; }
.site-footer .about { color: var(--muted); font-size: 14px; max-width: 44ch; margin-top: 12px; }
.site-footer .links-col a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.site-footer .links-col a:hover { color: var(--brand); }
.site-footer .contact p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.site-footer .bottom { border-top: 1px solid var(--line); padding: 18px 0; color: var(--muted); font-size: 13px; text-align: center; }
.site-footer .bottom .en { direction: ltr; display: inline-block; }

/* ---------- ٩) الصفحات الداخلية للمتجر ---------- */
.page { padding: var(--s7) 0 var(--s8); }
.page .wrap.narrow { width: min(820px, 100% - 32px); }
.page .wrap.narrow-sm { width: min(520px, 100% - 32px); }
.page .wrap.narrow-md { width: min(700px, 100% - 32px); }
.page .wrap.narrow-lg { width: min(860px, 100% - 32px); }
.page-head { margin-bottom: var(--s5); }
.page-head h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0; }
.page-head.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); margin-bottom: var(--s4); }
.card.flat { box-shadow: none; padding: 18px 20px; border-radius: var(--radius); }
.card.hl { border: 2px solid var(--brand); }
.card.dash { border: 1.5px dashed var(--line-2); box-shadow: none; background: var(--bg); }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); }
.card-h h2, .card-h h3 { margin: 0; font-size: 16px; }
.card-h .side { margin-inline-start: auto; font-size: 13px; color: var(--muted); }
.card.flush { padding: 0; overflow: hidden; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl .empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.tbl .end { text-align: left; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); margin-bottom: var(--s5); }
.stat-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s; }
a.stat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.stat-card b { display: block; font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-card b.ok { color: var(--ok); } .stat-card b.bad { color: var(--bad); } .stat-card b.brand { color: var(--brand); }
.stat-card span { color: var(--muted); font-size: 13.5px; }
.meter { background: var(--surface-2); border-radius: 99px; height: 8px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.meter.full > i { background: var(--bad); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.back-link { display: inline-flex; margin-top: var(--s5); color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--brand); }
.center { text-align: center; }
.amount { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* المصادقة */
.auth-page { position: relative; overflow: hidden; isolation: isolate; min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; padding: 40px 16px 56px; }
.auth-page::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; background: var(--brand); filter: blur(90px); opacity: .14; inset-inline-end: -120px; top: -140px; }
.auth-page::after { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; border-radius: 50%; background: var(--accent); filter: blur(90px); opacity: .1; inset-inline-start: -100px; bottom: -120px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .auth-card { padding: 28px 20px; } }
.auth-card .logo { margin-bottom: 22px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.auth-card .alt { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.auth-card .alt a { color: var(--brand); font-weight: 600; }
.auth-card .alt a.quiet { color: var(--muted); font-weight: 500; }
.auth-card .alt + .alt { margin-top: 6px; }
.auth-hint { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.auth-hint .mono { color: var(--brand); }
.auth-card .hint-inline { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; }

/* الدفع والطلب */
.opt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.opt { flex: 1 1 200px; display: block; cursor: pointer; position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt .opt-card, .mode-card, .cycle-opt { display: block; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; transition: border-color .2s, background-color .2s; }
.opt .opt-card b { font-size: 14.5px; }
.opt .opt-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.opt:hover .opt-card, .opt:hover .cycle-opt { border-color: var(--line-2); }
.opt input:focus-visible + .opt-card, .opt input:focus-visible + .cycle-opt { outline: 2px solid var(--brand); outline-offset: 2px; }
.opt.auto { flex: 0 0 auto; }
.opt input:checked + .opt-card, .opt input:checked + .cycle-opt { border-color: var(--brand); background: var(--brand-soft); }
.opt input:checked + .cycle-opt { color: var(--text); }
.mode-card.on, .cycle-opt.on { border-color: var(--brand) !important; background: var(--brand-soft) !important; }
.cycle-opt { display: inline-block; padding: 10px 18px; font-size: 14px; color: var(--muted); border-radius: 12px; }
.cycle-opt.on { color: var(--text) !important; }
.domain-input { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; direction: ltr; background: var(--input-bg); }
.domain-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.domain-input input { flex: 1; min-width: 120px; background: transparent; border: 0; padding: 12px 16px; color: var(--text); font-size: 16px; text-align: left; outline: none; font-family: var(--mono); }
.domain-input .suffix { display: flex; align-items: center; padding: 0 14px; background: var(--brand-soft); color: var(--brand); font: 500 14px var(--mono); border-inline-start: 1px solid var(--line-2); }
.summary-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.summary-card .info { flex: 1 1 220px; }
.summary-card .info b { font-size: 19px; }
.summary-card .price-box { text-align: center; }
.summary-card .price-box b { font-size: 32px; color: var(--brand); font-variant-numeric: tabular-nums; }

/* الفاتورة */
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.inv-head h1 { font-size: 22px; margin: 0; }
.inv-head .meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.inv-total { text-align: center; }
.inv-total .chip { font-size: 14px; padding: 6px 16px; }
.inv-total .amount { margin-top: 8px; }
.inv-items { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.inv-items td { padding: 12px 0; border-top: 1px solid var(--line); }
.inv-items td:last-child { text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gateways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.gateway { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; }
.gateway .gh { display: flex; align-items: center; gap: 8px; }
.gateway .gh .gi { font-size: 22px; line-height: 1; }
.gateway .gd { color: var(--muted); font-size: 13px; margin: 6px 0 12px; flex: 1; }
.gateway summary { color: var(--brand); font-size: 13.5px; font-weight: 600; }
.gateway details { background: transparent; border: 0; padding: 0; }
.gateway details p { font-size: 12.5px; line-height: 1.8; white-space: pre-line; }
.gateway input[type=file] { color: var(--muted); font-size: 12px; max-width: 100%; margin-bottom: 8px; }
.notice-link { display: block; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); font-size: 14px; font-weight: 500; }
.notice-link:hover { filter: brightness(.97); }
.log-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.log-tbl td { padding: 9px 0; border-top: 1px solid var(--line); }
.log-tbl td:last-child { text-align: left; }
.st-ok { color: var(--ok); font-weight: 600; } .st-wait { color: var(--warn); font-weight: 600; } .st-bad { color: var(--bad); font-weight: 600; }

/* صفحة التحويل (إنستا باي / فودافون كاش) */
.pay-summary { text-align: center; }
.pay-status { margin: 14px auto 0; font-size: 13.5px; font-weight: 700; color: var(--brand); width: fit-content; max-width: 100%; }
.pay-amt { margin: 16px 0 4px; direction: ltr; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pay-amt b { font-size: clamp(40px, 12vw, 56px); letter-spacing: -1.5px; line-height: 1; font-variant-numeric: tabular-nums; }
.pay-amt span { color: var(--muted); font-weight: 700; }
.pay-timer { margin-top: 14px; font-size: 13px; color: var(--muted); }
.pay-timer b { direction: ltr; display: inline-block; color: var(--text); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.pay-app { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); cursor: pointer; text-align: right; font: inherit; transition: border-color .2s; }
.pay-app:hover { border-color: var(--brand); }
.pay-app .logo-b { flex: none; width: 52px; height: 52px; border-radius: 14px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.pay-app .tx { flex: 1; min-width: 0; }
.pay-app .tx b { display: block; font-size: 16px; }
.pay-app .tx small { color: var(--muted); font-size: 12.5px; }
.pay-app .chev { font-size: 26px; color: var(--muted); }
.pay-handle { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--line-2); font-size: 13.5px; }
.pay-handle .k { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.pay-handle .v { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-handle .v b { font-size: 16px; word-break: break-all; }
.pay-steps { margin: 14px 0 0; padding: 12px 30px 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px dashed var(--line-2); font-size: 13.5px; line-height: 1.9; }
[dir="ltr"] .pay-steps { padding: 12px 14px 12px 30px; }
.ref-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); text-align: center; letter-spacing: .5px; font: inherit; }
.ref-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.pay-note { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.8; text-align: center; }
.pay-rules { margin: 10px 0 0; padding-inline-start: 18px; font-size: 13px; line-height: 1.95; color: var(--muted); }
.link-danger { background: none; border: 0; color: var(--bad); font: 500 13.5px var(--font); cursor: pointer; padding: 8px; }
.link-danger:hover { text-decoration: underline; }
.pay-toast { position: fixed; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); bottom: 26px; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 14px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 9999; }

/* التذاكر */
.thread { display: grid; gap: 14px; margin-bottom: 20px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.msg.staff { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.msg .mh { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.msg.staff .mh b { color: var(--brand); }
.msg .mb { font-size: 14.5px; line-height: 1.8; white-space: pre-line; }
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s4); margin-bottom: var(--s4); }
.usage-grid .card { margin: 0; padding: 18px; box-shadow: none; border-radius: var(--radius); }
.usage-grid .k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.usage-grid .meter { margin: 10px 0 6px; }
.usage-grid .s { font-size: 12.5px; color: var(--muted); }
.usage-grid .big { font-size: 19px; margin-top: 4px; font-weight: 600; }

.renew-banner { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; }
.renew-banner.err { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); color: var(--bad); }
.renew-banner .btn, .renew-banner .cl-btn { flex: none; }

/* نافذة التأكيد والتوست */
.dh-confirm { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(8, 12, 11, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s ease; }
.dh-confirm .box { width: min(420px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); text-align: center; }
.dh-confirm .ci { width: 48px; height: 48px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; margin: 0 auto 12px; }
.dh-confirm p { margin: 0 0 20px; line-height: 1.8; }
.dh-confirm .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dh-toasts { position: fixed; z-index: 150; inset-inline: 0; bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.dh-toast { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: fadeIn .2s ease; }

/* كشف عند النزول — بس لو الجافاسكربت اشتغل */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.settled { transition: transform .2s, box-shadow .2s, border-color .2s, background-color .2s; }

/* ---------- ١٠) تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track { width: auto; flex-wrap: wrap; justify-content: center; }
  .track .dup { display: none; }
}


/* =====================================================================
   English / LTR — نسخة الإنجليزي (html[dir="ltr"] / lang="en")
   الأساس بيستخدم خصائص منطقية؛ ده اللي كان محتاج قلب صريح.
===================================================================== */
html[lang="en"] { --font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Roboto, Arial, sans-serif; }

.lang-switch { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; font: 600 13.5px var(--font); color: var(--text); background: var(--surface); white-space: nowrap; transition: border-color .15s, color .15s; }
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
html[lang="ar"] .lang-switch { font-family: "IBM Plex Sans", var(--font); }
.mobile-menu a[hreflang] { color: var(--muted); }

[dir="ltr"] .search input,
[dir="ltr"] .plans,
[dir="ltr"] .free-strip,
[dir="ltr"] .tbl th,
[dir="ltr"] .pay-app,
[dir="ltr"] .cl-tbl th, [dir="ltr"] .cl-content .tbl th,
[dir="ltr"] .usermenu-pop a, [dir="ltr"] .usermenu-pop button { text-align: left; }
[dir="ltr"] .tbl .end,
[dir="ltr"] .inv-items td:last-child,
[dir="ltr"] .log-tbl td:last-child { text-align: right; }
[dir="ltr"] .btn-primary:hover::after, [dir="ltr"] .btn-solid:hover::after, [dir="ltr"] .btn.primary:hover::after, [dir="ltr"] .btn.solid:hover::after { transform: translateX(120%); }
[dir="ltr"] .btn-primary::after, [dir="ltr"] .btn-solid::after, [dir="ltr"] .btn.primary::after, [dir="ltr"] .btn.solid::after { transform: translateX(-120%); }
[dir="ltr"] .marquee .track { animation-name: scroll-ltr; }
@keyframes scroll-ltr { to { transform: translateX(-50%); } }
[dir="ltr"] .step::before { content: counter(s, decimal); }
/* أسهم الاتجاه (‹ في صفحة التحويل) تنقلب مع الاتجاه */
.pay-app .chev { display: inline-block; }
[dir="ltr"] .pay-app .chev { transform: scaleX(-1); }
/* الخط اللاتيني أنظف بتباعد أقل في العناوين */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.01em; }
html[lang="en"] body { line-height: 1.6; }
@media (max-width: 560px) { .site-header .nav-end .lang-switch { display: none; } }

/* بحث الدومين: حالة الإتاحة والاقتراحات */
.search-card .result { flex-wrap: wrap; }
.search-card .result .dom-st { font-weight: 700; padding: 2px 10px; border-radius: 99px; font-size: 13px; }
.search-card .result .dom-st.available { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.search-card .result .dom-st.taken { background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
.search-card .result .dom-st.unknown { background: color-mix(in srgb, #d97706 14%, transparent); color: #b45309; }
.search-card .result .dom-sugg { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.search-card .result .dom-sugg a { border: 1px solid var(--line, #dfe5e3); border-radius: 99px; padding: 3px 10px; text-decoration: none; }
.search-card .result small { flex-basis: 100%; }
/* ================= صفحة الشراء الموحدة ================= */
.co-page { padding-top: var(--s6); }
.co-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 var(--s5); padding: 0; flex-wrap: wrap; counter-reset: s; }
.co-steps li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.co-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.co-steps li.on { border-color: var(--brand); color: var(--text); }
.co-steps li.on span { background: var(--brand); color: var(--brand-ink); }
.co-steps li.done { color: var(--ok); }
.co-steps li.done span { background: var(--ok-soft); color: var(--ok); }
.co-steps li.done span::after { content: '✓'; }
.co-steps li.done span { font-size: 0; }
.co-steps li.done span::after { font-size: 14px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
@media (max-width: 960px) { .co-grid { grid-template-columns: 1fr; } }
.co-main { display: grid; gap: var(--s4); }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow); }
.co-card h2 { font-size: 18px; margin: 0 0 var(--s4); display: flex; align-items: center; gap: 10px; }
.co-card h2 .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 15px; }
.co-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.co-plan input, .co-pill input, .co-tab input, .co-gw input { position: absolute; opacity: 0; pointer-events: none; }
.co-plan .box { position: relative; display: grid; gap: 4px; height: 100%; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.co-plan .box:hover { transform: translateY(-2px); }
.co-plan input:checked + .box { border-color: var(--brand); background: var(--brand-soft); }
.co-plan input:focus-visible + .box { box-shadow: 0 0 0 4px var(--ring); }
.co-plan b { font-size: 16px; }
.co-plan small { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.co-plan strong { margin-top: 6px; font-size: 18px; color: var(--brand); }
.co-plan strong i { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 500; }
.co-plan .tag { position: absolute; top: -10px; inset-inline-start: 12px; background: var(--accent); color: var(--accent-on); font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.co-cycles, .co-years { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: var(--s4); }
.co-cycles .lbl, .co-years .lbl { color: var(--muted); font-size: 14px; }
.co-pill span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line-2); border-radius: 99px; cursor: pointer; font-size: 14px; font-weight: 600; }
.co-pill span em { font-style: normal; font-size: 11px; background: var(--ok-soft); color: var(--ok); padding: 1px 6px; border-radius: 99px; margin-inline-start: 4px; }
.co-pill input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.co-tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: var(--s4); flex-wrap: wrap; }
.co-tab span { display: block; padding: 8px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.co-tab input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.co-domain { display: flex; gap: 8px; flex-wrap: wrap; }
.co-domain input { flex: 1; min-width: 160px; }
.co-domain input, .co-domain select, .co-card .input, .co-fields input, .co-sum .coupon input { padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--input-bg); color: var(--text); font: inherit; font-size: 15px; }
.co-domain input:focus, .co-domain select:focus, .co-fields input:focus, .co-card .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.co-card .input { width: 100%; }
.co-dres { margin-top: 10px; font-weight: 600; font-size: 14.5px; min-height: 1px; }
.co-dres.ok { color: var(--ok); } .co-dres.bad { color: var(--bad); } .co-dres.maybe { color: var(--accent-strong); } .co-dres.wait { color: var(--muted); }
.co-dres .sugg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.co-dres .sugg button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 99px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 13px; }
.co-dres .sugg button:hover { border-color: var(--brand); }
.co-card .hint { color: var(--muted); font-size: 13px; margin: 10px 0 0; line-height: 1.8; }
.co-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.co-fields label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.co-fields input { width: 100%; }
.co-fields small { display: block; margin-top: 4px; font-size: 12px; }
.co-me { padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.co-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.co-gw span { display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; height: 100%; }
.co-gw i { grid-row: span 2; font-style: normal; font-size: 24px; display: grid; place-items: center; }
.co-gw small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.co-gw input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); }
.co-sum { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.co-sum h3 { margin: 0; font-size: 17px; }
.co-sum .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.co-sum .row span { color: var(--muted); }
.co-sum .note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.co-sum .note:empty { display: none; }
.co-sum .coupon summary { cursor: pointer; color: var(--brand); font-size: 13.5px; font-weight: 600; }
.co-sum .coupon input { width: 100%; margin-top: 8px; }
.co-sum .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line-2); padding-top: 12px; font-size: 15px; }
.co-sum .total b { font-size: 26px; color: var(--brand); }
.co-sum .btn.block { width: 100%; justify-content: center; }
.co-sum .trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
[hidden] { display: none !important; }
.co-suffix { display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 600; }

/* ── زرار الدخول بجوجل ── */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; color: #1f1f1f; font-weight: 700; font-size: 15px; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.btn-google:hover { border-color: #c6c6c6; box-shadow: 0 2px 8px rgba(0,0,0,.08); color: #1f1f1f; }
.or-div { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.or-div::before, .or-div::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
#coGoogle .btn-google { margin-bottom: 0; }
/* ── الصفحات القانونية / من نحن / تواصل ── */
.legal-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-top: 28px; padding-bottom: 48px; }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: 1fr; gap: var(--s4); } }
.legal-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card, #fff); }
.legal-nav a { padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14px; }
.legal-nav a:hover { background: var(--bg); }
.legal-nav a.on { background: var(--ac-soft, rgba(99,102,241,.1)); color: var(--ac); font-weight: 700; }
@media (max-width: 860px) { .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; } .legal-nav a { font-size: 13px; padding: 7px 10px; } }
.legal-doc { min-width: 0; line-height: 2; font-size: 15px; }
.legal-doc h1 { font-size: 30px; margin-bottom: 4px; }
.legal-doc h2 { font-size: 19px; margin: 28px 0 8px; display: flex; gap: 10px; align-items: center; }
.legal-doc h2 span { min-width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.legal-doc ul, .legal-doc ol { padding-inline-start: 22px; }
.legal-doc li { margin: 4px 0; }
.legal-upd { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.legal-intro { padding: 14px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.legal-note { padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: #fff8e1; color: #6d4c00; font-size: 13.5px; }
.legal-toc { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); font-size: 14px; }
.legal-toc ol { columns: 2; margin: 6px 0 0; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-co { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.legal-co th, .legal-co td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.legal-co th { width: 34%; color: var(--muted); font-weight: 600; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0; }
.about-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.about-grid b { font-size: 24px; } .about-grid h3 { font-size: 16px; margin: 6px 0 2px; } .about-grid p { font-size: 13.5px; color: var(--muted); line-height: 1.8; margin: 0; }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 18px 0; }
.contact-ways .cw { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.contact-ways .cw:hover { border-color: var(--ac); }
.contact-ways .cw b { font-size: 24px; } .contact-ways .cw span { display: flex; flex-direction: column; font-weight: 700; line-height: 1.5; } .contact-ways small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.contact-form { margin-top: 8px; } .contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .contact-form .row2 { grid-template-columns: 1fr; } }
.contact-form .field { margin-bottom: 12px; } .contact-form label { display: block; font-size: 13px; margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; font: inherit; background: var(--card, #fff); color: var(--text); }
.co-legal { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0 0; line-height: 1.7; }
/* ===== صفحة ووردبريس ===== */
.wp-hero { text-align: center; padding-top: var(--s8); padding-bottom: var(--s6); max-width: 820px; }
.wp-hero h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.3; margin: 14px 0; }
.wp-hero h1 em { font-style: normal; color: var(--brand); }
.wp-hero .lead { color: var(--muted); font-size: 18px; margin: 0 auto 22px; }
.wp-hero .cta, .wp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.wp-cta { margin-top: 32px; }