/* ============================================================
   شاحنات — الأنماط الأساسية
   الألوان: أزرق #0D47A1 · أبيض · برتقالي #F59E0B · فحمي #1E293B
   مبني للجوال أولاً ثم يتوسع للحاسوب
   ============================================================ */

:root{
  --blue:#0D47A1;
  --blue-dark:#08306B;
  --blue-light:#E8F0FB;
  --orange:#F59E0B;
  --orange-dark:#D97706;
  --charcoal:#1E293B;
  --muted:#64748B;
  --line:#E2E8F0;
  --bg:#F1F5F9;
  --white:#fff;
  --wa:#25D366;
  --wa-dark:#1EA952;
  --radius:14px;
  --shadow:0 1px 3px rgba(15,23,42,.08), 0 6px 18px rgba(15,23,42,.06);
  --shadow-lg:0 4px 12px rgba(15,23,42,.10), 0 12px 32px rgba(15,23,42,.10);
  --font:"Segoe UI","Noto Kufi Arabic","Helvetica Neue",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--charcoal);
  font-size:16px;
  line-height:1.7;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.35;font-weight:700}
p{margin:0 0 1em}
ul{margin:0;padding:0;list-style:none}

.container{width:100%;max-width:1180px;margin:0 auto;padding:0 16px}

.skip-link{position:absolute;inset-inline-start:-9999px}
.skip-link:focus{inset-inline-start:8px;top:8px;background:var(--white);padding:8px 14px;z-index:200;border-radius:8px}

/* ---------- الترويسة ---------- */
.site-header{
  background:var(--blue);
  color:var(--white);
  position:sticky;top:0;z-index:100;
  box-shadow:0 2px 10px rgba(13,71,161,.25);
}
.header-inner{display:flex;align-items:center;gap:12px;min-height:64px}

.brand{display:flex;align-items:center;gap:10px;color:var(--white);flex:1;min-width:0}
.brand-mark{color:var(--white);display:flex;flex-shrink:0}
.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-name{font-weight:800;font-size:1.25rem;line-height:1.2;letter-spacing:.2px}
.brand-tag{font-size:.7rem;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.nav-toggle{
  background:transparent;border:0;padding:10px;cursor:pointer;
  display:flex;flex-direction:column;gap:5px;width:44px;height:44px;
  align-items:center;justify-content:center;
}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--white);border-radius:2px;transition:.25s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.site-nav{
  display:none;position:absolute;inset-inline:0;top:100%;
  background:var(--blue-dark);flex-direction:column;padding:8px 16px 16px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.site-nav.open{display:flex}
.site-nav a{padding:13px 4px;border-bottom:1px solid rgba(255,255,255,.12);font-weight:600}
.site-nav a:last-child{border-bottom:0}
.site-nav .nav-cta{color:var(--orange)}
.site-nav .nav-lang{opacity:.9;font-weight:700}

@media(min-width:900px){
  .nav-toggle{display:none}
  .site-nav{
    display:flex;position:static;flex-direction:row;background:transparent;
    padding:0;box-shadow:none;gap:4px;align-items:center;
  }
  .site-nav a{border:0;padding:9px 14px;border-radius:8px}
  .site-nav a:hover{background:rgba(255,255,255,.12)}
  .site-nav .nav-cta{background:var(--orange);color:var(--charcoal);font-weight:800}
  .site-nav .nav-cta:hover{background:var(--orange-dark);color:var(--white)}
  .site-nav .nav-lang{border:1px solid rgba(255,255,255,.35)}
  .brand-tag{font-size:.75rem}
}

/* ---------- الواجهة الرئيسية ---------- */
.hero{
  background:linear-gradient(160deg,var(--blue) 0%,var(--blue-dark) 100%);
  color:var(--white);padding:34px 0 40px;position:relative;overflow:hidden;
}
.hero h1{font-size:1.6rem;margin-bottom:.35em;position:relative}
.hero p{opacity:.92;margin-bottom:1.4em;position:relative;max-width:44ch}
@media(min-width:768px){ .hero{padding:56px 0 64px} .hero h1{font-size:2.3rem} }

.finder{
  background:var(--white);border-radius:var(--radius);padding:16px;
  box-shadow:var(--shadow-lg);position:relative;
  display:grid;gap:12px;
}
@media(min-width:768px){ .finder{grid-template-columns:1fr 1fr auto;align-items:end} }
.field label{display:block;font-size:.82rem;font-weight:700;color:var(--muted);margin-bottom:6px}
.field select{
  width:100%;padding:13px 12px;border:1.5px solid var(--line);border-radius:10px;
  font:inherit;font-size:1rem;background:var(--white);color:var(--charcoal);
  min-height:48px;
}
.field select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-light)}

