/* ════════════════════════════════════════════════════
   تسعيرة — نظام التصميم الرسمي v3.0
   هوية سعودية: أخضر داكن · ذهبي · بيج دافئ · أوف وايت
   ════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════
   الخطوط الرسمية — محلية بالكامل بدون إنترنت
   BritishCouncil-Arabic  (العربي)
   Hurme Geometric Sans   (الإنجليزي)
   ══════════════════════════════════════════════════ */

@font-face {
  font-family: 'BritishCouncil';
  src: url('/assets/fonts/BritishCouncil-Arabic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme';
  src: url('/assets/fonts/Hurme-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme';
  src: url('/assets/fonts/Hurme-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme';
  src: url('/assets/fonts/Hurme-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hurme';
  src: url('/assets/fonts/Hurme-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ══════════════════════════════════════════════════
   متغيرات هوية تسعيرة
   ══════════════════════════════════════════════════ */
:root {
  /* ── الأخضر الرئيسي ── */
  --p:      #1A4B33;
  --p-d:    #0D3222;
  --p-m:    #134029;
  --p-l:    #E6EFE9;
  --p-xs:   rgba(26,75,51,.08);

  /* ── الذهبي ── */
  --gold:   #C9A741;
  --gold-d: #A8882C;
  --gold-l: #FAF3DE;

  /* ── الخلفيات (بيج دافئ · أوف وايت) ── */
  --bg:      #F8F5ED;
  --surface: #EDE9DF;
  --card:    #FFFFFF;
  --card-warm: #FAF8F3;

  /* ── النصوص ── */
  --text:   #1A2B20;
  --text2:  #2D4036;
  --muted:  #6B7C73;
  --muted2: #9BAA9F;

  /* ── الحدود ── */
  --line:   #D5CEC0;
  --line2:  #EDE9DF;

  /* ── الدلالية ── */
  --green:   #2E8B57;
  --red:     #C0392B;
  --yellow:  #E6A817;
  --blue:    #2471A3;
  --success: #2E8B57;
  --danger:  #C0392B;
  --warn:    #E6A817;
  --info:    #2471A3;

  /* ── الشريط الجانبي (أخضر داكن) ── */
  --sb:      #0D2B1C;
  --sb-s:    #133426;
  --sb-txt:  #8FB09A;
  --sb-act:  rgba(201,167,65,.14);
  --sb-line: rgba(255,255,255,.07);

  /* ── الشكل والظل ── */
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --sh:     0 1px 3px rgba(26,43,32,.05), 0 4px 14px rgba(26,43,32,.06);
  --sh-md:  0 4px 18px rgba(26,43,32,.10);
  --sh-lg:  0 12px 44px rgba(26,43,32,.14);
  --sb-w:   252px;
}

/* ══════════════════════════════════════════════════
   ريست وأساسيات
   ══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'BritishCouncil', 'Hurme', 'Arial', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

/* ── أدوات مساعدة ── */
.hidden          { display: none !important; }
.app-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 400;
  max-width: min(92vw, 440px);
  padding: 11px 16px;
  border: 1px solid rgba(46,139,87,.24);
  border-radius: var(--r);
  background: #f3fbf5;
  color: #1a6b3f;
  box-shadow: 0 8px 24px rgba(13,43,28,.12);
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%);
}
.app-toast.is-error {
  border-color: rgba(192,57,43,.24);
  background: #fff6f4;
  color: var(--red);
}
.flex            { display: flex; }
.gap-4           { gap: 4px; }
.gap-8           { gap: 8px; }
.gap-12          { gap: 12px; }
.gap-16          { gap: 16px; }
.flex-1          { flex: 1; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted      { color: var(--muted); }
.text-sm         { font-size: 12px; }
.text-danger     { color: var(--red); }
.text-success    { color: var(--green); }
.font-bold       { font-weight: 700; }
.font-heavy      { font-weight: 900; }
.mt-8            { margin-top: 8px; }
.mt-16           { margin-top: 16px; }
.mt-24           { margin-top: 24px; }
.mb-8            { margin-bottom: 8px; }
.mb-16           { margin-bottom: 16px; }
.w-full          { width: 100%; }
.rounded         { border-radius: var(--r); }

/* ══════════════════════════════════════════════════
   الأزرار
   ══════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 700; font-size: 13px; transition: all .18s; white-space: nowrap;
  cursor: pointer; line-height: 1.4; letter-spacing: .01em;
}
.btn-primary { background: var(--p); color: #fff; border-color: var(--p); }
.btn-primary:hover { background: var(--p-d); border-color: var(--p-d); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13,50,34,.25); }

.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-d); border-color: var(--gold-d); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--p); color: var(--p); }
.btn-outline:hover { background: var(--p-l); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: var(--surface); color: var(--text); border-color: var(--line); }

.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: rgba(192,57,43,.06); }

.btn-success { background: var(--green); color: #fff; border-color: var(--green); }

.btn-sm  { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg  { padding: 13px 26px; font-size: 15px; border-radius: 10px; font-weight: 700; }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ══════════════════════════════════════════════════
   النماذج
   ══════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--text2); }
.form-control {
  width: 100%; padding: 9px 13px; border: 1.5px solid var(--line);
  border-radius: var(--r); background: var(--card); font-size: 14px;
  transition: border-color .15s, box-shadow .15s; outline: none; color: var(--text);
}
.form-control:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-xs); }
.form-control.error { border-color: var(--red); }
textarea.form-control { resize: vertical; min-height: 90px; }
select.form-control { cursor: pointer; }

.password-field,
.email-field,
.phone-field {
  position: relative;
  display: block;
  width: 100%;
}
.password-field > .form-control {
  padding-right: 46px;
  padding-left: 13px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--p-l);
  outline: none;
}
.password-toggle-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.email-suggestions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  direction: ltr;
}
.email-suggestions-label {
  color: var(--muted);
  font-size: 10px;
  direction: rtl;
}
.email-domain {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--p);
  font-size: 10px;
  direction: ltr;
  cursor: pointer;
}
.email-domain:hover,
.email-domain:focus-visible {
  border-color: var(--p);
  background: var(--p-l);
  outline: none;
}
.phone-field {
  display: grid;
  grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
  gap: 6px;
  direction: ltr;
}
.phone-field > .form-control {
  min-width: 0;
}
.phone-code {
  width: 100%;
  min-width: 0;
  padding: 9px 7px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--text);
  font-size: 12px;
  direction: ltr;
  outline: none;
}
.phone-code:focus {
  border-color: var(--p);
  box-shadow: 0 0 0 3px var(--p-xs);
}

/* Saudi Riyal mark — used anywhere a currency label is rendered */
.riyal-symbol {
  display: inline-block;
  width: .88em;
  height: .88em;
  max-width: 1em;
  object-fit: contain;
  vertical-align: -.14em;
  margin-inline: .14em .08em;
}
.plan-card.featured .riyal-symbol,
.trust-strip .riyal-symbol,
.dashboard-welcome .riyal-symbol,
.sidebar .riyal-symbol {
  filter: invert(1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ══════════════════════════════════════════════════
   البطاقات
   ══════════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line2);
}
.card-header h3 { font-size: 15px; font-weight: 700; }

/* ── الحساب والهوية ── */
.account-panel { max-width: 980px; margin: 0 auto; }
.account-card { overflow: visible; padding: 24px; }
.account-hero {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line2);
}
.account-avatar {
  width: 58px; height: 58px; flex: 0 0 58px;
  display: grid; place-items: center; border-radius: 16px;
  background: var(--p-d); color: var(--gold);
  font-size: 25px; font-weight: 900;
}
.account-identity { min-width: 0; }
.account-eyebrow { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.account-identity h2 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.account-role-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-admin-status {
  color: var(--p); font-size: 11px; font-weight: 700;
  padding-right: 9px; border-right: 1px solid var(--line);
}
.account-admin-note {
  margin-right: auto; min-width: 190px; padding: 11px 13px;
  border: 1px solid rgba(201,167,65,.32); border-radius: 10px;
  background: var(--gold-l); color: var(--text); text-align: right;
}
.account-admin-note strong { display: block; color: var(--gold-d); font-size: 12px; margin-bottom: 3px; }
.account-admin-note span { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.account-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
.account-section { min-width: 0; padding: 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); }
.account-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.account-section-icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 9px; background: var(--p-l); color: var(--p); font-size: 16px;
}
.account-section-heading h3 { font-size: 14px; margin-bottom: 2px; }
.account-section-heading p { color: var(--muted); font-size: 10px; }
.account-section .form-group:last-child { margin-bottom: 0; }
.account-section .form-control[readonly] { background: var(--surface); color: var(--muted); }
.account-section label small { color: var(--muted); font-weight: 400; margin-right: 4px; }
.account-readonly-role {
  min-height: 40px; display: flex; align-items: center; gap: 8px;
  padding: 7px 11px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--muted); font-size: 11px;
}
.account-plan-card {
  padding: 13px 14px; margin-bottom: 17px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line2);
}
.account-plan-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.account-plan-card span, .account-plan-card small { color: var(--muted); font-size: 11px; }
.account-plan-card strong { color: var(--p); font-size: 20px; }
.account-plan-meta { display: flex; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.account-plan-card small { display: block; margin-top: 6px; color: var(--warn); }
.account-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line2);
}
.account-actions #accMsg { margin: 0 auto 0 0; flex: 1; }

/* ══════════════════════════════════════════════════
   الجداول
   ══════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 560px; }
.data-table th {
  background: var(--surface); padding: 9px 13px; text-align: right;
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 13px; border-bottom: 1px solid var(--line2);
  font-size: 13px; vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--p-l); }
.data-table .actions { display: flex; gap: 5px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   الشارات
   ══════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.badge-free       { background: var(--surface);              color: var(--muted); }
.badge-pro        { background: var(--p-l);                  color: var(--p); }
.badge-enterprise { background: var(--gold-l);               color: var(--gold-d); }
.badge-draft      { background: var(--surface);              color: var(--muted); }
.badge-sent       { background: rgba(36,113,163,.1);         color: #1a5276; }
.badge-accepted   { background: rgba(46,139,87,.1);          color: #1a6b3f; }
.badge-rejected   { background: rgba(192,57,43,.1);          color: var(--red); }
.badge-cancelled  { background: rgba(192,57,43,.06);         color: #922b21; }
.badge-admin      { background: rgba(201,167,65,.12);        color: var(--gold-d); }
.badge-employee   { background: rgba(26,75,51,.1);           color: var(--p); }
.badge-client     { background: rgba(46,139,87,.1);          color: #1a6b3f; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ══════════════════════════════════════════════════
   بطاقات الإحصاء
   ══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; transition: .15s;
}
.stat-card:hover { border-color: var(--p); box-shadow: var(--sh-md); }
.stat-label { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 900; line-height: 1.1; color: var(--text); }
.stat-sub   { font-size: 11px; color: var(--muted2); margin-top: 4px; }
.stat-card.accent { border-top: 3px solid var(--p); }
.stat-card.gold   { border-top: 3px solid var(--gold); }
.stat-card.green  { border-top: 3px solid var(--green); }
.stat-card.danger { border-top: 3px solid var(--red); }

/* ══════════════════════════════════════════════════
   التنبيهات
   ══════════════════════════════════════════════════ */
.alert { padding: 10px 14px; border-radius: var(--r); font-size: 13px; margin-bottom: 12px; }
.alert-success { background: rgba(46,139,87,.08); border: 1px solid rgba(46,139,87,.2); color: #1a6b3f; }
.alert-danger  { background: rgba(192,57,43,.07); border: 1px solid rgba(192,57,43,.2); color: var(--red); }
.alert-info    { background: var(--p-xs); border: 1px solid var(--p-l); color: var(--p); }

/* ══════════════════════════════════════════════════
   النوافذ المنبثقة
   ══════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(13,43,28,.55); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-box { background: var(--card); border-radius: var(--r-xl); padding: 26px; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-shadow: var(--sh-lg); border: 1px solid var(--line); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { font-size: 18px; color: var(--muted); padding: 2px 6px; border-radius: 6px; transition: .12s; }
.modal-close:hover { background: var(--surface); color: var(--text); }

/* ══════════════════════════════════════════════════
   شريط التمرير
   ══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }


/* ══════════════════════════════════════════════════
   صفحة الهبوط — شريط التنقل
   ══════════════════════════════════════════════════ */
.land-nav {
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 64px);
  position: sticky; top: 0; z-index: 200; gap: 12px;
  box-shadow: 0 1px 8px rgba(26,43,32,.06);
}
.land-brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.land-brand-logo {
  width: auto;
  max-width: 160px;
  height: 54px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.land-nav-links { display: flex; gap: 0; }
.land-nav-links a {
  color: var(--muted); font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: var(--r); transition: .12s; white-space: nowrap;
}
.land-nav-links a:hover { color: var(--p); background: var(--p-l); }

.land-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.lang-toggle { color: var(--muted); font-weight: 700; font-size: 11px; padding: 5px 10px; border-radius: 6px; border: 1.5px solid var(--line); transition: .12s; }
.lang-toggle:hover { background: var(--p-l); color: var(--p); border-color: var(--p); }

/* هامبرغر الموبايل */
.land-hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 6px; border-radius: 6px;
  cursor: pointer; flex-shrink: 0;
}
.land-hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* قائمة الموبايل */
.land-mobile-menu {
  display: none; position: fixed; inset: 0; top: 64px; z-index: 190;
  background: var(--card); border-top: 1px solid var(--line);
  flex-direction: column; padding: 8px 20px 28px; overflow-y: auto;
}
.land-mobile-menu.open { display: flex; }
.land-mobile-menu a {
  color: var(--text2); font-size: 16px; padding: 16px 4px;
  border-bottom: 1px solid var(--line2); font-weight: 600; display: block;
}
.land-mobile-menu a:last-of-type { border-bottom: none; }
.land-mobile-menu .lmm-actions {
  margin-top: 22px; display: flex; flex-direction: column; gap: 10px;
}
.land-mobile-menu .lmm-actions .btn { justify-content: center; padding: 14px; font-size: 15px; }


/* ══════════════════════════════════════════════════
   قسم الهيرو
   ══════════════════════════════════════════════════ */
.hero {
  max-width: 1140px; margin: 0 auto;
  padding: 100px 24px 88px;
  display: grid; grid-template-columns: 1fr .85fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--p-l); color: var(--p-d); border: 1px solid rgba(26,75,51,.18);
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 66px); line-height: 1.08;
  font-weight: 900; letter-spacing: -1px; color: var(--text);
}
.hero h1 em { color: var(--p); font-style: normal; }
.hero h1 .em-gold { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 16px; line-height: 2; color: var(--muted);
  max-width: 480px; margin: 18px 0 30px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 11px; color: var(--muted2); margin-top: 14px; display: flex; align-items: center; gap: 5px; }
