/* ════════════════════════════════════════════════════
   تسعيرة — نظام التصميم الرسمي 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; }
.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; }
.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; }

/* ══════════════════════════════════════════════════
   الجداول
   ══════════════════════════════════════════════════ */
.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 {
  /* عرض الشعار بحجم حقيقي — object-fit:cover يقص الحواف السوداء الزائدة */
  width: 160px;
  height: 52px;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  border-radius: 9px;
  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: cover; object-position: center 38%;
}
.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(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing { max-width: 1000px; margin: 0 auto; padding: 88px 24px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.plan-card {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r-xl); padding: 30px 26px; position: relative; transition: .15s;
}
.plan-card:hover { border-color: var(--p); box-shadow: var(--sh-md); }
.plan-card.featured {
  border-color: var(--p); background: var(--card);
  box-shadow: 0 0 0 4px var(--p-xs);
}
.plan-badge {
  position: absolute; top: -12px; right: 22px;
  background: var(--p); color: white; font-size: 10px; font-weight: 700;
  padding: 3px 14px; border-radius: 20px;
}
.plan-name  { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.plan-price { font-size: 42px; font-weight: 900; color: var(--text); line-height: 1; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin: 12px 0 22px; }
.plan-features { list-style: none; margin-bottom: 26px; }
.plan-features li {
  padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line2);
  display: flex; align-items: flex-start; gap: 10px;
}
.plan-features li:last-child { border-bottom: none; }
.plan-check { color: var(--p); font-weight: 800; flex-shrink: 0; margin-top: 1px; }


/* ══════════════════════════════════════════════════
   شريط 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); }


/* ══════════════════════════════════════════════════
   قسم من نحن
   ══════════════════════════════════════════════════ */
.about-section {
  max-width: 1140px; margin: 0 auto; padding: 88px 24px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center;
}
.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 { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; background: var(--card); }
.about-values-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; 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; }


/* ══════════════════════════════════════════════════
   قسم التواصل
   ══════════════════════════════════════════════════ */
.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);
}


/* ══════════════════════════════════════════════════
   الفوتر
   ══════════════════════════════════════════════════ */
.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: 180px; height: 58px; border-radius: 9px; overflow: hidden;
}
.footer-brand-logo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
.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: 180px; height: 58px; display: block; border-radius: 10px;
  object-fit: cover; object-position: center 38%;
}
.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;
}
.sb-logo-img {
  width: 174px; height: 56px; display: block; border-radius: 8px;
  object-fit: cover; object-position: center 38%;
}

.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-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; }

.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; }

.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-wrap { width: 52px; height: 52px; border-radius: 10px; background: var(--p-d); overflow: hidden; }
.pdf-doc .pdf-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.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 {
  .pdf-overlay { background: none; }
  .pdf-doc { box-shadow: none; max-height: none; border-radius: 0; }
  .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; }
  .plan-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 36px; }
  .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;
}
#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;
}


/* ══════════════════════════════════════════════════
   لوحات الأدوات
   ══════════════════════════════════════════════════ */
.tool-panel { display: none; }
.tool-panel.active { display: block; }
#toolsMenu { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 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; }

/* بطاقة بيانات العميل داخل الأداة */
.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;
}
.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; }
}
@media (max-width: 480px) {
  #toolsMenu { grid-template-columns: 1fr; }
  .calc-result-row.big { font-size: 16px; }
}