/* ---------- الأزرار ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 18px;min-height:48px;border:0;border-radius:10px;
  font:inherit;font-weight:700;font-size:1rem;cursor:pointer;
  transition:background .18s,transform .12s;text-align:center;
}
.btn:active{transform:translateY(1px)}
.btn-lg{min-height:54px;font-size:1.05rem}
.btn-sm{min-height:42px;padding:9px 14px;font-size:.92rem}
.btn-primary{background:var(--orange);color:var(--charcoal)}
.btn-primary:hover{background:var(--orange-dark);color:var(--white)}
.btn-blue{background:var(--blue);color:var(--white)}
.btn-blue:hover{background:var(--blue-dark)}
.btn-outline{background:transparent;color:var(--blue);border:1.5px solid var(--blue)}
.btn-outline:hover{background:var(--blue-light)}
.btn-call{background:var(--blue);color:var(--white)}
.btn-call:hover{background:var(--blue-dark)}
.btn-wa{background:var(--wa);color:var(--white)}
.btn-wa:hover{background:var(--wa-dark)}
.btn .ico{flex-shrink:0}

/* ---------- الأقسام ---------- */
.section{padding:30px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.section-head h2{font-size:1.28rem;margin:0}
.section-head .more{color:var(--blue);font-weight:700;font-size:.92rem}
.section-sub{color:var(--muted);margin:-8px 0 16px;font-size:.95rem}

/* ---------- مسار التنقل ---------- */
.crumbs{
  background:var(--white);border-bottom:1px solid var(--line);
  padding:10px 0;font-size:.88rem;color:var(--muted);
}
.crumbs ol{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0;padding:0;list-style:none}
.crumbs a{color:var(--blue);font-weight:600}
.crumbs li+li::before{content:"‹";margin-inline-end:6px;color:var(--line)}
[dir="ltr"] .crumbs li+li::before{content:"›"}

/* ---------- الشبكات ---------- */
.grid{display:grid;gap:12px}
.grid-gov{grid-template-columns:repeat(2,1fr)}
.grid-tiles{grid-template-columns:repeat(2,1fr)}
.grid-cards{grid-template-columns:1fr}
@media(min-width:600px){
  .grid-gov{grid-template-columns:repeat(3,1fr)}
  .grid-tiles{grid-template-columns:repeat(3,1fr)}
  .grid-cards{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:900px){
  .grid{gap:16px}
  .grid-gov{grid-template-columns:repeat(4,1fr)}
  .grid-tiles{grid-template-columns:repeat(4,1fr)}
  .grid-cards{grid-template-columns:repeat(3,1fr)}
}
@media(min-width:1100px){ .grid-cards{grid-template-columns:repeat(4,1fr)} }

/* ---------- بلاطة المحافظة / الخدمة ---------- */
.tile{
  background:var(--white);border-radius:var(--radius);padding:16px 14px;
  box-shadow:var(--shadow);border:1px solid transparent;
  display:flex;flex-direction:column;gap:6px;min-height:104px;
  transition:transform .15s,border-color .15s,box-shadow .15s;
}
.tile:hover{transform:translateY(-2px);border-color:var(--blue);box-shadow:var(--shadow-lg)}
.tile-icon{font-size:1.7rem;line-height:1}
.tile-name{font-weight:700;font-size:1.02rem}
.tile-count{font-size:.8rem;color:var(--muted);margin-top:auto}
.tile-desc{font-size:.82rem;color:var(--muted)}

/* ---------- بطاقة المشترك ---------- */
.card{
  background:var(--white);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);display:flex;flex-direction:column;
  border:1px solid transparent;transition:box-shadow .18s,transform .15s;
}
.card:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}