.hero-note span:first-child { color: var(--gold); }

/* بطاقة الهيرو المحاكاة */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.hero-card-wrap {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 22px; box-shadow: var(--sh-lg);
  width: 100%; max-width: 360px;
  border-top: 3px solid var(--p);
}
.hero-card-header {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line2);
}
.hero-card-logo-wrap {
  width: 120px; height: 38px;
  flex-shrink: 0; overflow: hidden; border-radius: 7px;
}
.hero-card-logo-wrap img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}
.hero-card-title { font-size: 13px; font-weight: 700; color: var(--text); }
.hero-card-sub { font-size: 11px; color: var(--muted); }
.hero-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.hero-stat-row:last-of-type { border-bottom: none; }
.hero-stat-label { font-size: 12px; color: var(--muted); }
.hero-stat-val { font-size: 13px; font-weight: 800; }
.hero-card-tags { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line2); display: flex; gap: 6px; flex-wrap: wrap; }


/* ══════════════════════════════════════════════════
   قسم المميزات
   ══════════════════════════════════════════════════ */
.features { max-width: 1140px; margin: 0 auto; padding: 88px 24px; }
.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--p);
  text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px;
  background: var(--p-l); padding: 3px 12px; border-radius: 20px;
}
.section-head h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; color: var(--text); }
.section-head p  { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 500px; margin-inline: auto; }

.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.feat-card {
  background: var(--card); padding: 32px 26px; transition: background .15s;
}
.feat-card:hover { background: var(--card-warm); }
.feat-icon-img {
  width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px;
  border-radius: 10px;
}
.feat-icon { font-size: 24px; margin-bottom: 16px; }
.feat-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.feat-card p  { color: var(--muted); font-size: 13px; line-height: 1.85; }

/* ══════════════════════════════════════════════════
   قسم الأسعار
   ══════════════════════════════════════════════════ */
 .pricing-section {
   background: var(--bg);
   border-top: 1px solid var(--line2);
   border-bottom: 1px solid var(--line2);
 }
 .pricing { max-width: 1160px; margin: 0 auto; padding: 86px 28px 104px; }
 .pricing .section-head { max-width: 680px; margin: 0 auto; text-align: center; }
 .pricing .section-head .eyebrow {
   display: inline-flex; align-items: center; justify-content: center;
   min-height: 27px; padding: 2px 13px; border-radius: 999px;
   background: var(--p-l); color: var(--p); font-size: 11px; font-weight: 800;
 }
 .pricing .section-head h2 { margin-top: 11px; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
 .pricing .section-head p { margin-top: 9px; font-size: 14px; color: var(--muted); }
 .pricing-layout {
   display: grid; grid-template-columns: minmax(0, 1.58fr) 300px;
   gap: 18px; margin-top: 42px; direction: ltr; align-items: stretch;
 }
 .pricing-details { min-width: 0; }
 .pricing-detail {
   display: none; min-height: 485px; padding: 30px 32px 25px;
   background: rgba(255,255,255,.72); border: 1px solid var(--line);
   border-radius: 20px; direction: ltr; overflow: hidden;
 }
 .pricing-detail.active { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; }
 .pricing-detail-main, .pricing-detail-side { min-width: 0; direction: rtl; }
 .pricing-detail-main { display: flex; flex-direction: column; }
 .pricing-detail-copy { position: relative; z-index: 1; }
 .pricing-detail-name-row { display: flex; align-items: center; gap: 9px; min-height: 30px; }
 .pricing-detail-name { color: var(--text); font: 700 14px/1 Hurme, sans-serif; letter-spacing: .06em; direction: ltr; }
 .pricing-popular, .pricing-option-badge {
   display: inline-flex; align-items: center; min-height: 24px; padding: 2px 11px;
   border-radius: 999px; background: var(--gold-l); color: #846b1d; font-size: 10px; font-weight: 800;
 }
 .pricing-detail-price { display: flex; align-items: baseline; gap: 9px; margin-top: 18px; direction: ltr; }
 .pricing-detail-price-number { color: var(--text); font: 900 clamp(52px, 6vw, 78px)/.9 Hurme, sans-serif; }
 .pricing-detail-price-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
 .pricing-detail-description {
   max-width: 310px; margin-top: 18px; color: var(--text2);
   font-size: 17px; font-weight: 700; line-height: 1.8;
 }
 .pricing-device { margin: 34px -18px -25px -42px; min-height: 182px; display: flex; align-items: end; }
 .pricing-device img {
   display: block; width: min(100%, 442px); max-height: 214px; object-fit: cover;
   object-position: center; mix-blend-mode: multiply; border-radius: 0 0 0 16px;
 }
 .pricing-detail-side { display: flex; flex-direction: column; padding-top: 21px; }
 .pricing-detail-features { list-style: none; margin: 0; }
 .pricing-detail-features li {
   display: flex; align-items: flex-start; gap: 10px; min-height: 48px;
   padding: 10px 0; border-bottom: 1px solid var(--line2);
   color: var(--text2); font-size: 13px; line-height: 1.6;
 }
 .pricing-detail-features li:last-child { border-bottom: 0; }
 .pricing-feature-check {
   display: inline-flex; flex: 0 0 23px; width: 23px; height: 23px;
   align-items: center; justify-content: center; border-radius: 50%;
   background: var(--p-l); color: var(--p); font-weight: 900; font-size: 12px;
 }
 .pricing-detail-button { width: 100%; margin-top: auto; min-height: 48px; }
 .pricing-detail[data-plan-detail="pro"] { background: var(--p-d); border-color: var(--p-d); }
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-name,
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-price-number { color: #fff; }
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-price-meta,
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-description,
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-features li { color: rgba(255,255,255,.78); }
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-features li { border-bottom-color: rgba(255,255,255,.12); }
 .pricing-detail[data-plan-detail="pro"] .pricing-feature-check { background: rgba(201,167,65,.17); color: var(--gold); }
 .pricing-detail[data-plan-detail="pro"] .pricing-detail-button { background: var(--gold); border-color: var(--gold); color: #fff; }
 .pricing-plan-switcher { display: flex; flex-direction: column; gap: 12px; direction: rtl; }
 .pricing-plan-option {
   position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%;
   min-height: 138px; padding: 21px 18px; border: 1px solid var(--line);
   border-radius: 16px; background: rgba(255,255,255,.7); color: var(--text);
   text-align: right; cursor: pointer; transition: border-color .15s, background .15s;
 }
 .pricing-plan-option:hover { border-color: var(--p); }
 .pricing-plan-option.active { background: var(--p-d); border-color: var(--p-d); color: #fff; }
 .pricing-option-radio {
   flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px;
   border: 2px solid var(--muted2); border-radius: 50%;
 }
 .pricing-plan-option.active .pricing-option-radio { border: 5px solid #fff; }
 .pricing-option-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
 .pricing-option-name { font-size: 14px; font-weight: 800; }
 .pricing-option-price { display: flex; align-items: baseline; gap: 6px; direction: ltr; justify-content: flex-end; }
 .pricing-option-price b { font: 800 32px/1 Hurme, sans-serif; }
 .pricing-option-price small { color: var(--muted); font-size: 11px; white-space: nowrap; }
 .pricing-plan-option.active .pricing-option-price small,
 .pricing-plan-option.active .pricing-option-description { color: rgba(255,255,255,.7); }
 .pricing-option-description { color: var(--muted); font-size: 11px; line-height: 1.6; }
 .pricing-option-badge { position: absolute; top: -9px; left: 15px; background: var(--gold); color: #fff; }


/* ══════════════════════════════════════════════════
   شريط CTA
   ══════════════════════════════════════════════════ */
.trust-strip { background: var(--p-d); color: white; }
.trust-inner {
  max-width: 1140px; margin: auto; padding: 66px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.trust-inner h2 { font-size: clamp(20px, 3vw, 30px); font-weight: 900; max-width: 440px; line-height: 1.25; }
.trust-inner p { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 7px; }
.trust-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-actions .btn-gold { background: var(--gold); border-color: var(--gold); }
.trust-actions .btn-ghost { border-color: rgba(255,255,255,.2); color: white; }
.trust-actions .btn-ghost:hover { background: rgba(255,255,255,.09); }


/* ══════════════════════════════════════════════════
   منهجية تسعيرة
   ══════════════════════════════════════════════════ */
.methodology-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--line2);
  overflow: hidden;
}
.methodology-inner {
  max-width: 1322px;
  min-height: 220px;
  margin: 0 auto;
  padding: 22px 36px 14px;
  display: grid;
  grid-template-columns: 1.08fr 2.92fr;
  gap: 22px;
  align-items: stretch;
  direction: rtl;
}
.methodology-intro {
  min-width: 0;
  min-height: 184px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-left: 1px solid rgba(107,124,115,.22);
  text-align: center;
}
.methodology-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 260px;
}
.methodology-intro h2 {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
}
.methodology-intro p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 8px;
}
.methodology-skyline {
  position: absolute;
  z-index: 0;
  right: -6%;
  bottom: -1px;
  width: 112%;
  max-width: none;
  height: auto;
  opacity: .58;
  pointer-events: none;
}
.methodology-points {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: center;
  direction: ltr;
}
.methodology-point {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  direction: rtl;
}
.methodology-point > img {
  width: 52px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 8px;
}
.methodology-point h3 {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  white-space: nowrap;
}
.methodology-point p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  margin-top: 5px;
  white-space: nowrap;
}
.methodology-divider {
  width: 46px;
  height: 18px;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  opacity: .62;
}


/* ══════════════════════════════════════════════════
   قسم من نحن
   ══════════════════════════════════════════════════ */
.about-section {
  max-width: 1140px; margin: 0 auto; padding: 82px 24px 88px;
  display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center;
}
.about-copy { min-width: 0; }
.about-eyebrow { display: inline-block; }
.about-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.25;
  margin: 14px 0 16px;
  color: var(--text);
}
.about-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
  max-width: 580px;
  margin-bottom: 8px;
}
.about-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.about-stat-num { font-size: 36px; font-weight: 900; color: var(--p); }
.about-stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.about-values {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px 26px;
  background: var(--card);
  box-shadow: 0 3px 12px rgba(26,43,32,.045);
}
.about-values-title { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 16px; }
.about-value-item { padding: 13px 0; border-bottom: 1px solid var(--line2); display: flex; gap: 14px; align-items: flex-start; }
.about-value-item:last-child { border-bottom: none; }
.about-value-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex-shrink: 0; }
.about-value-item strong { font-size: 13px; font-weight: 800; display: block; margin-bottom: 3px; }
.about-value-item span { font-size: 12px; color: var(--muted); line-height: 1.75; }

/* ══════════════════════════════════════════════════
   مختبر السعر
   ══════════════════════════════════════════════════ */
