/* سند سايت — واجهات المنصة (الصفحة التسويقية، التسجيل، لوحة العميل، لوحة الإدارة، المحرر) */
:root {
  --green: #0E6B52;
  --green-deep: #0A3F31;
  --green-night: #072A21;
  --gold: #E0A00A;        /* ذهبي الشعار */
  --gold-deep: #8F5E00;   /* للنص الذهبي على الخلفيات الفاتحة */
  --ink: #10231C;
  --muted: #586A61;
  --mist: #EEF3EF;
  --paper: #FFFFFF;
  --line: #D6E0DA;
  --danger: #B3261E;
  --danger-bg: #FCECEA;
  --ok-bg: #E4F3EC;
  --warn-bg: #FFF4D6;
  --warn: #7A5300;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --display: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --body: "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 1px 2px rgba(7, 42, 33, .06), 0 12px 32px -12px rgba(7, 42, 33, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.75; color: var(--ink); background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: plaintext; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px;
  border: 1.5px solid transparent; background: var(--green); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); color: var(--green-night); }
.btn.gold:hover { background: #F0B526; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--green); background: var(--mist); }
.btn.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn.danger { background: transparent; color: var(--danger); border-color: #E7B9B5; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.sm { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.link-btn.danger { color: var(--danger); }

/* ---------- الشعار ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-family: var(--display); font-weight: 800; font-size: 20px; }
.logo img { width: 44px; height: 44px; flex: none; }

/* ---------- نماذج ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: border-color .15s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.7; }
.input:hover { border-color: #B4C4BB; }
.input:focus { border-color: var(--green); outline: 3px solid rgba(14,107,82,.18); outline-offset: 0; }
.input.ltr { direction: ltr; text-align: left; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--green); flex: none; }
.error-text { color: var(--danger); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }

/* ---------- تنبيهات ---------- */
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 15px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); border-color: #B9DECB; color: #0A4A38; }
.alert.err { background: var(--danger-bg); border-color: #F0C4C0; color: #7A1A14; }
.alert.info { background: var(--warn-bg); border-color: #F0DCA0; color: var(--warn); }
.alert ul { margin: 0; padding-inline-start: 20px; }

/* ---------- شارات ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--mist); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: #0B6247; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--danger-bg); color: var(--danger); }

/* =====================================================================
   الصفحة التسويقية
   ===================================================================== */
.m-head { position: fixed; inset-inline: 0; top: 0; z-index: 40; color: #fff; transition: background-color .2s, box-shadow .2s; }
.m-head.stuck, .m-head.open { background: var(--green-deep); box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -18px rgba(0,0,0,.6); }
.m-head.stuck .wrap { padding-block: 10px; }
.m-head .wrap { display: flex; align-items: center; gap: 28px; padding-block: 18px; transition: padding .2s; }
.only-mobile { display: none; }
.m-toggle { display: none; background: none; border: 0; padding: 10px 8px; cursor: pointer; }
.m-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.m-head.open .m-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.m-head.open .m-toggle span:nth-child(2) { opacity: 0; }
.m-head.open .m-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.m-head nav { display: flex; gap: 24px; margin-inline-start: 16px; flex: 1; }
.m-head nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; }
.m-head nav a:hover { color: #fff; text-decoration: underline; }
.m-head .actions { display: flex; gap: 10px; align-items: center; }
.m-head.solid { position: sticky; background: var(--green-deep); }

.hero { background: var(--green-deep); color: #fff; padding: 132px 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23175C49' stroke-width='1.2'%3E%3Cpath d='M60 6l15.9 38.1L114 60 75.9 75.9 60 114 44.1 75.9 6 60l38.1-15.9z'/%3E%3Cpath d='M60 22l26.9 11.1L98 60 86.9 86.9 60 98 33.1 86.9 22 60l11.1-26.9z'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 84px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 800; line-height: 1.22; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lede { margin-top: 20px; font-size: 19px; color: rgba(255,255,255,.84); max-width: 34em; }

.prompt { margin-top: 30px; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); }
.prompt textarea { width: 100%; border: 0; resize: none; min-height: 84px; padding: 6px 8px; font-size: 17px; line-height: 1.8; background: transparent; }
.prompt textarea:focus { outline: none; }
.prompt:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.prompt-foot .small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 5px 14px; font-size: 14px; cursor: pointer; transition: background-color .15s, color .15s; }
.chip:hover { background: rgba(255,255,255,.12); }
.chip[aria-pressed="true"] { background: #fff; color: var(--green-deep); border-color: #fff; font-weight: 600; }

.hero-stage { align-self: end; }
.browser { background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 60px -10px rgba(0,0,0,.45); overflow: hidden; color: var(--ink); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F4F2; border-bottom: 1px solid var(--line); direction: ltr; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5CF; }
.browser-bar span { margin-inline-start: 10px; flex: 1; background: #fff; border-radius: 6px; padding: 2px 10px; font-size: 12px; color: var(--muted); font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* معاينة مصغّرة لموقع: تُستخدم في الواجهة وبطاقات القوالب */
.mini { --p: #0E6B52; --a: #E9A820; --bg: #fff; --ink: #14241D; background: var(--bg); color: var(--ink); direction: rtl; transition: background-color .5s; }
.mini * { transition: background-color .5s, color .5s, border-color .5s; }
.mini-nav { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.mini-nav b { font-size: 15px; color: var(--p); margin-inline-end: auto; }
.mini-nav i { width: 26px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
.mini-nav em { width: 46px; height: 16px; border-radius: 99px; background: var(--p); }
.mini-hero { padding: 26px 18px 24px; background: color-mix(in srgb, var(--p) 8%, var(--bg)); }
.mini-hero small { display: inline-block; font-size: 10px; padding: 1px 8px; border-radius: 99px; background: color-mix(in srgb, var(--a) 28%, var(--bg)); margin-bottom: 8px; }
.mini-hero h4 { font-family: inherit; font-size: 22px; line-height: 1.35; max-width: 13em; }
.mini-hero p { font-size: 11px; line-height: 1.7; opacity: .75; margin-top: 8px; max-width: 30em; }
.mini-hero .mini-cta { display: inline-block; margin-top: 12px; background: var(--p); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 99px; }
.mini.cover .mini-hero { background: var(--p); color: #fff; }
.mini.cover .mini-hero .mini-cta { background: var(--a); color: #1a1a1a; }
.mini.center .mini-hero { text-align: center; }
.mini.center .mini-hero h4, .mini.center .mini-hero p { margin-inline: auto; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px 18px; }
.mini-cards div { border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 8px; padding: 10px; }
.mini-cards div::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--a) 60%, var(--bg)); margin-bottom: 8px; }
.mini-cards b { display: block; font-size: 11px; }
.mini-cards span { display: block; height: 4px; border-radius: 2px; margin-top: 6px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.mini-cards span + span { width: 70%; }
.hero .mini-hero { padding: 40px 26px 34px; }
.hero .mini-hero h4 { font-size: 30px; }
.hero .mini-hero p { font-size: 13px; }
.hero .mini-cards { padding: 18px 22px 30px; }

.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.steps li { list-style: none; padding: 28px 28px 8px 0; counter-increment: step; border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 54px; line-height: 1; color: var(--green); display: block; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--muted); }
ol.steps { margin: 0; padding: 0; }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.tpl { display: flex; flex-direction: column; }
.tpl-thumb { display: block; height: 262px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; background: #fff; transition: border-color .15s, transform .2s; }
.tpl-thumb:hover { border-color: var(--green); transform: translateY(-3px); }
.tpl-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; }
.tpl-meta h3 { font-size: 18px; }
.tpl-meta span { color: var(--muted); font-size: 14px; }
.tpl p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); background: #fff; }
.feats > div { padding: 28px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.feats h3 { font-size: 18px; margin-bottom: 6px; }
.feats p { color: var(--muted); font-size: 15px; }

.cmp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-family: var(--display); font-size: 15px; color: var(--muted); font-weight: 600; }
.cmp tbody th { font-weight: 600; width: 22%; }
.cmp .us { background: var(--green-deep); color: #fff; font-weight: 600; }
.cmp thead .us { border-radius: var(--r) var(--r) 0 0; color: var(--gold); font-size: 17px; }
.cmp tbody tr:last-child .us { border-radius: 0 0 var(--r) var(--r); }
.cmp-scroll { overflow-x: auto; }

.cycle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 30px; }
.cycle button { border: 0; background: transparent; border-radius: 999px; padding: 7px 20px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--muted); }
.cycle button[aria-pressed="true"] { background: var(--green-deep); color: #fff; }
.cycle small { color: var(--gold-deep); font-weight: 700; margin-inline-start: 4px; }
.cycle button[aria-pressed="true"] small { color: var(--gold); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; }
.plan.featured { background: var(--green-deep); color: #fff; border-color: var(--green-deep); }
.plan.featured .muted { color: rgba(255,255,255,.72); }
.plan h3 { font-size: 22px; }
.plan .tag { font-size: 13px; font-weight: 700; color: var(--gold); margin-inline-start: 8px; }
.plan .price { margin: 22px 0 4px; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; }
.plan .price small { font-size: 15px; font-weight: 500; font-family: var(--body); opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { padding-inline-start: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 6px; border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan.featured li::before { border-color: var(--gold); }
[data-cycle="monthly"] .if-yearly, [data-cycle="yearly"] .if-monthly { display: none !important; }

.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-family: var(--display); font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

.closing { background: var(--green-deep); color: #fff; padding: 84px 0; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; max-width: 16em; }
.m-foot { background: var(--green-night); color: rgba(255,255,255,.75); padding: 44px 0 30px; font-size: 15px; }
.m-foot .wrap { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
.m-foot a { color: rgba(255,255,255,.75); text-decoration: none; }
.m-foot a:hover { color: #fff; text-decoration: underline; }
.m-foot .logo { color: #fff; }
.m-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.m-foot .copy { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13.5px; }

.legal { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.legal h1 { font-size: 36px; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #2C3F36; }

/* =====================================================================
   التسجيل والدخول
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--green-deep); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23175C49' stroke-width='1.2'%3E%3Cpath d='M60 6l15.9 38.1L114 60 75.9 75.9 60 114 44.1 75.9 6 60l38.1-15.9z'/%3E%3Cpath d='M60 22l26.9 11.1L98 60 86.9 86.9 60 98 33.1 86.9 22 60l11.1-26.9z'/%3E%3C/g%3E%3C/svg%3E"); }
.auth-side > * { position: relative; }
.auth-side h2 { font-size: clamp(28px, 3vw, 42px); font-weight: 800; max-width: 12em; }
.auth-side p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 30em; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .alt { margin-top: 20px; text-align: center; color: var(--muted); font-size: 15px; }

/* =====================================================================
   لوحات التحكم
   ===================================================================== */
.panel { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: var(--mist); }
.side { background: var(--green-deep); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 4px 8px 20px; }
.side a.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.8); text-decoration: none; font-size: 15.5px; }
.side a.nav:hover { background: rgba(255,255,255,.08); color: #fff; }
.side a.nav[aria-current="page"] { background: #fff; color: var(--green-deep); font-weight: 700; }
.side a.nav .count { margin-inline-start: auto; background: var(--gold); color: var(--green-night); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 0 8px; }
.side .side-label { font-size: 12.5px; color: rgba(255,255,255,.5); padding: 16px 12px 4px; }
.side .grow { flex: 1; }
.side .credit { background: rgba(255,255,255,.08); border-radius: 12px; padding: 14px; font-size: 14px; }
.side .credit b { font-family: var(--display); font-size: 26px; display: block; line-height: 1.2; color: var(--gold); }
.side .who { padding: 14px 8px 0; font-size: 14px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 12px; }
.side .who span { display: block; color: rgba(255,255,255,.6); font-size: 13px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; }
.side .who button { color: rgba(255,255,255,.8); margin-top: 6px; }
.main { padding: 32px clamp(18px, 3vw, 44px) 64px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--muted); margin-top: 2px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumb a { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.card > h2 { font-size: 19px; margin-bottom: 16px; }
.card > h2 + .muted { margin-top: -10px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 20px 24px 0; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.kpi .k { font-size: 14px; color: var(--muted); }
.kpi .v { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.3; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.dark { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.kpi.dark .k, .kpi.dark .s { color: rgba(255,255,255,.7); }
.kpi.dark .v { color: var(--gold); }

.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: start; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFCFB; }
table.t td { padding: 13px 16px; border-bottom: 1px solid #E8EEEA; vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td .sub { display: block; font-size: 13px; color: var(--muted); }
table.t a { font-weight: 600; text-decoration: none; }
table.t a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: auto; min-width: 240px; min-height: 40px; padding-block: 6px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.tabs a[aria-current="true"] { background: var(--green-deep); color: #fff; }
.pager { display: flex; gap: 8px; justify-content: center; padding: 16px; font-size: 14px; }
.pager a, .pager span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }
.pager span { color: var(--muted); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }
.inline-form .field { margin: 0; flex: 1; min-width: 120px; }
.row-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.site-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.site-card .thumb { display: block; background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; height: 172px; overflow: hidden; }
.site-card .body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.site-card h3 { font-size: 18px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.site-card .url { font-size: 13.5px; color: var(--muted); direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.new-site { border: 2px dashed #B9C9C0; border-radius: var(--r); min-height: 300px; display: grid; place-content: center; text-align: center; gap: 6px; text-decoration: none; color: var(--ink); padding: 20px; transition: border-color .15s, background-color .15s; }
.new-site:hover { border-color: var(--green); background: #fff; }
.new-site b { font-family: var(--display); font-size: 19px; }
.new-site span { color: var(--muted); font-size: 14.5px; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: 13px; color: var(--muted); }
.bars .bar i { display: block; width: 100%; max-width: 54px; background: var(--green); border-radius: 6px 6px 0 0; min-height: 3px; }
.bars .bar:last-child i { background: var(--gold); }
.bars .bar b { font-size: 12.5px; color: var(--ink); font-weight: 600; }

/* إنشاء موقع */
.create-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.create-tabs button { border: 0; background: transparent; padding: 8px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); }
.create-tabs button[aria-selected="true"] { background: var(--green-deep); color: #fff; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pick label { cursor: pointer; display: block; }
.pick input { position: absolute; opacity: 0; }
.pick .tpl-thumb { border-width: 2px; }
.pick input:checked + .tpl-thumb { border-color: var(--green); box-shadow: 0 0 0 4px rgba(14,107,82,.16); }
.pick input:focus-visible + .tpl-thumb { outline: 3px solid var(--gold); outline-offset: 2px; }
.building { position: fixed; inset: 0; background: rgba(7,42,33,.94); color: #fff; display: none; place-content: center; text-align: center; z-index: 50; padding: 24px; }
.building.on { display: grid; }
.building h2 { font-size: 30px; }
.building ol { list-style: none; padding: 0; margin: 26px auto 0; display: grid; gap: 10px; text-align: start; width: max-content; max-width: 100%; }
.building li { opacity: .35; transition: opacity .4s; padding-inline-start: 28px; position: relative; }
.building li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); }
.building li.on { opacity: 1; }
.building li.on::before { background: var(--gold); }

/* فاتورة */
.invoice { max-width: 820px; margin: 32px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 44px; }
.invoice header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 24px; }
.invoice h1 { font-size: 26px; }
.invoice .parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; font-size: 15px; }
.invoice .parties h3 { font-size: 13px; color: var(--muted); font-family: var(--body); font-weight: 600; margin-bottom: 4px; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th, .invoice td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: start; }
.invoice th { font-size: 13px; color: var(--muted); }
.invoice .totals { margin-top: 18px; margin-inline-start: auto; width: min(320px, 100%); font-size: 15px; }
.invoice .totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.invoice .totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 18px; }
.invoice-actions { max-width: 820px; margin: 24px auto 0; display: flex; gap: 10px; justify-content: space-between; padding-inline: 4px; }
@media print { .invoice-actions { display: none; } .invoice { border: 0; margin: 0; padding: 0; } body { background: #fff !important; } }

/* صفحة الدفع */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 20px; align-items: start; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15.5px; }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 19px; }
.mysr-form { direction: rtl; }

/* =====================================================================
   المحرر
   ===================================================================== */
.ed { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; background: #DDE5E0; }
.ed-top { display: flex; align-items: center; gap: 12px; background: var(--green-deep); color: #fff; padding: 8px 14px; }
.ed-top .back { color: rgba(255,255,255,.8); text-decoration: none; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.ed-top .back:hover { color: #fff; }
.ed-top h1 { font-size: 16px; font-weight: 600; margin-inline-end: auto; display: flex; gap: 10px; align-items: center; min-width: 0; }
.ed-top h1 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-top .state { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 400; font-family: var(--body); white-space: nowrap; }
.ed-top .devices { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.ed-top .devices button { border: 0; background: transparent; color: rgba(255,255,255,.75); border-radius: 999px; padding: 3px 12px; cursor: pointer; font-size: 13.5px; }
.ed-top .devices button[aria-pressed="true"] { background: #fff; color: var(--green-deep); font-weight: 600; }
.ed-top .btn.sm { min-height: 34px; }
.ed-body { display: grid; grid-template-columns: 372px minmax(0, 1fr); min-height: 0; }
.ed-panel { background: #fff; border-inline-end: 1px solid var(--line); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.ed-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.ed-tabs button { border: 0; background: transparent; padding: 12px 6px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--muted); border-bottom: 3px solid transparent; }
.ed-tabs button[aria-selected="true"] { color: var(--green-deep); border-bottom-color: var(--green); }
.ed-scroll { overflow-y: auto; padding: 14px; }
.ed-stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; min-width: 0; }
.ed-frame { display: grid; place-items: stretch center; padding: 16px 16px 0; min-height: 0; }
.ed-frame iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 12px 12px 0 0; box-shadow: var(--shadow); transition: width .25s; }
.ed-frame.mobile iframe { width: 390px; }
.ed-ai { background: #fff; border-top: 1px solid var(--line); padding: 10px 16px 12px; }
.ed-ai form { display: flex; gap: 10px; align-items: flex-end; max-width: 860px; margin-inline: auto; }
.ed-ai textarea { flex: 1; min-height: 46px; max-height: 120px; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; line-height: 1.6; }
.ed-ai textarea:focus { border-color: var(--green); outline: 3px solid rgba(14,107,82,.18); }
.ed-ai .meta { max-width: 860px; margin: 6px auto 0; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.ed-ai .meta .msg.ok { color: #0B6247; font-weight: 600; }
.ed-ai .meta .msg.err { color: var(--danger); font-weight: 600; }

.sec { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.sec.off { opacity: .6; }
.sec-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 10px; }
.sec-head .ttl { flex: 1; border: 0; background: transparent; text-align: start; cursor: pointer; font-weight: 600; font-size: 15px; padding: 4px 6px; display: flex; gap: 8px; align-items: center; min-width: 0; }
.sec-head .ttl::before { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 0 2px 2px; transform: rotate(45deg); transition: transform .15s; flex: none; margin-inline-end: 2px; }
.sec.open .sec-head .ttl::before { transform: rotate(-45deg); }
.ic { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); display: inline-grid; place-items: center; font-size: 15px; flex: none; }
.ic:hover { background: var(--mist); color: var(--ink); }
.ic.del:hover { background: var(--danger-bg); color: var(--danger); }
.ic[disabled] { opacity: .3; cursor: default; }
.sec-body { display: none; padding: 4px 12px 12px; border-top: 1px solid var(--line); }
.sec.open .sec-body { display: block; }
.f { display: grid; gap: 4px; margin-top: 12px; }
.f > span { font-size: 13px; font-weight: 600; color: #3C4E45; }
.f input[type=text], .f textarea, .f select { width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 14.5px; background: #fff; }
.f textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--green); outline: 2px solid rgba(14,107,82,.18); }
.f.row { grid-template-columns: 1fr auto; align-items: center; }
.f.row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }
.list { margin-top: 12px; }
.list > .lt { font-size: 13px; font-weight: 600; color: #3C4E45; display: flex; justify-content: space-between; align-items: center; }
.item { border: 1px dashed #BFCDC5; border-radius: 10px; padding: 2px 10px 10px; margin-top: 8px; position: relative; background: #FBFCFB; }
.item .item-bar { display: flex; justify-content: flex-end; gap: 2px; margin: 4px -4px -8px; }
.item .ic { width: 26px; height: 26px; font-size: 13px; }
.add { margin-top: 8px; border: 1.5px dashed #AFC1B7; background: transparent; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); width: 100%; }
.add:hover { background: var(--mist); }
.img-f { display: flex; gap: 10px; align-items: center; }
.img-f .ph { width: 64px; height: 48px; border-radius: 8px; background: var(--mist) center/cover no-repeat; border: 1px solid var(--line); flex: none; }
.img-f .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatches label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: #3C4E45; }
.swatches input[type=color] { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opts button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.opts button[aria-pressed="true"] { border-color: var(--green); background: var(--ok-bg); font-weight: 600; }
.palettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.palettes button { height: 34px; border-radius: 8px; border: 1.5px solid var(--line); cursor: pointer; padding: 0; overflow: hidden; display: grid; grid-template-columns: 2fr 1fr; }
.palettes button:hover { border-color: var(--ink); }
.add-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.add-menu button { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 8px; cursor: pointer; font-size: 14px; text-align: start; }
.add-menu button:hover { border-color: var(--green); background: var(--mist); }
.ed-h { font-family: var(--display); font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: var(--ink); }
.ed-h:first-child { margin-top: 2px; }
.toast { position: fixed; inset-inline-start: 50%; transform: translateX(50%); bottom: 96px; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14.5px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.on { opacity: 1; }

/* =====================================================================
   الشاشات الصغيرة
   ===================================================================== */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 44px; }
  .m-toggle { display: block; order: 3; }
  .m-head .wrap { flex-wrap: wrap; gap: 8px 12px; }
  .m-head .logo { margin-inline-end: auto; }
  .m-head nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; padding-bottom: 10px; }
  .m-head.open nav { display: flex; }
  .m-head nav a.only-mobile { display: block; }
  .m-head nav a { padding: 12px 2px; border-top: 1px solid rgba(255,255,255,.12); font-size: 16px; }
  .steps, .tpl-grid, .feats { grid-template-columns: 1fr 1fr; }
  .steps { border-top: 0; }
  .steps li, .steps li:first-child { border-inline-start: 0; padding-inline-start: 0; border-top: 2px solid var(--ink); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .panel { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 4px; }
  .side .logo { padding: 4px 8px; margin-inline-end: auto; }
  .side .side-label, .side .grow, .side .credit, .side .who span { display: none; }
  .side .who { border: 0; margin: 0; padding: 0; }
  .side a.nav { padding: 6px 10px; font-size: 14.5px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cols, .cols.even, .checkout { grid-template-columns: 1fr; }
  .ed-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 46vh) minmax(0, 1fr); }
  .ed-panel { order: 2; border-inline-end: 0; border-top: 1px solid var(--line); }
  .ed-top .devices, .ed-top .state { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .steps, .tpl-grid, .feats { grid-template-columns: 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .m-head .actions .btn.on-dark { display: none; }
  .hero { padding-top: 104px; }
  .invoice { padding: 22px; margin: 12px; }
  .invoice .parties { grid-template-columns: 1fr; }
  .closing .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- الموظفون والصلاحيات ---------- */
.perm-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.perm-group { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.perm-group h3 { font-size: 15px; margin-bottom: 8px; }
.perm-group .check { margin-top: 6px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chips-list { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-list span { background: var(--mist); border-radius: 999px; padding: 1px 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ed-helper { background: var(--gold); color: var(--green-night); text-align: center; font-size: 14px; font-weight: 600; padding: 4px 12px; }
.ed.with-helper { grid-template-rows: auto auto minmax(0, 1fr); }
/* ---------- مكتبة الصور في المحرر ---------- */
.lib { position: fixed; inset: 0; background: rgba(7,42,33,.6); z-index: 70; display: none; place-items: center; padding: 20px; }
.lib.on { display: grid; }
.lib-box { background: #fff; border-radius: var(--r); width: min(760px, 100%); max-height: 86vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.lib-head, .lib-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lib-foot { border-bottom: 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.lib-head h2 { font-size: 18px; }
.lib-grid { overflow-y: auto; padding: 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; align-content: start; min-height: 160px; }
.lib-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--mist) center/cover no-repeat; cursor: pointer; padding: 0; }
.lib-item:hover, .lib-item:focus-visible { border-color: var(--green); }
.lib-del { position: absolute; top: 6px; inset-inline-end: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 13px; }
.lib-del:hover { background: var(--danger); }
.lib-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 10px; }
@media (max-width: 640px) { .perm-groups { grid-template-columns: 1fr; } }

/* ---------- الفاتورة: رمز QR الضريبي ---------- */
.inv-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 18px; }
.inv-foot .totals { margin-top: 0; }
.inv-qr { display: grid; gap: 6px; justify-items: center; font-size: 12.5px; color: var(--muted); }
.inv-qr #zatca-qr { width: 132px; height: 132px; }
.inv-qr svg { width: 100%; height: 100%; display: block; }
/* ---------- طلبات الدعم ---------- */
.thread { display: grid; gap: 14px; }
.msg-b { max-width: 78%; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: #fff; }
.msg-b.mine { background: var(--ok-bg); border-color: #C5E3D3; justify-self: start; }
.msg-b.theirs { justify-self: end; }
.msg-b .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 10px; justify-content: space-between; }
.msg-b .who b { color: var(--ink); }
.msg-b p { white-space: pre-line; overflow-wrap: anywhere; }
.pick-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pick-type label { cursor: pointer; }
.pick-type input { position: absolute; opacity: 0; }
.pick-type span { display: block; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; font-size: 15px; text-align: center; height: 100%; }
.pick-type input:checked + span { border-color: var(--green); background: var(--ok-bg); }
.pick-type input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
#help-link { margin-inline-start: 10px; white-space: nowrap; }
@media (max-width: 640px) { .pick-type { grid-template-columns: 1fr; } .msg-b { max-width: 100%; } .inv-foot { flex-direction: column-reverse; align-items: stretch; } .inv-qr { justify-items: start; } }

/* ---------- الواجهة التسويقية: إضافات الإطلاق ---------- */
html { scroll-padding-top: 76px; }
.talk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cmds { display: grid; gap: 10px; justify-items: start; }
.cmd { border: 1.5px solid var(--line); background: #fff; border-radius: 18px 18px 4px 18px; padding: 11px 18px; font-size: 16px; font-weight: 600; cursor: pointer; text-align: start; transition: border-color .15s, background-color .15s; }
.cmd::before { content: "«"; color: var(--gold-deep); margin-inline-end: 2px; }
.cmd::after { content: "»"; color: var(--gold-deep); margin-inline-start: 2px; }
.cmd:hover { border-color: var(--green); }
.cmd[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.talk-reply { margin-top: 18px; color: var(--muted); min-height: 1.75em; }
.talk-reply.done { color: #0B6247; font-weight: 600; }
.talk-stage .browser { border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.talk-stage .mini-hero { padding: 36px 24px 30px; }
.talk-stage .mini-hero h4 { font-size: 26px; }
.talk-stage .mini-hero p { font-size: 12.5px; }
.pay-note { margin-top: 22px; color: var(--muted); font-size: 15px; }
.contact-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.lede-dark { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 30em; }
.channels { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.channels li { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.channels li span:first-child { color: var(--muted); min-width: 70px; }
.channels a { font-weight: 600; text-decoration: none; }
.wa-float { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #1FAF54; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.wa-float:hover { filter: brightness(1.08); }
/* ---------- لوحة العميل: جاهزية الموقع ---------- */
.ready { display: grid; gap: 6px; }
.ready-bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.ready-bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
@media (max-width: 980px) { .talk-grid, .contact-page { grid-template-columns: 1fr; gap: 32px; } }