.card-media{position:relative;display:block;aspect-ratio:4/3;background:var(--blue-light);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-media-ph{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:3rem;background:linear-gradient(140deg,var(--blue-light),#DCE9FA);
}

.card-body{padding:12px 14px;flex:1;display:flex;flex-direction:column;gap:6px}
.card-title{font-size:1.02rem;margin:0}
.card-title a:hover{color:var(--blue)}
.card-meta{display:flex;flex-direction:column;gap:3px;font-size:.84rem;color:var(--muted)}
.meta-plate strong{color:var(--charcoal);font-weight:700}
.card-price{margin-top:auto;padding-top:4px;font-size:1.02rem;color:var(--blue);font-weight:800}
.card-price .price-contact{font-size:.86rem;color:var(--muted);font-weight:600}

.chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.chip{
  background:var(--blue-light);color:var(--blue);font-size:.75rem;font-weight:700;
  padding:3px 9px;border-radius:999px;
}

/* الزرّان: الواتساب يميناً والاتصال يساراً في اللغتين */
.card-actions{display:flex;gap:8px;padding:0 14px 14px}
.card-actions .btn{flex:1;min-width:0}
[dir="ltr"] .card-actions{flex-direction:row-reverse}

/* ---------- صفحة التفاصيل ---------- */
.detail{display:grid;gap:18px;padding:22px 0}
@media(min-width:900px){ .detail{grid-template-columns:1.15fr 1fr;align-items:start} }

.detail-media{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.detail-media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.detail-media .card-media-ph{aspect-ratio:4/3;font-size:5rem}

.detail-panel{background:var(--white);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.detail-panel h1{font-size:1.4rem;margin-bottom:.35em}
.detail-badge{
  display:inline-block;background:var(--orange);color:var(--charcoal);
  font-size:.78rem;font-weight:800;padding:4px 12px;border-radius:999px;margin-bottom:10px;
}

.spec{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.spec:last-of-type{border-bottom:0}
.spec dt{color:var(--muted);font-size:.9rem;flex-shrink:0}
.spec dd{margin:0;font-weight:700;text-align:end}
.detail-note{
  background:var(--bg);border-radius:10px;padding:12px 14px;margin:14px 0;
  font-size:.94rem;color:var(--charcoal);
}
.detail-actions{margin-top:16px}

.notice{
  background:#FFF8E7;border:1px solid #F5D98A;border-radius:10px;
  padding:12px 14px;font-size:.88rem;color:#7A5A10;margin-top:16px;
}

/* ---------- شريط الاتصال الثابت في الجوال ---------- */
.sticky-bar{
  position:fixed;inset-inline:0;inset-block-end:0;z-index:120;
  background:var(--white);border-top:1px solid var(--line);
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  display:flex;gap:8px;box-shadow:0 -4px 16px rgba(15,23,42,.10);
}
.sticky-bar .btn{flex:1}
[dir="ltr"] .sticky-bar{flex-direction:row-reverse}
body.has-sticky{padding-bottom:82px}
@media(min-width:900px){
  .sticky-bar{display:none}
  body.has-sticky{padding-bottom:0}
}

/* ---------- الحالة الفارغة ---------- */
.empty-state{text-align:center;padding:48px 16px;background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);margin:22px 0}
.empty-icon{font-size:3rem;margin-bottom:8px}
.empty-state h2{font-size:1.15rem;margin-bottom:.35em}
.empty-state p{color:var(--muted);margin-bottom:1.2em}

/* ---------- صفحة الاشتراك ---------- */
.price-grid{display:grid;gap:14px;margin:20px 0}
@media(min-width:768px){ .price-grid{grid-template-columns:repeat(2,1fr);max-width:820px;margin-inline:auto} }
.price-card{
  background:var(--white);border-radius:var(--radius);padding:22px 18px;
  box-shadow:var(--shadow);text-align:center;border:2px solid transparent;
  display:flex;flex-direction:column;
}
.price-card.highlight{border-color:var(--orange)}
.price-card h3{font-size:1.05rem;color:var(--muted);font-weight:700}
.price-amount{font-size:2.4rem;font-weight:800;color:var(--blue);line-height:1.1}
.price-amount small{font-size:1rem;font-weight:700;color:var(--muted)}
.price-per{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.price-card ul{text-align:start;margin:14px 0;display:flex;flex-direction:column;gap:8px;font-size:.92rem}
.price-card li{padding-inline-start:22px;position:relative}
.price-card li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--wa);font-weight:800}
.price-card .btn{margin-top:auto}

.steps{counter-reset:s;display:grid;gap:12px;margin:18px 0}
@media(min-width:768px){ .steps{grid-template-columns:repeat(4,1fr)} }
.step{background:var(--white);border-radius:var(--radius);padding:18px 16px;box-shadow:var(--shadow);position:relative}
.step::before{
  counter-increment:s;content:counter(s);
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:50%;background:var(--blue);color:var(--white);
  font-weight:800;margin-bottom:10px;
}
.step h3{font-size:1rem;margin-bottom:.3em}
.step p{font-size:.88rem;color:var(--muted);margin:0}

/* ---------- محتوى نصي ---------- */
.prose{background:var(--white);border-radius:var(--radius);padding:22px 20px;box-shadow:var(--shadow);margin:22px 0}
.prose h2{font-size:1.15rem;color:var(--blue);margin-top:1.4em}
.prose h2:first-child{margin-top:0}
.prose ol{padding-inline-start:22px;margin:0 0 1em;list-style:decimal}
.prose ol li{margin-bottom:.5em}
.prose table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.92rem}
.prose th,.prose td{border:1px solid var(--line);padding:9px 11px;text-align:start}
.prose th{background:var(--bg);font-weight:700}
.table-wrap{overflow-x:auto}

/* ---------- التذييل ---------- */
.site-footer{background:var(--charcoal);color:#CBD5E1;padding:30px 0 18px;margin-top:34px}
.footer-grid{display:grid;gap:24px}
@media(min-width:768px){ .footer-grid{grid-template-columns:1.6fr 1fr 1fr 1fr} }
.footer-brand{font-size:1.2rem;font-weight:800;color:var(--white);margin-bottom:4px}
.footer-tag{font-size:.9rem;margin-bottom:.6em}
.footer-note{font-size:.8rem;opacity:.7;line-height:1.6}
.footer-col h3{font-size:.95rem;color:var(--white);margin-bottom:.7em}
.footer-links li{margin-bottom:7px}
.footer-links a{font-size:.88rem;opacity:.85}
.footer-links a:hover{opacity:1;color:var(--orange)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:22px;padding-top:14px;font-size:.82rem;opacity:.7;text-align:center}

/* ---------- أدوات ---------- */
.text-muted{color:var(--muted)}
.center{text-align:center}
.mt-2{margin-top:16px}
.count-pill{background:var(--blue-light);color:var(--blue);font-size:.82rem;font-weight:700;padding:3px 10px;border-radius:999px}

@media(prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}

/* ---------- شعار المنصة المرفوع ---------- */
.brand-mark img{
  width:48px;height:48px;object-fit:contain;
}
@media(min-width:900px){ .brand-mark img{width:52px;height:52px} }

.footer-logo img{
  width:58px;height:58px;object-fit:contain;margin-bottom:10px;
}

/* ---------- أيقونات الخدمات المتجهة ---------- */
.svc-icon{display:block;overflow:visible}
.tile-icon{font-size:1.7rem;line-height:1;display:flex;align-items:center;min-height:34px}
.card-media-ph .svc-icon,
.detail-media .card-media-ph .svc-icon{opacity:.9}
.section-head h2 .svc-icon{display:inline-block;vertical-align:-8px;margin-inline-end:6px}
.empty-icon .svc-icon{margin:0 auto}

/* ---------- النماذج والحسابات ---------- */
.form-card{
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:26px 22px;margin:26px auto;max-width:560px;
}
.form-card h1{font-size:1.35rem;margin-bottom:.3em}
.form-card > p.text-muted{margin-bottom:1.4em;font-size:.94rem}

.field{margin-bottom:16px}
.field label{display:block;font-size:.86rem;font-weight:700;color:var(--muted);margin-bottom:6px}
.field input,.field select,.field textarea{
  width:100%;padding:12px 13px;border:1.5px solid var(--line);border-radius:10px;
  font:inherit;font-size:1rem;background:var(--white);color:var(--charcoal);min-height:48px;
}
.field textarea{min-height:90px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-light);
}
.field-hint{font-size:.8rem;color:var(--muted);margin:5px 0 0}
.field-req{color:#DC2626}
.form-grid2{display:grid;gap:0 14px}
@media(min-width:640px){ .form-grid2{grid-template-columns:1fr 1fr} .form-grid2 .full{grid-column:1/-1} }

.alert{border-radius:10px;padding:12px 15px;margin-bottom:16px;font-size:.94rem;font-weight:600}
.alert-danger{background:#FEE2E2;color:#B91C1C;border:1px solid #FCA5A5}
.alert-ok{background:#DCFCE7;color:#15803D;border:1px solid #86EFAC}
.alert-warn{background:#FEF3C7;color:#B45309;border:1px solid #FCD34D}
.alert-info{background:var(--blue-light);color:var(--blue);border:1px solid #BFDBFE}

.checkline{
  display:flex;align-items:center;gap:10px;padding:12px 13px;
  border:1.5px solid var(--line);border-radius:10px;cursor:pointer;margin-bottom:16px;
}
.checkline input{width:22px;height:22px;min-height:0;margin:0;flex-shrink:0;accent-color:var(--blue)}
.checkline span{font-weight:700;font-size:.96rem}

.chip-pick{display:flex;flex-wrap:wrap;gap:8px}
.chip-pick label{
  display:flex;align-items:center;gap:7px;margin:0;padding:9px 14px;
  border:1.5px solid var(--line);border-radius:999px;cursor:pointer;
  font-size:.9rem;font-weight:700;color:var(--charcoal);background:var(--white);
}
.chip-pick input{width:17px;height:17px;min-height:0;margin:0;accent-color:var(--blue)}
.chip-pick label:has(input:checked){border-color:var(--blue);background:var(--blue-light);color:var(--blue)}

/* حالة الاشتراك */
.status{display:inline-block;padding:3px 12px;border-radius:999px;font-size:.78rem;font-weight:800}
.status-draft{background:#E2E8F0;color:#475569}
.status-pending{background:#FEF3C7;color:#B45309}
.status-active{background:#DCFCE7;color:#15803D}
.status-rejected{background:#FEE2E2;color:#B91C1C}
.status-expired{background:#FEE2E2;color:#B91C1C}

/* خطوات التقدّم */
.steps-bar{display:flex;gap:6px;margin-bottom:22px}
.steps-bar div{
  flex:1;height:6px;border-radius:999px;background:var(--line);
}
.steps-bar div.done{background:var(--blue)}

/* ---------- بطاقات لوحة الحساب والإدارة ---------- */
.panel-card{
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:18px;margin-bottom:16px;
}
.pc-head{display:flex;gap:14px;align-items:flex-start;flex-wrap:wrap}
.pc-thumb{width:84px;height:64px;object-fit:cover;border-radius:10px;flex-shrink:0}
.pc-thumb-ph{
  display:flex;align-items:center;justify-content:center;
  background:var(--blue-light);font-size:1.6rem;
}
.pc-info{flex:1;min-width:180px}
.pc-info h3{font-size:1.05rem;margin:0 0 4px}
.pc-info .status{margin-top:7px;margin-inline-end:6px}

.pc-stats{
  display:flex;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);
}
.pc-stats div{
  flex:1;text-align:center;background:var(--bg);border-radius:10px;padding:10px 6px;
}
.pc-stats strong{display:block;font-size:1.25rem;color:var(--blue);line-height:1.2}
.pc-stats span{font-size:.76rem;color:var(--muted);font-weight:700}

.stats-grid{display:grid;gap:12px;grid-template-columns:repeat(2,1fr)}
@media(min-width:768px){ .stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))} }
.stat{background:var(--white);border-radius:var(--radius);padding:18px 12px;box-shadow:var(--shadow);text-align:center}
.stat-num{font-size:2rem;font-weight:800;color:var(--blue);line-height:1.1}
.stat-label{font-size:.8rem;color:var(--muted);font-weight:700}

table.mini{width:100%;min-width:0;border-collapse:collapse;font-size:.9rem}
table.mini th,table.mini td{border:1px solid var(--line);padding:8px 11px;text-align:start}
table.mini th{background:var(--bg);color:var(--muted);font-weight:700;width:36%;white-space:normal}

.btn-ghost{background:var(--bg);color:var(--charcoal);border:1.5px solid var(--line)}
.btn-ghost:hover{background:var(--line)}
.btn-danger-outline{background:#FEE2E2;color:#B91C1C;border:1.5px solid #FCA5A5}
.btn-danger-outline:hover{background:#FCA5A5;color:#fff}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}

/* ---------- سند القبض ---------- */
.receipt-doc{
  background:#fff;max-width:760px;margin:18px auto 40px;padding:30px;
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);
}
.rd-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;
  border-bottom:3px solid var(--blue);padding-bottom:14px;margin-bottom:18px}
.rd-brand{font-size:1.5rem;font-weight:800;color:var(--blue);line-height:1.2}
.rd-tag{font-size:.78rem;color:var(--muted)}
.rd-no{text-align:end}
.rd-no .lbl{font-size:.76rem;color:var(--muted);font-weight:700}
.rd-no .val{font-size:1.15rem;font-weight:800;font-variant-numeric:tabular-nums}
.rd-title{text-align:center;font-size:1.2rem;font-weight:800;margin-bottom:18px;letter-spacing:.5px}
.rd-table{width:100%;border-collapse:collapse;margin-bottom:16px}
.rd-table th,.rd-table td{border:1px solid var(--line);padding:9px 12px;font-size:.92rem;text-align:start}
.rd-table th{background:var(--bg);width:38%;font-weight:700;color:var(--muted)}
.rd-total{
  background:var(--blue);color:#fff;border-radius:9px;padding:14px 18px;
  display:flex;justify-content:space-between;font-size:1.15rem;font-weight:800;
}
.rd-foot{margin-top:22px;display:flex;justify-content:space-between;gap:20px;font-size:.82rem;color:var(--muted)}
.rd-sign{text-align:center;min-width:150px;flex:0 1 auto}
.rd-sign .line{border-top:1px solid var(--charcoal);margin-top:38px;padding-top:5px}
.rd-note{margin-top:16px;font-size:.78rem;color:var(--muted);border-top:1px dashed var(--line);padding-top:10px;line-height:1.7}

@media print{
  .site-header,.site-footer,.no-print,.crumbs{display:none!important}
  body{background:#fff}
  .receipt-doc{box-shadow:none;border:0;margin:0;padding:0;max-width:none}
  .rd-total{background:#0D47A1!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .rd-table th{background:#F1F5F9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  @page{margin:14mm}
}

.nav-badge{
  display:inline-block;background:#DC2626;color:#fff;border-radius:999px;
  padding:1px 8px;font-size:.72rem;font-weight:800;margin-inline-start:4px;
}

/* ---------- لوحة النشاط المباشر ---------- */
.live-section{padding-top:22px}
.live-board{
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:18px 18px 20px;border-inline-start:4px solid var(--orange);
}
.live-head{display:flex;align-items:center;gap:9px;margin-bottom:14px;flex-wrap:wrap}
.live-head h2{font-size:1.1rem;margin:0;flex:1}
.live-date{font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.live-dot{
  width:10px;height:10px;border-radius:50%;background:#DC2626;flex-shrink:0;
  box-shadow:0 0 0 0 rgba(220,38,38,.6);animation:livePulse 2s infinite;
}
@keyframes livePulse{
  70%{box-shadow:0 0 0 9px rgba(220,38,38,0)}
  100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}
}

.live-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}
.live-nums div{background:var(--bg);border-radius:10px;padding:12px 6px;text-align:center}
.live-nums strong{display:block;font-size:1.7rem;font-weight:800;color:var(--blue);line-height:1.1}
.live-nums span{font-size:.75rem;color:var(--muted);font-weight:700}

.live-sub{font-size:.9rem;color:var(--muted);margin:0 0 10px}
.live-list li{margin-bottom:8px}
.live-list a{display:flex;align-items:center;gap:10px}
.lv-name{flex:0 0 34%;font-size:.9rem;font-weight:700}
.lv-bar{flex:1;height:9px;background:var(--bg);border-radius:999px;overflow:hidden}
.lv-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--orange));border-radius:999px}
.lv-num{flex:0 0 34px;text-align:end;font-weight:800;color:var(--blue);font-variant-numeric:tabular-nums}
.live-empty{font-size:.88rem;color:var(--muted);margin:0}

@media(min-width:900px){
  .live-nums strong{font-size:2rem}
  .lv-name{flex-basis:26%}
}

/* ---------- زر إنستقرام ---------- */
.btn-ig{
  background:linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4);
  color:#fff;
}
.btn-ig:hover{filter:brightness(1.08);color:#fff}

/* ---------- لوح النسخ (بيانات الدخول) ---------- */
.copy-panel{
  background:var(--charcoal);color:#E2E8F0;border-radius:10px;padding:14px 16px;
  font-family:Consolas,"Courier New",monospace;font-size:.9rem;line-height:2;
  white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:start;margin-top:12px;
}

/* ---------- زر «كل الخدمات في الولاية» ---------- */
.all-services-btn{
  display:flex;align-items:center;gap:14px;margin-bottom:14px;
  background:var(--blue);color:#fff;border-radius:var(--radius);
  padding:15px 18px;box-shadow:var(--shadow);transition:background .15s;
}
.all-services-btn:hover{background:var(--blue-dark)}
.asb-icon{font-size:1.6rem;line-height:1;opacity:.9}
.asb-text{flex:1;display:flex;flex-direction:column}
.asb-text strong{font-size:1.05rem}
.asb-text small{font-size:.82rem;opacity:.85}
.asb-arrow{font-size:1.3rem;font-weight:800}
[dir="ltr"] .asb-arrow{transform:scaleX(-1)}

/* بلاطة الولاية بزرّين */
.tile-wil{padding:0;gap:0;overflow:hidden}
.tw-main{display:flex;flex-direction:column;gap:6px;padding:16px 14px 10px;flex:1}
.tw-all{
  display:block;padding:9px 14px;font-size:.82rem;font-weight:800;
  color:var(--blue);background:var(--blue-light);border-top:1px solid var(--line);
}
.tw-all:hover{background:#D6E4F7}

/* ---------- التذكيرات ---------- */
.rem-alert{display:block;margin-top:14px}
.rem-alert:hover{filter:brightness(.97)}

.rem-row{
  display:flex;gap:14px;align-items:center;flex-wrap:wrap;
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  padding:14px 16px;margin-bottom:12px;border-inline-start:5px solid var(--line);
}
.rem-urgent{border-inline-start-color:#DC2626}
.rem-month{border-inline-start-color:#F59E0B}
.rem-expired{border-inline-start-color:#94A3B8;opacity:.9}

.rem-days{
  width:62px;flex-shrink:0;text-align:center;border-radius:10px;padding:8px 4px;
  background:var(--bg);
}
.rem-days strong{display:block;font-size:1.5rem;line-height:1.1;font-weight:800}
.rem-days span{font-size:.72rem;color:var(--muted);font-weight:700}
.rem-urgent .rem-days strong{color:#DC2626}
.rem-month  .rem-days strong{color:#B45309}

.rem-info{flex:1;min-width:190px}
.rem-info h3{font-size:1rem;margin:0 0 2px}
.rem-info p{margin:0;font-size:.86rem}
.rem-last{color:#15803D;font-weight:700;margin-top:4px!important}

.rem-actions{display:flex;gap:8px;flex-wrap:wrap}
.rem-actions form{margin:0}
.btn[disabled]{opacity:.45;cursor:not-allowed}

/* ── مواد البناء: التنقل داخل الصفحة ─────────────────────── */
.tile.tile-on{border-color:var(--blue);background:var(--blue-light);box-shadow:inset 0 0 0 1px var(--blue)}
#swapRoot{transition:opacity .15s}
#swapRoot.swapping{opacity:.55;pointer-events:none}

/* ── الجوال: لمس مريح واستجابة فورية ───────────────────────── */
a,button,.tile,.card,.btn{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.tile,.btn,.card{transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease}
.tile:active,.btn:active{transform:scale(.97)}
.card-media:active img{opacity:.9}

@media(max-width:767px){
  /* روابط «عرض التفاصيل» وأمثالها: مساحة لمس كافية */
  .section-head .more{display:inline-block;padding:10px 4px;margin:-10px -4px}
  .section-head{gap:10px}
  .section-head h2{font-size:1.15rem}

  /* أزرار البطاقات أعلى قليلاً لسهولة الضغط بالإبهام */
  .card-actions .btn{min-height:46px}
  .card-title a{display:inline-block;padding:4px 0}
  a.chip{padding:7px 12px;font-size:.8rem}

  /* التذييل: روابط أكبر، والمحافظات في عمودين لتقصير الصفحة */
  .footer-links li{margin-bottom:0}
  .footer-links a{display:block;padding:9px 0;font-size:.95rem}
  .footer-col:nth-child(2) .footer-links{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
  .footer-bottom{padding-bottom:6px}

  /* المربعات: ارتفاع متساوٍ وخط أوضح */
  .grid-gov .tile{min-height:88px}
  .tile-name{font-size:.98rem}
}

/* ── لوحة التحكم: زر Excel وقائمة المشتركين ────────────────── */
.btn-excel{background:#107C41;color:#fff;gap:10px;box-shadow:0 2px 8px rgba(16,124,65,.28)}
.btn-excel:hover{background:#0B5E31;color:#fff}
.xl-icon{
  background:rgba(255,255,255,.22);border-radius:6px;padding:3px 7px;
  font-size:.72rem;font-weight:900;letter-spacing:.5px;
}

.sub-tools{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.sub-tools input[type="search"]{
  flex:1;min-width:200px;padding:11px 14px;border:1.5px solid var(--line);
  border-radius:10px;font:inherit;font-size:1rem;min-height:46px;background:var(--white);
}
.sub-tools input[type="search"]:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-light)}

.sub-list{display:grid;gap:12px;margin-top:16px}
@media(min-width:1100px){ .sub-list{grid-template-columns:repeat(2,1fr)} }

.sub-card{
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);
  border-inline-start:4px solid var(--blue);padding:14px 16px;
}
.sub-card.sub-soon{border-inline-start-color:var(--orange)}
.sub-card.sub-over{border-inline-start-color:#DC2626}

.sub-top{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.sub-code{
  background:var(--blue-light);color:var(--blue);font-weight:900;font-size:.82rem;
  padding:5px 10px;border-radius:8px;letter-spacing:.5px;
}
.sub-id{flex:1;min-width:150px}
.sub-id h3{font-size:1.05rem;margin:0 0 2px}
.sub-id p{margin:0;font-size:.86rem;color:var(--muted)}
.sub-id .sub-loc{margin-top:2px}

.sub-contact{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}
.sub-phone{
  font-weight:800;font-size:1.02rem;color:var(--charcoal);
  background:var(--bg);border-radius:8px;padding:8px 12px;
}

.sub-facts{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:12px;
  background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;
}
@media(min-width:560px){ .sub-facts{grid-template-columns:repeat(3,1fr)} }
.sub-facts > div{background:var(--white);padding:9px 10px;text-align:center}
.sub-facts span{display:block;font-size:.72rem;color:var(--muted);margin-bottom:3px}
.sub-facts strong{font-size:.9rem;font-weight:800;white-space:nowrap}
.sub-facts strong a{color:var(--blue)}
.sub-facts strong.is-soon{color:#B45309}
.sub-facts strong.is-over{color:#DC2626}
.empty-en{color:var(--muted);font-size:.9rem;margin-top:-6px;direction:ltr;font-weight:600}
.meta-owner strong,.meta-cr strong{color:var(--charcoal);font-weight:700}

/* ── مواد البناء: اختيارات مختصرة والنتائج تحتها مباشرة ────── */
.pick-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.pick-chip{
  display:inline-flex;align-items:center;gap:8px;background:var(--blue);color:var(--white);
  font-weight:700;font-size:.9rem;padding:8px 14px;border-radius:999px;
}
.pick-chip span{opacity:.75;font-size:.85em}
.pick-chip:hover{background:var(--blue-dark);color:var(--white)}
.pick-reset{color:var(--muted);font-weight:700;font-size:.88rem;padding:8px 4px}

.mat-strip{
  display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;
  scrollbar-width:thin;-webkit-overflow-scrolling:touch;
}
.mat-pill{
  display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:0 0 auto;
  background:var(--white);border:1.5px solid var(--line);border-radius:999px;
  padding:9px 15px;font-weight:700;font-size:.9rem;color:var(--charcoal);
}
.mat-pill .mp-icon{font-size:1.05em}
.mat-pill small{
  background:var(--blue-light);color:var(--blue);border-radius:999px;
  padding:1px 8px;font-size:.74rem;font-weight:800;
}
.mat-pill:hover{border-color:var(--blue)}
.mat-pill.on{background:var(--blue);border-color:var(--blue);color:var(--white)}
.mat-pill.on small{background:rgba(255,255,255,.22);color:var(--white)}
.mat-pill.zero{color:var(--muted)}
.mat-pill.zero small{background:#F1F5F9;color:var(--muted)}

.empty-slim{padding:26px 16px}
#list{padding-top:6px}

/* ── أداة البحث فوق صفحات الشاحنات ─────────────────────────── */
.finder-wrap{background:var(--blue);padding:18px 0 22px}
.finder-wrap .finder{box-shadow:var(--shadow)}
.sub-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

/* ── ملخّص الشروط في صفحة الأسعار ──────────────────────────── */
.terms-brief{
  background:var(--white);border:1.5px solid var(--line);border-inline-start:4px solid var(--orange);
  border-radius:var(--radius);padding:18px 20px;margin-top:26px;box-shadow:var(--shadow);
}
.terms-brief h3{font-size:1.05rem;margin-bottom:.8em}
.terms-brief ul{display:flex;flex-direction:column;gap:9px;font-size:.94rem;line-height:1.7}
.terms-brief li{padding-inline-start:18px;position:relative}
.terms-brief li::before{content:"•";position:absolute;inset-inline-start:0;color:var(--orange);font-weight:900}
.terms-brief .btn{margin-top:14px}

/* ── التحصيل الشهري ────────────────────────────────────────── */
.mon-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.mon-row{
  display:grid;grid-template-columns:auto 1fr auto auto;gap:12px;align-items:center;
  background:var(--white);border-radius:10px;padding:11px 14px;box-shadow:var(--shadow);
}
.mon-name{font-weight:800;font-size:.92rem;min-width:88px}
.mon-bar{background:var(--bg);border-radius:999px;height:9px;overflow:hidden}
.mon-bar i{display:block;height:100%;background:var(--blue);border-radius:999px}
.mon-n{color:var(--muted);font-size:.82rem;white-space:nowrap}
.mon-sum{font-weight:800;color:var(--blue);font-size:.92rem;white-space:nowrap}
@media(max-width:520px){
  .mon-row{grid-template-columns:1fr auto;row-gap:8px}
  .mon-bar{grid-column:1 / -1;order:3}
}
.adl-thumb{
  width:64px;height:64px;border-radius:10px;object-fit:cover;flex:0 0 auto;
  background:var(--blue-light);
}
.adl-ph{display:flex;align-items:center;justify-content:center;font-size:1.5rem}

/* ── الروابط النصية: تبدو قابلة للضغط قبل أن يلمسها المؤشر ─── */

/* روابط «عرض التفاصيل» و«تواصل معنا» وأمثالها: زر صغير بإطار */
.more{
  display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;border-radius:999px;
  border:1.5px solid var(--blue);background:var(--white);
  color:var(--blue);font-weight:700;font-size:.9rem;line-height:1.2;
  white-space:nowrap;transition:background-color .15s, color .15s;
}
.more:hover,.more:focus-visible{background:var(--blue);color:var(--white)}
.more:active{transform:scale(.97)}
.section-head .more{font-size:.88rem;padding:6px 13px}
@media(max-width:767px){
  .section-head .more{display:inline-flex;padding:7px 13px;margin:0}
}

/* روابط داخل النصوص: خط تحتها ليُعرف أنها روابط */
.form-card p a:not(.btn):not(.more),
.alert a:not(.btn):not(.more),
.terms-brief a:not(.btn):not(.more),
.article p a:not(.btn):not(.more),
.article li a:not(.btn):not(.more),
.empty-state p a:not(.btn):not(.more),
.step p a:not(.btn):not(.more){
  color:var(--blue);font-weight:700;
  text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:2px;
}
.form-card p a:hover,.alert a:hover,.article p a:hover{color:var(--blue-dark)}

/* المسار العلوي: الروابط تحتها خط عند المرور، وآخرها نص ثابت */
.crumbs a:hover{text-decoration:underline;text-underline-offset:3px}

/* التذييل: خط تحت الرابط عند المرور */
.footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
/* رابطان متجاوران في ترويسة القسم: مسافة بينهما */
.section-head span > .more + .more{margin-inline-start:8px}

/* ── إصلاحات الجوال بعد تحويل الروابط إلى أزرار ───────────── */
@media(max-width:767px){
  /* الأزرار الصغيرة: مساحة لمس مريحة */
  .more{padding:10px 16px;font-size:.92rem}
  .section-head .more{padding:9px 15px;font-size:.9rem}

  /* ترويسة القسم: العنوان سطر والأزرار سطر تحته */
  .section-head{align-items:flex-start}
  .section-head > span{display:flex;flex-wrap:wrap;gap:8px}

  /* أرقام حساب المشترك: مربعان في كل سطر بدل أربعة متلاصقة */
  .pc-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
}

/* ── لمسات أخيرة لعرض الجوال ───────────────────────────────── */
@media(max-width:767px){
  /* المربع الأخير المفرد يأخذ السطر كاملاً بدل نصف سطر فارغ */
  .stats-grid > .stat:last-child:nth-child(odd){grid-column:1 / -1}

  /* لوحة النشاط: صفوف المحافظات أسهل في الضغط */
  .live-list a{padding:9px 0}

  /* اختيار الأصناف عند إضافة شركة: مربعات أكبر وسطر مريح */
  .chip-pick label{min-height:44px;padding:9px 14px}
  .chip-pick input{width:21px;height:21px}

  /* أصناف الشركة في صفحتها: مساحة لمس كافية */
  a.chip{min-height:40px;display:inline-flex;align-items:center}
}
/* السند على الشاشات الضيقة: التوقيع ينزل سطراً */
@media(max-width:400px){
  .rd-foot{flex-direction:column;gap:14px}
  .rd-sign{min-width:0;width:100%}
}

/* ── ملاحظة صفحة الدخول ────────────────────────────────────── */
.login-help{margin-top:18px;display:flex;flex-direction:column;gap:10px;font-size:.93rem;color:var(--muted)}
.login-help p{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.login-note{
  margin-top:22px;padding:16px 18px;border-radius:var(--radius);
  background:var(--blue-light);border-inline-start:4px solid var(--blue);
}
.login-note h2{font-size:1rem;margin-bottom:.5em;color:var(--blue)}
.login-note p{font-size:.92rem;line-height:1.8;margin-bottom:.9em;color:var(--charcoal)}

/* ── إحصاء تواصل المشترك في صفحة حسابه ────────────────────── */
.pc-reach{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.pc-reach h4{font-size:.95rem;margin-bottom:.7em}
.reach-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.reach-nums > div{background:var(--bg);border-radius:10px;padding:11px 8px;text-align:center}
.reach-nums strong{display:block;font-size:1.3rem;color:var(--blue);line-height:1.2}
.reach-nums span{font-size:.76rem;color:var(--muted)}
.reach-total{background:var(--blue-light)!important}
.reach-note{font-size:.84rem;color:var(--muted);margin:10px 0 0;line-height:1.7}
@media(max-width:520px){
  .reach-nums{grid-template-columns:1fr 1fr}
  .reach-total{grid-column:1 / -1}
}

/* ── إيقاف المشترك أو حذفه ─────────────────────────────────── */
.btn-danger-outline{
  background:var(--white);color:#B91C1C;border:1.5px solid #FCA5A5;
}
.btn-danger-outline:hover{background:#DC2626;border-color:#DC2626;color:var(--white)}

.choice-box{
  border:1.5px solid var(--line);border-radius:var(--radius);
  padding:16px 18px;margin-bottom:14px;background:var(--white);
}
.choice-box h3{font-size:1.02rem;margin-bottom:.5em;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.choice-box p{font-size:.92rem;line-height:1.8;color:var(--muted);margin-bottom:1em}
.choice-box.danger{border-color:#FCA5A5;background:#FEF2F2}
.choice-box.danger h3{color:#B91C1C}
.tag-soft{
  background:#DCFCE7;color:#15803D;font-size:.72rem;font-weight:800;
  padding:2px 9px;border-radius:999px;
}

/* زر الخروج في القائمة */
.nav-out{
  border:1.5px solid rgba(255,255,255,.45);border-radius:999px;
  padding:6px 14px!important;font-size:.88rem;
}
.nav-out:hover{background:rgba(255,255,255,.15)}
@media(min-width:900px){ .nav-out{margin-inline-start:4px} }