.price-lab-section { padding: 0 24px 86px; }
.price-lab-inner {
  max-width: 1140px;
  min-height: 342px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .92fr 1.35fr;
  align-items: stretch;
  direction: ltr;
  background: var(--card-warm);
  border: 1px solid var(--line2);
  border-radius: 11px;
}
.price-lab-copy {
  position: relative;
  min-width: 0;
  padding: 63px 28px 92px;
  text-align: center;
  direction: rtl;
  z-index: 1;
}
.price-lab-copy h2 {
  color: var(--p-d);
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 900;
  line-height: 1.35;
}
.price-lab-copy p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 5px;
}
.price-lab-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  direction: ltr;
}
.price-lab-ornament span { width: 44px; height: 1px; background: #D4C7A9; }
.price-lab-ornament i {
  width: 9px; height: 9px; border: 2px solid #C9A741;
  transform: rotate(45deg); display: block;
}
.price-lab-landscape {
  position: absolute;
  z-index: -1;
  left: -5px;
  bottom: -2px;
  width: 93%;
  max-width: 520px;
  height: auto;
  pointer-events: none;
}
.price-lab-controls {
  min-width: 0;
  padding: 57px 36px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  direction: rtl;
}
.price-lab-row {
  display: grid;
  grid-template-columns: minmax(106px, .36fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}
.price-lab-row-label {
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.price-lab-slider { min-width: 0; }
.price-lab-range-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.price-lab-range-line > span:first-child { text-align: left; }
.price-lab-range-line > span:last-child { text-align: right; }
.price-lab-range-wrap { position: relative; padding-top: 15px; }
.price-lab-range-wrap output {
  position: absolute;
  top: -5px;
  left: var(--range-value, 50%);
  transform: translateX(-50%);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.price-lab-range-wrap input {
  display: block;
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  outline: 0;
  background: linear-gradient(
    to right,
    var(--p) 0 var(--range-value, 50%),
    #C7C6C0 var(--range-value, 50%) 100%
  );
  cursor: pointer;
}
.price-lab-range-wrap input::-webkit-slider-thumb {
  width: 19px; height: 19px; appearance: none; border-radius: 50%;
  border: 2px solid var(--card); background: var(--p);
  box-shadow: 0 1px 4px rgba(26,43,32,.25);
}
.price-lab-range-wrap input::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--card); background: var(--p);
  box-shadow: 0 1px 4px rgba(26,43,32,.25);
}


/* ══════════════════════════════════════════════════
   قسم التواصل
   ══════════════════════════════════════════════════ */
.contact-section {
  max-width: 1140px; margin: 0 auto; padding: 88px 24px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
.contact-info-item {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 11px;
}
.contact-info-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
  background: var(--p-l); color: var(--p);
}
.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 30px; box-shadow: var(--sh);
}

/* ══════════════════════════════════════════════════
   لماذا تختار تسعيرة؟
   ══════════════════════════════════════════════════ */
.why-tas3eerah-section {
  padding: 0 24px 78px;
  background: var(--bg);
}
.why-tas3eerah-inner {
  max-width: 1140px;
  min-height: 156px;
  margin: 0 auto;
  padding: 20px 20px 19px;
  display: grid;
  grid-template-columns: 1.28fr repeat(4, minmax(0, 1fr));
  align-items: stretch;
  direction: rtl;
  background: var(--card-warm);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.why-tas3eerah-inner > h2 {
  align-self: center;
  padding: 0 22px;
  color: var(--p-d);
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
.why-tas3eerah-items {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  direction: rtl;
}
.why-tas3eerah-item {
  min-width: 0;
  padding: 4px 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.why-tas3eerah-item + .why-tas3eerah-item {
  border-right: 1px solid var(--line);
}
.why-tas3eerah-item img {
  width: 46px;
  height: 42px;
  margin-bottom: 8px;
  object-fit: contain;
}
.why-tas3eerah-item h3 {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.why-tas3eerah-item p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

/* In-product guided walkthroughs */
.tour-card {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tour-copy { min-width: 0; }
.tour-kicker { color: var(--gold-d); font-size: 11px; font-weight: 800; }
.tour-copy h2 { margin: 7px 0; color: var(--p-d); font-size: 19px; }
.tour-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tour-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.tour-hide { padding: 7px 9px; background: transparent; color: var(--muted); font-size: 11px; }
.tour-hide:hover, .tour-show:hover { color: var(--p); text-decoration: underline; }
.tour-progress { height: 3px; margin-top: 14px; overflow: hidden; background: var(--line); border-radius: 9px; }
.tour-progress span { display: block; width: 25%; height: 100%; background: var(--gold); transition: width .35s ease; }
.tour-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.tour-screen-frame, .landing-tour-screen-frame {
  display: block;
  min-width: 0;
  padding: 8px;
  background: #f4f1e9;
  border: 1px solid #e6e0d4;
  border-radius: 9px;
}
.tour-screen { overflow: hidden; min-height: 190px; background: #fff; border: 1px solid #e5e7e1; border-radius: 5px; }
.tour-screen-top, .landing-tour-top { display: flex; align-items: center; gap: 7px; height: 31px; padding: 0 10px; background: #fbfaf7; border-bottom: 1px solid #ecebe6; }
.tour-screen-top img { width: 18px; height: 18px; object-fit: contain; }
.tour-screen-top i { width: 5px; height: 5px; background: #d4d5d0; border-radius: 50%; }
.tour-screen-body { display: grid; grid-template-columns: 82px 1fr; min-height: 157px; }
.tour-screen-nav { display: flex; flex-direction: column; gap: 11px; padding: 15px 9px; background: #123c2c; }
.tour-screen-nav b { margin-bottom: 4px; color: #fff; font-size: 9px; }
.tour-screen-nav i { width: 85%; height: 5px; background: rgba(255,255,255,.28); border-radius: 5px; }
.tour-screen-main { min-width: 0; padding: 14px; }
.tour-screen-main strong { color: var(--p-d); font-size: 12px; }
.tour-scene-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0; }
.tour-scene-stats i { height: 28px; background: #f5f4ef; border: 1px solid #eeece5; border-radius: 4px; }
.tour-scene-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6px; }
.tour-scene-content b { height: 20px; background: #faf9f6; border: 1px solid #eeece5; border-radius: 3px; }
.tour-scene-caption { margin-top: 8px; color: var(--muted); font-size: 9px; }
.tour-show { margin: 0 0 16px; padding: 8px 0; color: var(--p); font-size: 12px; font-weight: 700; }
.landing-tour { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: center; margin-top: 25px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.landing-tour-copy h3 { margin: 7px 0; color: var(--p-d); font-size: 19px; }
.landing-tour-copy p { max-width: 460px; margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.landing-tour-screen-frame { position: relative; text-decoration: none; }
.landing-tour-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0b2f21; border-radius: 5px; }
.landing-tour-video-note { display: block; margin: 8px 3px 0; color: var(--muted); font-size: 10px; }
.landing-tour-screen { position: relative; min-height: 165px; padding: 12px; background: #fff; border: 1px solid #e5e7e1; border-radius: 5px; }
.landing-tour-top { margin: -12px -12px 12px; }
.landing-tour-top img { width: 19px; height: 19px; object-fit: contain; }
.landing-tour-top span { color: var(--p-d); font-size: 10px; font-weight: 700; }
.landing-tour-top i { margin-right: auto; color: var(--gold); font-size: 8px; }
.landing-tour-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.landing-tour-metrics b { display: flex; flex-direction: column; gap: 9px; padding: 10px; color: var(--muted); background: #faf9f6; border: 1px solid #eeece5; border-radius: 4px; font-size: 9px; }
.landing-tour-metrics strong { color: var(--p-d); font-size: 14px; }
.landing-tour-bars { display: flex; align-items: end; gap: 8px; height: 36px; margin-top: 9px; padding: 0 12px; }
.landing-tour-bars i { width: 10%; height: 55%; background: #d9c47d; border-radius: 2px 2px 0 0; }
.landing-tour-bars i:nth-child(2) { height: 85%; background: #1a5039; }
.landing-tour-bars i:nth-child(3) { height: 68%; background: #9db7a8; }
.landing-tour-play { position: absolute; top: 50%; left: 50%; display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--p-d); border-radius: 50%; font-size: 12px; transform: translate(-50%,-50%); }
.sb-item .sb-icon { width: 15px; font-size: 11px; }
.tour-hero-link { margin-top: 8px; padding: 0; color: #f3df9a; background: transparent; font-size: 11px; font-weight: 700; }
.tour-hero-link:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .tour-card, .landing-tour { grid-template-columns: 1fr; gap: 15px; padding: 16px; }
  .tour-screen { min-height: 170px; }
  .landing-tour-screen { min-height: 150px; }
}

/* ══════════════════════════════════════════════════
   الفوتر
   ══════════════════════════════════════════════════ */
.land-footer { background: var(--p-d); color: rgba(255,255,255,.8); }
.footer-inner { max-width: 1140px; margin: auto; padding: 56px 24px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; margin-bottom: 16px; }
.footer-brand-logo {
  width: 104px; height: 92px; display: flex; align-items: center; justify-content: flex-start;
}
.footer-brand-logo img {
  width: auto; max-width: 100%; height: 100%;
  object-fit: contain; object-position: right center;
  background: #F8F5ED; padding: 8px; border-radius: 4px;
}
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-links span {
  font-size: 13px; color: rgba(255,255,255,.6); cursor: pointer; transition: color .12s;
}
.footer-links a:hover, .footer-links span:hover { color: rgba(255,255,255,.95); }
.footer-gold-line { width: 36px; height: 2px; background: var(--gold); border-radius: 2px; margin-bottom: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.4);
}


/* ══════════════════════════════════════════════════
   نافذة المصادقة
   ══════════════════════════════════════════════════ */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(13,43,28,.6);
  backdrop-filter: blur(8px); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.auth-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 34px; width: 100%; max-width: 420px;
  box-shadow: var(--sh-lg); position: relative; max-height: 96vh; overflow-y: auto;
}
.auth-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.auth-logo-img {
  width: auto; max-width: 100%; height: 104px; display: block;
  object-fit: contain;
}
.auth-tabs { display: flex; margin-bottom: 22px; border-bottom: 2px solid var(--line); }
.auth-tab {
  flex: 1; padding: 10px; text-align: center; font-weight: 700; font-size: 13px;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: .14s;
}
.auth-tab.active { color: var(--p); border-bottom-color: var(--p); }
.auth-error {
  background: rgba(192,57,43,.06); border: 1px solid rgba(192,57,43,.2);
  color: var(--red); border-radius: var(--r); padding: 10px 13px;
  font-size: 13px; margin-bottom: 12px;
}
.auth-demo { display: flex; gap: 7px; margin-top: 14px; }
.auth-demo button {
  flex: 1; padding: 9px 4px; font-size: 11px; font-weight: 700;
  border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--surface); transition: .12s; cursor: pointer;
}
.auth-demo button:hover { border-color: var(--p); background: var(--p-l); color: var(--p); }
.auth-sep { text-align: center; color: var(--muted2); font-size: 11px; margin: 14px 0; position: relative; }
.auth-sep::before, .auth-sep::after { content: ''; position: absolute; top: 50%; width: 36%; height: 1px; background: var(--line); }
.auth-sep::before { right: 0; } .auth-sep::after { left: 0; }


/* ══════════════════════════════════════════════════
   لوحة التحكم — هيكل التطبيق
   ══════════════════════════════════════════════════ */
.app-shell { display: flex; height: 100dvh; height: 100vh; overflow: hidden; background: var(--bg); }

/* ── الشريط الجانبي ── */
.sidebar {
  width: var(--sb-w); flex-shrink: 0;
  background: var(--sb); color: white;
  display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  z-index: 60; transition: transform .26s cubic-bezier(.4,0,.2,1);
  position: relative;
}

/* خط ذهبي رقيق أسفل اللوجو في الشريط */
.sb-gold-stripe {
  height: 2px; background: linear-gradient(to left, var(--gold), transparent);
  flex-shrink: 0;
}

.sb-logo {
  padding: 14px 14px 12px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--sb-line); flex-shrink: 0;
  text-decoration: none;
}
.sb-logo-img {
  width: auto; max-width: 100%; height: 72px; display: block;
  object-fit: contain;
}

.sb-close-btn {
  display: none; position: absolute; top: 15px; left: 13px;
  background: rgba(255,255,255,.07); border: none; color: rgba(255,255,255,.7);
  width: 26px; height: 26px; border-radius: 6px; font-size: 14px;
  cursor: pointer; align-items: center; justify-content: center; transition: .12s; z-index: 2;
}
.sb-close-btn:hover { background: rgba(255,255,255,.14); }

.sb-user {
  padding: 13px 14px; border-bottom: 1px solid var(--sb-line); flex-shrink: 0;
}
.sb-user-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role { font-size: 11px; color: var(--sb-txt); margin-top: 2px; }
.sb-plan {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  padding: 2px 10px; border-radius: 20px; font-size: 10px; font-weight: 700;
  background: var(--sb-act); color: rgba(201,167,65,.95); border: 1px solid rgba(201,167,65,.2);
}
.sb-plan-usage { margin-top:5px; color:var(--sb-txt); font-size:10px; }

.sb-nav { flex: 1; padding: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.06) transparent; }
.sb-section {
  font-size: 9px; font-weight: 700; color: rgba(143,176,154,.35);
  text-transform: uppercase; letter-spacing: .7px; padding: 14px 8px 5px;
}
.sb-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  color: var(--sb-txt); font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s;
  margin-bottom: 1px; border: none; background: none; width: 100%; text-align: right;
}
.sb-item:hover  { background: rgba(255,255,255,.06); color: #d4e8da; }
.sb-item.active { background: var(--sb-act); color: rgba(201,167,65,.95); font-weight: 800; }
.sb-item .sb-icon { font-size: 13px; width: 17px; flex-shrink: 0; text-align: center; opacity: .7; }
.sb-item.active .sb-icon { opacity: 1; }
.sb-badge { margin-right: auto; background: var(--red); color: white; border-radius: 20px; padding: 1px 7px; font-size: 10px; }

.sb-footer { padding: 8px; border-top: 1px solid var(--sb-line); flex-shrink: 0; }
.sb-logout {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px;
  color: var(--sb-txt); font-size: 13px; font-weight: 600; cursor: pointer; transition: .12s;
  border: none; background: none; width: 100%; text-align: right;
}
.sb-logout:hover { background: rgba(192,57,43,.12); color: #f5a19a; }

.sb-overlay {
  display: none; position: fixed; inset: 0; background: rgba(13,43,28,.65);
  z-index: 55; backdrop-filter: blur(4px);
}
.sb-overlay.open { display: block; }


/* ── المنطقة الرئيسية ── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: 56px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; flex-shrink: 0; gap: 12px;
  box-shadow: 0 1px 6px rgba(26,43,32,.05);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar-title { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.topbar-plan-summary {
  display:flex; align-items:center; gap:7px; padding:5px 10px;
  border:1px solid var(--line); border-radius:var(--r); background:var(--surface);
  color:var(--muted); font-size:10px; white-space:nowrap;
}
.topbar-plan-summary strong { color:var(--text); font-size:11px; }
.client-header-frame {
  width: 34px;
  height: 38px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 8px;
}
.client-header-frame img {
  width: auto;
  max-width: 100%;
  height: 34px;
  object-fit: contain;
}
.client-self-note {
  padding:10px 12px; border:1px solid rgba(46,139,87,.22); border-radius:var(--r);
  background:rgba(46,139,87,.07); color:var(--green); font-size:12px; line-height:1.8;
}

.hamburger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; padding: 6px; border-radius: 6px;
  transition: .12s; flex-shrink: 0; cursor: pointer;
}
.hamburger:hover { background: var(--surface); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.workspace { flex: 1; overflow-y: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
.workspace > #panel-tools { max-width: 1040px; margin-inline: auto; }

.section-panel        { display: none; }
.section-panel.active { display: block; }


/* ══════════════════════════════════════════════════
   بانيء عروض الأسعار
   ══════════════════════════════════════════════════ */
.quote-builder { max-width: 780px; }
.items-table { width: 100%; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.items-table th { background: var(--surface); padding: 9px 11px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.items-table td { padding: 7px 9px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.items-table tr:last-child td { border-bottom: none; }
.items-table input { border: 1.5px solid transparent; border-radius: 5px; padding: 5px 8px; width: 100%; background: transparent; min-width: 50px; }
.items-table input:focus { border-color: var(--p); background: var(--card); outline: none; }
.quote-totals { background: var(--p-d); color: white; border-radius: var(--r); padding: 16px 20px; margin-top: 12px; }
.quote-totals-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.quote-totals-row.total { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; margin-top: 4px; font-size: 16px; font-weight: 900; }
.del-item { background: none; border: none; color: var(--muted2); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 5px; transition: .12s; }
.del-item:hover { background: rgba(192,57,43,.08); color: var(--red); }
.add-item-btn {
  border: 1.5px dashed var(--line); background: transparent; border-radius: var(--r);
  padding: 8px 14px; color: var(--muted); font-size: 13px; transition: .14s; cursor: pointer;
}
.add-item-btn:hover { border-color: var(--p); color: var(--p); background: var(--p-l); }


/* ══════════════════════════════════════════════════
   طباعة PDF
   ══════════════════════════════════════════════════ */
.pdf-overlay { position: fixed; inset: 0; background: rgba(13,43,28,.75); z-index: 250; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pdf-doc {
  background: white; width: 100%; max-width: 740px; max-height: 92vh;
  overflow-y: auto; border-radius: 10px; padding: 40px 48px; direction: rtl;
  font-family: 'BritishCouncil', 'Tajawal', Arial, sans-serif;
}
.pdf-doc .pdf-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; border-bottom: 3px solid var(--p-d); padding-bottom: 18px; }
.pdf-doc .pdf-logo { width: 96px; height: 112px; object-fit: contain; object-position: right center; display: block; }
.pdf-doc .pdf-logo-wrap { width: 52px; height: 52px; border-radius: 10px; background: transparent; }
.pdf-doc .pdf-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.pdf-doc h1 { font-size: 22px; font-weight: 900; color: var(--p-d); }
.pdf-doc .pdf-meta { font-size: 11px; color: #6b7c73; margin-top: 4px; }
.pdf-doc .pdf-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.pdf-doc .pdf-party label { font-size: 10px; font-weight: 700; color: #6b7c73; text-transform: uppercase; display: block; margin-bottom: 4px; }
.pdf-doc .pdf-party p { font-size: 13px; color: var(--text); }
.pdf-doc table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.pdf-doc table th { background: var(--p-d); color: white; padding: 9px 12px; font-size: 12px; text-align: right; }
.pdf-doc table td { padding: 9px 12px; border-bottom: 1px solid #ede9df; font-size: 13px; text-align: right; }
.pdf-doc .pdf-totals { margin-top: 10px; }
.pdf-doc .pdf-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.pdf-doc .pdf-total-row.grand { font-size: 17px; font-weight: 900; border-top: 2px solid var(--p-d); padding-top: 10px; margin-top: 5px; color: var(--p-d); }
.pdf-doc .pdf-footer { margin-top: 28px; border-top: 1px solid #ede9df; padding-top: 14px; text-align: center; font-size: 11px; color: #6b7c73; }
.pdf-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: center; }
@media print {
  @page { size: A4; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body > *:not(#pdfOverlay) { display: none !important; }
  .pdf-overlay { background: none; }
  .pdf-overlay,
  .pdf-overlay.hidden { display: block !important; position: static; padding: 0; }
  .pdf-doc { box-shadow: none; max-height: none; border-radius: 0; width: 100%; max-width: none; padding: 0; overflow: visible; }
  .quote-tool-rail,
  .quote-rating-panel { display: none !important; }
  .pdf-actions { display: none; }
}


/* ══════════════════════════════════════════════════
   أدوات التسعير
   ══════════════════════════════════════════════════ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tool-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; text-align: center; cursor: pointer; transition: .15s;
}
.tool-card:hover { border-color: var(--p); box-shadow: var(--sh); transform: translateY(-2px); }
.tool-card.active { border-color: var(--p); background: var(--p-l); box-shadow: 0 0 0 3px var(--p-xs); }
.tool-card-icon { font-size: 26px; margin-bottom: 10px; }
.tool-card-name { font-size: 13px; font-weight: 700; color: var(--text); }
.tool-card-desc { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tool-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.tool-result {
  background: var(--p-d); color: white; border-radius: var(--r-lg); padding: 22px;
  margin-top: 16px; text-align: center; position: relative; overflow: hidden;
}
.tool-result::before {
  content: ''; position: absolute; top: -20px; left: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(201,167,65,.15);
}
.tool-result-label { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.tool-result-value { font-size: 36px; font-weight: 900; }
.tool-result-unit { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }
.result-teaser-overlay {
  position: absolute; inset: 0; background: rgba(13,43,28,.92);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; border-radius: var(--r-lg); text-align: center; padding: 20px;
}
.rto-lock { font-size: 28px; }
.result-teaser-overlay h3 { font-size: 15px; font-weight: 800; }
.result-teaser-overlay p  { font-size: 12px; color: rgba(255,255,255,.6); }
.result-teaser-overlay small { font-size: 11px; color: rgba(255,255,255,.4); }
.rto-btns { display: flex; gap: 8px; }


/* ══════════════════════════════════════════════════
   الرسائل
   ══════════════════════════════════════════════════ */
.msg-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px 16px; cursor: pointer; transition: .12s;
}
.msg-item:hover { border-color: var(--p); box-shadow: var(--sh); }
.msg-item.unread { border-right: 3px solid var(--p); }
.msg-sender { font-size: 13px; font-weight: 700; }
.msg-subject { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-date { font-size: 11px; color: var(--muted2); }

.thread-view { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; max-height: 460px; overflow-y: auto; }
.thread-msg { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line2); }
.thread-msg:last-child { border-bottom: none; margin-bottom: 0; }
.thread-msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.thread-msg-from { font-size: 12px; font-weight: 700; color: var(--p); }
.thread-msg-time { font-size: 11px; color: var(--muted2); }
.thread-msg-body { font-size: 13px; line-height: 1.85; color: var(--text2); }


/* ══════════════════════════════════════════════════
   المواصفات
   ══════════════════════════════════════════════════ */
.spec-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.spec-val   { font-size: 13px; font-weight: 600; }


/* ══════════════════════════════════════════════════
   الاستجابة للموبايل
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  /* الشريط الجانبي — منزلق */
  .sidebar {
    position: fixed; right: 0; top: 0;
    transform: translateX(100%);
    z-index: 60; border-left: 1px solid var(--sb-line);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-overlay.open { display: block; }
  .sb-close-btn { display: flex; }
  .hamburger { display: flex; }
  .workspace { padding: 16px; }
}

@media (max-width: 768px) {
  .land-nav-links { display: none; }
  .land-actions .btn:not(.lang-toggle) { display: none; }
  .land-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; padding: 64px 20px 52px; gap: 40px; }
  .hero-visual { min-height: auto; }
  .hero h1 { font-size: clamp(30px, 8vw, 44px); }

  .feat-grid { grid-template-columns: 1fr 1fr; }
  .pricing { padding: 64px 14px 76px; }
  .pricing .section-head h2 { font-size: clamp(27px, 8vw, 36px); }
  .pricing .section-head p { font-size: 13px; }
  .pricing-layout { display: flex; flex-direction: column; gap: 14px; margin-top: 29px; }
  .pricing-plan-switcher { order: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; direction: ltr; }
  .pricing-plan-option { order: 3; min-height: 108px; padding: 14px 9px 12px; display: block; text-align: center; border-radius: 13px; }
  .pricing-plan-option[data-plan-option="pro"] { order: 1; }
  .pricing-plan-option[data-plan-option="plus"] { order: 2; }
  .pricing-plan-option[data-plan-option="free"] { order: 3; }
  .pricing-option-radio { display: none; }
  .pricing-option-copy { align-items: center; gap: 4px; }
  .pricing-option-name { font-size: 12px; }
  .pricing-option-price { justify-content: center; gap: 4px; }
  .pricing-option-price b { font-size: 27px; }
  .pricing-option-price small { font-size: 10px; }
  .pricing-option-description { display: none; }
  .pricing-option-badge { top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; padding: 2px 8px; }
  .pricing-details { order: 2; }
  .pricing-detail, .pricing-detail.active { min-height: 0; padding: 23px 18px 18px; border-radius: 17px; }
  .pricing-detail.active { display: flex; flex-direction: column; gap: 16px; }
  .pricing-detail-main { display: grid; grid-template-columns: minmax(0, 1fr) 42%; grid-template-areas: "copy media"; gap: 8px; align-items: start; }
  .pricing-detail-copy { grid-area: copy; }
  .pricing-device { grid-area: media; margin: 7px -18px 0 0; min-height: 0; align-self: start; }
  .pricing-device img { width: 100%; max-height: 138px; border-radius: 0 0 0 10px; }
  .pricing-detail-name-row { min-height: 24px; gap: 6px; }
  .pricing-detail-name { font-size: 12px; }
  .pricing-popular { font-size: 8px; min-height: 20px; padding: 2px 7px; }
  .pricing-detail-price { margin-top: 13px; gap: 5px; }
  .pricing-detail-price-number { font-size: 51px; }
  .pricing-detail-price-meta { font-size: 11px; }
  .pricing-detail-description { margin-top: 11px; max-width: 220px; font-size: 13px; line-height: 1.8; }
  .pricing-detail-side { padding-top: 0; }
  .pricing-detail-features li { min-height: 42px; padding: 8px 0; font-size: 12px; }
  .pricing-feature-check { flex-basis: 21px; width: 21px; height: 21px; font-size: 11px; }
  .pricing-detail-button { min-height: 50px; margin-top: 15px; }
  .about-section { grid-template-columns: 1fr; gap: 36px; padding-top: 64px; padding-bottom: 66px; }
  .about-title { font-size: clamp(27px, 7vw, 36px); }
  .price-lab-section { padding: 0 14px 64px; }
  .price-lab-inner { display: flex; flex-direction: column; min-height: 0; }
  .price-lab-copy { min-height: 234px; padding: 38px 20px 105px; }
  .price-lab-copy h2 { font-size: clamp(23px, 7vw, 30px); }
  .price-lab-landscape { width: 82%; max-width: 390px; }
  .price-lab-controls { padding: 30px 18px 34px; gap: 25px; }
  .price-lab-row { grid-template-columns: 102px minmax(0, 1fr); gap: 11px; }
  .price-lab-row-label { font-size: 12px; }
  .price-lab-range-line { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 7px; font-size: 10px; }
  .price-lab-range-wrap output { font-size: 10px; }
  .why-tas3eerah-section { padding: 0 14px 62px; }
  .why-tas3eerah-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 25px 14px 18px;
  }
  .why-tas3eerah-inner > h2 {
    padding: 0;
    font-size: 23px;
    white-space: normal;
  }
  .why-tas3eerah-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .why-tas3eerah-item {
    min-height: 112px;
    padding: 13px 8px;
  }
  .why-tas3eerah-item:nth-child(odd) { border-left: 1px solid var(--line); }
  .why-tas3eerah-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .why-tas3eerah-item + .why-tas3eerah-item { border-right: 0; }
  .why-tas3eerah-item:nth-child(odd) { border-left: 1px solid var(--line); }
  .why-tas3eerah-item h3,
  .why-tas3eerah-item p { white-space: normal; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-inner { flex-direction: column; text-align: center; }
  .trust-actions { justify-content: center; }

  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
  .plan-grid { gap: 14px; }
}

@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .auth-box { padding: 24px 18px; }
}

@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .tool-grid  { grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════
   أزرار الدخول الاجتماعي (Google / Apple)
   ══════════════════════════════════════════════════ */
.social-btns {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px;
}
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border-radius: var(--r); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: .15s; border: 1.5px solid var(--line);
  color: var(--text); background: var(--card);
}
.social-btn:hover { box-shadow: var(--sh-sm); border-color: var(--muted2); background: var(--surface); }
.social-btn-google { }
.social-btn-apple  { background: #000; color: #fff; border-color: #000; }
.social-btn-apple:hover { background: #1a1a1a; border-color: #1a1a1a; }
.social-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 12px; margin: 14px 0 12px;
}
.social-divider::before,
.social-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.social-config-note {
  font-size: 11px; color: var(--muted); text-align: center; margin: -4px 0 10px; line-height: 1.6;
}

/* ══════════════════════════════════════════════════
   شاشة البداية (Splash Screen)
   ══════════════════════════════════════════════════ */
#splash-screen {
  position: fixed; inset: 0; background: #0D2B1C;
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 32px;
  transition: opacity .6s ease, visibility .6s ease;
  /* The app is server-rendered; do not hide the real page behind a fake wait. */
  display: none;
}
#splash-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-icon-wrap {
  position: relative; width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.splash-icon {
  width: 80px; height: 80px; object-fit: contain;
  filter: blur(3px) brightness(.85);
  transition: filter .7s ease, transform .7s ease;
  position: relative; z-index: 1;
}
.splash-icon.clear { filter: blur(0) brightness(1); }
.splash-spinner {
  position: absolute; inset: 0;
  border: 3px solid rgba(201,167,65,.15);
  border-top-color: #C9A741;
  border-radius: 50%;
  animation: splash-spin 1s linear infinite;
}
.splash-spinner.done { border-top-color: rgba(201,167,65,.4); animation: none; transition: opacity .4s; opacity: 0; }
@keyframes splash-spin { to { transform: rotate(360deg); } }
.splash-brand {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease;
}
.splash-brand.show { opacity: 1; transform: translateY(0); }
.splash-brand-text {
  font-family: 'BritishCouncil', 'Arial', sans-serif;
  font-size: 36px; font-weight: 900; color: #C9A741; letter-spacing: 3px;
}
.splash-brand-sub {
  font-family: 'BritishCouncil', 'Arial', sans-serif;
  font-size: 13px; color: rgba(143,176,154,.7); letter-spacing: 1px; font-weight: 600;
}

.frame-crossfade {
  position: relative;
}
.frame-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .07s linear;
}
.frame-crossfade img.is-visible {
  opacity: 1;
}
/* ══════════════════════════════════════════════════
   لوحات الأدوات
   ══════════════════════════════════════════════════ */
.tool-panel { display: none; }
.tool-panel.active { display: block; }
#toolsMenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
#panel-tools .integrated-tools-host,
#panel-tools > .tool-panel {
  display: none !important;
}

.tools-intro {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--p-d); color: #fff; border-radius: var(--r-xl); padding: 26px 30px;
  margin-bottom: 22px; min-height: 154px; position: relative; overflow: hidden;
}
.tools-intro::after {
  content: ""; position: absolute; width: 240px; height: 240px;
  border: 1px solid rgba(201,167,65,.16); border-radius: 50%;
  left: -110px; bottom: -150px; pointer-events: none;
}
.tools-intro-copy { position: relative; z-index: 1; max-width: 720px; }
.tools-kicker { color: var(--gold); font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.tools-intro h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.3; margin-bottom: 7px; }
.tools-intro p { color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.tools-intro p strong { color: #fff; font-weight: 800; }
.tools-intro-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 13px; color: rgba(255,255,255,.62); font-size: 11px; }
.tools-intro-meta > span:not(.tools-plan-chip)::before { content: "·"; color: var(--gold); margin-left: 6px; }
.tools-plan-chip { border: 1px solid rgba(201,167,65,.5); color: #f5e7b3; border-radius: 999px; padding: 3px 10px; font-weight: 800; }
.tools-intro-mark { width: 88px; height: 88px; border: 1px solid rgba(201,167,65,.45); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.tools-intro-mark img { width: 57px; height: 57px; object-fit: contain; }
.tools-section-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; color:var(--muted); font-size:12px; }
.tools-section-head > div { display:flex; align-items:center; gap:9px; }
.tools-section-head h2 { font-size:16px; color:var(--text); }
.step-number { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:var(--gold); color:#fff; font-weight:800; }
.sector-card { text-align:right; padding:19px; min-height:218px; display:flex; flex-direction:column; }
.sector-icon { position:relative; width:58px; height:58px; display:grid; place-items:center; border-radius:13px; overflow:hidden; font-size:25px; margin-bottom:14px; background:var(--surface); }
.sector-icon-image { width:100%; height:100%; object-fit:cover; }
.sector-icon-number { position:absolute; inset:auto 4px 3px auto; padding:2px 4px; border-radius:4px; background:rgba(255,255,255,.9); color:var(--p); font-size:9px; font-weight:900; line-height:1; }
.tone-warm .sector-icon { background:#f8eddd; }.tone-blue .sector-icon { background:#eaf0fa; }.tone-green .sector-icon { background:#e5f1e9; }
.tone-gold .sector-icon,.tone-sand .sector-icon { background:#f8f0d8; }.tone-purple .sector-icon { background:#f8f0d8; }
.sector-card h3 { font-size:15px; margin-bottom:5px; }.sector-card p { font-size:12px; line-height:1.8; color:var(--muted); flex:1; max-width:30em; }
.sector-action { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line2); padding-top:11px; margin-top:14px; color:var(--p); font-size:12px; font-weight:800; }
.sector-action span { font-size:16px; }.tools-note { margin-top:15px; color:var(--muted); font-size:11px; }.tools-note span { color:var(--gold-d); margin-left:4px; }
.tool-heading { display:flex; align-items:center; gap:12px; margin-bottom:18px; }.tool-heading h2 { font-size:20px; }.tool-heading-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; font-size:22px; background:#e5f1e9; }

.integrated-tools-host { width:100%; min-width:0; }
.integrated-tools-host #integrated-tools { width:100%; min-width:0; }

.project-ledger-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.project-ledger-stat {
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0;
}
.project-ledger-stat span {
  color:var(--muted);
  font-size:11px;
}
.project-ledger-stat strong {
  color:var(--p);
  font-size:20px;
}
.project-ledger-list {
  display:grid;
  gap:12px;
}
.empty-state {
  padding:34px 20px;
  text-align:center;
}
.empty-state-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  margin:0 auto 12px;
  border:1px solid var(--line);
  border-radius:12px;
  color:var(--gold-d);
  font-size:20px;
}
.empty-state h3 {
  margin:0 0 6px;
  font-size:15px;
}
.empty-state p {
  margin:0;
  color:var(--muted);
  font-size:12px;
}
.project-ledger-item {
  margin:0;
}
.project-ledger-item-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.project-ledger-item h3 {
  margin:0 0 5px;
  font-size:14px;
}
.project-ledger-item p {
  margin:0;
  color:var(--muted);
  font-size:11px;
}
.project-ledger-item-head > strong {
  color:var(--gold-d);
  white-space:nowrap;
  font-size:14px;
}
.project-ledger-lines {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid var(--line2);
}
.project-ledger-lines span {
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:8px 10px;
  background:var(--surface);
  border-radius:8px;
}
.project-ledger-lines small {
  color:var(--muted);
  font-size:10px;
}
.project-ledger-lines b {
  font-size:12px;
  color:var(--text);
}
@media (max-width:680px) {
  .project-ledger-summary,
  .project-ledger-lines {
    grid-template-columns:1fr;
  }
  .project-ledger-item-head {
    flex-direction:column;
    gap:8px;
  }
  .admin-control-metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* رموز واجهة رسمية خفيفة بدلاً من الرموز التعبيرية */
.ui-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  vertical-align: -.16em;
  color: currentColor;
  font-style: normal;
}
.ui-icon::before { font-size: .92em; line-height: 1; font-weight: 800; }
.ui-icon-save::before { content: "▣"; }
.ui-icon-lock::before { content: "⌑"; }
.ui-icon-user::before { content: "◉"; }
.ui-icon-calculator::before { content: "▦"; }
.ui-icon-document::before { content: "▤"; }
.ui-icon-message::before { content: "≡"; }
.ui-icon-plan::before { content: "◇"; }
.ui-icon-users::before { content: "◎"; }
.ui-icon-print::before { content: "▥"; }
.upgrade-modal-mark {
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-d);
  font-size: 25px;
}
.status-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 6px;
  border-radius: 50%;
  vertical-align: 1px;
}
.status-mark-danger { background: var(--danger); }
.status-mark-warn { background: var(--gold); }

/* شريط الحاسبات السبع المتاح أثناء التنقل بين كل أقسام النظام */
.quick-tools-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(16px, 3vw, 30px);
  background: var(--card);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.quick-tools-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 92px;
  color: var(--text);
}
.quick-tools-overline { color: var(--gold-d); font-size: 10px; font-weight: 800; }
.quick-tools-label strong { font-size: 13px; white-space: nowrap; }
.quick-tools-list { display: flex; align-items: stretch; gap: 7px; min-width: max-content; }
.quick-tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 122px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card-warm);
  color: var(--text2);
  text-align: right;
  transition: border-color .15s, background .15s, color .15s;
}
.quick-tool:hover,
.quick-tool.is-active { border-color: var(--p); background: var(--p-l); color: var(--p-d); }
.quick-tool.is-locked { opacity: .56; }
.quick-tool-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--surface);
  color: var(--p);
  font-size: 10px;
  font-weight: 900;
}
.quick-tool-mark img { width: 21px; height: 21px; object-fit: contain; display:block; }
.quick-tool-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.quick-tool-copy b { font-size: 11px; white-space: nowrap; }
.quick-tool-copy small {
  max-width: 88px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.quick-tool-lock {
  position: absolute;
  inset-inline-start: 6px;
  top: 5px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--muted);
  border-radius: 2px;
}

/* اختصارات ومؤشرات النظرة العامة */
.overview-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  margin-top: 18px;
}
.overview-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--sh);
}
.overview-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.overview-card-heading h2 { margin-top: 2px; font-size: 17px; }
.overview-card-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-d);
  font-size: 16px;
}
.quick-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: var(--card-warm);
  text-align: right;
  transition: border-color .15s, background .15s;
}
.quick-action:hover { border-color: var(--p); background: var(--p-l); }
.quick-action-icon { width: 31px; height: 31px; border-radius: 8px; background: var(--p-l); color: var(--p); font-size: 16px; }
.quick-action span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.quick-action b { font-size: 12px; }
.quick-action small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insight-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.insight-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.insight-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.insight-metrics > div { padding: 10px; border-right: 1px solid var(--line2); }
.insight-metrics > div:first-child { border-right: 0; }
.insight-metrics b { display: block; color: var(--p-d); font-size: 17px; line-height: 1.25; }
.insight-metrics b small { font-size: 10px; font-weight: 700; }
.insight-metrics span { color: var(--muted); font-size: 10px; }
.conversion-label { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 11px; color: var(--muted); }
.conversion-label strong { color: var(--p); }
.conversion-track { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface); }
.conversion-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.conversion-line > small { display: block; margin-top: 6px; color: var(--muted2); font-size: 10px; }

/* تفاصيل العرض: ملاحظات تكتب تدريجياً وتقييم واضح */
.quote-notes-box { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-warm); font-size: 13px; line-height: 1.9; }
.quote-notes-box strong { display: block; margin-bottom: 4px; color: var(--p); }
.quote-notes-typing {
  min-height: 1.9em;
  white-space: pre-wrap;
  cursor: pointer;
}
.quote-notes-typing:not(.is-complete)::after {
  content: "▋";
  display: inline-block;
  margin-inline-start: 3px;
  color: var(--gold-d);
  animation: note-caret .8s steps(1,end) infinite;
}
.quote-notes-typing.is-complete { cursor: text; }
@keyframes note-caret { 50% { opacity: 0; } }

/* حركة لوحة التحكم: واضحة وسريعة، مع احترام تقليل الحركة */
.dashboard-welcome,
.stat-card,
.overview-card,
.quick-tools-bar {
  animation: dashboard-enter .45s ease both;
}
.dashboard-welcome { animation-delay: .02s; }
.stat-card:nth-child(1) { animation-delay: .06s; }
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .14s; }
.stat-card:nth-child(4) { animation-delay: .18s; }
.stat-card:nth-child(5) { animation-delay: .22s; }
.overview-card { animation-delay: .26s; }
.admin-control-panel { animation: dashboard-enter .45s ease .3s both; }
.quick-tools-bar { animation-delay: 0s; }
@keyframes dashboard-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-welcome,
  .stat-card,
  .overview-card,
  .quick-tools-bar,
  .admin-control-panel,
  .quote-notes-typing::after {
    animation: none!important;
  }
}
.quote-tool-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card-warm);
}
.quote-tool-rail-title { display: flex; flex-direction: column; gap: 1px; min-width: 145px; }
.quote-tool-rail-title strong { font-size: 11px; }
.quote-tool-rail-list { display: flex; flex: 1; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
.quote-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--text2);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.quote-tool-link span { color: var(--p); font-size: 9px; font-weight: 900; }
.quote-tool-link:hover { border-color: var(--p); background: var(--p-l); }
.quote-tool-link.is-locked { opacity: .54; }
.quote-rating-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.quote-rating-panel strong { display: block; margin-top: 2px; font-size: 12px; }
.quote-rating-actions { display: flex; gap: 5px; direction: ltr; }
.rating-button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: var(--card-warm); color: var(--muted); font-size: 11px; font-weight: 800; }
.rating-button:disabled { cursor: wait; opacity: .65; }
.rating-button:hover, .rating-button.is-selected { border-color: var(--gold); background: var(--gold-l); color: var(--gold-d); }
.quote-rating-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.quote-rating-summary { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.quote-rating-inline { white-space: nowrap; font-size: 12px; color: var(--gold-d); }
.quote-rating-inline small { color: var(--muted); font-size: 10px; }

.admin-control-panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(20,71,48,.06), transparent 58%),
    var(--card);
}
.admin-control-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.admin-control-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46,139,87,.12);
}
.admin-control-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.admin-control-metrics > div {
  padding: 11px;
  border: 1px solid var(--line2);
  border-radius: var(--r);
  background: var(--card-warm);
}
.admin-control-metrics b {
  display: block;
  color: var(--p-d);
  font-size: 18px;
}
.admin-control-metrics b small {
  font-size: 9px;
}
.admin-control-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.admin-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* بطاقة الأداة */
.tool-card { position: relative; text-align: right; }
.tool-tag {
  font-size: 10px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-card.locked { opacity: .6; cursor: not-allowed !important; }
.tool-card.locked:hover { border-color: var(--line) !important; box-shadow: none !important; transform: none !important; }
.tool-lock { position: absolute; top: 10px; left: 10px; font-size: 18px; }

.calc-section {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; margin-bottom: 14px;
}
.calc-section h4 {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--text2); margin-bottom: 13px;
}
.calc-section h4::before {
  content: ""; width: 4px; height: 17px; border-radius: 4px; background: var(--gold);
}
.calc-result {
  background: #f5f8f5; border: 1px solid #c8dbcc; border-radius: var(--r);
  padding: 16px; margin-top: 14px;
}
.calc-result-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid rgba(46,139,87,.10);
  color: var(--muted); font-size: 12px;
}
.calc-result-row:last-child { border-bottom: 0; }
.calc-result-row span:last-child { color: var(--text); font-weight: 800; }
.calc-result-row.big { padding-top: 12px; color: var(--text); font-weight: 800; }
.calc-result-row.big span:last-child { color: var(--green); font-size: 18px; }

