@font-face { font-family: 'Cairo Fallback'; src: local('Arial'), local('Tahoma'), local('Noto Sans Arabic'), local('Roboto'); size-adjust: 104%; ascent-override: 125%; descent-override: 55%; line-gap-override: 0%; }
:root {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #24242a;
  --border: #2a2a31;
  --text: #f5f6f8;
  --muted: #a1a3ab;
  --faint: #8b8e98;
  --blue: #0a47f0;
  --blue-2: #5b86ff;
  --blue-soft: rgba(10, 71, 240, .14);
  --success: #22c55e;
  --warning: #f5b014;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Cairo', 'Cairo Fallback', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: .15s; white-space: nowrap; background: var(--surface-3); color: var(--text); }
.btn:hover { filter: brightness(1.12); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(10, 71, 240, .35); }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-whatsapp { background: rgba(34, 197, 94, .12); color: #4ade80; border-color: rgba(34, 197, 94, .35); }
.btn-danger { background: rgba(239, 68, 68, .14); color: #f87171; border-color: rgba(239, 68, 68, .35); }
.btn-success { background: rgba(34, 197, 94, .14); color: #4ade80; border-color: rgba(34, 197, 94, .35); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- الهيدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: .5px; direction: ltr; }
.brand svg { width: 34px; height: 34px; }
.brand b { color: var(--blue-2); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }

@media (max-width: 960px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; background: var(--bg); padding: 12px 16px 20px; border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .menu-toggle { display: inline-grid; place-items: center; margin-inline-start: auto; }
  .header-actions .btn-primary { display: none; }
}

/* ---------- الأقسام ---------- */
.section { padding-top: 64px; padding-bottom: 64px; } /* من غير ما يلغي هامش الجناب بتاع .container */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-block; color: var(--blue-2); background: var(--blue-soft); border: 1px solid rgba(46, 100, 255, .3); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.page-head { padding-top: 44px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); }

.hero { position: relative; overflow: hidden; padding: 72px 0 56px; background:
  radial-gradient(800px 400px at 85% -10%, rgba(10, 71, 240, .35), transparent 60%),
  linear-gradient(180deg, #0f0f12, var(--bg)); }
.hero::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 900; max-width: 720px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 620px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 18px; }
.ticks { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.ticks span::before { content: '✓'; color: var(--blue-2); font-weight: 900; margin-inline-end: 6px; }

.search-box { margin-top: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: end; box-shadow: var(--shadow); }
@media (max-width: 860px) { .search-box { grid-template-columns: 1fr 1fr; } .search-box .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .search-box { grid-template-columns: 1fr; } }

/* ---------- الكروت ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.car-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.car-card:hover { border-color: rgba(46, 100, 255, .5); transform: translateY(-2px); }
.car-card .media { aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 120%, rgba(10, 71, 240, .45), transparent 60%), var(--surface-2); position: relative; }
.car-card .media img { width: 100%; height: 100%; object-fit: cover; }
.car-card .media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.car-card .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-card h3 { font-size: 18px; margin: 0; }
.price { color: var(--blue-2); font-weight: 900; font-size: 20px; }
.price small { font-size: 13px; font-weight: 600; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.specs span { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px 9px; font-size: 12.5px; color: var(--muted); }
.car-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }

.cat-card { text-align: center; padding: 26px 16px; }
.cat-card .code { font-weight: 900; color: var(--blue-2); letter-spacing: 2px; font-size: 22px; direction: ltr; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; inset-inline-start: 20px; width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--blue); border-radius: 8px; font-weight: 900; transform: skewX(-12deg); }

/* ---------- الشارات والتنبيهات ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-primary { background: var(--blue-soft); color: #7ea0ff; border-color: rgba(46, 100, 255, .35); }
.badge-info { background: rgba(56, 189, 248, .12); color: #7dd3fc; }
.badge-success { background: rgba(34, 197, 94, .12); color: #4ade80; }
.badge-warning { background: rgba(245, 176, 20, .12); color: #fbbf24; }
.badge-danger { background: rgba(239, 68, 68, .12); color: #f87171; }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.alert-success { border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .08); }
.alert-danger { border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }
.alert-warning { border-color: rgba(245, 176, 20, .4); background: rgba(245, 176, 20, .08); }
.alert-info { border-color: rgba(46, 100, 255, .4); background: var(--blue-soft); }
.flashes { position: fixed; top: 80px; inset-inline: 16px; z-index: 100; max-width: 520px; margin: 0 auto; }
.flashes .alert { box-shadow: var(--shadow); cursor: pointer; }

/* ---------- النماذج ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: 13.5px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 11px 13px; font: inherit; min-height: 46px; }
.input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea.input { min-height: 96px; resize: vertical; }
input[type=date].input { color-scheme: dark; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 4px; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 620px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.help { font-size: 12.5px; color: var(--faint); }

.upload { border: 1.5px dashed var(--border); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; background: var(--surface-2); cursor: pointer; }
.upload:hover { border-color: var(--blue-2); }
.upload input { display: none; }
.upload .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; flex: none; font-size: 20px; }
.upload.done { border-style: solid; border-color: rgba(34, 197, 94, .45); }
.upload.done .icon { background: rgba(34, 197, 94, .14); }
.upload .name { font-size: 12.5px; color: var(--faint); word-break: break-all; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-size: 13px; font-weight: 700; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255, 255, 255, .015); }

@media (max-width: 700px) {
  .table-cards table.table { min-width: 0; }
  .table-cards thead { display: none; }
  .table-cards tr { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .table-cards td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; }
  .table-cards td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
}

.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.summary-row.total { font-size: 18px; font-weight: 900; border: 0; color: var(--blue-2); }
.summary-row.due { margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-weight: 800; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }
.pagination .current { background: var(--blue); border-color: var(--blue); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filters .input { width: auto; min-width: 150px; flex: 1; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid span { position: absolute; bottom: 0; inset-inline: 0; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-size: 12px; padding: 14px 8px 5px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border: 0; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-size: 28px; font-weight: 900; }
.stat .lbl { color: var(--muted); font-size: 13.5px; }
.stat.attention .num { color: var(--warning); }

.progress-steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.progress-steps div { flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.progress-steps .done { border-color: rgba(34, 197, 94, .45); color: #4ade80; }
.progress-steps .now { border-color: var(--blue-2); color: var(--text); background: var(--blue-soft); }

.gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 120%, rgba(10, 71, 240, .45), transparent 60%), var(--surface-2); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex: none; }
.gallery-thumbs img.active { border-color: var(--blue-2); }

.layout-2 { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.sticky { position: sticky; top: 88px; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } .sticky { position: static; } }

/* ---------- الفوتر ---------- */
.site-footer { border-top: 1px solid var(--border); background: #08080a; padding: 48px 0 90px; margin-top: 40px; color: var(--muted); }
.site-footer h4, .site-footer .f-title { color: var(--text); font-size: 16px; margin: 0 0 12px; }
.site-footer a:hover { color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(34, 197, 94, .45); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- صفحات الدخول ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: radial-gradient(700px 360px at 50% -10%, rgba(10, 71, 240, .3), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .brand { justify-content: center; margin-bottom: 22px; font-size: 22px; }
.otp-input { text-align: center; letter-spacing: 12px; font-size: 26px; font-weight: 900; direction: ltr; }

/* ---------- لوحة التحكم ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #0e0e11; border-inline-end: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 18px; }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a.active { background: var(--blue-soft); color: #fff; box-shadow: inset 3px 0 0 var(--blue-2); }
.sidebar nav .count { margin-inline-start: auto; background: var(--warning); color: #000; border-radius: 999px; font-size: 11.5px; padding: 0 7px; font-weight: 800; }
.sidebar .group { font-size: 11.5px; color: var(--faint); margin: 16px 12px 6px; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: rgba(11, 11, 12, .9); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.admin-top h1 { font-size: 19px; margin: 0; }
.admin-top .user { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.admin-content { padding: 24px; }
.admin .menu-toggle { display: none; margin: 0; }
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 70; transform: translateX(110%); right: 0; left: auto; transition: .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .admin .menu-toggle { display: inline-grid; }
  .admin-top { padding: 12px 16px; }
  .admin-top .user .name { display: none; }
  .admin-content { padding: 16px 16px 90px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 60; background: #0e0e11; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; padding: 8px 0; font-size: 11.5px; color: var(--muted); gap: 2px; }
  .bottom-nav a.active { color: var(--blue-2); }
  .bottom-nav span { font-size: 20px; line-height: 1; }
}
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 65; display: none; }
.overlay.show { display: block; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.inline-form { display: inline; }
.stack > * + * { margin-top: 18px; }
.perm-group { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); }
.perm-group h4 { font-size: 15px; }
.diff-box { background: var(--blue-soft); border: 1px solid rgba(46, 100, 255, .4); border-radius: 12px; padding: 14px; }

/* ---------- الكابتشا ---------- */
.captcha-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.captcha-img { border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.captcha-input { width: 130px !important; flex: none; letter-spacing: 4px; font-weight: 800; text-transform: uppercase; text-align: center !important; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; }

/* ---------- صفحة التواصل ---------- */
.contact-hero { padding: 56px 0 36px; background: radial-gradient(700px 320px at 85% -20%, rgba(10, 71, 240, .32), transparent 60%), linear-gradient(180deg, #0f0f12, var(--bg)); border-bottom: 1px solid var(--border); }
.contact-hero h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; margin: 0 0 8px; }
.contact-hero p { color: var(--muted); max-width: 640px; margin: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -28px; position: relative; z-index: 2; }
@media (max-width: 960px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; transition: .2s; }
.contact-card:hover { border-color: rgba(46, 100, 255, .5); transform: translateY(-2px); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; stroke: #7ea0ff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card.wa .ic { background: rgba(34, 197, 94, .12); }
.contact-card.wa .ic svg { stroke: #4ade80; }
.contact-card h3 { font-size: 15px; margin: 0 0 4px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 14px; margin: 0; display: block; }
.contact-card a:hover { color: var(--text); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-top: 22px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.map-card { padding: 0; overflow: hidden; }
.map-card iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }
.map-card .map-foot { padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hours { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.hours .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.type-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.type-chips label { cursor: pointer; }
.type-chips input { position: absolute; opacity: 0; pointer-events: none; }
.type-chips span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.type-chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.type-chips input:focus-visible + span { outline: 2px solid var(--blue-2); outline-offset: 2px; }

/* ---------- رسالة تثبيت التطبيق ---------- */
.install-sheet { position: fixed; z-index: 90; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  padding: 18px 18px 16px; border-radius: 22px; color: var(--text);
  background: linear-gradient(160deg, rgba(30, 32, 44, .94), rgba(12, 12, 16, .96)) padding-box,
              linear-gradient(140deg, rgba(46, 100, 255, .9), rgba(255, 255, 255, .12) 45%, rgba(46, 100, 255, .5)) border-box;
  border: 1px solid transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transform: translateY(130%); opacity: 0; transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .3s; }
.install-sheet.show { transform: none; opacity: 1; }
.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-inline-end: 26px; }
.install-head img { width: 60px; height: 60px; border-radius: 16px; box-shadow: 0 8px 22px rgba(10, 71, 240, .35); flex: none; }
.install-head b { display: block; font-size: 17px; font-weight: 900; }
.install-head small { color: var(--muted); font-size: 13px; line-height: 1.6; display: block; }
.install-close { position: absolute; top: 10px; inset-inline-end: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.install-ios ol { margin: 0; padding-inline-start: 22px; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.install-ios svg { vertical-align: middle; color: #7ea0ff; margin: 0 2px; }

/* لما الموقع يتفتح كتطبيق */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .wa-float { bottom: calc(18px + env(safe-area-inset-bottom)); }
  body { overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
}

/* ---------- عرض الفلاش ---------- */
.promo-bar { position: relative; z-index: 60; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, #061a5c 0%, #0a47f0 45%, #2e64ff 60%, #061a5c 100%); background-size: 220% 100%; animation: promo-sheen 9s linear infinite;
  border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 6px 24px rgba(10, 71, 240, .35); }
.promo-bar[hidden] { display: none; }
.promo-bar.promo-in { animation: promo-sheen 9s linear infinite, promo-drop .5s ease-out; }
@keyframes promo-sheen { to { background-position: -220% 0; } }
@keyframes promo-drop { from { transform: translateY(-100%); opacity: 0; } }
.promo-inner { display: flex; align-items: center; gap: 14px; min-height: 52px; padding-block: 8px; flex-wrap: wrap; justify-content: center; }
.promo-pct { font-size: 24px; font-weight: 900; line-height: 1; background: #fff; color: #0a47f0; padding: 6px 12px; border-radius: 12px; direction: ltr;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.promo-pct::before { content: '-'; }
.promo-text { font-size: 15px; }
.promo-text b { font-weight: 900; }
.promo-timer { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .28); padding: 6px 12px; border-radius: 999px; }
.promo-timer small { opacity: .8; }
.promo-timer b { font-variant-numeric: tabular-nums; letter-spacing: 1px; font-size: 16px; }
.promo-cta { background: #fff; color: #0a47f0; font-weight: 900; }
.promo-cta:hover { background: #e9efff; }
.promo-x { background: none; border: 0; color: #fff; opacity: .7; font-size: 22px; cursor: pointer; padding: 0 6px; line-height: 1; }
.promo-x:hover { opacity: 1; }
.old-price { color: var(--muted); font-weight: 600; font-size: .75em; }
.promo-tag { display: inline-block; background: #ff3b5c; color: #fff; font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 999px; vertical-align: middle; direction: ltr; }
.promo-row b, .promo-row span { color: #ff6b85; }
@media (max-width: 640px) {
  .promo-inner { gap: 8px; padding-inline-end: 34px; }
  .promo-pct { font-size: 20px; padding: 5px 9px; }
  .promo-text { font-size: 13px; flex: 1 1 60%; }
  .promo-x { position: absolute; top: 6px; inset-inline-end: 8px; }
}
@media (prefers-reduced-motion: reduce) { .promo-bar, .promo-bar.promo-in { animation: none; } }

/* ---------- لوحة التحكم ---------- */
.dash-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(circle at 0% 0%, rgba(10, 71, 240, .28), transparent 55%), linear-gradient(135deg, #15161b, #0f1013); }
.dash-hero h2 { margin: 2px 0 4px; font-size: 24px; }
.dash-hero p { margin: 0; }
.dash-date { color: var(--blue-2); font-weight: 700; font-size: 13px; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-promo { display: block; margin-bottom: 18px; padding: 12px 16px; border-radius: 12px; color: #fff; background: linear-gradient(100deg, #0a47f0, #2e64ff); box-shadow: 0 8px 24px rgba(10, 71, 240, .3); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .15s; overflow: hidden; }
.kpi:hover { border-color: #3a3a44; transform: translateY(-2px); }
.kpi.hot { border-color: rgba(245, 176, 20, .45); box-shadow: inset 0 0 0 1px rgba(245, 176, 20, .12); }
.kpi.hot .kpi-num { color: #fbbf24; }
.kpi.danger { border-color: rgba(239, 68, 68, .45); }
.kpi.danger .kpi-num { color: #f87171; }
.kpi-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.kpi-num { font-size: 30px; font-weight: 900; line-height: 1.1; }
.kpi-num.sm { font-size: 22px; }
.kpi-lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; grid-auto-flow: column; align-content: center; gap: 1px;
  background: radial-gradient(closest-side, var(--surface) 78%, transparent 80% 100%), conic-gradient(var(--success) calc(var(--p) * 1%), var(--surface-3) 0); }
.kpi-ring b { font-size: 19px; font-weight: 900; }
.kpi-ring small { color: var(--muted); font-size: 12px; }
.revenue { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: end; margin-bottom: 18px; }
.rev-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rev-nums div { display: flex; flex-direction: column; gap: 4px; }
.rev-nums b { font-size: 22px; font-weight: 900; }
.rev-nums b.big { font-size: 26px; color: var(--blue-2); }
.rev-nums .muted-num { color: var(--muted); }
.rev-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 100%; max-width: 28px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #2e64ff, #0a47f0); min-height: 4px; opacity: .9; }
.bar-col:last-child .bar { background: linear-gradient(180deg, #4ade80, #16a34a); }
.bar-col small { color: var(--muted); font-size: 11px; }
.count-pill { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-3); font-size: 13px; font-weight: 800; }
.empty { padding: 18px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); font-size: 14px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dash-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; transition: .15s; }
.dash-list li:hover { border-color: var(--border); }
.av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--blue-soft); color: var(--blue-2); }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dl-main b { font-size: 14.5px; }
.dl-main span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-side { display: flex; align-items: center; gap: 6px; }
.date-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.date-chip.today { background: rgba(46, 100, 255, .16); color: #7ea1ff; }
.date-chip.late { background: rgba(239, 68, 68, .14); color: #f87171; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--surface-3); }
@media (max-width: 900px) {
  .revenue { grid-template-columns: 1fr; }
  .dash-hero { padding: 18px; }
  .dash-hero h2 { font-size: 20px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-num { font-size: 24px; }
  .rev-nums b, .rev-nums b.big { font-size: 18px; }
}

/* ---------- المقالات ---------- */
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { border-color: #3a3a44; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.post-media { display: block; aspect-ratio: 1200 / 630; background: var(--surface-2); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:hover .post-media img, .post-lead:hover .post-media img { transform: scale(1.03); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-body h3 { margin: 2px 0; font-size: 18px; line-height: 1.5; }
.post-body h3 a:hover, .post-lead h2 a:hover { color: var(--blue-2); }
.post-body p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.read-more { color: var(--blue-2); font-weight: 700; margin-top: 8px; font-size: 14px; }
.post-lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; margin-bottom: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.post-lead .post-body { padding: 28px; justify-content: center; }
.post-lead h2 { margin: 4px 0 6px; font-size: 26px; line-height: 1.45; }
.post-lead .btn { align-self: flex-start; margin-top: 12px; }
.crumbs { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.crumbs a:hover { color: var(--text); }
.post-header { max-width: 860px; }
.post-header h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.35; margin: 0 0 10px; }
.post-header .lead { font-size: 17px; color: var(--muted); margin: 0 0 16px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.post-meta .av { width: 42px; height: 42px; background: var(--blue); color: #fff; }
.post-cover { margin: 0 0 28px; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--border); }
.post-cover img { display: block; width: 100%; height: auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.post-aside { position: sticky; top: 90px; }
.cta-card { background: radial-gradient(circle at 100% 0, rgba(10, 71, 240, .25), transparent 60%), var(--surface); }
.prose { font-size: 17px; line-height: 2; max-width: 760px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; line-height: 1.5; padding-inline-start: 14px; border-inline-start: 4px solid var(--blue); }
.prose h3 { font-size: 19px; margin: 24px 0 6px; }
.prose p { margin: 0 0 16px; color: #d9dae0; }
.prose ul { margin: 0 0 18px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; color: #d9dae0; }
.prose li::marker { color: var(--blue-2); }
.prose strong { color: #fff; }
.prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 4px; }
.prose .tip { margin: 18px 0; padding: 14px 18px; border-radius: 12px; background: var(--blue-soft); border: 1px solid rgba(46, 100, 255, .35); color: #e3e9ff; }
.prose .tip::before { content: '💡 '; }
@media (max-width: 900px) {
  .post-lead { grid-template-columns: 1fr; }
  .post-lead .post-body { padding: 20px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .prose { font-size: 16px; }
}

/* ---------- الإضافات بسعر ---------- */
.extras-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.extra-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: .15s; }
.extra-opt:hover { border-color: #3a3a44; }
.extra-opt:has(input:checked), .extra-opt:has(select option:checked:not([value="0"])) { border-color: var(--blue); background: var(--blue-soft); }
.extra-ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-3); font-size: 20px; }
.extra-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.extra-txt small { color: var(--muted); font-size: 12.5px; }
.extra-price { color: var(--blue-2); font-weight: 800; font-size: 13.5px; }
.extra-opt input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--blue); flex: none; }
.extra-qty, .extra-opt .extra-qty, .field .extra-opt .extra-qty { width: 76px; min-height: 40px; padding: 6px 8px; flex: none; }

/* ---------- تقويم الأسطول ---------- */
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-month { font-size: 18px; min-width: 130px; text-align: center; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cal { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.cal th, .cal td { border-bottom: 1px solid var(--border); padding: 0; text-align: center; min-width: 30px; height: 40px; }
.cal thead th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 700; padding: 4px 0; line-height: 1.3; z-index: 1; }
.cal thead th small { display: block; font-size: 10px; opacity: .7; }
.cal .cal-car { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 2; text-align: start; padding: 6px 12px; min-width: 170px; white-space: nowrap; border-inline-end: 1px solid var(--border); font-size: 13px; }
.cal thead .cal-car { background: var(--surface-2); z-index: 3; }
.cal .is-weekend { color: #7ea1ff; }
.cal .is-today { background: rgba(46, 100, 255, .1); }
.cal thead th.is-today { background: var(--blue); color: #fff; }
.cal-bk { display: block; height: 26px; margin: 0 -1px; line-height: 26px; color: #fff; font-size: 11px; font-weight: 700; overflow: visible; white-space: nowrap; text-align: start; padding-inline-start: 4px; }
.cal-bk.start { border-start-start-radius: 7px; border-end-start-radius: 7px; margin-inline-start: 3px; }
.cal-bk.pending, .lg.pending { background: #b7791f; }
.cal-bk.confirmed, .lg.confirmed { background: #0a47f0; }
.cal-bk.active, .lg.active { background: #16a34a; }
.cal-bk.completed, .lg.completed { background: #3f3f46; }
.cal-bk.maint, .lg.maint { background: rgba(239, 68, 68, .25); text-align: center; padding: 0; }
.cal-free { display: block; height: 26px; margin: 0 3px; border-radius: 6px; }
.cal-free:hover { background: var(--blue-soft); outline: 1px dashed rgba(46, 100, 255, .5); }
.occ { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; width: 120px; margin-bottom: 4px; }
.occ span { display: block; height: 100%; background: linear-gradient(90deg, #0a47f0, #22c55e); }
.chips .chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- التقييمات ---------- */
.stars { color: #fbbf24; letter-spacing: 2px; white-space: nowrap; direction: ltr; display: inline-block; }
.stars .off { color: var(--surface-3); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.review { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review blockquote { margin: 0; color: #d9dae0; line-height: 1.8; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review-reply { font-size: 13.5px; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); color: #d6e0ff; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; margin: 18px 0 14px; direction: ltr; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 46px; line-height: 1; color: var(--surface-3); cursor: pointer; transition: .12s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #fbbf24; transform: scale(1.05); }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 6px; }

/* ---------- صفحات المناطق ---------- */
.area-hero { padding: 36px 0 26px; background: radial-gradient(circle at 85% 0%, rgba(10, 71, 240, .28), transparent 55%); border-bottom: 1px solid var(--border); }
.area-hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.3; margin: 6px 0 10px; }
.area-hero .lead { font-size: 17px; color: #d0d2d8; max-width: 760px; margin: 0 0 14px; }
.area-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--blue-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.area-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.area-links a { color: var(--blue-2); }
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.area-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: .2s; }
.area-card:hover { border-color: var(--blue); transform: translateY(-3px); }
.area-card svg { width: 48px; height: 48px; color: var(--blue-2); }
.area-card b { font-size: 17px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips .chip:hover { border-color: var(--blue); color: var(--text); }

/* زرار الإشعارات */
.push-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.push-btn:hover { border-color: var(--blue); }

/* موافقة الكوكيز (Google Analytics / Meta Pixel) */
.consent { position: fixed; z-index: 80; bottom: 16px; inset-inline: 16px; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.45); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 260px; font-size: 13px; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; }

/* تتبّع العربيات (iTrack) */
.trk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.trk-map-card { padding: 0; overflow: hidden; position: relative; }
#trk-map { height: 68vh; min-height: 420px; background: #1a1d24; }
.trk-route-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); }
.trk-side { max-height: 80vh; overflow: auto; }
.trk-list { list-style: none; margin: 0; padding: 0; }
.trk-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.trk-item:hover { background: var(--surface-2); }
.trk-item.active { border-color: var(--blue); background: rgba(10, 71, 240, .1); }
.trk-item b { display: block; font-size: 14px; }
.trk-item small { display: block; font-size: 12px; }
.trk-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; flex: none; }
.trk-rent { color: var(--warning); } .trk-late { color: var(--danger); font-weight: 700; }
.trk-pin { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.45); display: grid; place-items: center; color: #fff; font-size: 13px; }
.trk-pin span { display: inline-block; line-height: 1; }
.trk-pop { min-width: 170px; line-height: 1.6; font-family: inherit; } .trk-pop a { color: #0a47f0; display: block; }
.trk-alarm-list { list-style: none; padding: 0; margin: 0; font-size: 13px; } .trk-alarm-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.leaflet-container { font-family: inherit; direction: ltr; } .leaflet-popup-content { direction: rtl; text-align: right; color: #111; }
@media (max-width: 900px) { .trk-layout { grid-template-columns: 1fr; } #trk-map { height: 55vh; } .trk-side { max-height: none; } }

/* صفحة السواق */
.trip-list { display: grid; gap: 14px; max-width: 640px; }
.trip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trip-when { font-size: 16px; }
.trip-title { margin: 8px 0 10px; font-size: 18px; }
.trip-row { margin: 8px 0; line-height: 1.6; }
.trip-stops { margin: 6px 0 0; padding-inline-start: 22px; }
.trip-notes { background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
.trip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.trip-btn { font-size: 18px; padding: 16px; margin-top: 8px; }
.trip-assign label { display: block; margin-bottom: 4px; }

/* تابع سواقك */
#live-map { height: 60vh; min-height: 360px; border-radius: 14px; overflow: hidden; background: #1a1d24; }

/* ===== صفحات الدخول والتسجيل ===== */
body { overflow-x: clip; }
.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { position: relative; overflow: hidden; padding: 44px 48px; display: flex; flex-direction: column;
  background: radial-gradient(700px 520px at 85% 0%, rgba(10, 71, 240, .55), transparent 60%), radial-gradient(520px 420px at 0% 100%, rgba(10, 71, 240, .25), transparent 60%), #090b14;
  border-inline-end: 1px solid var(--border); }
.auth-brand { font-size: 22px; }
.auth-pitch { margin-top: auto; margin-bottom: auto; padding-top: 40px; }
.auth-pitch h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; margin: 0 0 26px; font-weight: 900; }
.auth-pitch h2 span { background: linear-gradient(90deg, #9fb8ff, #2f6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-perks li { display: flex; gap: 14px; align-items: center; font-size: 16px; font-weight: 600; color: #dfe5f5; }
.auth-perks i { font-style: normal; width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 20px; }
.auth-car { width: 78%; max-width: 420px; margin-top: 30px; align-self: center; opacity: .95; }
.auth-car svg { width: 100%; height: auto; display: block; }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(18px, 5vw, 64px); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-brand-m { visibility: hidden; font-size: 20px; }
.auth-lang { color: var(--muted); font-weight: 700; font-size: 14px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }
.auth-lang:hover { color: var(--text); border-color: var(--blue-2); }
.auth-form { width: 100%; max-width: 520px; margin: auto; padding: 32px 0; }
.auth-title, .auth-form > h2 { font-size: 30px; font-weight: 900; margin: 0 0 6px; line-height: 1.25; }
.auth-sub, .auth-form > h2 + p.muted { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.auth-fields .field { margin-bottom: 16px; }
.auth-fields label { font-weight: 700; font-size: 14px; }
.input-lg { height: 52px; font-size: 16px; border-radius: 12px; }
.btn-lg { height: 54px; font-size: 17px; border-radius: 12px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-inline-end: 52px; }
.pw-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.pw-eye:hover, .pw-eye.on { background: var(--surface-3); color: var(--text); }
.auth-link-sm { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--blue-2); }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); }
.auth-alt a { color: var(--blue-2); font-weight: 700; }
.auth-terms { margin: 4px 0 16px; }
.auth-terms a { color: var(--blue-2); font-weight: 700; }
.auth-steps { list-style: none; padding: 0; margin: 4px 0 24px; display: flex; gap: 8px; }
.auth-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.auth-steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-steps b { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 13px; }
.auth-steps li.on { border-color: var(--blue); color: var(--text); background: var(--blue-soft); }
.auth-steps li.on b { background: var(--blue); }
.auth-back { text-align: center; margin: 0; font-size: 14px; }
.auth-back a { color: var(--muted); }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-brand-m { visibility: visible; }
  .auth-main { padding: 18px 16px 24px; background: radial-gradient(520px 300px at 50% -10%, rgba(10, 71, 240, .32), transparent 65%), var(--bg); }
  .auth-form { padding: 20px 0 24px; margin: 0 auto; }
  .auth-title, .auth-form > h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .auth-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .auth-steps li { flex-direction: column; text-align: center; padding: 8px 4px; gap: 4px; font-size: 12px; }
  .auth-steps li span { white-space: normal; }
}

/* عناصر الجريد ماتعرّضش الصفحة على الموبايل */
.layout-2 > *, .grid > *, .form-row > *, .stack > * { min-width: 0; }
img, svg, video, iframe { max-width: 100%; }

.filters .date-f { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; }
.filters .date-f small { font-size: 12px; font-weight: 700; color: var(--muted); }
.filters .date-f .input { width: 100%; min-width: 0; }
