/* ============================================================
   خطوط مضمّنة داخل الموقع (2026-11-21) — نفس خطوط الفيديو/الأرتيفاكت:
   Cairo (مثيلات ثابتة 400–900 مولّدة من خطه المتغيّر الرسمي)
   (400–700)، ملفات woff2 محلية في public/fonts/ — بلا أي اعتماد خارجي.
   ============================================================ */


/* مدينتي — Balady-style theme. RTL, Western digits (0-9) everywhere. */
:root {
  --green: #007A3D; --green-dark: #005B2E; --green-soft: #E7F3EC;
  --gold: #C9A227; --ink: #1c2b22; --muted: #6b7c72; --line: #d8e6dd;
  --bg: #f2f6f3; --card: #ffffff; --red: #c0392b; --amber: #b7791f;
}
* { box-sizing: border-box; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("../fonts/cairo-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/plex-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

body { margin: 0; font-family: "Cairo", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* Top bar + nav (Balady style) */
.topbar { background: #fff; border-bottom: 3px solid var(--green); box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 50; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; box-shadow: 0 3px 8px rgba(0,122,61,.35); }
.brand-logo.big { width: 64px; height: 64px; font-size: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 22px; color: var(--green-dark); }
.brand-text small { font-size: 11px; color: var(--muted); }
.topbar-user { display: flex; gap: 8px; align-items: center; }
.user-chip { background: var(--green-soft); padding: 6px 10px; border-radius: 20px; font-size: 13px; }
.mainnav { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-item { padding: 10px 12px; font-size: 14px; color: #33463a; border-bottom: 3px solid transparent; }
.nav-item:hover { text-decoration: none; background: var(--green-soft); }
.nav-item.active { color: var(--green-dark); font-weight: 700; border-bottom-color: var(--gold); }

.container { max-width: 1280px; margin: 0 auto; padding: 18px 16px 40px; }
.page-title { color: var(--green-dark); margin: 6px 0 16px; font-size: 24px; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px; border-top: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-block; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.btn:hover { text-decoration: none; background: var(--green-soft); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: #f4f8f5; }
.btn-danger { background: #fdecea; border-color: #f5c6c0; color: var(--red); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1eb856; }
.btn-sm { padding: 5px 9px; font-size: 12px; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }
/* أزرار قسم التاجات الشاغرة (طلب المالك 2026-11-22): علامات ملوّنة واضحة */
.btn-addtag { background: linear-gradient(160deg, #0aa653, #00713a); border: 1.5px solid #C9A227; color: #fff; font-weight: 800; letter-spacing: .2px; box-shadow: 0 3px 10px rgba(0,113,58,.35); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-addtag:hover { background: linear-gradient(160deg, #0bb95e, #007a3f); color: #fff; text-decoration: none; }
.btn-usedtag { background: linear-gradient(160deg, #e0492f, #b3271e); border: 1.5px solid #8f1d16; color: #fff; font-weight: 800; box-shadow: 0 3px 10px rgba(179,39,30,.35); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-usedtag:hover { background: linear-gradient(160deg, #ea5a41, #c22e23); color: #fff; text-decoration: none; }
.btn-replacetag { background: linear-gradient(160deg, #1d5296, #0b1f3a); border: 1.5px solid #C9A227; color: #f5d67b; font-weight: 800; letter-spacing: .3px; box-shadow: 0 3px 10px rgba(11,31,58,.4), inset 0 1px 0 rgba(240,212,138,.35); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.btn-replacetag:hover { background: linear-gradient(160deg, #2563b3, #0e2749); color: #ffe9a8; text-decoration: none; }
.btn-deltag { background: linear-gradient(160deg, #b3271e, #7e150e); border: 1.5px solid #5f0f0a; color: #fff; font-weight: 800; letter-spacing: .3px; box-shadow: 0 3px 10px rgba(126,21,14,.4), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.btn-deltag:hover { background: linear-gradient(160deg, #c22e23, #8f1a12); color: #fff; text-decoration: none; }
/* رقم التاج داخل مربع مميز (طلب المالك 2026-11-22) */
.vt-tagbox { display: inline-block; padding: 3px 12px; border: 1.5px solid #C9A227; background: linear-gradient(180deg, #fdfaf0, #f6efdb); border-radius: 8px; font-weight: 800; color: #0b1f3a; letter-spacing: .5px; box-shadow: 0 1px 4px rgba(201,162,39,.25); }
/* رقم الحاوية وتاريخ الإضافة في مربعات أيضاً — الجدول كله أنيق ومميز (طلب المالك 2026-11-22) */
.vt-cbox { display: inline-block; padding: 3px 12px; border: 1.5px solid #17457e; background: linear-gradient(180deg, #eef4fb, #dde9f5); border-radius: 8px; font-weight: 800; color: #0b1f3a; letter-spacing: .5px; box-shadow: 0 1px 4px rgba(11,31,58,.18); }
.vt-dbox { display: inline-block; padding: 3px 12px; border: 1.5px solid #007A3D; background: linear-gradient(180deg, #eefaf2, #dcf2e4); border-radius: 8px; font-weight: 800; color: #005B2E; letter-spacing: .3px; box-shadow: 0 1px 4px rgba(0,122,61,.18); }
/* عدّادات التاجات ملوّنة ومتحركة حسب المتبقي (طلب المالك 2026-11-22):
   فوق العشرة أخضر طبيعي، تحت العشرة تتغير الألوان، والقرب من النفاد إنذار يضوي */
.vt-card-ok { border: 2px solid #007A3D !important; background: linear-gradient(180deg, #f2fbf5, #e2f4e8) !important; }
.vt-card-ok .card-num { color: #007A3D !important; }
.vt-card-warn { border: 2px solid #b7791f !important; background: linear-gradient(180deg, #fffaf0, #fdeed3) !important; }
.vt-card-warn .card-num { color: #b7791f !important; }
.vt-card-low { border: 2px solid #c0392b !important; background: linear-gradient(180deg, #fdf0ee, #fbd9d3) !important; animation: vtPulse 1.1s ease-in-out infinite; }
.vt-card-low .card-num { color: #c0392b !important; }
.vt-card-out { border: 2px solid #7e150e !important; background: linear-gradient(160deg, #b3271e, #7e150e) !important; animation: vtFlash .8s step-start infinite; }
.vt-card-out .card-num, .vt-card-out .card-lbl { color: #fff !important; }
@keyframes vtPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.45); } 50% { box-shadow: 0 0 22px 6px rgba(192,57,43,.55); } }
@keyframes vtFlash { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.vt-badge { display: inline-block; min-width: 40px; text-align: center; padding: 2px 12px; border-radius: 999px; font-weight: 800; color: #fff; background: #007A3D; vertical-align: middle; }
.vt-badge.warn { background: #b7791f; }
.vt-badge.low { background: #c0392b; animation: vtPulse 1.1s ease-in-out infinite; }
.vt-badge.out { background: #7e150e; animation: vtFlash .8s step-start infinite; }

/* Luxurious unified KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 2px 10px rgba(0,60,35,.06); position: relative; overflow: hidden; color: var(--ink); }
.kpi-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.kpi-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,60,35,.12); transition: .2s; }
.kpi-card.alert::before { background: linear-gradient(90deg, var(--red), #e67e22); }
.kpi-card.warn::before { background: linear-gradient(90deg, var(--amber), var(--gold)); }
.kpi-card.gold::before { background: linear-gradient(90deg, var(--gold), #f1c40f); }
.kpi-label { font-size: 13px; color: var(--muted); }
.kpi-num { font-size: 34px; font-weight: 800; color: var(--green-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-card.gold .kpi-num { color: #8a6d1b; }
.kpi-card.alert .kpi-num { color: var(--red); }
.kpi-sub { font-size: 12px; color: var(--muted); }

/* Panels, tables, forms */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(0,60,35,.05); }
.panel h2 { margin: 0 0 12px; font-size: 18px; color: var(--green-dark); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid #eef3ef; text-align: right; vertical-align: middle; }
.tbl th { background: var(--green-soft); color: var(--green-dark); font-size: 13px; }
.tbl tr:hover td { background: #f8fbf9; }
.row-expired td { background: #fdf0ee; }
.row-expiring td { background: #fdf8ec; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.st-active { background: #e2f5e9; color: var(--green-dark); }
.st-expiring { background: #fdf3d7; color: var(--amber); }
.st-expired { background: #fdecea; color: var(--red); }
.expired-glow { border: 2px solid var(--red); box-shadow: 0 0 0 4px rgba(192,57,43,.15); animation: pulse-red 2s infinite; border-radius: 16px; padding: 14px; }
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 0 3px rgba(192,57,43,.12); } 50% { box-shadow: 0 0 0 7px rgba(192,57,43,.22); } }
.chip { display: inline-block; background: var(--green-soft); border-radius: 16px; padding: 3px 10px; margin: 2px; font-size: 12px; }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.searchbar input[type="search"], .searchbar select { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
input, select, textarea { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; width: 100%; }
input[type="checkbox"] { width: auto; }
input[type="file"] { width: auto; }
label { display: block; font-size: 13px; color: #33463a; margin-bottom: 4px; }
label small { color: var(--muted); display: block; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 4px 0; }
.inline-form label { margin: 0; }
.flash { background: #e2f5e9; border: 1px solid #bfe6cc; color: var(--green-dark); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.flash.err { background: #fdecea; border-color: #f5c6c0; color: var(--red); }
.alert-strip { background: #fdf3d7; border: 1px solid #f0dc9a; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.alert-badge { font-weight: 800; color: var(--amber); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; margin: 14px 0; }
.pg { padding: 6px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pg.current { background: var(--green); color: #fff; border-color: var(--green); }
.note-box { background: #fff8e1; border-right: 4px solid var(--gold); padding: 10px 12px; border-radius: 8px; }
.detail-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.file-list { list-style: none; padding: 0; }
.file-list li { padding: 8px 0; border-bottom: 1px solid #eef3ef; }
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 18px; }
.activity-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); box-shadow: 0 2px 8px rgba(0,60,35,.05); }
.activity-card:hover { text-decoration: none; border-color: var(--green); }
.activity-card.active { border: 2px solid var(--green); }
.act-name { font-weight: 700; color: var(--green-dark); }
.act-nums { font-size: 13px; color: var(--muted); }
.group-msg-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.group-msg-bar input { flex: 1; min-width: 260px; }
.driver-group { border-top: 4px solid var(--green); }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(135deg, var(--green-dark), var(--green)); }
.login-card { background: #fff; border-radius: 20px; padding: 32px 28px; width: min(420px, 92vw); box-shadow: 0 20px 50px rgba(0,0,0,.25); text-align: center; }
.login-card h1 { color: var(--green-dark); margin: 10px 0 4px; }
.login-sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.login-card form { text-align: right; display: grid; gap: 12px; }
.login-note { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.7; }

/* Map labels — fixed, readable names */
.map-label { background: transparent; border: none; }
.map-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); vertical-align: middle; }
.map-name { background: rgba(255,255,255,.95); border: 1px solid #cfe0d4; border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 700; color: #14301f; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Thank-you card */
.thankyou-card { max-width: 640px; margin: 24px auto; text-align: center; border: 3px solid var(--gold); border-radius: 24px; padding: 40px 28px; background: linear-gradient(180deg, #fffdf5, #fff); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.thankyou-card h1 { color: #8a6d1b; font-size: 34px; margin: 10px 0; }
.ty-logo { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; display: grid; place-items: center; font-size: 38px; font-weight: 800; }
.ty-name { font-size: 24px; font-weight: 800; color: var(--green-dark); }
.ty-text { font-size: 16px; line-height: 2; }
.ty-meta { color: var(--muted); }
.ty-foot { margin-top: 24px; font-size: 12px; color: var(--muted); }
.print-page { background: #fff; padding: 24px; }

/* ============================================================
   Visitor home (public) — hero + Mr. Mostafa assistant card + chat.
   مدينتي identity: dark navy + gold. Scoped .visitor-/.mrm- only.
   ============================================================ */
.visitor-body { background: #f4f6f9; }
.visitor-top { background: #0b1f3a; border-bottom: 3px solid var(--gold); }
.visitor-top-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.visitor-top .brand { color: #fff; }
.visitor-top .brand-text strong { color: #fff; }
.visitor-top .brand-text small { color: #b9c6d8; }
.visitor-hero { position: relative; color: #fff; padding: 0 0 54px; border-bottom: 3px solid var(--gold);
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(201,162,39,.22), transparent 60%),
    radial-gradient(720px 400px at 6% 112%, rgba(27,68,121,.55), transparent 62%),
    linear-gradient(150deg, #060f22 0%, #0b1f3a 38%, #12325e 72%, #1b4479 100%); }
.visitor-hero-inner { max-width: 1280px; margin: 0 auto; padding: 42px 16px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.visitor-hero-text h1 { margin: 0 0 12px; font-size: 38px; font-weight: 800; line-height: 1.4; letter-spacing: .2px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.visitor-hero-text h1::after { content: ""; display: block; width: 84px; height: 4px; border-radius: 99px; margin-top: 14px; background: linear-gradient(90deg, var(--gold), #f0d48a); }
.visitor-hero-text p { margin: 0 0 20px; color: #e2eaf4; font-size: 16.5px; line-height: 1.9; }
.visitor-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #231a02; font-weight: 700; }
.btn-gold:hover { background: #dcb93e; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* Hero slideshow — احتواء كامل: كل صورة/فيديو يظهر كاملاً بلا أي قصّ (object-fit: contain) — قاعدة المالك العامة 2026-11-23 */
.hero-figure { margin: 0; }
.hero-slides { position: relative; width: 100%; height: clamp(340px, 58vh, 540px); overflow: hidden; background: #060f22; transition: height .55s ease; box-shadow: 0 18px 44px rgba(0,0,18,.45); }
.hs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease; z-index: 1; }
.hs-slide img, .hs-slide video { width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; background: #060f22; }
/* كل شرائح الواجهة بلا استثناء: الصورة كاملة بإطارها بلا أي قصّ (أمر المالك 2026-11-23) */
.hs-slide.hs-contain img, .hs-slide.hs-contain video { object-fit: contain; background: #060f22; }
.hs-slide.hs-contain img { animation: none; }
@keyframes kbFit { from { transform: scale(1); } to { transform: scale(1.07); } }
.hs-slide.is-active img { animation: none; }
.hs-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: 36px 18px 16px; background: linear-gradient(transparent, rgba(3,10,24,.72)); color: #fff; pointer-events: none; }
.hs-cap p { margin: 0; font-size: 17px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(240,212,138,.65); background: rgba(6,15,34,.55); color: #f0d48a; cursor: pointer; display: grid; place-items: center; padding: 0; }
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow:hover { background: rgba(6,15,34,.85); }
.hs-prev { inset-inline-start: 14px; }
.hs-next { inset-inline-end: 14px; }
.hs-dots { position: absolute; bottom: 12px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(240,212,138,.8); background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hs-dot.is-active { background: var(--gold); transform: scale(1.25); }
.hs-sound { position: absolute; bottom: 46px; inset-inline-end: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; background: rgba(6,15,34,.68); color: #f0d48a; border: 1px solid rgba(240,212,138,.7); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
.hs-sound svg { width: 16px; height: 16px; fill: currentColor; }
.hs-sound:hover { background: rgba(6,15,34,.9); }
.hero-slide-cap { max-width: 1280px; margin: 0 auto; padding: 10px 16px 0; font-size: 13.5px; color: #c8d5e6; }

/* شريحة الشكر داخل السلايدشو: بطاقة كحلية بإطار ذهبي، والرسالة كاملة كما هي بلا توقيع */
.hs-slide.hs-thanks { background: radial-gradient(700px 340px at 85% -100px, rgba(201,162,39,.18), transparent 60%), linear-gradient(160deg, #060f22, #0b1f3a 55%, #12325e); display: flex; align-items: center; justify-content: center; }
.hs-thanks-scroll { width: 100%; display: flex; justify-content: center; padding: 20px 14px; }
.thanks-banner { position: relative; width: 100%; max-width: 860px; background: rgba(255,255,255,.04); border: 1.5px solid var(--gold); border-radius: 16px; padding: 20px 26px 14px; color: #eef2f8; text-align: center; }
.thanks-banner::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,162,39,.45); border-radius: 11px; pointer-events: none; }
.thanks-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; color: var(--gold); }
.thanks-orn .tline { height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold)); }
.thanks-orn .tline:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.thanks-orn svg { width: 24px; height: 24px; fill: var(--gold); }
.thanks-banner h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: #f0d48a; }
.thanks-letter { font-size: 14.5px; line-height: 1.95; text-align: right; }
.thanks-letter p { margin: 0 0 8px; }
.thanks-letter .taddr { font-size: 16px; font-weight: 700; color: #fff; }
.thanks-letter .tgreet { color: #d7e1ee; }

@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: none; }
  .hs-slide.is-active img { animation: none; }
  .hero-slides { transition: none; }
}

/* Assistant hero card */
.mrm-hero-card { background: rgba(255,255,255,.97); color: var(--ink); border: 2px solid var(--gold); border-radius: 20px; padding: 18px; display: flex; gap: 16px; align-items: flex-start; cursor: pointer; box-shadow: 0 14px 34px rgba(0,0,0,.35); transition: transform .18s ease, box-shadow .18s ease; }
.mrm-hero-card:hover, .mrm-hero-card:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(0,0,0,.42); outline: none; }
.mrm-hero-photo { width: 208px; height: auto; aspect-ratio: 1168 / 2096; object-fit: cover; border-radius: 16px; border: 2px solid var(--gold); flex: 0 0 auto; }
/* حركة حية لصورة المساعد (طلب المالك 2026-11-21): تنفّس خفيف مستمر يوحي بالحضور،
   وحركة أنشط أثناء ردّ المساعد في المحادثة (كلاس is-talking يضيفه سكربت المحادثة).
   الحركة على العنصر نفسه فلا يُقصّ أي جزء من الصورة أبداً. */
@keyframes mrmAlive {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-3px); }
}
@keyframes mrmTalk {
  0%, 100% { transform: scale(1.02) translateY(0) rotate(0deg); }
  25% { transform: scale(1.05) translateY(-4px) rotate(.4deg); }
  75% { transform: scale(1.05) translateY(-1px) rotate(-.4deg); }
}
.mrm-hero-photo, .mrm-chat-photo { animation: mrmAlive 7s ease-in-out infinite; transform-origin: center bottom; }

/* حركة الشخصية الحية (طلب المالك 2026-11-23 — على نفس منوال الفيديو
   المرجعي الجديد، وبلا أي نصوص أو مؤشرات شارحة للحالة إطلاقاً):
   الشخصية بوضعيتين كما في الفيديو تماماً — وضعية الشغل: صورتها المعتمدة
   على اللابتوب بالسماعة، ووضعية الكلام: صورة مواجهة للعميل (إطار من
   الفيديو المرجعي نفسه الذي أرسله المالك). التبديل بين الوضعيتين ذوبان
   متبادل ناعم كما يقطع الفيديو بين المشهدين، وفوق كل وضعية حركتها:
   تنفّس هادئ في الانتظار، إيقاع كتابة أثناء العمل على الطلب، وإيماءة
   كلام أثناء الرد. كلاس الحالة يضعه سكربت المحادثة على مسرح الوضعية
   (.mrm-pose)، والصورة المعتمدة لا تُغيَّر ولا تُشوَّه ولا تُقصّ. */
.mrm-pose { position: relative; display: block; flex: 0 0 auto; line-height: 0; }
.mrm-pose .mrm-pose-talk { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; object-fit: cover; object-position: 50% 22%; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.mrm-pose-sm .mrm-pose-talk { object-position: 50% 0%; }
/* تأطير الصورة كاملة (تصحيح المالك 2026-11-23): لا دائرة ولا قصّ —
   بطاقة البطل: إطار مستطيل بزوايا مدوّرة يعرض الصورة كاملة بالمكتب كله،
   وصورة الكلام تظهر كاملة أيضاً (contain) بلا اقتصاص للرأس أو الشعر،
   والحركة تُقصّ داخل الإطار نفسه فلا تفيض خارجه.
   رأس المحادثة: أفاتار مستطيل بزوايا مدوّرة، محاذاة من الأعلى فيظهر
   الرأس والشعر كاملين. */
#mrmHeroCard .mrm-pose { border-radius: 16px; overflow: hidden; }
#mrmHeroCard .mrm-pose-talk { object-fit: contain; object-position: 50% 50%; background: #fff; }
.mrm-pose.is-talking .mrm-pose-talk { opacity: 1; animation: mrmTalk 1.6s ease-in-out infinite; }
.mrm-pose.is-working .mrm-pose-work { animation: mrmWork .9s ease-in-out infinite; }
@keyframes mrmWork {
  0%, 100% { transform: rotate(-.5deg) translateY(0); }
  25% { transform: rotate(-.9deg) translateY(1.6px); }
  55% { transform: rotate(-.4deg) translateY(.4px); }
  75% { transform: rotate(-.9deg) translateY(1.6px); }
}
/* زر صوت المساعد في رأس المحادثة (أيقونة سماعة فقط — بلا أي نص ظاهر) */
.mrm-voice-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 10px; width: 34px; height: 34px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mrm-voice-btn svg { width: 19px; height: 19px; }
.mrm-voice-btn .mrm-ic-on { display: none; }
.mrm-voice-btn.is-on { background: rgba(201,162,39,.22); border-color: var(--gold); color: #f0d48a; }
.mrm-voice-btn.is-on .mrm-ic-on { display: block; }
.mrm-voice-btn.is-on .mrm-ic-off { display: none; }
@media (prefers-reduced-motion: reduce) {
  .mrm-hero-photo, .mrm-chat-photo { animation: none; }
  .mrm-pose .mrm-pose-talk { transition: none; }
}
.mrm-hero-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mrm-hero-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 22px; font-weight: 800; color: #0b1f3a; }
.mrm-online-chip { display: inline-flex; align-items: center; gap: 6px; background: #e7f6ee; color: #0a6b34; border: 1px solid #bfe6cf; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mrm-dot { width: 8px; height: 8px; border-radius: 50%; background: #22b45e; box-shadow: 0 0 0 3px rgba(34,180,94,.18); }
.mrm-hero-invite { margin: 0; font-size: 15px; line-height: 1.9; color: #2c3e50; }
.mrm-hero-hint { font-size: 13px; font-weight: 700; color: #8a6d1b; }

.visitor-main { max-width: 1280px; margin: 0 auto; padding: 26px 16px 8px; }
.visitor-main h2 { color: #0b1f3a; margin: 0 0 14px; font-size: 22px; }
.visitor-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.visitor-price { background: #fff; border: 1px solid #dbe3ec; border-top: 4px solid var(--gold); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.visitor-price strong { color: #0b1f3a; font-size: 15px; }
.visitor-price span { color: #8a6d1b; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.visitor-note { color: var(--muted); font-size: 13px; margin-top: 12px; }
.visitor-contact { margin-top: 26px; background: #fff; border: 1px solid #dbe3ec; border-radius: 14px; padding: 16px; }
.visitor-contact p { margin: 0; font-size: 15px; }

/* إضافات الصفحة الرئيسية: شريط إحصائيات + بطاقات إجراءات + شريط تجديد + أسعار بالصور + تواصل بخريطة */
.visitor-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; background: radial-gradient(700px 300px at 85% -120px, rgba(201,162,39,.20), transparent 60%), linear-gradient(150deg, #060f22, #0b1f3a 55%, #12325e); border: 1.5px solid var(--gold); border-radius: 18px; padding: 22px 18px; box-shadow: 0 14px 34px rgba(4,20,40,.28); }
.visitor-stat { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.visitor-stat + .visitor-stat { border-inline-start: 1px solid rgba(201,162,39,.35); }
.visitor-stat-num { font-size: 40px; font-weight: 800; color: #f0d48a; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(201,162,39,.45); }
.visitor-stat-label { font-size: 14.5px; font-weight: 700; color: #d7e1ee; }
.visitor-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.visitor-action { background: #fff; border: 1px solid #dbe3ec; border-top: 5px solid var(--gold); border-radius: 16px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); box-shadow: 0 4px 16px rgba(4,20,40,.07); transition: transform .18s ease, box-shadow .18s ease; }
.visitor-action:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(4,20,40,.13); }
.visitor-action strong { font-size: 20px; color: #0b1f3a; }
.visitor-action > span { font-size: 14px; line-height: 1.9; color: #44536a; }
.visitor-action .visitor-action-go { margin-top: auto; font-weight: 800; color: #8a6d1b; font-size: 14.5px; }
.visitor-prices { margin-bottom: 30px; }
.visitor-pay-note { display: inline-block; background: #fdf3d7; border: 1px solid #f0dc9a; color: #7a5c10; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.visitor-price img { width: 100%; height: 150px; object-fit: contain; background: #0b1f3a; border-radius: 10px; border: 1px solid #e3d9ae; }
.visitor-price .visitor-pay { margin-top: auto; text-align: center; }
.visitor-renew { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(120deg, #0b1f3a, #12325e); border: 1.5px solid var(--gold); border-radius: 16px; padding: 18px 20px; margin-bottom: 30px; color: #fff; box-shadow: 0 10px 26px rgba(4,20,40,.22); }
.visitor-renew-text { display: flex; flex-direction: column; gap: 4px; }
.visitor-renew-text strong { font-size: 19px; color: #f0d48a; }
.visitor-renew-text span { font-size: 14px; color: #d7e1ee; line-height: 1.9; }
.visitor-contact { margin-top: 0; }
.visitor-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.visitor-contact-lines { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.visitor-contact-lines p { margin: 0; font-size: 15px; line-height: 1.9; }
.visitor-map iframe { width: 100%; height: 100%; min-height: 240px; border: 1px solid #dbe3ec; border-radius: 12px; display: block; }
.visitor-map a { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 13.5px; color: #0b1f3a; }
@media (max-width: 860px) {
  .visitor-stats { grid-template-columns: repeat(2, 1fr); }
  .visitor-stat + .visitor-stat { border-inline-start: 0; }
  .visitor-stat-num { font-size: 32px; }
  .visitor-actions { grid-template-columns: 1fr; }
  .visitor-contact-grid { grid-template-columns: 1fr; }
}

/* Assistant chat panel */
.mrm-chat { position: fixed; bottom: 18px; inset-inline-start: 18px; width: min(380px, calc(100vw - 24px)); height: min(540px, calc(100vh - 36px)); background: #fff; border: 1px solid #dbe3ec; border-radius: 18px; box-shadow: 0 22px 50px rgba(4,20,40,.35); display: flex; flex-direction: column; overflow: hidden; z-index: 200; }
.mrm-chat[hidden] { display: none; }
.mrm-chat-head { background: linear-gradient(135deg, #0b1f3a, #12325e); color: #fff; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.mrm-chat-photo { width: 46px; height: 56px; border-radius: 10px; object-fit: cover; object-position: 50% 0%; border: 2px solid var(--gold); }
.mrm-chat-meta { display: flex; flex-direction: column; gap: 2px; margin-inline-end: auto; }
.mrm-chat-name { font-weight: 800; font-size: 16px; }
.mrm-chat-head .mrm-online-chip { align-self: flex-start; }
.mrm-chat-close { background: transparent; border: 0; color: #fff; font-size: 17px; cursor: pointer; padding: 6px; }
.mrm-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f4f6f9; }
.mrm-msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.mrm-msg-bot { background: #fff; border: 1px solid #dbe3ec; align-self: flex-start; border-start-start-radius: 4px; }
.mrm-msg-me { background: #12325e; color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.mrm-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #dbe3ec; background: #fff; }
.mrm-chat-form input { flex: 1; border: 1px solid #cbd6e2; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-family: inherit; }

@media (max-width: 860px) {
  .visitor-hero-inner { grid-template-columns: 1fr; padding-top: 30px; }
  .visitor-hero-text h1 { font-size: 28px; }
  .hero-slides { height: clamp(260px, 52vh, 380px); }
  .hs-arrow { width: 36px; height: 36px; }
  .hs-cap p { font-size: 15px; }
  .thanks-banner { padding: 16px 16px 10px; }
  .thanks-letter { font-size: 13.5px; }
  .mrm-hero-photo { width: 140px; height: auto; aspect-ratio: 1168 / 2096; }
}

/* ============================================================
   أزرار عائمة جانبية (زوار) — تصميم مدمج فاخر: دوائر صغيرة 42–44px
   بإطار ذهبي رفيع وخلفية كحلية داكنة شبه شفافة، زر رئيسي واحد قابل
   للتوسّع يطوي البقية لتقليل الإزعاج البصري، وزر المحادثة فقاعة مميزة.
   ============================================================ */
.visitor-dock { position: fixed; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); z-index: 190; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.dock-items { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.dock-main, .dock-item { position: relative; display: grid; place-items: center; padding: 0; cursor: pointer; font-family: inherit; color: #f0d48a; background: rgba(6,15,34,.82); border: 1.5px solid rgba(201,162,39,.85); box-shadow: 0 6px 18px rgba(3,10,24,.35), inset 0 0 0 1px rgba(240,212,138,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: transform .18s ease, background .18s ease, opacity .22s ease; }
.dock-main { width: 44px; height: 44px; border-radius: 50%; }
.dock-main svg { width: 20px; height: 20px; }
.dock-main:hover, .dock-item:hover { background: rgba(11,31,58,.95); transform: scale(1.07); }
.dock-main:focus-visible, .dock-item:focus-visible { outline: 2px solid #f0d48a; outline-offset: 2px; }
.visitor-dock.is-open .dock-main { background: var(--gold); color: #231a02; border-color: #f0d48a; }
.dock-item { width: 42px; height: 42px; border-radius: 50%; opacity: 0; transform: translateY(8px) scale(.7); pointer-events: none; }
.dock-item svg { width: 21px; height: 21px; }
.visitor-dock.is-open .dock-item { opacity: 1; transform: none; pointer-events: auto; }
/* زر اللغة ظاهر دائماً ولو كان الرصيف مطوياً — المالك لا يجده وهو مخفي داخل الرصيف */
.visitor-dock .dock-item#dockLang { opacity: 1; transform: none; pointer-events: auto; }
/* قائمة اللغة كانت تفتح خارج الشاشة (باتجاه حافة الرصيف) — تُفتح الآن باتجاه وسط الشاشة دائماً */
.visitor-dock .dock-lang-menu { inset-inline-start: auto; inset-inline-end: calc(100% + 12px); }
.visitor-dock.is-open .dock-item:nth-child(1) { transition-delay: .03s; }
.visitor-dock.is-open .dock-item:nth-child(2) { transition-delay: .07s; }
.visitor-dock.is-open .dock-item:nth-child(3) { transition-delay: .11s; }
.dock-item[aria-pressed="true"] { background: var(--gold); color: #231a02; border-color: #f0d48a; }
/* زر المحادثة الفورية: فقاعة محادثة مميزة بإطار ذهبي — ليست دائرة عادية */
.dock-item.dock-chat { width: 47px; height: 44px; border-radius: 16px 16px 16px 5px; border: 2px solid var(--gold); box-shadow: 0 8px 22px rgba(3,10,24,.4), 0 0 0 3px rgba(201,162,39,.18), inset 0 0 0 1px rgba(240,212,138,.18); }
.dock-item.dock-chat svg { width: 24px; height: 24px; }
.dock-tip { position: absolute; inset-inline-start: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: rgba(6,15,34,.93); color: #f0d48a; border: 1px solid rgba(201,162,39,.6); font-size: 12px; font-weight: 700; line-height: 1.4; padding: 4px 10px; border-radius: 999px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 2; }
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip, .dock-main:hover .dock-tip, .dock-main:focus-visible .dock-tip { opacity: 1; }
@media (max-width: 860px) {
  .visitor-dock { inset-inline-end: 10px; }
  .dock-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dock-main, .dock-item, .dock-tip { transition: none; }
}

/* تكبير النص — أداة إمكانية الوصول في الأزرار العائمة (مستويان) */
body.a11y-fs-1 .visitor-hero-text p { font-size: 18.5px; }
body.a11y-fs-2 .visitor-hero-text p { font-size: 20.5px; }
body.a11y-fs-1 .visitor-action > span, body.a11y-fs-1 .visitor-contact-lines p, body.a11y-fs-1 .visitor-renew-text span { font-size: 16px; }
body.a11y-fs-2 .visitor-action > span, body.a11y-fs-2 .visitor-contact-lines p, body.a11y-fs-2 .visitor-renew-text span { font-size: 17.5px; }
body.a11y-fs-1 .mrm-msg, body.a11y-fs-1 .mrm-hero-invite { font-size: 16.5px; }
body.a11y-fs-2 .mrm-msg, body.a11y-fs-2 .mrm-hero-invite { font-size: 18px; }
body.a11y-fs-1 .visitor-stat-label { font-size: 16px; }
body.a11y-fs-2 .visitor-stat-label { font-size: 17.5px; }

/* المظهر الليلي — زر المظهر في الأزرار العائمة (يحوّل أقسام الزوار الفاتحة فقط) */
body.visitor-dark { background: #0a1424; }
body.visitor-dark .visitor-main h2 { color: #f0d48a; }
body.visitor-dark .visitor-action, body.visitor-dark .visitor-price, body.visitor-dark .visitor-contact { background: #101f38; border-color: rgba(201,162,39,.45); color: #e6edf7; }
body.visitor-dark .visitor-action strong, body.visitor-dark .visitor-price strong { color: #fff; }
body.visitor-dark .visitor-action > span { color: #b9c6d8; }
body.visitor-dark .visitor-note { color: #8fa1b8; }
body.visitor-dark .visitor-map a { color: #f0d48a; }
body.visitor-dark .footer { color: #8fa1b8; border-top-color: rgba(201,162,39,.3); }
body.visitor-dark .mrm-chat { background: #101f38; border-color: rgba(201,162,39,.5); }
body.visitor-dark .mrm-chat-body { background: #0a1424; }
body.visitor-dark .mrm-msg-bot { background: #16283f; border-color: rgba(201,162,39,.35); color: #e6edf7; }
body.visitor-dark .mrm-chat-form { background: #101f38; border-top-color: rgba(201,162,39,.35); }
body.visitor-dark .mrm-chat-form input { background: #0a1424; border-color: rgba(201,162,39,.4); color: #fff; }

/* سجل محادثات المساعد في لوحة الإدارة (قراءة فقط) */
.chatlog { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.chatlog-row { border: 1px solid #d8dee9; border-radius: 12px; padding: 10px 14px; background: #fff; }
.chatlog-row.who-v { background: #eef4ff; border-color: #c3d4f5; }
.chatlog-row.who-a { background: #fdf8ec; border-color: #e8d9a8; }
.chatlog-who { font-weight: 700; font-size: 12px; color: #7a6414; }
.chatlog-row.who-v .chatlog-who { color: #2c4a7c; }
.chatlog-row p { margin: 4px 0; white-space: normal; }
.chatlog-time { font-size: 11px; color: #8a93a5; }

/* بطاقة الأعمال داخل قسم التواصل (صفحة الزوار) */
.visitor-bcard { margin: 28px auto 0; max-width: 880px; }
.visitor-bcard img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 18px 44px rgba(2, 8, 20, .45); }

/* قسم السحب «لازم يتسحب» + بطاقة تأكيد السحب (إدارة وفريق فقط) */
.pull-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pull-group-title { font-size: 17px; color: var(--green-dark); margin: 20px 0 10px; }
.pull-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(0,60,35,.06); display: flex; flex-direction: column; gap: 10px; }
.pull-card-top { display: flex; gap: 12px; align-items: center; }
.pull-card-who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
.pull-card-who strong { font-size: 15px; color: var(--ink); }
.pull-tag { font-size: 24px; font-weight: 800; letter-spacing: 2px; text-align: center; color: #8a6d1b; background: linear-gradient(180deg, #fdf6d8, #f7e7ae); border: 1px solid var(--gold); border-radius: 12px; padding: 8px 6px; font-variant-numeric: tabular-nums; }
.pull-tag-big { font-size: 34px; padding: 12px 8px; }
.pull-states { display: flex; gap: 8px; flex-wrap: wrap; }
.pull-info { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pull-info th, .pull-confirm-info th { text-align: right; color: var(--muted); font-weight: 600; padding: 4px 6px; white-space: nowrap; width: 92px; }
.pull-info td, .pull-confirm-info td { padding: 4px 6px; }
.pull-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
/* لوحة سعودية مرسومة بـCSS */
.plate { display: inline-flex; direction: ltr; background: #fff; border: 2.5px solid #22252a; border-radius: 9px; overflow: hidden; box-shadow: 0 1px 5px rgba(0,0,0,.18); flex: none; }
.plate-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 12px 4px; line-height: 1.05; }
.plate-letters { font-size: 11px; font-weight: 700; letter-spacing: 3px; color: #22252a; }
.plate-nums { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: #22252a; font-variant-numeric: tabular-nums; }
.plate-band { background: #1d4e9e; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 3px 6px; font-size: 8.5px; font-weight: 700; }
.plate-big { border-radius: 14px; border-width: 3.5px; }
.plate-big .plate-main { padding: 8px 26px 10px; }
.plate-big .plate-letters { font-size: 19px; letter-spacing: 6px; }
.plate-big .plate-nums { font-size: 36px; letter-spacing: 4px; }
.plate-big .plate-band { font-size: 13px; padding: 6px 12px; }
.plate-none { padding: 10px 14px; font-size: 13px; color: var(--muted); direction: rtl; }
/* بطاقة تأكيد السحب */
.pull-confirm { max-width: 760px; margin: 0 auto 18px; }
.pull-confirm-plate { text-align: center; margin-bottom: 8px; }
.pull-confirm-driver { text-align: center; color: var(--muted); margin: 0 0 12px; }
.pull-confirm .pull-tag { margin-bottom: 12px; }
.pull-confirm-info { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 14px; }
.pull-done { background: #eefaf1; border: 1px solid #bfe6cc; border-radius: 12px; padding: 14px 16px; }
.pull-done-title { font-weight: 800; color: var(--green-dark); margin: 0 0 6px; }
.pull-photos { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pull-photos figure { margin: 0; text-align: center; }
.pull-photos img { width: 220px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pull-photos figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* قنوات التواصل — العميل يختار وسيلته (قسم تواصل معنا) */
.visitor-channels-title { font-weight: 700; margin-bottom: 12px; }
.visitor-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.vchannel { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 18px 12px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 14px; background: rgba(10, 22, 40, .55); color: inherit; text-decoration: none; cursor: pointer; font: inherit; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.vchannel:hover, .vchannel:focus-visible { transform: translateY(-2px); border-color: #d4af37; background: rgba(16, 34, 60, .75); }
.vchannel img { width: 40px; height: 40px; }
.vchannel svg { width: 40px; height: 40px; color: #d4af37; }
.vchannel .vchannel-photo { border-radius: 50%; object-fit: cover; border: 2px solid #d4af37; }
.vchannel-name { font-weight: 800; font-size: 1.05rem; }
.vchannel-hint { font-size: .85rem; opacity: .8; }
.vchannel-num { display: inline-block; background: linear-gradient(160deg, #17b26a, #0d9950); border: 1px solid #0d9950; color: #fff; font-weight: 800; font-size: 1.05rem; opacity: 1; letter-spacing: .2px; padding: 6px 18px; border-radius: 999px; }
.vchannel-title-lux { color: #d4af37; font-weight: 900; font-size: 1.3rem; letter-spacing: .2px; }

/* ===== قسم «حاوية متسخة أو يبدل حاوية» — البطاقات على شبكة/بطاقة قسم السحب نفسها (.pull-*) ===== */
.dirty-ref { display: inline-block; font-weight: 800; letter-spacing: 1px; color: #8a6d1b; background: linear-gradient(180deg, #fdf6d8, #f7e7ae); border: 1px solid var(--gold); border-radius: 8px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.dirty-src { background: #e8eefc; color: #1d4e9e; }
.dirty-create, .dirty-inbox { margin-bottom: 18px; }
.dirty-create h2, .dirty-inbox h2 { margin-top: 0; font-size: 17px; }
.dirty-accept-form { margin-bottom: 14px; }

/* ============================================================
   ترجمة واجهة الزوار — زر اللغة (العنصر الرابع) في الرصيف العائم
   وقائمة اختيار اللغات الأربع، وتعديلات اتجاه LTR للواجهة فقط.
   ============================================================ */
.visitor-dock.is-open .dock-item:nth-child(4) { transition-delay: .15s; }
.dock-lang-menu { position: absolute; inset-inline-start: calc(100% + 12px); top: 50%; transform: translateY(-50%); z-index: 3; min-width: 136px; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: rgba(6,15,34,.96); border: 1.5px solid rgba(201,162,39,.85); border-radius: 14px; box-shadow: 0 14px 34px rgba(3,10,24,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dock-lang-menu[hidden] { display: none; }
.dock-lang-opt { background: transparent; border: 1px solid transparent; color: #e8eef7; font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.5; text-align: start; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.dock-lang-opt:hover { background: rgba(201,162,39,.16); }
.dock-lang-opt:focus-visible { outline: 2px solid #f0d48a; outline-offset: 1px; }
.dock-lang-opt.is-active { background: var(--gold); color: #231a02; border-color: #f0d48a; }
@media (max-width: 860px) {
  .dock-lang-menu { min-width: 118px; }
  .dock-lang-opt { font-size: 13.5px; padding: 7px 10px; }
}
/* اتجاه LTR (إنجليزي/بنغالي): قلب الأسهم الاتجاهية ومحاذاة رسالة الشكر */
[dir="ltr"] .hs-arrow svg { transform: scaleX(-1); }
[dir="ltr"] .thanks-letter { text-align: left; }
[dir="ltr"] .thanks-orn .tline { background: linear-gradient(90deg, var(--gold), transparent); }
[dir="ltr"] .thanks-orn .tline:last-child { background: linear-gradient(90deg, transparent, var(--gold)); }

/* ===== صفحة الزوار العامة «الاستعلام عن عقود النظافة» (public/inquiry.php) ===== */
.inqpub { max-width: 860px; }
.inqpub-result { background: var(--green-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.inqpub-result p { margin: 6px 0; }
.inqpub-err { background: #fdf0f0; border: 1px solid #e5b4b4; color: #8c2b2b; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }

/* رابط الاستعلام المباشر تحت كروت الخدمات السريعة */
.visitor-inquiry-link { text-align: center; margin-top: 14px; }
.visitor-inquiry-link a { color: #d4af37; font-weight: 700; }

/* ===== شاشة الأوزان (أعلى لوحة التحكم) + بوابة إدارة النظافة ===== */
.weights-screen { border-top: 4px solid var(--gold); }
.gauge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
.gauge-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 12px; text-align: center; box-shadow: 0 2px 10px rgba(0,60,35,.06); }
.gauge-card.gauge-danger { border-color: #e5b4b4; background: #fff8f8; }
.gauge-card.gauge-warn { border-color: #ecd9a8; background: #fffdf4; }
.gauge-title { font-size: 17px; font-weight: 800; color: var(--green-dark); }
.gauge-vehicle { font-size: 12.5px; color: var(--muted); margin-top: 2px; min-height: 18px; }
.gauge-vehicle small { display: block; font-size: 11px; }
.gauge-svg { width: 180px; max-width: 100%; height: auto; display: block; margin: 2px auto -34px; }
.gauge-track { fill: none; stroke: #e3ece6; stroke-width: 13; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--green); stroke-width: 13; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.22,.8,.3,1); }
.gauge-warn .gauge-fill { stroke: var(--amber); }
.gauge-danger .gauge-fill { stroke: var(--red); }
.gauge-num { font-size: 34px; font-weight: 800; color: var(--green-dark); line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(201,162,39,.35); }
.gauge-num small { font-size: 15px; color: var(--muted); font-weight: 700; }
.gauge-pct { font-size: 13px; color: var(--muted); }
.gauge-remaining { font-size: 15px; margin-top: 2px; }
.gauge-remaining strong { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.gauge-status { margin-top: 8px; font-size: 13px; font-weight: 700; border-radius: 20px; padding: 4px 10px; display: inline-block; }
.gauge-status.st-ok { background: var(--green-soft); color: var(--green-dark); }
.gauge-status.st-warn { background: #fdf3d7; color: var(--amber); }
.gauge-status.st-danger { background: #fdecea; color: var(--red); animation: gaugePulse 1.6s ease-in-out infinite; }
@keyframes gaugePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.35); } 50% { box-shadow: 0 0 0 7px rgba(192,57,43,0); } }
.weights-unassigned { background: #f4f8f5; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.weights-totals { margin-top: 14px; }
.weights-subtitle { color: var(--green-dark); margin: 18px 0 8px; }
.weights-types td, .weights-types th { vertical-align: middle; }
.wtype-photo { width: 74px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.wtype-count { font-size: 24px; font-weight: 800; color: var(--green-dark); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(201,162,39,.45); }
.wtype-badge { display: inline-block; background: linear-gradient(135deg, var(--gold), #a8831c); color: #fff; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 10px 8px; }
.wtype-compactor { background: #fffdf4; }
.wtype-total { background: var(--green-soft); font-size: 15px; }

/* قسم تقارير التفريغ المصوّرة اليومية (إدارة وفريق فقط) */
.plate-za .plate-band { background: #1d4e9e; }
.plate-zb .plate-band { background: #0e7a3d; }
.plate-zc .plate-band { background: #b8860b; }
.plate-zd .plate-band { background: #6c3483; }
.reports-alert { background: #fdecea; border: 1px solid #e5b4b4; color: #7b241c; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; }
.reports-alert-ok { background: #eefaf1; border-color: #bfe6cc; color: var(--green-dark); }
.reports-alert-car { display: inline-block; background: #fff; border: 1px solid #e5b4b4; border-radius: 8px; padding: 2px 10px; margin: 4px 2px 0; font-size: 13.5px; }
.reports-alert-note { font-weight: 400; font-size: 12.5px; margin-top: 6px; }
.reports-monthnav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.reports-monthnav .cur { font-weight: 800; color: var(--green-dark); font-size: 16px; }
.reports-folder-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.reports-folder-who { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); min-width: 0; }
.reports-folder-who strong { font-size: 17px; color: var(--ink); }
.reports-days th, .reports-days td { vertical-align: middle; }
.reports-date { display: inline-flex; flex-direction: column; line-height: 1.15; }
.reports-date b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.reports-date small { color: var(--muted); font-size: 12px; }
.reports-date-ok b { color: var(--green-dark); }
.reports-date-missing b { color: var(--red); }
.reports-date-today b { color: var(--amber); }
.reports-missing { background: #fdecea; color: var(--red); font-weight: 800; border-radius: 8px; padding: 5px 10px; display: inline-block; white-space: nowrap; }
.reports-up-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reports-up-form input[type="file"] { max-width: 240px; }

/* ===== قسم «حاويات التعاقد الجديدة» — البطاقات على شبكة/بطاقة قسم السحب نفسها (.pull-*) واللوحة والتاج الموحّدان ===== */
.install-create, .install-inbox { margin-bottom: 18px; }
.install-create h2, .install-inbox h2 { margin-top: 0; font-size: 17px; }
.install-client-wa { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; border-top: 1px dashed var(--line); padding-top: 8px; }
.install-client-wa b { font-variant-numeric: tabular-nums; }
.install-notes { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.install-notes h3 { margin: 0 0 10px; font-size: 15.5px; color: var(--green-dark); }
.install-note { background: #f8faf8; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.install-note p { margin: 4px 0; }
.install-note-head { font-size: 13px; }
.install-audio { width: 100%; max-width: 420px; display: block; margin: 6px 0; }
.install-note-form { margin-top: 12px; }

/* ===== قسم «الخطة التجارية» — شريط تقدم الهدف الشهري وشارة الحالة المؤجلة ===== */
.bizplan-progress { background: #e6ece7; border: 1px solid var(--line); border-radius: 999px; height: 22px; overflow: hidden; margin: 10px 0 14px; }
.bizplan-progress-bar { background: linear-gradient(90deg, var(--green), var(--gold)); height: 100%; border-radius: 999px; transition: width .6s ease; }
.badge.biz-muted { background: #eceff0; color: #5a6a61; }

/* ===== قسم «إدارة المناطق التشغيلية» — نماذج التثبيت/التعيين داخل الجداول ===== */
.zones-add h2 { margin-top: 0; font-size: 17px; }
.zones-tbl td form.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 2px 0; }
.zones-tbl td form.inline-form select { max-width: 130px; }

/* ===== قسم «تعاقدات المشاريع الخارجية» — بطاقات المشاريع ودفعاتها ===== */
.extproj-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; background: #fff; }
.extproj-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.extproj-head h3 { margin: 0; font-size: 17px; }
.extproj-head-actions { display: inline-flex; gap: 6px; align-items: center; }
.extproj-info th { width: 130px; }
.extproj-pay-form { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.extproj-alerts { border: 1px solid #d9a441; }

/* ===== شريط بحث الخدمات في أعلى الرئيسية (يفتح search.php) ===== */
.visitor-search-strip { max-width: 1280px; margin: 0 auto; padding: 16px 16px 2px; }
.visitor-search-bar { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid var(--gold); border-radius: 999px; padding: 13px 20px; color: var(--muted); font-size: 16px; box-shadow: 0 4px 16px rgba(11, 31, 58, .12); transition: transform .15s ease, box-shadow .15s ease; }
.visitor-search-bar:hover, .visitor-search-bar:focus-visible { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11, 31, 58, .18); }
.visitor-search-bar svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.visitor-search-bar span[data-i18n] { flex: 1; }
.visitor-search-arrow { color: var(--gold); font-weight: 800; }
html[dir="ltr"] .visitor-search-arrow { transform: scaleX(-1); }

/* ===== صفحة بحث الخدمات المستقلة (search.php) ===== */
.srch { max-width: 960px; }
.srch-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.srch-lang { display: flex; gap: 4px; }
.srch-lang-btn { background: rgba(255, 255, 255, .08); color: #dbe4f0; border: 1px solid rgba(212, 175, 55, .45); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; font: inherit; }
.srch-lang-btn:hover { border-color: #d4af37; }
.srch-lang-btn.is-active { background: var(--gold); border-color: var(--gold); color: #231a02; font-weight: 700; }
.srch-title { color: #0b1f3a; font-size: 30px; margin: 10px 0 6px; }
.srch-sub { color: var(--muted); margin: 0 0 18px; font-size: 15.5px; }
.srch-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--gold); border-radius: 16px; padding: 6px 16px; box-shadow: 0 6px 20px rgba(11, 31, 58, .10); margin-bottom: 22px; }
.srch-box svg { width: 24px; height: 24px; color: var(--gold); flex: none; }
.srch-box input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17.5px; padding: 12px 0; background: transparent; color: var(--ink); min-width: 0; }
.srch-clear { background: var(--green-soft); border: 1px solid var(--line); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex: none; font-size: 13px; }
.srch-h2 { color: var(--green-dark); font-size: 20px; margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); display: inline-block; }
.srch-count { color: var(--muted); margin: 0 0 10px; font-size: 13.5px; }
.srch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.srch-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: inherit; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.srch-card:hover, .srch-card:focus-visible { text-decoration: none; transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 20px rgba(11, 31, 58, .12); }
.srch-card-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #0b1f3a; color: #d4af37; display: grid; place-items: center; font-size: 20px; }
.srch-card-icon-num { font-size: 13px; font-weight: 800; letter-spacing: .2px; }
.srch-card-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.srch-card-main strong { font-size: 15.5px; color: #0b1f3a; }
.srch-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.srch-card-go { flex: none; align-self: center; color: var(--gold); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
html[dir="ltr"] .srch-arrow { display: inline-block; transform: scaleX(-1); }
.srch-none { background: #fdf6e3; border: 1px solid #e3cf8a; border-radius: 14px; padding: 16px 18px; margin-top: 6px; }
.srch-none p { margin: 6px 0; }
.srch-none-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 560px) {
  .srch-grid { grid-template-columns: 1fr; }
  .srch-title { font-size: 25px; }
  .visitor-search-bar { font-size: 14.5px; padding: 11px 16px; }
}

/* دخول الفريق بمداخل منفصلة + إدارة فريق العمل (2026-11-21) */
.login-wrap { width: min(880px, 94vw); display: grid; gap: 16px; padding: 26px 0; }
.login-admin-title { color: var(--green-dark); margin: 0 0 12px; font-size: 19px; }
.team-login-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.team-card { background: #fff; border-radius: 16px; padding: 20px 18px; box-shadow: 0 12px 30px rgba(0,0,0,.18); border-top: 4px solid var(--green); text-align: right; display: grid; gap: 10px; align-content: start; }
.team-card-gold { border: 2px solid var(--gold); border-top: 6px solid var(--gold); background: linear-gradient(180deg, #fffdf4, #fff); box-shadow: 0 14px 34px rgba(201,162,39,.35); }
.team-card-closed { opacity: .62; border-top-color: #9aa79e; }
.team-card-head { display: grid; gap: 4px; justify-items: start; }
.team-card-title { font-size: 18px; color: var(--green-dark); }
.team-card-gold .team-card-title { color: #8a6d14; }
.team-card-sub { font-size: 12.5px; color: var(--muted); }
.team-card-user { margin: 0; font-size: 13px; color: var(--muted); }
.team-card-user span { font-weight: 700; color: var(--ink); }
.team-card form { display: grid; gap: 10px; }
.team-card form label { display: grid; gap: 5px; font-size: 13.5px; }
.team-closed-note { margin: 0; background: #fdecea; color: var(--red); border-radius: 8px; padding: 9px 11px; font-size: 13.5px; font-weight: 700; }
.team-member-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 16.5px; }
.team-toggle-form { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* صندوق «عندك كود خصم؟» تحت قسم الأسعار في الرئيسية (2026-11-21) */
.visitor-discount { margin-top: 16px; background: #fff; border: 1.5px dashed var(--gold); border-radius: 14px; padding: 14px 16px; display: grid; gap: 8px; }
.visitor-discount strong { color: var(--green-dark); font-size: 16px; }
.visitor-discount > span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.visitor-discount-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.visitor-discount-form input, .visitor-discount-form select { flex: 1 1 150px; padding: 10px 12px; border: 1px solid #cfd8dc; border-radius: 10px; font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); }
.visitor-discount-form .btn { flex: 0 1 auto; }
.visitor-discount-result { margin: 0; background: #fdf6e3; border: 1px solid #e3cf8a; border-radius: 10px; padding: 10px 12px; font-size: 14.5px; line-height: 1.8; }
body.visitor-dark .visitor-discount { background: #12263f; }
body.visitor-dark .visitor-discount strong { color: #f0d98c; }
body.visitor-dark .visitor-discount > span { color: #8fa1b8; }
body.visitor-dark .visitor-discount-form input, body.visitor-dark .visitor-discount-form select { background: #0d1f33; color: #e8eef4; border-color: #33506e; }
body.visitor-dark .visitor-discount-result { background: #2a2410; border-color: #6b5a1e; color: #f3e5bb; }

/* قسم الأخبار الرسمية في الرئيسية (2026-11-21) */
.visitor-news { margin-bottom: 30px; }
.visitor-news-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.visitor-news-col { display: grid; gap: 10px; }
.visitor-news-col h3 { margin: 0 0 2px; font-size: 17px; color: #12325e; border-bottom: 2px solid var(--gold); padding-bottom: 6px; }
.vnews-card { background: #fff; border: 1px solid #dbe4ee; border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; display: grid; gap: 7px; box-shadow: 0 4px 14px rgba(4,20,40,.06); }
.vnews-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.vnews-src { background: #fdf6e3; border: 1px solid #e3cf8a; color: #8a6d14; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 12px; }
.vnews-title { margin: 0; font-size: 15.5px; line-height: 1.8; color: var(--ink); font-weight: 700; }
.vnews-link { color: #12325e; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.vnews-link:hover { color: var(--gold); text-decoration: underline; }
.visitor-news-empty { margin: 0; color: var(--muted); font-size: 14px; background: #f6f8fa; border: 1px dashed #cfd8dc; border-radius: 12px; padding: 14px; }
@media (max-width: 760px) { .visitor-news-cols { grid-template-columns: 1fr; } }
body.visitor-dark .visitor-news-col h3 { color: #f0d48a; }
body.visitor-dark .vnews-card { background: #12263f; border-color: #33506e; }
body.visitor-dark .vnews-title { color: #e8eef4; }
body.visitor-dark .vnews-link { color: #f0d48a; }
body.visitor-dark .visitor-news-empty { background: #0d1f33; border-color: #33506e; color: #8fa1b8; }

/* شريط الطقس والتقويم في أعلى الرئيسية (2026-11-21) */
.visitor-infobar { max-width: 1280px; margin: 0 auto; padding: 10px 16px 0; }
.visitor-infobar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 22px; flex-wrap: wrap; background: #fff; border: 1px solid #dbe4ee; border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 9px 16px; box-shadow: 0 4px 14px rgba(4,20,40,.06); font-size: 14px; color: var(--ink); }
.wc-dates { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wc-date { font-weight: 700; color: #12325e; }
.wc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }
.wc-hijri { color: var(--muted); font-weight: 600; }
.wc-hijri-tag { background: #fdf6e3; border: 1px solid #e3cf8a; color: #8a6d14; border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.wc-weather { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wc-weather[hidden] { display: none; }
.wc-city { color: var(--muted); font-weight: 700; }
.wc-now { display: inline-flex; align-items: center; gap: 7px; }
.wc-icon { width: 24px; height: 24px; color: #d4a017; display: inline-grid; place-items: center; flex: none; }
.wc-icon svg { width: 24px; height: 24px; }
.wc-temp { font-size: 17px; color: #12325e; }
.wc-forecast { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .visitor-infobar-inner { justify-content: center; } .wc-dates, .wc-weather { justify-content: center; } }
body.visitor-dark .visitor-infobar-inner { background: #12263f; border-color: #33506e; }
body.visitor-dark .wc-date { color: #f0d48a; }
body.visitor-dark .wc-temp { color: #f0d48a; }
body.visitor-dark .wc-hijri, body.visitor-dark .wc-city, body.visitor-dark .wc-forecast { color: #8fa1b8; }

/* قسم «تحكّم Muse» (2026-11-21): نص الطلب كما كتبه المالك */
.claude-req-body { white-space: pre-wrap; word-break: break-word; min-width: 260px; }

/* قسم «الإعلانات» — بطاقات إدارة الأقسام في لوحة التحكم (2026-11-21) */
.ad-admin-card { border: 1px solid #dbe4ee; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: #fbfcfe; }

/* موضع إعلانات المالك في الرئيسية (2026-11-21) */
.visitor-ads { max-width: 1280px; margin: 0 auto; padding: 6px 16px 0; }
.visitor-ads h2 { color: #12325e; font-size: 22px; margin: 14px 0 12px; }
.visitor-ads-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vad-card { background: #fffdf5; border: 1px solid #e3cf8a; border-inline-start: 4px solid var(--gold); border-radius: 14px; padding: 16px 18px; box-shadow: 0 4px 14px rgba(4,20,40,.05); }
.vad-title { margin: 0 0 8px; font-size: 17px; color: #12325e; }
.vad-body { margin: 0 0 10px; color: var(--ink); font-size: 14.5px; line-height: 1.8; }
.vad-link { color: #8a6d14; font-weight: 700; text-decoration: none; font-size: 14px; }
.vad-link:hover { color: var(--gold); text-decoration: underline; }
body.visitor-dark .visitor-ads h2 { color: #f0d48a; }
body.visitor-dark .vad-card { background: #12263f; border-color: #33506e; }
body.visitor-dark .vad-title { color: #f0d48a; }
body.visitor-dark .vad-body { color: #e8eef4; }
body.visitor-dark .vad-link { color: #f0d48a; }

/* ============================================================
   مطابقة ستايل الفيديو/الأرتيفاكت (قرار المالك 2026-11-21):
   تدرّج البطل النيلي العميق نفسه (--hero-grad في الأرتيفاكت)،
   بطاقات بأقطار 20px وظلال عميقة وحواف ذهبية، أزرار ذهبية
   بتدرّج الأرتيفاكت، وعناوين أقسام بوزن 800 وشريط ذهبي.
   تجاوزات CSS فقط — لا تغيير هيكلياً ولا وظيفياً.
   ============================================================ */
.visitor-top { background: #0b0b21; }
.visitor-hero { background:
  radial-gradient(900px 420px at 85% -80px, rgba(217,180,91,.16), transparent 60%),
  linear-gradient(155deg, #0b0b21 0%, #171737 40%, #28245c 76%, #322a6e 100%); }
.visitor-stats { background:
  radial-gradient(700px 300px at 85% -120px, rgba(217,180,91,.16), transparent 60%),
  linear-gradient(155deg, #0b0b21 0%, #171737 48%, #28245c 100%); }
.visitor-renew { background: linear-gradient(120deg, #171737, #28245c); border-radius: 20px; }
.visitor-action { border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,16,.12); }
.visitor-action:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(0,0,16,.18); }
.visitor-price { border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,16,.10); }
.visitor-price img { border-radius: 12px; }
.vchannel { border-radius: 20px; }
.vnews-card { border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,16,.08); }
.vad-card { border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,16,.08); }
.visitor-main section > h2 { font-weight: 800; }
.visitor-main section > h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 99px; margin-top: 8px; background: linear-gradient(90deg, var(--gold), #f0d48a); }
.btn-gold { background: linear-gradient(135deg, #d9c37e, #b3963f); border: none; color: #241d05; font-weight: 800; border-radius: 12px; }
.btn-gold:hover { background: linear-gradient(135deg, #e6cf92, #c2a34a); }
.btn { border-radius: 10px; }

/* الإدارة: تلميع بصري خفيف متّسق مع ظلال الأرتيفاكت — بلا إعادة هيكلة */
.panel { box-shadow: 0 2px 6px rgba(0,60,35,.05), 0 14px 30px rgba(0,60,35,.06); }
.kpi-card { box-shadow: 0 2px 6px rgba(0,60,35,.05), 0 12px 26px rgba(0,60,35,.07); }
.page-title { font-weight: 800; }

/* ===== بند 19: الخدمات الـ171 — أنماط مضافة فقط (لا تعديل لأي نمط قائم) ===== */
.dayline { border-inline-start: 4px solid #c9a227; }
.svc { max-width: 1080px; margin: 0 auto; padding: 18px 14px 70px; }
.svc-h { font-size: 26px; font-weight: 800; color: #0f2044; margin: 10px 0 4px; }
.svc-sub { color: #64748b; margin: 0 0 18px; }
.svc-cat { font-size: 19px; font-weight: 800; color: #0f2044; margin: 26px 0 10px; border-bottom: 2px solid #c9a227; padding-bottom: 6px; }
.svc-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-card { flex: 1 1 230px; max-width: 340px; display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; text-decoration: none; color: #1e293b; transition: box-shadow .15s ease, transform .15s ease; }
.svc-card:hover { box-shadow: 0 8px 24px rgba(15,32,68,.12); transform: translateY(-2px); }
.svc-card-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.svc-card-title { font-weight: 800; display: block; margin-bottom: 4px; }
.svc-card-desc { color: #64748b; font-size: 13px; display: block; line-height: 1.7; }
.svc-detail { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; }
.svc-desc { color: #475569; line-height: 1.9; }
.svc-back { display: inline-block; margin-bottom: 12px; }
.svc-empty { color: #94a3b8; padding: 22px 0; }
.svc-steps { line-height: 2.1; padding-inline-start: 20px; }
.svc-voice-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.svc-lab-items { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.svc-lab-items button, .svc-bin { cursor: pointer; border-radius: 12px; border: 1px solid #cbd5e1; background: #f8fafc; padding: 10px 14px; font-family: inherit; }
.svc-lab-items button.is-picked { background: #0f2044; color: #fff; border-color: #0f2044; }
.svc-lab-bins { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.svc-bin { font-weight: 700; }
.svc-lab-score { font-weight: 800; color: #0f2044; }
.perm-form { border-top: 1px dashed #e2e8f0; padding: 12px 0; }
.perm-grid { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 12px; }
.perm-item { flex: 1 1 180px; display: flex; gap: 6px; align-items: center; font-size: 14px; }

/* ============================================================
   تنقيح الألوان + نظام الأرقام المتحركة — طلب المالك 2026-11-21 مساءً:
   «لو في ألوان أحسن وأجذب ومريحة نسويها مرة واحدة» + «أرقام متحركة
   ملفتة وعميقة، تتحرك بشكل دوري». الهوية ثابتة (كحلي وذهبي) — التنقيح
   في الدرجات فقط: كحلي ملكي أعمق وأهدأ بدل المائل للبنفسجي، واتساب
   أخضر أعمق ينسجم مع الكحلي، وأزرار ذهبية بتدرّج يعطي عمقاً.
   ============================================================ */
.visitor-hero { background:
  radial-gradient(900px 420px at 85% -80px, rgba(217,180,91,.18), transparent 60%),
  linear-gradient(155deg, #081226 0%, #0e1e40 42%, #17305e 78%, #1d3a6e 100%); }
.visitor-stats { background:
  radial-gradient(700px 300px at 85% -120px, rgba(217,180,91,.18), transparent 60%),
  linear-gradient(155deg, #081226 0%, #0e1e40 48%, #17305e 100%); }
.visitor-renew { background: linear-gradient(120deg, #0e1e40, #17305e); }
.btn-whatsapp { background: linear-gradient(160deg, #17b26a, #0d9950); border-color: #0d9950; }
.btn-whatsapp:hover { background: #0b8a47; border-color: #0b8a47; }
.btn-gold { background: linear-gradient(160deg, #e9c766, #c9a227 60%, #a8861c); border-color: #a8861c; box-shadow: 0 8px 20px rgba(201,162,39,.35); }
.btn-gold:hover { background: linear-gradient(160deg, #f0d48a, #d4af37 60%, #b8912a); }

/* الأرقام المتحركة: توهّج ذهبي نابض بهدوء بعد اكتمال العدّ (حركة دورية
   دائمة)، والقيم نفسها تُحسب من بيانات اليوم فتتغيّر يومياً من ذاتها. */
.visitor-stat-num { display: inline-block; }
.visitor-stat-num.count-done { animation: statPulse 5s ease-in-out infinite; }
@keyframes statPulse {
  0%, 100% { text-shadow: 0 0 14px rgba(201,162,39,.35); transform: scale(1); }
  50% { text-shadow: 0 0 30px rgba(240,212,138,.85); transform: scale(1.045); }
}
.kpi-num.count-done { animation: kpiPulse 6s ease-in-out infinite; }
@keyframes kpiPulse {
  0%, 100% { text-shadow: 0 0 0 rgba(0,122,61,0); }
  50% { text-shadow: 0 0 12px rgba(0,122,61,.28); }
}
@media (prefers-reduced-motion: reduce) {
  .visitor-stat-num.count-done, .kpi-num.count-done { animation: none; }
}

/* ============================================================
   ثلاث شرائح بعرض كامل تحت بعض — طلب المالك 2026-11-21 مساءً:
   (1) الشاشة المتحركة (ولي العهد)، (2) تحتها شريط «مدينتي» وكلام
   الموقع بعرض كامل، (3) تحته بطاقة المساعد بعرض كامل — الصورة كاملة
   وكتابتها بمساحة واسعة لا تنضغط ولا تتكدس تحت بعضها.
   ============================================================ */
.visitor-hero-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
.visitor-hero-text { text-align: center; max-width: 920px; margin: 0 auto; }
.visitor-hero-text h1::after { margin-left: auto; margin-right: auto; }
.visitor-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mrm-hero-card { width: 100%; align-items: center; padding: 22px; gap: 22px; }
.mrm-hero-photo { width: 240px; }
.mrm-hero-name { font-size: 25px; }
.mrm-hero-invite { font-size: 16.5px; }
@media (max-width: 640px) {
  .mrm-hero-card { flex-direction: column; align-items: center; text-align: center; padding: 18px; }
  .mrm-hero-photo { width: 200px; }
  .mrm-hero-meta { align-items: center; }
  .mrm-hero-name { justify-content: center; }
}

/* مكان الكتابة الظاهر داخل بطاقة المساعد (طلب المالك 2026-11-21) */
.mrm-hero-form { display: flex; gap: 8px; margin-top: 6px; width: 100%; }
.mrm-hero-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--gold); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: #22304a; }
.mrm-hero-form input:focus { outline: 2px solid rgba(201,162,39,.45); }

/* صورة خدمة مخصّصة من المالك بدل الأيقونة */
.svc-img-icon { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; vertical-align: middle; }
.svc-h1 .svc-img-icon { width: 40px; height: 40px; }

/* ============================================================
   التنبيه الذكي بامتلاء السيارة (2026-11-21): شريط «الامتلاء
   المتوقع اليوم» داخل بطاقات شاشة الأوزان + قائمة تنبيهات
   الامتلاء في لوحة التحكم. الخطر (>= 90%) أحمر نابض بنفس روح
   تنبيه عدّاد الأوزان الحالي (gaugePulse).
   ============================================================ */
.cap-forecast { margin-top: 8px; }
.cap-bar { height: 12px; border-radius: 99px; background: #e7efe9; border: 1px solid var(--line); overflow: hidden; }
.cap-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width 1.1s cubic-bezier(.22,.8,.3,1); }
.cap-bar.cap-warn > span { background: linear-gradient(90deg, var(--amber), var(--gold)); }
.cap-bar.cap-danger > span { background: linear-gradient(90deg, var(--red), #e67e22); }
.cap-line { font-size: 13px; color: var(--muted); margin-top: 5px; }
.cap-line strong { color: var(--green-dark); font-variant-numeric: tabular-nums; }
.cap-danger-note { margin-top: 7px; font-size: 12.5px; font-weight: 700; background: #fdecea; color: var(--red); border-radius: 10px; padding: 6px 9px; animation: gaugePulse 1.6s ease-in-out infinite; }
.capacity-alerts { border-color: #e5b4b4; background: #fffafa; }
.capacity-alerts h2 { color: var(--red); }
.cap-alert-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.cap-alert-card { background: #fff; border: 1.5px solid #e5b4b4; border-radius: 14px; padding: 12px 14px; box-shadow: 0 2px 10px rgba(192,57,43,.08); }
.cap-alert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; margin-bottom: 8px; }
.cap-alert-head strong { font-size: 16px; color: var(--ink); }
.cap-alert-pct { margin-inline-start: auto; font-size: 24px; font-weight: 900; color: var(--red); font-variant-numeric: tabular-nums; animation: gaugePulse 1.6s ease-in-out infinite; border-radius: 10px; padding: 0 6px; }
.cap-alert-nums { font-size: 13.5px; margin-top: 8px; line-height: 1.7; }
.cap-alert-nums strong { font-variant-numeric: tabular-nums; }
.cap-rem { color: var(--red); }

/* ============================================================
   لوحة الدفع بالتحويل البنكي (2026-11-21): تفتح من أزرار
   «ادفع الآن» — التحويل البنكي طريقة الدفع المعتمدة والفعّالة،
   والبطاقات وتمارا بوسم «قريباً» حتى الاشتراك في بوابة الدفع.
   ============================================================ */
.pay-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(4, 16, 32, .66); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 26px 14px; }
.pay-overlay[hidden] { display: none; }
.pay-modal { position: relative; width: 100%; max-width: 520px; background: #fff; border: 1.5px solid var(--gold); border-top: 6px solid var(--gold); border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(2, 10, 24, .45); color: #0b1f3a; }
.pay-modal h3 { margin: 0 0 8px; font-size: 21px; color: #0b1f3a; }
.pay-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dbe3ec; background: #f4f7fb; color: #0b1f3a; font-size: 15px; cursor: pointer; line-height: 1; }
.pay-close:hover { background: #fdecea; border-color: #e5b4b4; }
.pay-method-on { margin: 0 0 10px; background: #eaf5ec; border: 1px solid #bfe3c6; color: #14532d; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; }
.pay-purpose { margin: 0 0 10px; font-size: 14px; color: #5b6b80; }
.pay-purpose strong { color: #0b1f3a; }
.pay-choose { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.pay-choose select { flex: 1; padding: 9px 10px; border: 1px solid #c9d4e2; border-radius: 10px; font: inherit; background: #fbfcfe; color: #0b1f3a; }
.pay-amount { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: linear-gradient(120deg, #0b1f3a, #17305e); color: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.pay-amount span { font-size: 14px; color: #d7e1ee; }
.pay-amount strong { font-size: 26px; color: #f0d48a; font-variant-numeric: tabular-nums; }
.pay-amount strong span { color: #f0d48a; font-size: 26px; }
.pay-amount small { color: #f0d48a; font-size: 13px; }
.pay-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pay-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: #f7fafc; border: 1px solid #e1e9f2; border-radius: 12px; padding: 9px 12px; }
.pay-row > span { font-size: 13px; color: #5b6b80; min-width: 86px; }
.pay-row strong { font-size: 15px; color: #0b1f3a; overflow-wrap: anywhere; }
.pay-row strong[dir="ltr"] { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.pay-copy { margin-inline-start: auto; flex-shrink: 0; border: 1px solid var(--gold); background: #fdf6dd; color: #8a6d1b; border-radius: 9px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pay-copy:hover { background: #f7e9bd; }
.pay-steps { font-size: 14px; line-height: 1.9; color: #33475e; background: #fffbe9; border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.pay-wa { display: block; text-align: center; margin-bottom: 14px; }
.pay-other { border-top: 1px solid #e7edf4; padding-top: 10px; font-size: 13px; color: #5b6b80; }
.pay-other-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; background: #f7fafc; border: 1px solid #e1e9f2; border-radius: 12px; padding: 8px 12px; color: #33475e; font-weight: 700; }
.pay-soon { background: #eef2f7; border: 1px solid #c9d4e2; color: #5b6b80; border-radius: 99px; padding: 2px 12px; font-size: 12.5px; font-weight: 800; }
body.visitor-dark .pay-modal { background: #101f38; color: #e6edf7; border-color: rgba(201,162,39,.6); }
body.visitor-dark .pay-modal h3, body.visitor-dark .pay-purpose strong, body.visitor-dark .pay-row strong { color: #fff; }
body.visitor-dark .pay-close { background: #16294a; border-color: rgba(201,162,39,.4); color: #e6edf7; }
body.visitor-dark .pay-row, body.visitor-dark .pay-other-row { background: #0d1a30; border-color: rgba(201,162,39,.35); color: #d7e1ee; }
body.visitor-dark .pay-steps { background: #16233c; color: #d7e1ee; }
body.visitor-dark .pay-choose select { background: #0d1a30; color: #e6edf7; border-color: rgba(201,162,39,.4); }
@media (max-width: 560px) { .pay-modal { padding: 18px 14px 14px; } .pay-row > span { min-width: 70px; } }

/* ============================================================
   الترتيب الشهري للسائقين — «نجم الشهر» (2026-11-21): وسم
   النجم الذهبي في قسم الترتيب وبطاقة السائق في صفحة الأداء،
   وتمييز صف المتصدّر. بقية العرض يعيد استخدام .tbl و.kpi-card
   و.bizplan-progress الموجودة.
   ============================================================ */
.star-badge { background: linear-gradient(135deg, var(--gold), #a8831c); color: #fff; font-size: 13px; padding: 4px 12px; box-shadow: 0 2px 8px rgba(201,162,39,.35); }
tr.rank-first td { background: #fdf6e0; }
.rank-medal { font-size: 17px; }

/* ===== موازنة الأحمال بين المناطق (2026-11-21) ===== */
.lb-tbl td { vertical-align: top; }
.lb-before { color: #94a3b8; font-variant-numeric: tabular-nums; }
.lb-after { color: #14532d; font-variant-numeric: tabular-nums; }
.lb-tbl form { margin: 0; }

/* ============================================================
   السيارات ووثائقها (2026-11-21): بطاقة سيارة ببياناتها
   المكتوبة + وثائقها الأربع بمرفقاتها + شارات حالة الوثيقة
   (سارية/قاربة/منتهية/غير مسجلة) + نماذج التحديث والإضافة.
   ============================================================ */
.vdoc-alerts { border-color: #e5b4b4; background: #fffafa; }
.vdoc-alerts h2 { color: var(--red); }
.vdoc-card { scroll-margin-top: 90px; }
.vdoc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.vdoc-who { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.vdoc-who strong { font-size: 18px; color: var(--ink); }
.vdoc-who span { color: var(--muted); }
.vdoc-data td, .vdoc-docs td { vertical-align: top; }
.vdoc-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vdoc-ok { background: #e3f4e8; color: #0e7a3d; }
.vdoc-soon { background: #fdf3d7; color: #92600a; }
.vdoc-expired { background: #fdecea; color: var(--red); animation: gaugePulse 1.6s ease-in-out infinite; }
.vdoc-none { background: #eceff0; color: #5a6a61; }
.vdoc-doc-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.vdoc-doc-form label, .vdoc-veh-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.vdoc-doc-form input[type="date"], .vdoc-doc-form input[type="file"] { font-weight: 400; }
.vdoc-veh-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 8px; }
.vdoc-veh-form input, .vdoc-veh-form select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-weight: 400; background: #fff; }
.vdoc-edit { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.vdoc-edit summary { cursor: pointer; font-weight: 700; color: var(--green-dark); }

/* إكمال البيانات (2026-11-21): شارات الناقص في صفحة «عقود ناقصة البيانات» */
.md-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.md-phone { background: #fdf3d7; color: #92600a; }
.md-tag { background: #fdecea; color: var(--red); }
.md-container { background: #eceff0; color: #5a6a61; }

/* ============================================================
   مؤشر صحة المؤسسة (2026-11-21): بطاقة الرقم الواحد من 100
   أعلى لوحة التحكم — شريط مستوى (أخضر/ذهبي/أحمر) + أربعة
   مكوّنات بنقاطها وأشرطتها وصيغها المكتوبة (app/health_index.php).
   ============================================================ */
.health-card { border-width: 2px; }
.health-ok { border-color: var(--green); }
.health-warn { border-color: var(--gold); }
.health-danger { border-color: var(--red); background: #fffafa; }
.health-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.health-head-txt { flex: 1 1 320px; }
.health-head-txt h2 { margin: 0 0 4px; }
.health-head-txt p { margin: 0; }
.health-score { text-align: center; min-width: 150px; }
.health-num { font-size: 52px; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.health-ok .health-num { color: var(--green); }
.health-warn .health-num { color: #92600a; }
.health-danger .health-num { color: var(--red); }
.health-of { font-size: 18px; font-weight: 700; color: var(--muted); }
.health-level { display: block; margin-top: 5px; font-size: 13.5px; font-weight: 800; }
.health-ok .health-level { color: var(--green); }
.health-warn .health-level { color: #92600a; }
.health-danger .health-level { color: var(--red); }
.health-bar { height: 14px; border-radius: 99px; background: #e7efe9; border: 1px solid var(--line); overflow: hidden; margin: 12px 0 16px; }
.health-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width 1.1s cubic-bezier(.22,.8,.3,1); }
.health-warn .health-bar > span { background: linear-gradient(90deg, var(--amber), var(--gold)); }
.health-danger .health-bar > span { background: linear-gradient(90deg, var(--red), #e67e22); }
.health-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.health-comp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.health-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.health-pts { font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.health-comp-bar { height: 9px; border-radius: 99px; background: #e7efe9; overflow: hidden; margin: 8px 0; }
.health-comp-bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width 1.1s cubic-bezier(.22,.8,.3,1); }
.health-comp-detail { font-size: 13px; font-weight: 700; color: var(--ink); }
.health-comp-rule { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.7; }

/* ============================================================
   خطة بُكرة الجاهزة (2026-11-21): شارتا «يبدأ/ينتهي هذا اليوم»
   في جداول عملاء الخطة. بقية العرض يعيد استخدام .kpi-card
   و.cap-bar و.reports-monthnav و.tbl الموجودة.
   ============================================================ */
.tm-badge-new { background: #e3f4e8; color: #0e7a3d; }
.tm-badge-last { background: #fdecea; color: var(--red); }
.tm-tbl td { vertical-align: top; }

/* حملة التجديد (2026-11-21): شارات حالة التواصل */
.rc-done { background: #e2f5e9; color: var(--green-dark); white-space: nowrap; }
.rc-nophone { background: #fde8e8; color: #b91c1c; white-space: nowrap; }

/* ============================================================
   إجازات ومناوبات السائقين (2026-11-21): شارة التغطية الزرقاء
   بجانب اسم صاحب المنطقة في خطة بُكرة وشاشة الأوزان وصفحة
   الأداء (عرض فقط — app/driver_leaves.php). بقية قسم الإجازات
   يعيد استخدام .tbl و.kpi-card و.vdoc-* الموجودة.
   ============================================================ */
.leave-badge { background: #e8f1fb; color: #14509e; border: 1px solid #bcd6f5; white-space: nowrap; }
.gauge-leave { margin-top: 8px; }
.gauge-leave small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }


/* ============================================================
   شريط مؤشرات المبيعات الحي (2026-11-21): عنوان الشريط فوق
   جدول المبيعات وشارة «الدين» الحمراء المميّزة لبطاقة المتبقّي.
   بقية البطاقات تعيد استخدام .kpi-grid و.kpi-card (.gold
   للقيمة و.alert للدين) و.kpi-num.count-up الموجودة.
   ============================================================ */
.sales-kpi-head { margin: 16px 0 2px; }
.sales-kpi-title { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--green-dark); }
.kpi-badge-debt { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 9px; font-weight: 700; white-space: nowrap; }


/* ============================================================
   الموظفون والمصروفات الثابتة (2026-11-21): شارة حالة الموظف
   (على رأس العمل/انتهت خدمته) وتمييز صف الموظف المنتهية
   خدمته وصف الشهر المعروض حالياً في قائمة الشهور المحفوظة.
   بقية القسم يعيد استخدام .tbl و.kpi-card و.vdoc-* الموجودة.
   ============================================================ */
.emp-badge { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.emp-badge.emp-on { background: var(--green-soft); color: var(--green-dark); border: 1px solid #bfe3cf; }
.emp-badge.emp-off { background: #fbeaea; color: var(--red); border: 1px solid #f0c6c0; }
.emp-ended-row td { opacity: .62; }
.emp-edit-row td { border-bottom: 1px solid var(--line); padding-top: 0; }
.emp-current-month td { background: #fdf6e0; }

/* ============================================================
   استبيان رضا العملاء (2026-11-21): بطاقة الدعوة في واجهة
   الزوار، نموذج الاستبيان العام (خيارات كبسولات + ويدجت
   نجوم تفاعلي + هني بوت مخفي)، وصفحة الإدارة (أعمدة توزيع
   الإجابات + صف رابط الإرسال). بقية العرض يعيد استخدام
   .kpi-grid و.kpi-card و.tbl و.badge و.btn الموجودة.
   ============================================================ */
.visitor-survey { max-width: 1100px; margin: 0 auto 22px; padding: 0 14px; }
.visitor-survey-inner { background: linear-gradient(160deg, #0b1f3a, #123058); border: 1px solid #d9c37a; border-radius: 18px; padding: 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 10px 28px rgba(4,20,40,.18); }
.visitor-survey-text { flex: 1 1 320px; }
.visitor-survey-text h2 { color: #f3d67b; margin: 0 0 8px; font-size: 22px; }
.visitor-survey-text p { color: #e8edf5; margin: 0; line-height: 1.9; font-size: 15px; }
.visitor-survey-btn { background: linear-gradient(160deg, var(--gold), #a8861c); border-color: #a8861c; color: #fff; font-weight: 800; padding: 12px 22px; }

.sv-wrap { max-width: 860px; margin: 0 auto; padding: 0 14px 10px; }
.sv-title { color: #0b1f3a; font-size: 24px; text-align: center; margin: 22px 0 14px; }
.sv-card { background: #fff; border: 1px solid #dbe3ec; border-top: 5px solid var(--gold); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 16px rgba(4,20,40,.07); }
.sv-intro p { line-height: 2; margin: 0 0 8px; color: #33465e; }
.sv-req { color: var(--red); font-weight: 800; }
.sv-error { background: #fdecea; border: 1px solid #f0c6c0; color: #8f1d12; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-weight: 700; }
.sv-thanks { text-align: center; }
.sv-thanks-icon { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 34px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); }
.sv-thanks h2 { color: #0b1f3a; margin: 0 0 8px; }
.sv-thanks p { line-height: 2; color: #33465e; }
.sv-form .sv-field { margin-bottom: 18px; }
.sv-form label, .sv-form legend { font-weight: 800; color: #0b1f3a; font-size: 15.5px; margin-bottom: 8px; display: block; }
.sv-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.sv-form fieldset legend { padding: 0; }
.sv-form input[type="text"], .sv-form input[type="tel"], .sv-form select, .sv-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; background: #fff; color: var(--ink); }
.sv-form textarea { line-height: 1.9; resize: vertical; }
.sv-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-opt { position: relative; }
.sv-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sv-opt span { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #f7faf8; font-size: 14.5px; font-weight: 700; color: #33465e; transition: .15s; }
.sv-opt:hover span { border-color: var(--gold); }
.sv-opt input:checked + span { background: linear-gradient(160deg, #0b1f3a, #123058); color: #f3d67b; border-color: #0b1f3a; }
.sv-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sv-stars { display: inline-flex; gap: 4px; }
.sv-star { cursor: pointer; line-height: 1; }
.sv-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-star span { font-size: 40px; color: #cfd8dc; transition: color .12s, transform .12s; display: inline-block; }
.sv-star.on span { color: var(--gold); }
.sv-star:hover span { transform: scale(1.12); }
.sv-stars-hint { margin: 4px 0 0; font-size: 13px; }
.sv-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sv-submit { width: 100%; padding: 14px; font-size: 17px; font-weight: 800; }
.sv-note { text-align: center; font-size: 13px; margin: 10px 0 0; }

.sv-admin-h { margin: 22px 0 10px; font-size: 18px; color: var(--green-dark); }
.sv-dist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.sv-dist-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sv-dist-card h3 { margin: 0 0 8px; font-size: 15px; color: #0b1f3a; }
.sv-dist-tbl td { border-bottom: 1px solid #f0f4f1; padding: 6px 6px; }
.sv-dist-opt { width: 34%; font-weight: 700; }
.sv-dist-bar { width: 42%; }
.sv-dist-num { width: 24%; white-space: nowrap; }
.sv-bar { display: block; height: 10px; background: #edf2ee; border-radius: 999px; overflow: hidden; }
.sv-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 999px; }
.sv-resp-tbl td { vertical-align: top; }
.sv-stars-txt { color: var(--gold); white-space: nowrap; letter-spacing: 1px; }
.sv-free-txt { color: #44536a; line-height: 1.8; }
.sv-send-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
.sv-link-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-link-row input { flex: 1 1 320px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; background: #f7faf8; }

/* ===== وضع عدم الاتصال الشامل (2026-11-22) ===== */
.offline-bar { background:#0b1f3a; color:#f3e9c8; border:1px solid var(--gold); border-radius:12px;
  padding:10px 14px; margin:10px 0 14px; display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; }
.offline-bar .ob-state { font-weight:700; }
.offline-bar .ob-state.ob-off { color:#ffb3a0; }
.offline-bar .ob-state.ob-on { color:#9fe6b8; }
.offline-bar .ob-pending { color:#ffd966; font-weight:700; }
.offline-bar .ob-sync { color:#c8d4e8; font-size:13px; }
.offline-bar .btn { margin-inline-start:2px; }
.offline-bar .ob-panel { flex:1 1 100%; background:#0e2a4e; border-radius:10px; padding:12px 14px; margin-top:6px; }
.offline-bar .ob-snap-head { font-weight:700; color:var(--gold); margin-bottom:4px; }
.offline-bar .ob-snap-note { color:#c8d4e8; font-size:13px; margin:0 0 8px; }
.offline-bar .ob-sec { margin:10px 0; }
.offline-bar .ob-sec h4 { margin:0 0 6px; color:#fff; font-size:15px; }
.offline-bar .ob-count { color:var(--gold); }
.offline-bar .ob-list { list-style:none; margin:0; padding:0; }
.offline-bar .ob-list li { padding:5px 0; border-bottom:1px dashed #2c4a74; color:#eef3fb; font-size:14px; }
.offline-bar .ob-list .muted, .offline-bar .ob-sec .muted { color:#9fb3cf; }
.offline-bar .ob-badge { background:var(--gold); color:#0b1f3a; border-radius:999px; padding:1px 8px; font-size:12px; font-weight:700; }
.offline-pending-badge { display:inline-block; background:#fff3cd; color:#7a5b00; border:1px solid #e6c34a;
  border-radius:999px; padding:2px 10px; font-size:12.5px; font-weight:700; margin-top:6px; }

/* ===== الخطط التشغيلية بأرقام العقود (2026-11-22) ===== */
.op-chip { display:inline-block; border-radius:999px; padding:1px 9px; font-size:12px; font-weight:700; }
.op-chip-ok { background:#dcfce7; color:#166534; }
.op-chip-near { background:#fef3c7; color:#92400e; }
.op-chip-over { background:#fee2e2; color:#991b1b; }
.op-chip-none { background:#e5e7eb; color:#374151; }
.op-chip-new { background:var(--gold); color:#0b1f3a; }
.op-capacity { background:#f8fafc; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:8px 0; }
.op-bar { height:10px; background:#e5e7eb; border-radius:999px; overflow:hidden; }
.op-bar-fill { height:100%; }
.op-bar-fill.ok { background:#16a34a; }
.op-bar-fill.near { background:#f59e0b; }
.op-bar-fill.over { background:#dc2626; }
.op-full { color:#991b1b; font-weight:700; }
.op-item { display:flex; gap:10px; flex-wrap:wrap; align-items:center; border-bottom:1px dashed var(--line); padding:7px 0; }
.op-item-expired { background:#fef2f2; }
.op-move-alert { background:#fee2e2; animation:opBlink 1.2s ease-in-out infinite; }
@keyframes opBlink { 0%,100% { background:#fee2e2; } 50% { background:#fecaca; } }
@media (prefers-reduced-motion: reduce) { .op-move-alert { animation:none; } }

/* ===== دورة حالة المهام الموحدة + التحقق (2026-11-22) ===== */
.tf-badge { display:inline-block; border-radius:999px; padding:1px 9px; font-size:12px; font-weight:700; }
.tf-sent { background:#e5e7eb; color:#374151; }
.tf-acked { background:#dbeafe; color:#1e40af; }
.tf-doing { background:#fef3c7; color:#92400e; }
.tf-done { background:#dcfce7; color:#166534; }
.tf-confirmed { background:#0b1f3a; color:var(--gold); }
.tf-review { background:#fee2e2; color:#991b1b; }
/* ===== شاشة التقييمات (2026-11-22) ===== */
.eval-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:14px; }
.eval-card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; }
.eval-card-sup { border-color:var(--gold); }
.eval-card-head { display:flex; gap:12px; align-items:center; }
.eval-mini { margin:10px 0; padding-inline-start:18px; }
.eval-alert { border:2px solid #dc2626; animation:opBlink 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .eval-alert { animation:none; } }
/* ===== لمسات الإدارة الختامية (2026-11-22) ===== */
.quick-add { position:fixed; bottom:18px; inset-inline-start:18px; z-index:60; }
.quick-add > button { width:52px; height:52px; border-radius:50%; font-size:24px; background:#0b1f3a; color:var(--gold); border:2px solid var(--gold); cursor:pointer; }
.quick-add .qa-menu { display:none; position:absolute; bottom:60px; inset-inline-start:0; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:8px; min-width:170px; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.quick-add.open .qa-menu { display:block; }
.quick-add .qa-menu a { display:block; padding:8px 10px; }
.pins-row { display:flex; gap:8px; flex-wrap:wrap; margin:8px 0; }
.pins-row .pin-chip { background:#0b1f3a; color:#f3e9c8; border-radius:999px; padding:3px 6px 3px 12px; display:inline-flex; gap:6px; align-items:center; }
.pins-row .pin-chip a { color:#f3e9c8; text-decoration:none; }
.pins-row .pin-chip form { display:inline; }
.pins-row .pin-chip button { background:none; border:none; color:#ffb3a0; cursor:pointer; font-size:13px; }
.ctrlk-overlay { position:fixed; inset:0; background:rgba(11,31,58,.55); z-index:90; display:none; }
.ctrlk-overlay.open { display:block; }
/* إصلاح 2026-11-23: الجافاسكربت يفتح اللوحة بإزالة hidden فقط، والقاعدة الأساسية display:none كانت تمنع ظهورها؛ إظهارها عند غياب hidden */
.ctrlk-overlay:not([hidden]) { display: block; }
.ctrlk-box { max-width:560px; margin:10vh auto; background:var(--card); border-radius:14px; padding:16px; }
.ctrlk-box input { width:100%; padding:12px; font-size:16px; }
.ctrlk-results a { display:block; padding:8px 10px; border-bottom:1px dashed var(--line); }
/* ===== زوار: بانر/شركاء/جدار شرف (2026-11-22) ===== */
.occasion-banner { background:linear-gradient(90deg,#0b1f3a,#14335e); color:#f3e9c8; text-align:center; padding:12px 16px; font-weight:700; }
.partners-marquee { overflow:hidden; direction:ltr; border-block:1px solid var(--line); padding:10px 0; }
.partners-track { display:inline-flex; gap:14px; white-space:nowrap; animation:marqueeMove 30s linear infinite; }
.partners-track span { background:var(--card); border:1px solid var(--gold); color:var(--text); border-radius:999px; padding:6px 16px; font-weight:700; }
@keyframes marqueeMove { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners-track { animation:none; } }
.honor-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.honor-card { background:var(--card); border:1px solid var(--gold); border-radius:14px; padding:16px; text-align:center; }
.honor-card .honor-ava { width:64px; height:64px; border-radius:50%; background:#0b1f3a; color:var(--gold); font-size:26px; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; }
.lm-drv{background:#0b1f3a;color:#fff;border:2px solid #c9a227;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;display:flex;gap:4px;align-items:center;white-space:nowrap}
.lm-drv.stale{background:#6b7280;border-color:#374151;border-style:dashed;opacity:.75}
.eval-weakbox{border-top:1px dashed var(--border,#ddd);margin-top:8px;padding-top:8px;text-align:start}
.vp-banner{background:linear-gradient(90deg,#c9a227,#e7c65a);color:#0b1f3a;font-weight:800;text-align:center;padding:10px 14px;font-size:17px}
.vp-marquee-wrap{padding:18px 12px;text-align:center}
.vp-marquee{overflow:hidden;direction:ltr}
.vp-marquee-track{display:inline-flex;gap:12px;animation:vpmove 30s linear infinite;white-space:nowrap}
@keyframes vpmove{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.vp-partner-chip{background:var(--hatch-widget-surface,#12294d);border:1px solid #c9a227;color:#fff;border-radius:999px;padding:8px 18px;font-size:16px;font-weight:700}
.vp-lastlift{padding:14px 12px;text-align:center}
.vp-lastlift-grid{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.vp-lastlift-chip{background:rgba(201,162,39,.12);border:1px solid #c9a227;border-radius:999px;padding:6px 14px}
.vp-linkcard{padding:16px 12px;text-align:center}
.svc-card-wrap{position:relative}
.svc-share{position:absolute;bottom:8px;inset-inline-start:8px;font-size:12.5px;background:#25d366;color:#fff;border-radius:999px;padding:3px 10px;text-decoration:none;font-weight:700}
.offline-install-btn{position:fixed;bottom:86px;inset-inline-start:14px;z-index:1200;background:linear-gradient(135deg,#0b1f3a,#12325e);color:#f5d67b;border:1px solid #c9a227;border-radius:999px;padding:9px 16px;font-weight:800;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.offline-ios-help{position:fixed;inset:0;background:rgba(5,12,24,.72);z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px}
.offline-ios-card{background:#fff;color:#14213a;border-radius:14px;max-width:420px;padding:18px 20px;text-align:center}

/* ===== Final visual polish (owner review round 2026-11-22) — styling of existing elements only ===== */
::selection { background: #C9A227; color: #0b1f3a; }
:focus-visible { outline: 2px solid #C9A227; outline-offset: 2px; border-radius: 4px; }
html { scrollbar-width: thin; scrollbar-color: #C9A227 #0b1f3a; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0e2440; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #dcb93e, #C9A227); border-radius: 99px; border: 2px solid #0e2440; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel, .kpi-card, .card { animation: fadeUp .45s ease both; }
.empty-state { text-align: center; padding: 34px 22px; border: 1.5px dashed #C9A227; border-radius: 16px; background: linear-gradient(180deg, rgba(201,162,39,.06), rgba(11,31,58,.03)); color: #43536b; }
.empty-state .es-icon { font-size: 34px; display: block; margin-bottom: 8px; }
.tbl thead th { background: linear-gradient(180deg, #10294b, #0b1f3a); color: #f0d48a; }
@media (prefers-reduced-motion: reduce) { .panel, .kpi-card, .card { animation: none; } }

/* ============================================================
   توحيد هوية الزوار: كحلي + ذهبي (اعتماد المالك 2026-11-22
   بعد معاينة الشكل النهائي: «ممتاز الألوان والخط») — نطاق
   .visitor-body فقط؛ الإدارة تبقى كما هي، وزر الواتساب
   يبقى أخضر بلونه الرسمي.
   ============================================================ */
.visitor-body .btn-primary { background: linear-gradient(160deg, #12325e, #0b1f3a); border-color: #c9a227; color: #fff; }
.visitor-body .btn-primary:hover { background: #0b1f3a; border-color: #c9a227; text-decoration: none; }
.visitor-body .btn:hover { background: #edf1f6; }
.visitor-body .visitor-main a:not(.btn):not(.vchannel) { color: #12325e; }
.visitor-body .page-title { color: #0b1f3a; }


/* شعار الموقع — خط كبير متحرك (طلب المالك 2026-11-22) */
.hero-slogan{font-family:'Cairo',sans-serif;font-weight:800;font-size:clamp(26px,5.4vw,54px);line-height:1.6;color:#fff;margin:12px 0 6px;text-shadow:0 2px 16px rgba(0,0,0,.4);animation:sloganIn 1.1s ease both}
.slogan-gold{color:#f5d67b;background:linear-gradient(100deg,#caa64b 15%,#ffedb0 42%,#caa64b 65%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:sloganShine 3.4s linear infinite}
/* «ومنارتها اسمنا» في سطر واحد دائماً — لا تنكسر «اسمنا» وحدها لسطر (أمر المالك 2026-11-23) */
.hero-slogan .slogan-gold{white-space:nowrap}
.brand-slogan{display:block;font-family:'Cairo',sans-serif;font-weight:700;font-size:15px;line-height:1.7;color:#fff;margin-top:2px}
@keyframes sloganIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes sloganShine{to{background-position:-220% 0}}

/* تكبير أرقام الجوالات (طلب المالك 2026-11-22): أزرار الهيدر وكبسولات بطاقتي التواصل */
.visitor-top .btn-whatsapp { font-size: 1.32rem; font-weight: 800; padding: 10px 26px; letter-spacing: .3px; }
.vchannel-num { font-size: 1.5rem; padding: 9px 26px; }

.hero-slogan.slogan-anim-soft .slogan-gold { animation: none; background: none; -webkit-text-fill-color: #f5d67b; color: #f5d67b; }
.hero-slogan.slogan-anim-none { animation: none; }
.hero-slogan.slogan-anim-none .slogan-gold { animation: none; background: none; -webkit-text-fill-color: #f5d67b; color: #f5d67b; }

/* أرقام الهيدر متوسّطة داخل الزر الأخضر + اسم المؤسسة بخط مميز ملوّن (طلب المالك 2026-11-22) */
.visitor-top .btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; line-height: 1.1; text-align: center; }
.visitor-top .brand-text small { display: inline-block; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: .98rem; letter-spacing: .2px; background: linear-gradient(90deg, #caa64b, #ffe9a8 45%, #caa64b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f5d67b; }
.hero-institution { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: clamp(14px, 1.55vw, 20px); white-space: nowrap; line-height: 1.7; margin: 2px 0 10px; background: linear-gradient(90deg, #f5d67b, #ffffff 55%, #caa64b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f5d67b; animation: sloganIn 1.3s ease both; }
/* اسم المؤسسة كاملاً في سطر واحد على الشاشات العادية — «رفحاء» جنب «والخدمات البيئية» (أمر المالك 2026-11-23) */
@media (min-width: 1100px) { .visitor-hero-inner { grid-template-columns: 1.35fr .65fr; } }
@media (max-width: 1099px) and (min-width: 861px) { .hero-institution { font-size: clamp(11px, 1.25vw, 14.5px); } }
@media (max-width: 860px) { .hero-institution { font-size: clamp(12px, 2.2vw, 17px); } }
@media (max-width: 560px) { .hero-institution { white-space: normal; } }

/* مسافات بين سطور الشعار + خانة شعار المؤسسة داخل الدائرة (طلب المالك 2026-11-22) */
.visitor-top .brand-text { gap: 6px; line-height: 1.45; }
.visitor-top .brand-text strong { line-height: 1.35; }
.visitor-top .brand-slogan { margin-top: 4px; }
.brand-logo { position: relative; overflow: hidden; }
.brand-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }

/* دائرة الشعار في واجهة الزوار + صورة البرج داخلها (طلب المالك 2026-11-22) */
.visitor-top .brand-logo { border-radius: 50%; }
.brand-logo-img { object-fit: contain; background: #050b16; }

/* تناسق أسطر الهيدر: إنزال سطر المؤسسة قليلاً تحت «مدينتي» (طلب المالك 2026-11-22) */
.visitor-top .brand-text small { margin-top: 15px; }
.visitor-top .brand-slogan { margin-top: 5px; }

/* ===== جولة التطوير 2026-11-22 ===== */
.month-stats .month-stats-title { grid-column: 1 / -1; color: #f5d97e; font-size: 20px; margin: 0; text-align: center; }
.hood-today { background:linear-gradient(150deg,#060f22,#0b1f3a 55%,#12325e); border:1.5px solid var(--gold); border-radius:14px; padding:14px 16px; margin:14px 0; color:#eef2ff; }
.hood-today h3 { color:#f5d97e; margin:0 0 8px; }
.hood-today .muted { color:#b9c6dd; }
.mc-expiry-alert { border:2px solid #b7791f; background:#fffbeb; }
.mc-soon-list { margin:0; padding-inline-start:18px; }
.mc-soon-list li { margin:8px 0; }
.mc-countdown { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; background:linear-gradient(150deg,#060f22,#0b1f3a 55%,#12325e); border:1.5px solid var(--gold); border-radius:14px; padding:14px 16px; margin:12px 0; color:#eef2ff; }
.mc-countdown .muted { color:#b9c6dd; }
.mc-countdown-clock { display:flex; gap:10px; }
.mc-countdown-clock span { background:rgba(255,255,255,.08); border:1px solid rgba(201,162,39,.5); border-radius:10px; padding:6px 10px; text-align:center; font-size:12px; }
.mc-countdown-clock b { display:block; font-size:20px; color:#f5d97e; }
.dd-progress { margin:12px 0; }
.dd-progress-bar { height:14px; background:#e5e7eb; border-radius:99px; overflow:hidden; margin-top:6px; }
.dd-progress-bar span { display:block; height:100%; background:linear-gradient(90deg,#007A3D,#C9A227); border-radius:99px; transition:width .6s ease; }
.dd-next-card { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; border:2px solid var(--gold); background:#fffbeb; border-radius:12px; padding:12px 14px; margin:12px 0; }
.dd-next-card.done-all { background:#E7F3EC; border-color:#007A3D; }
.ctrlk-results { display:flex; flex-direction:column; gap:6px; margin:10px 0; }
.ctrlk-hit { display:flex; gap:10px; align-items:center; padding:9px 12px; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:inherit; background:#fff; }
.ctrlk-hit:hover { border-color:var(--gold); background:#fffbeb; }
.ctrlk-hit-type { background:#0b1f3a; color:#f5d97e; border-radius:8px; padding:3px 8px; font-size:12px; white-space:nowrap; }
.ctrlk-hit-main small { display:block; color:var(--muted); }
.rq-item { margin-bottom:14px; }
.rq-item.rq-done { opacity:.75; }
.rq-head { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }
.rq-text { width:100%; font-family:inherit; border:1px solid var(--line); border-radius:10px; padding:10px; background:#f8fafc; resize:vertical; }
.rq-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; align-items:center; }
.notfound-card { text-align:center; padding:36px 20px; margin-top:30px; }
.notfound-code { font-size:72px; font-weight:900; color:var(--gold); line-height:1; }
.notfound-links { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:16px; }

/* ============================================================
   سطر الحالة الحي + إيقاع كتابة أنشط (فكرة مستخرجة من الفيديوهات
   المرجعية الأربعة للمالك 2026-11-23): سطر صغير تحت اسم المساعد
   في بطاقة البطل ورأس المحادثة يسمّي النشاط الحقيقي الجاري الآن
   (خطوات العمل أثناء انتظار الرد، ثم ما يعرضه المساعد أثناء
   الكلام)، بنقطة ذهبية نابضة — يظهر فقط أثناء نشاط فعلي ويختفي
   في الانتظار. لا يمسّ هذا القسم أحجام الصور ولا الإطار المستطيل
   ولا العرض الكامل المعتمد إطلاقاً: قواعد التأطير أعلاه كما هي،
   وقاعدة حركة الشغل هنا تتقدّم على mrmWork القديمة بنفس التخصيص
   وترتيب لاحق فقط لتقوية إيقاع الكتابة. */
.mrm-live-status { display: flex; align-items: center; gap: 6px; min-height: 18px; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #8a6d1b; opacity: 0; visibility: hidden; transform: translateY(-2px); transition: opacity .3s ease, transform .3s ease, visibility .3s ease; }
.mrm-live-status.show { opacity: 1; visibility: visible; transform: none; }
.mrm-live-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; animation: mrmLivePulse 1.1s ease-in-out infinite; }
@keyframes mrmLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.45); }
  50% { box-shadow: 0 0 0 5px rgba(201,162,39,0); }
}
.mrm-chat-head .mrm-live-status { color: #f0d48a; font-size: 12px; min-height: 17px; }
.mrm-pose.is-working .mrm-pose-work { animation: mrmType .8s ease-in-out infinite; }
@keyframes mrmType {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  20% { transform: translateY(1.4px) rotate(-.7deg); }
  40% { transform: translateY(.3px) rotate(-.3deg); }
  60% { transform: translateY(1.4px) rotate(-.8deg); }
  80% { transform: translateY(.5px) rotate(-.35deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mrm-pose.is-working .mrm-pose-work, .mrm-pose.is-talking .mrm-pose-talk { animation: none; }
  .mrm-live-status { transition: none; }
  .mrm-live-status::before { animation: none; }
}

/* ============================================================
   شريط تحكم «كمكالمة» + مسرح/فقاعة الأفاتار (من الفيديو المرجعي
   الخامس للمالك 2026-11-23): شريط كحلي بأزرار دائرية تحت جسم
   المحادثة (إدخال صوتي / إرفاق / كتم الردود الصوتية / حجم
   الأفاتار / تكبير النافذة / ملء الشاشة / إنهاء أحمر)، ومسرح
   أفاتار كبير داخل المحادثة يتبدل مع فقاعة صغيرة عائمة فوق
   الرسائل — الوضعيتان (شغل/كلام) وحركة الشفايف تعملان فيهما
   بنفس آلية .mrm-pose. لا تغيير في أحجام صور البطاقة/الرأس ولا
   في الإطار المستطيل المعتمد. */
.mrm-callbar { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; background: linear-gradient(135deg, #0b1f3a, #12325e); border-top: 1px solid rgba(201,162,39,.35); }
.mrm-call-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.mrm-call-btn svg { width: 18px; height: 18px; }
.mrm-call-btn:hover { border-color: var(--gold); color: #f0d48a; }
.mrm-call-btn[aria-pressed="true"] { background: rgba(201,162,39,.25); border-color: var(--gold); color: #f0d48a; }
.mrm-callbar .mrm-voice-btn { width: 36px; height: 36px; border-radius: 50%; }
.mrm-call-btn.is-rec { background: #b3261e; border-color: #b3261e; color: #fff; animation: mrmLivePulse 1.1s ease-in-out infinite; }
.mrm-end-btn { background: #b3261e; border-color: #b3261e; color: #fff; }
.mrm-end-btn:hover { background: #8f1d17; border-color: #8f1d17; color: #fff; }
.mrm-chat.expanded { width: min(560px, calc(100vw - 16px)); height: min(720px, calc(100vh - 24px)); }
.mrm-chat:fullscreen { width: 100%; height: 100%; border-radius: 0; }
.mrm-chat-full { top: 0 !important; bottom: 0 !important; inset-inline-start: 0 !important; inset-inline-end: 0 !important; width: 100vw !important; height: 100dvh !important; border-radius: 0; }
.mrm-stage { background: #fff; border-bottom: 2px solid var(--gold); line-height: 0; flex: 0 0 auto; }
.mrm-stage .mrm-pose { width: 100%; height: 290px; }
.mrm-stage-photo { width: 100%; height: 100%; object-fit: contain; display: block; }
.mrm-stage .mrm-pose-talk { object-fit: contain; object-position: 50% 50%; }
.mrm-bubble { position: absolute; top: 88px; inset-inline-end: 10px; width: 54px; height: 66px; border-radius: 12px; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 8px 20px rgba(4,20,40,.35); z-index: 5; background: #fff; line-height: 0; }
.mrm-bubble.off { display: none; }
.mrm-bubble .mrm-pose { width: 100%; height: 100%; }
.mrm-bubble-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.mrm-bubble .mrm-pose-talk { object-position: 50% 0%; }
@media (prefers-reduced-motion: reduce) {
  .mrm-call-btn.is-rec { animation: none; }
}

/* ============================================================
   تنسيق قسم المسؤول وبطاقات الفريق — مراجعة المالك 2026-11-23
   («نسّقوه أكثر وشكله»): شبكة صلاحيات منتظمة بخلايا موحّدة
   (العنوان فوق والقائمة بعرض الخلية)، بطاقة عضو بخط ذهبي علوي،
   ولوحة «عرض فقط» في تفاصيل العقد تظهر كعرض لا كنموذج تحرير.
   تنسيق فقط — لا تغيير في أي سلوك أو صلاحية.
   ============================================================ */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.perm-item { display: flex; flex-direction: column; gap: 6px; align-items: stretch; background: #f8faf8; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.perm-item select { width: 100%; padding: 6px 8px; border: 1px solid #cfd8dc; border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; }
.perm-form { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.perm-form h3 { margin: 0 0 8px; font-size: 16.5px; color: var(--green-dark); }
.team-member { border-top: 3px solid var(--gold); }
.ro-panel .form-grid label { font-size: 13px; font-weight: 700; color: var(--green-dark); display: flex; flex-direction: column; gap: 5px; }
.ro-panel .form-grid input[readonly] { background: #f2f6f3; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 14.5px; }

/* ============================================================
   توحيد عرض صفحة «كل الخدمات» مع شكل الإدارة (طلب المالك
   2026-11-23: «نفس العرض، الأشكال أقصد» + «مش بالمنظر المتكدس»):
   كل قسم بعنوانه كما في الإدارة، وكل خدمة في بطاقة مرتبة:
   بلاطة أيقونة كحلية، عنوان، وصف بخط عادي، وزر «ابدأ الخدمة».
   ============================================================ */
.svc-cat { font-size: inherit; font-weight: inherit; color: inherit; margin: 30px 0 0; border-bottom: none; padding-bottom: 0; }
.svc-h2 { color: var(--green-dark); font-size: 20px; font-weight: 800; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); display: inline-block; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.svc-card-wrap { position: relative; display: flex; flex-direction: column; }
.svc-card { flex: 1; max-width: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: linear-gradient(168deg,#18294a 0%,#122544 62%,#0c1a30 100%); border: 1px solid #2f4a7d; border-radius: 20px; padding: 16px; position: relative; overflow: hidden; color: #f4f7fc; box-shadow: 0 10px 26px rgba(0,0,14,.42); transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.svc-card::before { content: none; }
.svc-card:hover { transform: translateY(-5px); border-color: #c9a13f; box-shadow: 0 20px 42px rgba(0,0,16,.55), 0 0 0 1px rgba(201,161,63,.35); }
.svc-card-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; background: linear-gradient(145deg,#2a4d80,#12283f 60%,#0a1a30); color: #d4af37; display: grid; place-items: center; font-size: 22px; margin-bottom: 2px; box-shadow: 0 8px 18px rgba(10,10,40,.5), inset 0 0 0 2px rgba(230,200,119,.45); }
.svc-card-icon .svc-img-icon { width: 48px; height: 48px; border-radius: 12px; }
.svc-card-title { font-size: 16px; font-weight: 800; color: #f4f7fc; margin: 0; line-height: 1.5; display: block; }
.svc-card-desc { font-size: .83rem; font-weight: 400; color: #aebdd6; line-height: 1.6; display: block; }
.svc-card-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: #f5e7bd; background: rgba(201,161,63,.16); border: 1px solid rgba(230,200,119,.4); border-radius: 999px; padding: .22rem .6rem; white-space: nowrap; transition: background .2s; }
.svc-card-go::after { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23f5e7bd%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15 5l-7 7 7 7%27/%3E%3C/svg%3E") center/contain no-repeat; }
.svc-card:hover .svc-card-go { background: rgba(201,161,63,.3); }
.svc-share { position: static; align-self: flex-start; margin-top: 8px; background: transparent; color: #aebdd6; padding: 2px 4px; font-size: 12.5px; font-weight: 700; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.inqpub-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ============================================================
   صورة المساعد في بطاقة الرئيسية العلوية: أصغر ودائرية (أمر
   المالك 2026-11-23 13:38 — «صغّرها وخلّها دائرية، كذا كبيرة
   over»). كلمة المالك الأخيرة تلغي قاعدة الإطار المستطيل
   الكامل لهذه البطاقة تحديداً؛ صورة نافذة المحادثة
   (.mrm-chat-photo) خارج النطاق ولا يمسّها هذا التنسيق.
   الاسم و«متصل الآن» وسطر الحالة كما هي بلا تغيير.
   ============================================================ */
#mrmHeroCard .mrm-pose { border-radius: 50%; }
#mrmHeroCard .mrm-hero-photo { width: 120px; height: 120px; aspect-ratio: auto; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
#mrmHeroCard .mrm-hero-photo.mrm-pose-talk { object-fit: cover; object-position: 50% 18%; background: transparent; }
@media (max-width: 640px) {
  #mrmHeroCard .mrm-hero-photo { width: 96px; height: 96px; }
}

/* ============================================================
   تنسيق بطاقات أعضاء الفريق وصلاحياتهم (طلب المالك 2026-11-23:
   «ونسقوه أكثر وشكله») — نفس هوية الإدارة: كحلي وذهبي.
   ============================================================ */
.team-member { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 16px; box-shadow: 0 6px 18px rgba(11,31,58,.06); }
.team-member-head { background: linear-gradient(135deg, #0b1f3a, #14335f); color: #fff; padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; box-shadow: inset 0 -2px 0 var(--gold); }
.team-member-head strong { color: #f3d27a; font-size: 17px; letter-spacing: .1px; }
.team-member-head .badge { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.team-member-head .badge.st-active { background: #0e7a3d; border-color: #0e7a3d; color: #fff; }
.team-member-head .badge.st-expiring { background: #b45309; border-color: #b45309; color: #fff; }
.team-member-head .badge.st-expired { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.team-member-official { border: 1.5px solid var(--gold); background: linear-gradient(180deg, #fffdf3, #ffffff 55%); }
.team-member .form-grid label { font-size: 13px; font-weight: 700; color: var(--green-dark); display: flex; flex-direction: column; gap: 5px; }
.team-member .form-actions { margin-top: 14px; }
.team-toggle-form { border-top: 1px dashed var(--line); padding-top: 12px; }
.team-toggle-form .muted { font-size: 13px; }
.perm-form { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 16px; background: #fff; box-shadow: 0 4px 14px rgba(11,31,58,.05); }
.perm-form h3 { background: linear-gradient(135deg, #0b1f3a, #14335f); color: #f3d27a; padding: 10px 14px; border-radius: 10px; margin: 0 0 10px; font-size: 16px; box-shadow: inset 0 -2px 0 var(--gold); }
.perm-form h3 .muted { color: #cbd5e1; }
.perm-form-official { border: 1.5px solid var(--gold); background: linear-gradient(180deg, #fffdf3, #ffffff 40%); }

/* تسميات توضيحية على أزرار أرقام الترويسة (طلب المالك 2026-11-23 13:43 — يلغي قاعدة «الأرقام فقط» لعرض الترويسة): الرقم يبقى الأبرز والتسمية أصغر منه داخل الزر نفسه */
.visitor-top .btn-wa-labelled { flex-direction: column; gap: 2px; padding: 8px 26px; }
.visitor-top .btn-wa-labelled .wa-num { font-size: 1.32rem; font-weight: 800; line-height: 1.1; }
.visitor-top .btn-wa-labelled .wa-label { font-size: .8rem; font-weight: 700; line-height: 1.4; letter-spacing: 0; }

/* ============================================================
   إصلاحات المالك — مكالمة 2026-11-23 ~14:08 (بندا ٢ و٣):
   (٢) عنوان قسم «خدماتنا الإضافية — أكثر من 100 خدمة» داخل
   الشريط الكحلي .visitor-renew كان يرث لون العناوين الغامق
   فيختفي على الخلفية الكحلية — يُفرض هنا ذهبياً فاتحاً واضحاً
   بفخامة بقية العناوين، ونصّه فاتحاً، وزرّه ذهبياً مقروءاً.
   (٣) صندوق «استبيان رضا العملاء» كان يلتصق/يتداخل بصرياً مع
   خريطة قسم التواصل — يُفرض فصله الكامل: موضع عادي في التدفق
   (لا تعويم ولا تداخل)، مسافة علوية واضحة بعد قسم التواصل،
   والخريطة داخل قسمها بارتفاع ثابت ومحتواة بالكامل.
   ============================================================ */
.visitor-renew h2 { color: #f3d67b; font-size: 24px; font-weight: 800; line-height: 1.5; margin: 0; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.visitor-renew p { color: #e8edf5; line-height: 1.9; margin: 0; flex: 1 1 300px; }
.visitor-renew .visitor-renew-btn { flex: none; background: linear-gradient(160deg, var(--gold), #a8861c); color: #fff; font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 1px solid #a8861c; box-shadow: 0 6px 16px rgba(4, 20, 40, .25); }
.visitor-renew .visitor-renew-btn:hover { text-decoration: none; filter: brightness(1.07); }
.visitor-contact { position: relative; z-index: 0; overflow: hidden; }
.visitor-map { position: relative; z-index: 0; }
.visitor-map iframe { height: 300px; }
.visitor-survey { position: relative; z-index: 0; clear: both; margin-top: 28px; }

/* ============================================================
   قائمة الفريق كبطاقات (تحديد المالك 2026-11-23 وهو يراجع شاشة
   السائق): خدمات السائق/المشرف تظهر فوراً كبطاقات أنيقة — لكل
   خدمة خلفية كحلية خاصة وخط ذهبي مميز تحتها واسم بخط فاتح واضح
   — بلا أزرار تثبيت تملأ الشاشة، وترويسة غير لاصقة عند الفريق
   حتى لا تحجب المحتوى أثناء العمل على الجوال.
   ============================================================ */
.mainnav.team-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 12px 16px 14px; }
.mainnav.team-nav .nav-item { background: linear-gradient(160deg, #14365f, #0b1f3a); color: #f3e9c8; border: 1px solid rgba(201,162,39,.55); border-bottom: 4px solid #c9a227; border-radius: 14px; padding: 14px 12px; font-size: 15px; font-weight: 700; text-align: center; box-shadow: 0 3px 10px rgba(4,20,40,.18); display: flex; align-items: center; justify-content: center; min-height: 56px; line-height: 1.35; }
.mainnav.team-nav .nav-item:hover { background: linear-gradient(160deg, #1a4472, #0e2749); text-decoration: none; }
.mainnav.team-nav .nav-item.active { background: linear-gradient(160deg, #0aa653, #00713a); color: #fff; border-color: rgba(255,255,255,.35); border-bottom: 4px solid #f5d67b; font-weight: 800; }
.topbar:has(.team-nav) { position: static; }
/* إصلاح 2026-11-23: لوحة المدير المجمّعة (159 وظيفة) تُرسم داخل الترويسة، فبقاؤها لاصقة (sticky) كان يغطي الشاشة كاملة بعد أي تنقّل ويُظهر الضغطات بلا أثر — صفحات المالك وحدها (فيها .admin-groups) ترويستها عادية غير لاصقة تتمرر مع الصفحة */
.topbar:has(.admin-groups) { position: static; }
@media (max-width: 640px) {
  .mainnav.team-nav { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 10px 12px; }
  .mainnav.team-nav .nav-item { font-size: 14px; padding: 12px 8px; min-height: 52px; border-radius: 12px; }
}

/* صفحات الفريق على الجوال: الجداول العريضة تُمرَّر داخل إطارها
   بدل سحب الصفحة كلها أفقياً (قيس فعلياً: جدول الخطط 571px على
   شاشة 390px كان يزيح شاشة المشرف الرئيسية كلها). */
@media (max-width: 768px) {
  .team-body .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============================================================
   SPACE-MATCH (2026-11-23): measured values copied from the
   Madinty Space design system - services panel/cards and the
   manager login surface. Styling only; no content change.
   ============================================================ */
.svc-grid { grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1.05rem; margin: 1.1rem 0; padding: 1.15rem; border-radius: 26px; background: linear-gradient(160deg,#0a1428 0%,#0d1c33 55%,#16305a 100%); border: 1px solid #2b4470; box-shadow: 0 24px 50px rgba(0,0,18,.4), inset 0 1px 0 rgba(255,255,255,.05); }
.svc-card { padding: .95rem 1.05rem 1.05rem; }
.svc-card-title { font-size: 1.07rem; font-weight: 700; color: #fff; line-height: 1.4; }
body.login-body { background: linear-gradient(160deg,#0a1428 0%,#0d1c33 55%,#16305a 100%); }
.login-card:has(input[type="text"][name="username"]) { background: #101f3a; border: 1px solid #2b4470; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,20,.5); padding: 1.2rem; color: #f4f7fc; }
.login-card:has(input[type="text"][name="username"]) .login-admin-title { color: #e6c877; text-align: center; }
.login-card:has(input[type="text"][name="username"]) input { min-height: 2.5rem; background: #0a1428; border: 1px solid #2b4470; color: #f4f7fc; border-radius: 10px; padding: .45rem .7rem; width: 100%; }
.login-card:has(input[type="text"][name="username"]) .btn-primary { background: linear-gradient(135deg,#d9c37e,#b3963f); color: #241d05; font-weight: 800; border: none; min-height: 2.6rem; border-radius: 10px; }
.login-card:has(input[type="text"][name="username"]) .login-note { color: #aebdd6; }
#admLogin { background: #101f3a !important; border: 1px solid #2b4470 !important; border-radius: 18px !important; box-shadow: 0 24px 60px rgba(0,0,20,.5); }

/* قاعدة المالك العامة (2026-11-23 ~17:35): أي صورة أو فيديو داخل شرائح الواجهة احتواء كامل بلا أي قصّ */
.hs-slide img, .hs-slide video { object-fit: contain !important; }

/* ===== بطاقة المساعد يميناً + الشعار سطر واحد (أمر المالك 2026-11-23 ~17:52) =====
   (1) بطاقة المساعد الذكي ترجع لليمين كما كانت في تصميم مدينتي المعتمد:
       على الشاشات العريضة (≥1100px) البطاقة في العمود الأول (يمين في RTL)
       بعرضها المعتمد .65fr، ونص الواجهة في العمود الثاني 1.35fr — نفس
       الأحجام السابقة تماماً، تبادل مواضع فقط. تحت 1100px يبقى التكديس
       العمودي الحالي كما هو.
   (2) الشعار كاملاً في سطر واحد بلا أي كسر: nowrap على الشعار كله،
       وحجمه (من site_slogan_size_css) نسبي لعرض عمود النص عبر cqw
       فيصغر تلقائياً ليتسع — والقاعدة التالية حجم احتياطي لمتصفح بلا
       وحدات حاويات. الجزء الذهبي يبقى ذهبياً والأبيض أبيض كما هو. */
.visitor-hero-text { container-type: inline-size; width: 100%; }
.hero-slogan { white-space: nowrap; font-size: clamp(15px, 2.4vw, 30px); }
@media (min-width: 1100px) {
  .visitor-hero-inner { grid-template-columns: .65fr 1.35fr; }
  .visitor-hero-text { grid-column: 2; grid-row: 1; }
  .mrm-hero-card { grid-column: 1; grid-row: 1; }
}

/* ===== إصلاح قصّ نصوص البطل (شكوى المالك 2026-11-24) =====
   الأعراض: عمود نص الواجهة كله يتجاوز الشاشة فتُقصّ نهايات سطور
   العنوان والشعار واسم المؤسسة والوصف معاً. الجذر: عناصر شبكة
   البطل بحجم أدنى تلقائي (min-content) وسطرا الشعار/المؤسسة
   بلا التفاف (nowrap)، فأي تضخيم خارجي لعرض النص — تضخيم
   متصفحات الجوال التلقائي للنص (لا يوجد text-size-adjust في
   التنسيقات)، أو قياسات خط أعرض، أو نسخة تنسيق أقدم محفوظة —
   يدفع مسار الشبكة أعرض من الشاشة ويجرّ بقية النصوص معه.
   الإصلاح بنيوي (لا إخفاء ولا قصّ):
   (1) منع تضخيم النص التلقائي داخل البطل.
   (2) min-width:0 لعناصر شبكة البطل — المسار لا يتجاوز الحاوية
       أبداً فلا يخرج أي نص من الشاشة بسبب جاره.
   (3) حجم اسم المؤسسة على الشاشات الواسعة صار نسبياً لعرض عمود
       النص نفسه (cqw) بدل عرض النافذة (vw)، فيبقى سطراً واحداً
       داخل عموده بهامش أمان حقيقي عند كل عرض.
   (4) تحت 1100px (تكديس عمودي) يلتفّ الشعار واسم المؤسسة عند
       الحاجة بدل أي قصّ — والشعار يبقى سطراً واحداً تاماً على
       الشاشات الواسعة كما أمر المالك. */
.visitor-hero { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.visitor-hero-inner > * { min-width: 0; }
@media (min-width: 1100px) {
  .hero-institution { font-size: clamp(13px, 2.35cqw, 20px); }
}
@media (max-width: 1099px) {
  .hero-institution { white-space: normal; }
  .hero-slogan, .hero-slogan .slogan-gold { white-space: normal; }
}