@media (max-width: 640px) {
  .topbar-plan-summary { display:none; }
  .tools-intro { align-items: flex-start; padding: 21px 18px; min-height: 0; }
  .tools-intro-mark { width: 58px; height: 58px; }
  .tools-intro-mark img { width: 38px; height: 38px; }
  .tools-intro-meta { gap: 6px 10px; }
  .tools-intro-meta > span:not(.tools-plan-chip) { width: 100%; }
  .tools-intro-meta > span:not(.tools-plan-chip)::before { margin-left: 4px; }
  .sector-card { min-height: 0; }
  .quick-tools-bar { align-items: flex-start; padding: 9px 16px; }
  .quick-tools-label { min-width: 78px; padding-top: 5px; }
  .quick-tool { min-width: 112px; }
  .overview-lower-grid { grid-template-columns: 1fr; }
  .quote-tool-rail { align-items: flex-start; flex-direction: column; }
  .quote-tool-rail-title { min-width: 0; }
  .quote-rating-panel { align-items: flex-start; flex-direction: column; }
}

/* بطاقة بيانات العميل داخل الأداة */
.cic-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 16px; overflow: hidden;
}
.cic-toggle {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; cursor: pointer; font-size: 12px; font-weight: 700;
  user-select: none; color: var(--text2); gap: 8px;
}
.cic-toggle:hover { background: rgba(26,75,51,.04); }
.cic-arrow { transition: transform .2s; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.cic-card.open .cic-arrow { transform: rotate(180deg); }
.cic-body { display: none; padding: 12px 14px; border-top: 1px solid var(--line); }
.cic-card.open .cic-body { display: block; }

/* أقسام الحساب */
.calc-section {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px; margin-bottom: 14px;
}
.calc-section h4 {
  font-size: 11px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line2);
}

/* نتيجة الحساب */
.calc-result {
  background: var(--p-d); border-radius: var(--r-lg); padding: 20px;
  margin-top: 16px; color: white;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-row.big {
  font-size: 20px; font-weight: 900;
  border-top: 1px solid rgba(201,167,65,.3); border-bottom: none;
  padding-top: 12px; margin-top: 6px; color: #C9A741;
}

/* شبكة الحقول */
.field-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); gap: 8px;
}
.field-btn {
  padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: 12px; font-weight: 700; cursor: pointer; text-align: center;
  background: var(--card); transition: .14s; color: var(--text2);
}
.field-btn:hover { border-color: var(--p-m); background: var(--p-l); color: var(--p); }
.field-btn.active { border-color: var(--p); background: var(--p); color: white; }

/* شبكة الخدمات */
.svc-grid-2 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 8px;
}
.svc-btn {
  padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--r);
  font-size: 12px; font-weight: 600; cursor: pointer; text-align: center;
  background: var(--card); transition: .14s; color: var(--text2);
}
.svc-btn:hover { border-color: var(--p-m); background: var(--p-l); }
.svc-btn.active { border-color: var(--gold); background: var(--gold-l); color: var(--gold-d); font-weight: 800; }

/* زر حفظ كعرض سعر */
.tool-quote-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 18px; border-radius: var(--r); background: var(--gold);
  color: white; border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; margin-top: 16px; transition: background .15s; width: 100%;
}
.tool-quote-btn:hover { background: var(--gold-d); }


/* ══════════════════════════════════════════════════
   نظام الرسائل
   ══════════════════════════════════════════════════ */
.msg-layout {
  display: grid; grid-template-columns: 290px 1fr; gap: 0;
  height: 560px; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; background: var(--card);
}
.msg-list {
  background: var(--surface); border-left: 1px solid var(--line);
  display: flex !important; flex-direction: column !important;
  max-height: none !important; padding: 0 !important; gap: 0 !important;
  overflow-y: auto !important;
}
.msg-list-header {
  padding: 12px 14px; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--line); flex-shrink: 0;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); position: sticky; top: 0; z-index: 1;
}
.msg-item {
  border-radius: 0 !important; border-right: none !important;
  border-left: none !important; border-top: none !important;
  border-bottom: 1px solid var(--line2) !important;
}
.msg-item.unread { border-right: 3px solid var(--p) !important; }
.msg-item-name { font-size: 13px; font-weight: 700; color: var(--text); }
.msg-item-preview { font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item-time { font-size: 11px; color: var(--muted2); margin-top: 3px; }
.msg-thread {
  display: flex; flex-direction: column; background: var(--card); min-height: 0; overflow: hidden;
}
.msg-thread-header {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 13px; flex-shrink: 0; background: var(--card);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg-bubbles {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 10px; background: var(--bg);
}
.msg-compose {
  border-top: 1px solid var(--line); padding: 12px;
  display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; background: var(--card);
}
.msg-compose textarea {
  flex: 1; border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 9px 12px; font-size: 13px; resize: none;
  min-height: 58px; max-height: 110px; outline: none; font-family: inherit;
}
.msg-compose textarea:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--p-xs); }
.bubble {
  padding: 10px 14px; border-radius: 14px; max-width: 72%;
  font-size: 13px; line-height: 1.75; word-break: break-word;
}
.bubble.mine {
  background: var(--p); color: white; align-self: flex-end;
  border-bottom-left-radius: 4px;
}

/* ══════════════════════════════════════════════════
   البريد الإلكتروني الحقيقي
   ══════════════════════════════════════════════════ */
.section-intro {
  margin-bottom: 16px;
  padding: 2px 2px 0;
}
.section-intro h2 {
  margin: 4px 0 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
}
.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.section-eyebrow {
  color: var(--gold-d);
  font-size: 11px;
  font-weight: 800;
}
.mailbox-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.mailbox-folders {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mailbox-folder {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--text2);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.mailbox-folder:hover { border-color: var(--p-m); background: var(--p-l); }
.mailbox-folder.active { border-color: var(--p); background: var(--p-l); color: var(--p-d); }
.mailbox-folder span {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.mailbox-folder.active span { background: var(--p); color: #fff; }
.mailbox-folder.is-unavailable { opacity: .58; }
.mailbox-row-actions { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.mailbox-move-select {
  min-width: 92px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  color: var(--text2);
  font: inherit;
  font-size: 11px;
}
.mailbox-danger { color: var(--red, #b42318) !important; }
.mailbox-read-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bubble.theirs {
  background: var(--card); color: var(--text); align-self: flex-start;
  border: 1px solid var(--line); border-bottom-right-radius: 4px;
}
.bubble-meta { font-size: 11px; color: var(--muted2); margin: 2px 4px 6px; }


/* ══════════════════════════════════════════════════
   بطاقات الخطط الإدارية
   ══════════════════════════════════════════════════ */
.sub-plan-cards {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px;
}
.sub-plan {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-xl); padding: 20px; transition: .15s;
}
.sub-plan:hover { border-color: var(--p); box-shadow: var(--sh-md); }
.sub-plan-name {
  font-size: 13px; font-weight: 800; display: flex;
  align-items: center; gap: 8px; margin-bottom: 8px; color: var(--text);
}
.sub-plan-price { font-size: 28px; font-weight: 900; color: var(--p); line-height: 1; }
.sub-plan-price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-right: 3px; }
.sub-plan-feat { font-size: 11px; color: var(--muted); line-height: 1.9; margin-top: 8px; }


/* ══════════════════════════════════════════════════
   تحسينات إضافية على الجداول
   ══════════════════════════════════════════════════ */
.card { overflow-x: auto; }
.data-table { min-width: 500px; }


/* ══════════════════════════════════════════════════
   استجابة الموبايل — لوحة التحكم
   ══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .msg-layout { grid-template-columns: 240px 1fr; height: 500px; }
  .sub-plan-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .msg-layout { grid-template-columns: 1fr; height: auto; }
  .msg-list { max-height: 260px !important; }
  .msg-thread { height: 380px; }
  #toolsMenu { grid-template-columns: 1fr 1fr; }
  .sub-plan-cards { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); }
  .svc-grid-2 { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
  .topbar-actions .btn:not(.btn-primary) { display: none; }
  .account-card { padding: 16px; }
  .account-hero { align-items: flex-start; flex-wrap: wrap; }
  .account-admin-note { width: 100%; margin: 2px 0 0; }
  .account-grid { grid-template-columns: 1fr; gap: 12px; }
  .account-section { padding: 15px; }
  .account-actions { align-items: stretch; flex-direction: column; }
  .account-actions #accMsg { width: 100%; margin: 0; }
  .account-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  #toolsMenu { grid-template-columns: 1fr; }
  .calc-result-row.big { font-size: 16px; }
}

/* ══════════════════════════════════════════════════
   الهوية الجديدة — الصفحة العامة ولوحة العمل
   ══════════════════════════════════════════════════ */
.hero {
  max-width: 1180px;
  min-height: 560px;
  padding: 72px 24px 58px;
  gap: 54px;
  direction: ltr;
}
.hero-content { position: relative; z-index: 2; direction: rtl; }
.hero-visual { direction: ltr; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.12; }
.hero-sub { max-width: 510px; font-size: 15px; line-height: 2.05; }
.hero-trust-stats {
  display: flex; align-items: center; gap: 28px; margin-top: 28px;
}
.hero-trust-stats > div {
  display: flex; flex-direction: column; gap: 1px; min-width: 74px;
  border-right: 1px solid var(--line); padding-right: 18px;
}
.hero-trust-stats > div:first-child { border-right: 0; padding-right: 0; }
.hero-trust-stats strong { color: var(--text); font-size: 19px; line-height: 1.1; }
.hero-trust-stats span { color: var(--muted); font-size: 10px; }
.hero-art {
  width: min(100%, 610px); height: 394px; position: relative; isolation: isolate;
}
.hero-art-backdrop {
  position: absolute; inset: 0 0 0 11%; z-index: -1;
  background: #0c3021;
  border-radius: 0 0 0 86px;
}
.hero-art-backdrop::before, .hero-art-backdrop::after {
  content: ""; position: absolute; border: 1px solid rgba(201,167,65,.3);
  width: 190px; height: 190px; border-radius: 50%; left: -74px; bottom: -86px;
}
.hero-art-backdrop::after { width: 280px; height: 280px; left: -118px; bottom: -132px; border-color: rgba(255,255,255,.08); }
.hero-art-window {
  position: absolute; top: 42px; right: 9%; width: 76%; min-height: 296px;
  background: rgba(255,255,255,.96); border: 1px solid rgba(13,50,34,.12);
  border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 72px 1fr;
  direction: ltr; box-shadow: 0 20px 42px rgba(13,50,34,.18);
  transform: rotate(-1deg);
}
.hero-art-sidebar {
  background: var(--p-d); color: rgba(255,255,255,.66); padding: 13px 8px;
  display: flex; flex-direction: column; gap: 12px; direction: rtl;
}
.hero-art-sidebar img { width: 27px; height: 27px; object-fit: contain; margin: 0 auto 8px; }
.hero-art-nav { font-size: 7px; padding: 5px 4px; border-radius: 4px; white-space: nowrap; }
.hero-art-nav.active { color: #fff; background: rgba(201,167,65,.22); }
.hero-art-content { direction: rtl; padding: 18px 18px 13px; background: #fbfaf6; }
.hero-art-top { display: flex; justify-content: space-between; align-items: center; }
.hero-art-top b { display: block; font-size: 13px; color: var(--text); }
.hero-art-top span:not(.hero-art-avatar) { display: block; color: var(--muted); font-size: 8px; margin-top: 3px; }
.hero-art-avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-l); color: var(--gold-d); font-size: 10px; font-weight: 900;
}
.hero-art-search {
  margin: 18px 0 12px; padding: 8px 10px; border: 1px solid var(--line2);
  border-radius: 6px; color: var(--muted2); font-size: 8px; background: #fff;
}
.hero-art-search span { margin-right: 5px; }
.hero-art-kpis, .hero-art-tools { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.hero-art-kpis > div {
  background: #fff; border: 1px solid var(--line2); padding: 9px 5px; border-radius: 6px;
  text-align: center;
}
.hero-art-kpis strong { display: block; color: var(--p); font-size: 15px; }
.hero-art-kpis span { color: var(--muted); font-size: 8px; }
.hero-art-section-title { margin: 15px 0 8px; color: var(--text); font-weight: 800; font-size: 9px; }
.hero-art-tools > div {
  min-height: 58px; padding: 9px 6px; border-radius: 6px; background: var(--p-l);
  color: var(--p); display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
}
.hero-art-tools span { font-size: 17px; color: var(--gold-d); }
.hero-art-tools b { font-size: 8px; }
.qirox-credit { color: rgba(255,255,255,.55); font-size: 11px; direction: ltr; }
.qirox-credit:hover { color: var(--gold); }
.market-strip {
  position: relative;
  overflow: hidden;
  background: #063426;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.market-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background:
    linear-gradient(135deg, transparent 0 68%, rgba(201,167,65,.2) 68.2%, transparent 68.5%),
    linear-gradient(116deg, transparent 0 32%, rgba(255,255,255,.06) 32.2%, transparent 32.5%);
}
.market-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  min-height: 84px;
  margin: auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 72px repeat(3, minmax(108px, 1fr)) minmax(230px, 1.8fr);
  align-items: center;
  direction: ltr;
}
.market-strip-inner > div {
  min-height: 48px;
  padding: 2px 18px;
  border-left: 1px solid rgba(255,255,255,.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.market-strip-brand {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.market-strip-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: .78;
}
.market-strip-copy {
  align-items: flex-end !important;
  padding-right: 0 !important;
  text-align: right !important;
  direction: rtl;
}
.market-strip-copy strong { display:block; color:#fff; font-family:inherit; font-size:15px; line-height:1.35; }
.market-strip-copy span { display:block; margin-top:2px; }
.market-strip-stat strong { color: var(--gold); font: 800 18px/1 Hurme, Arial, sans-serif; direction: ltr; }
.market-strip span { color: rgba(255,255,255,.72); font-size: 10px; white-space: nowrap; }
/* التكوين العام في المرجع يعتمد أربعة أعمدة وظيفية فقط */
.feat-grid { grid-template-columns: repeat(4, 1fr); }
.feat-card { padding: 24px 20px; min-height: 166px; }
.feat-card:nth-child(n+5) { display: none; }
.features { padding-top: 46px; padding-bottom: 46px; }
.section-head { margin-bottom: 28px; }

/* لوحة التحكم أقرب إلى لوحة العمل المرجعية */
.app-shell { background: #f4f3ee; }
.sidebar {
  width: 224px; background: var(--sb); border-left: 1px solid rgba(255,255,255,.06);
  box-shadow: -10px 0 34px rgba(13,43,28,.08);
}
.sb-logo { height: 92px; padding: 8px 18px; justify-content: flex-start; }
.sb-logo-img { width: auto; max-width: 100%; height: 76px; object-fit: contain; background: #F8F5ED; padding: 6px; border-radius: 4px; }
.sb-gold-stripe { height: 2px; margin: 0 18px; background: var(--gold); opacity: .8; }
.sb-user { margin: 18px 14px 12px; padding: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }
.sb-user-name { color: #fff; font-size: 13px; font-weight: 800; }
.sb-user-role { color: var(--sb-txt); font-size: 10px; }
.sb-plan { display: inline-flex; margin-top: 8px; padding: 2px 8px; color: #f5e7b3; border: 1px solid rgba(201,167,65,.4); border-radius: 999px; font-size: 9px; }
.sb-section { color: rgba(255,255,255,.38); padding: 13px 19px 5px; font-size: 9px; }
.sb-item { margin: 1px 10px; width: calc(100% - 20px); padding: 9px 10px; border-radius: 7px; font-size: 11px; }
.sb-item.active { color: #fff; background: rgba(201,167,65,.16); border-right: 2px solid var(--gold); }
.sb-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.sb-icon { width: 22px; color: var(--gold); font-size: 13px; }
.topbar { height: 62px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 22px; }
.topbar-title { color: var(--text); font-size: 14px; }
.workspace { padding: 22px 26px 48px; }
.section-panel#panel-overview { max-width: 1320px; margin: 0 auto; display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; direction:ltr; align-items:start; }
.section-panel#panel-overview > * { grid-column:2; direction:rtl; min-width:0; }
.section-panel#panel-overview > .dashboard-welcome { grid-column:1; grid-row:1 / span 4; direction:rtl; }
.dashboard-welcome {
  min-height: 610px; height: 100%; padding: 28px 20px 24px; margin-bottom: 0; border-radius: 10px;
  background: var(--p-d); color: #fff; display: flex; flex-direction:column; align-items:flex-start;
  justify-content: space-between; overflow: hidden; position: relative;
}
.dashboard-welcome::after {
  content: ""; position: absolute; width: 250px; height: 250px; border: 1px solid rgba(201,167,65,.18);
  border-radius: 50%; left: -110px; bottom: -155px;
}
.dashboard-welcome-kicker { color: var(--gold); font-size: 10px; font-weight: 800; }
.dashboard-welcome h1 { color: #fff; font-size: 22px; margin: 9px 0 8px; line-height:1.35; }
.dashboard-welcome p { color: rgba(255,255,255,.64); font-size: 11px; line-height:1.9; }
.dashboard-welcome-mark { display: flex; flex-direction:column; align-items:flex-start; gap: 10px; color: rgba(255,255,255,.5); font: 700 9px/1.25 Hurme, Arial, sans-serif; letter-spacing: 1px; direction: ltr; }
.dashboard-welcome-mark img { width: 62px; height: 62px; object-fit: contain; opacity: .85; }
.stats-grid { gap: 10px; margin-bottom: 16px; }
.stat-card { border-radius: 9px; padding: 16px; background: #fff; box-shadow: 0 2px 9px rgba(26,43,32,.035); }
.stat-card:hover { box-shadow: 0 4px 14px rgba(26,43,32,.07); }
.card { box-shadow: 0 2px 9px rgba(26,43,32,.035); border-radius: 10px; }
.overview-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 12px; margin-bottom: 16px; }
.overview-kicker { color: var(--gold-d); font-size: 10px; font-weight: 800; display: block; margin-bottom: 3px; }
.overview-card-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--p-l); color: var(--p); font: 700 15px Hurme, Arial, sans-serif; }
.overview-quick-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.overview-quick-list button { min-height: 90px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-warm); text-align: right; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; transition: .15s; }
.overview-quick-list button:hover { border-color: var(--p); background: var(--p-l); }
.overview-quick-icon { color: var(--gold-d); font: 700 11px Hurme, Arial, sans-serif; direction: ltr; }
.overview-quick-list b { display: block; color: var(--text); font-size: 11px; }
.overview-quick-list small { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.overview-quick-list strong { margin-top: auto; color: var(--p); font-size: 15px; }
.overview-plan-price { color: var(--p); font-size: 25px; font-weight: 900; line-height: 1.1; margin-bottom: 18px; }
.overview-plan-price small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; }
.overview-plan-line { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line2); color: var(--muted); font-size: 11px; }
.overview-plan-line b { color: var(--text); }
.overview-plan-card .btn { margin-top: 13px; }
.workspace-footer {
  max-width: 1320px; margin: 26px auto 0; padding-top: 15px; border-top: 1px solid var(--line);
  color: var(--muted2); display: flex; justify-content: space-between; gap: 10px;
  font-size: 10px; direction: ltr;
}
.workspace-footer a { color: var(--muted); }
.workspace-footer a:hover { color: var(--gold-d); }

@media (max-width: 768px) {
  .hero { min-height: 0; padding-top: 54px; grid-template-columns: 1fr; direction:rtl; }
  .hero {
    width: 100%;
    max-width: none;
    padding: 48px 16px 42px;
    gap: 28px;
    overflow: hidden;
  }
  .hero-content, .hero-visual { width: 100%; min-width: 0; }
  .hero-visual { order: -1; min-height: 250px; overflow: hidden; }
  .hero-art { width: 100%; max-width: 380px; height: 250px; margin: 0 auto; }
  .hero-art-backdrop { inset: 0 0 0 8%; border-radius: 0 0 0 52px; }
  .hero-art-window { top: 22px; right: 5%; width: 88%; min-height: 205px; grid-template-columns: 56px 1fr; }
  .hero-art-content { padding: 12px; }
  .hero-art-sidebar { padding: 10px 5px; gap: 8px; }
  .hero-art-search { margin: 12px 0 9px; }
  .hero-art-section-title { margin: 10px 0 7px; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .hero-sub { max-width: none; font-size: 14px; line-height: 1.9; }
  .hero-trust-stats { gap: 15px; }
  .hero-trust-stats > div { padding-right: 10px; }
  .section-panel#panel-overview { display:block; }
  .dashboard-welcome { min-height: 150px; height:auto; align-items: flex-start; padding: 20px; margin-bottom:16px; }
  .dashboard-welcome-mark { display: none; }
  .workspace { padding: 16px 13px 34px; }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card { min-width: 0; }
  .workspace-footer { flex-direction: column; align-items: center; }
  .market-strip-inner {
    grid-template-columns: 56px repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 12px 14px;
  }
  .market-strip-inner > div { padding: 2px 8px; }
  .market-strip-brand img { width: 42px; height: 42px; }
  .market-strip-stat strong { font-size: 16px; }
  .market-strip span { font-size: 9px; }
  .market-strip-copy {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,.2);
    margin-top: 8px;
    padding: 10px 0 0 !important;
  }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-quick-list { grid-template-columns: 1fr; }
  .overview-quick-list button { min-height: 68px; flex-direction: row; align-items: center; }
  .overview-quick-list strong { margin-right: auto; margin-top: 0; }
}

/* ══════════════════════════════════════════════════
   تكوين الهيرو المطابق للمرجع
   ══════════════════════════════════════════════════ */
.hero {
  width: 100%;
  max-width: none;
  min-height: 586px;
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  direction: rtl;
  overflow: hidden;
  background: var(--bg);
}
.hero-content {
  min-width: 0;
  padding: 66px clamp(28px, 7vw, 100px) 58px clamp(26px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  direction: rtl;
  text-align: right;
  background: #f8f5ed;
}
.hero-content > * { max-width: 440px; }
.hero h1 {
  width: min(100%, 440px);
  align-self: flex-start;
  text-align: right;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -1px;
}
.hero-sub {
  width: min(100%, 440px);
  align-self: flex-start;
  text-align: right;
  max-width: 440px;
  margin: 18px 0 27px;
  font-size: 14px;
  line-height: 1.95;
}
.hero-btns {
  direction: ltr;
  justify-content: flex-start;
  align-self: flex-start;
  flex-wrap: nowrap;
}
.hero-btns .btn { min-width: 124px; }
.hero-note {
  align-self: flex-start;
  direction: rtl;
  margin-top: 13px;
}
.hero-trust-stats {
  direction: ltr;
  justify-content: flex-start;
  align-self: flex-start;
  width: max-content;
  margin-top: 42px;
}
.hero-trust-stats > div {
  border-right: 0;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 18px;
  text-align: center;
}
.hero-trust-stats > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.hero-trust-stats > div > * { direction: rtl; }
.hero-visual {
  min-width: 0;
  min-height: 586px;
   overflow: hidden;
   background: #103728;
}
 .hero-reference-image {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: fill;
 }

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
  }
  .hero-visual {
    order: 1;
    min-height: 300px;
  }
  .hero-content {
    order: 0;
    padding: 46px 20px 42px;
    align-items: stretch;
  }
  .hero-content > * { max-width: none; }
  .hero h1 {
    max-width: 360px;
    align-self: flex-start;
    margin-inline: 0;
    font-size: clamp(36px, 10vw, 48px);
  }
  .hero-sub {
    max-width: 360px;
    align-self: flex-start;
    margin-inline: 0;
  }
  .hero-btns {
    align-self: flex-start;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .hero-btns .btn {
    min-width: 0;
    padding-inline: 16px;
  }
  .hero-trust-stats {
    width: 100%;
    max-width: 360px;
    align-self: flex-start;
    margin-inline: 0;
    margin-top: 34px;
    justify-content: space-between;
    gap: 12px;
  }

  .methodology-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding: 30px 18px 22px;
  }
  .methodology-intro {
    min-height: 176px;
    border-left: 0;
    border-bottom: 1px solid rgba(107,124,115,.22);
    padding-bottom: 18px;
  }
  .methodology-skyline {
    right: 0;
    width: 100%;
  }
  .methodology-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
    direction: rtl;
  }
  .methodology-divider { display: none; }
  .methodology-point h3,
  .methodology-point p { white-space: normal; }

  /* قسم المميزات: لا تسمح للأعمدة الأربعة المرجعية بدفع الصفحة أفقياً */
  .features {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding: 56px 16px;
    overflow: hidden;
  }
  .features .section-head {
    margin-bottom: 24px;
    padding-inline: 4px;
  }
  .features .section-head h2 {
    font-size: clamp(25px, 7.5vw, 34px);
    line-height: 1.35;
    text-wrap: balance;
  }
  .features .section-head p {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.85;
  }
  .features .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .features .feat-card {
    min-width: 0;
    min-height: 0;
    padding: 22px 14px;
  }
  .features .feat-icon-img {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
  }
  .features .feat-icon {
    margin-bottom: 12px;
    font-size: 21px;
  }
  .features .feat-card h3 {
    font-size: 14px;
    line-height: 1.5;
  }
  .features .feat-card p {
    font-size: 11px;
    line-height: 1.8;
  }
}

@media (max-width: 480px) {
  .methodology-points { grid-template-columns: minmax(0, 1fr); }
  .methodology-intro h2 { font-size: 28px; }
  .methodology-point > img { width: 48px; height: 40px; }

  .features .feat-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .features .feat-card {
    padding: 22px 18px;
  }
}

/* Tas3eerah refinement: calm, legible and consistent across the live app */
:root {
  --bg: #f8f5ed;
  --surface: #efebe2;
  --card: #fffefa;
  --card-warm: #fbf8f1;
  --text: #20352a;
  --text2: #35483d;
  --muted: #68786f;
  --muted2: #87948c;
  --line: #dcd5c8;
  --line2: #ebe6dc;
  --sh: 0 1px 3px rgba(26,43,32,.035);
  --sh-md: 0 3px 12px rgba(26,43,32,.07);
  --sh-lg: 0 8px 24px rgba(26,43,32,.12);
}

html { scroll-behavior: auto; }
body { letter-spacing: normal; }
button, input, textarea, select { letter-spacing: normal; }
:where(h1,h2,h3,h4,p,label,th,td,.badge,.alert,.sb-section,.hero-eyebrow,.eyebrow) {
  letter-spacing: normal;
}

.btn {
  min-height: 38px;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.btn-primary:hover {
  transform: none;
  box-shadow: none;
}
.btn-gold { color: #26372b; }
.btn-gold:hover { transform: none; }
.btn:focus-visible,
.sb-item:focus-visible,
.quick-tool:focus-visible,
.land-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.card,
.stat-card,
.overview-card,
.admin-control-panel,
.account-section,
.quick-actions-card,
.insight-card {
  box-shadow: var(--sh);
}
.stat-card:hover,
.card:hover,
.quick-tool:hover {
  box-shadow: var(--sh);
}
.data-table th {
  text-transform: none;
  letter-spacing: normal;
}
.data-table tr:hover td { background: var(--card-warm); }
.table-wrap,
.card:has(> .data-table) {
  min-width: 0;
}
.card:has(> .data-table) { overflow-x: auto; }

.alert {
  border-radius: 8px;
  line-height: 1.8;
}
.alert-success {
  background: #edf4ee;
  border-color: #c9dacb;
  color: #285d3d;
}
.alert-danger {
  background: #fbefec;
  border-color: #e7c7bf;
  color: #963f32;
}
.alert-info {
  background: var(--gold-l);
  border-color: rgba(201,167,65,.34);
  color: #715b1d;
}
.app-toast {
  background: #edf4ee;
  border-color: #c9dacb;
  color: #285d3d;
  box-shadow: 0 3px 12px rgba(13,43,28,.1);
}
.app-toast.is-error {
  background: #fbefec;
  border-color: #e7c7bf;
  color: #963f32;
}
.client-self-note,
.mailbox-note,
.quote-notes-box {
  background: #f6f3e9;
  border-color: #e3d9bd;
  color: var(--text2);
}
.quote-notes-box strong { color: var(--p); }
.quote-notes-typing:not(.is-complete)::after { animation: none; }

.modal-overlay {
  background: rgba(13,43,28,.48);
  backdrop-filter: none;
}
.modal-box {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(13,43,28,.16);
}

/* Landing: restore all six feature panels and retain an even, responsive rhythm */
.features { padding-block: 64px; }
.feat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feat-card:nth-child(n+5) { display: block; }
.feat-card {
  min-width: 0;
  min-height: 170px;
  padding: 25px 22px;
}
.feat-card:hover { background: var(--card); }
.feat-icon { font-size: 0; }
.feat-card:nth-child(2) .feat-icon::before {
  content: "٧";
  font-size: 22px;
  color: var(--p);
}
.feat-card:nth-child(6) .feat-icon::before {
  content: "✓";
  font-size: 22px;
  color: var(--gold-d);
}
.hero h1 { letter-spacing: normal; }
.hero-content { background: var(--bg); }
.hero-visual { background: var(--p-d); }
.hero-note span:first-child { display: none; }
.land-nav { box-shadow: none; }
.land-nav-links a:hover,
.lang-toggle:hover { background: var(--p-l); }

/* Dashboard overview: give the welcome and work panels a single readable flow */
.app-shell {
  height: 100dvh;
  min-height: 0;
  background: var(--bg);
}
.sidebar { box-shadow: none; }
.main-area { min-height: 0; }
.topbar {
  box-shadow: none;
  background: var(--card-warm);
}
.workspace { min-width: 0; }
.section-panel#panel-overview {
  grid-template-columns: minmax(0,1fr);
  gap: 14px;
}
.section-panel#panel-overview > *,
.section-panel#panel-overview > .dashboard-welcome {
  grid-column: 1;
  grid-row: auto;
}
.dashboard-welcome {
  min-height: 0;
  height: auto;
  min-height: 148px;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 23px 26px;
  margin: 0;
  border-radius: 10px;
  background: var(--p-d);
}
.dashboard-welcome::after { display: none; }
.dashboard-welcome h1 { font-size: 21px; }
.dashboard-welcome p { max-width: 560px; font-size: 12px; }
.dashboard-welcome-mark { gap: 7px; }
.dashboard-welcome-mark img { width: 48px; height: 48px; }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(145px,1fr)); }
.stat-card { border-radius: 9px; }
.dashboard-welcome,
.stat-card,
.overview-card,
.quick-tools-bar,
.admin-control-panel { animation: none; }
.overview-lower-grid { gap: 14px; }
.quick-action,
.admin-control-actions .btn,
.overview-quick-list button {
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.quick-action:hover,
.overview-quick-list button:hover {
  transform: none;
  box-shadow: none;
}
.quick-tools-bar { box-shadow: none; }
.quick-tool { transition: border-color .14s ease, background-color .14s ease; }
.quick-tool:hover { transform: none; }
.quick-tool-mark { background: var(--p-l); }

/* Calculator legacy UI: normalize its inherited palette and remove the old purple accent */
#integrated-tools {
  --bg: #f8f5ed;
  --surface: #efebe2;
  --card: #fffefa;
  --border: #dcd5c8;
  --gold: #c9a741;
  --gold-light: #a8882c;
  --gold-dim: #faf3de;
  --text: #20352a;
  --muted: #68786f;
  --soft: #35483d;
  --green: #2e8b57;
  --blue: #2471a3;
  --red: #c0392b;
}
#integrated-tools .tone-purple .sector-icon,
#integrated-tools .tone-purple .tool-icon {
  background: #f6f0dc !important;
  color: #715b1d !important;
}
#integrated-tools .card.purple-card {
  background: var(--card) !important;
  border-color: var(--line) !important;
}
#integrated-tools .glbl.purple,
#integrated-tools .bv.pu,
#integrated-tools .ls-val.pu,
#integrated-tools .li-cval.pu,
#integrated-tools .ibox.pu b,
#integrated-tools .tool-name[style*="purple"],
#integrated-tools [style*="var(--purple)"] {
  color: var(--gold-d) !important;
}
#integrated-tools .addbtn.pu,
#integrated-tools .ibox.pu,
#integrated-tools .pkg-result-card {
  background: #f8f4e8 !important;
  border-color: rgba(201,167,65,.32) !important;
}
#integrated-tools [style*="155,114,245"],
#integrated-tools [style*="155, 114, 245"] {
  background-color: #f8f4e8 !important;
  border-color: rgba(201,167,65,.32) !important;
  color: var(--gold-d) !important;
}
#integrated-tools .pkg-result-name { color: var(--p) !important; }
#integrated-tools .pkg-result-card { box-shadow: none !important; }
#integrated-tools .tool-card:hover,
#integrated-tools .tool-card.gold:hover,
#integrated-tools .tool-card.blue:hover,
#integrated-tools .tool-card.green:hover {
  transform: none !important;
  box-shadow: var(--sh) !important;
}
#integrated-tools .f input,
#integrated-tools .f select,
#integrated-tools .f textarea,
#integrated-tools .pricing-method-wrap select {
  min-height: 42px;
  border-radius: 7px;
}
#integrated-tools .f input:focus,
#integrated-tools .f select:focus,
#integrated-tools .f textarea:focus {
  box-shadow: 0 0 0 2px rgba(26,75,51,.12) !important;
}
#integrated-tools .save-btn,
#integrated-tools .print-btn { box-shadow: none !important; }

.calculator-view .calculator-workspace { padding: 22px clamp(14px,2.5vw,28px) 42px; }
.calculator-view .calculator-hero {
  padding: 21px 24px;
  border-radius: 10px;
  box-shadow: var(--sh);
}
.calculator-view .calculator-kicker { color: var(--gold-d); }
.calculator-view .calculator-hero-art { background: var(--surface); }
.calculator-view .calculator-content #integrated-tools {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-welcome {
    min-height: 0;
    padding: 19px;
  }
  .dashboard-welcome-mark { display: none; }
  .section-panel#panel-overview { display: block; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topbar { padding-inline: 13px; }
  .quick-tools-bar { gap: 12px; }
  .calculator-view .calculator-workspace { padding: 14px 12px 30px; }
  .calculator-view .calculator-hero { gap: 12px; padding: 15px; }
}
@media (max-width: 480px) {
  .land-nav { height: 58px; padding-inline: 12px; }
  .land-brand-logo { max-width: 132px; height: 46px; }
  .hero-content { padding: 38px 17px 34px; }
  .hero-btns { width: 100%; }
  .hero-btns .btn { flex: 1; padding-inline: 10px; }
  .hero-trust-stats { gap: 10px; }
  .hero-trust-stats > div { min-width: 0; padding-left: 10px; }
  .feat-grid { grid-template-columns: minmax(0,1fr); }
  .feat-card { min-height: 0; padding: 19px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 22px; }
  .form-row,
  .form-row.cols-3 { grid-template-columns: minmax(0,1fr); gap: 0; }
  .card { padding: 15px; }
  .modal-overlay { align-items: flex-end; padding: 10px; }
  .modal-box { max-height: min(88dvh, 720px); padding: 20px 17px; }
  .calculator-view .calculator-hero-art { width: 72px; height: 58px; flex-basis: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.calculator-quote-card {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.calculator-quote-card h2,
.calculator-quote-dialog h2 { margin: 0 0 5px; color: var(--text); font-size: 18px; }
.calculator-quote-card p,
.calculator-quote-dialog p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.calculator-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(13, 36, 26, .55);
}
.calculator-quote-dialog {
  position: relative;
  width: min(100%, 510px);
  max-height: 90dvh;
  overflow-y: auto;
  padding: 25px;
  background: var(--card);
  color: var(--text);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.calculator-quote-close {
  position: absolute;
  top: 13px;
  left: 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.calculator-quote-dialog form { display: grid; gap: 8px; margin-top: 18px; }
.calculator-quote-dialog label { font-size: 13px; font-weight: 700; }
.calculator-quote-dialog input,
.calculator-quote-dialog select,
.calculator-quote-dialog textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.calculator-quote-dialog input:focus,
.calculator-quote-dialog select:focus,
.calculator-quote-dialog textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.calculator-quote-message { min-height: 24px; color: var(--green) !important; }
.calculator-quote-message.is-error { color: #9e342e !important; }
.calculator-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 700px) {
  .calculator-quote-card { align-items: stretch; flex-direction: column; padding: 17px; }
  .calculator-quote-dialog { padding: 21px 17px; }
}
