/* Offroading Camping Trips — تصميم التطبيق (غروب صحراوي / ليلي) — ألوان اللوقو */
:root {
  --bg: #f5efe2;          /* كريمي (خلفية اللوقو) */
  --bg2: #ece1cd;
  --card: #fffdf8;
  --line: #e4d9c2;
  --txt: #22303a;         /* كحلي (نص اللوقو) */
  --muted: #7c7568;
  --accent: #e8542a;      /* أحمر برتقالي (غروب اللوقو) */
  --accent2: #c8431a;
  --accent-soft: #fce6d7;
  --gold: #e0a52b;        /* أصفر ذهبي (شمس اللوقو) */
  --green: #2e7d4f;       /* أخضر غابات */
  --green-soft: #e2f2e7;
  --red: #d13421;
  --red-soft: #fbe5e2;
  --blue: #2a6da0;        /* أزرق كحلي */
  --blue-soft: #e2ecf5;
  --warn-soft: #fbf1d6;
  --topbar: rgba(245,239,226,.92);
  --shadow: 0 2px 12px rgba(40,50,60,.09);
  --radius: 14px;
}
[data-theme="dark"] {
  --bg: #14181d;          /* كحلي فحمي */
  --bg2: #1d232b;
  --card: #232a33;
  --line: #343d48;
  --txt: #eef2f6;
  --muted: #9aa4b0;
  --accent: #f2683a;      /* غروب فاتح */
  --accent2: #e0521f;
  --accent-soft: #3a2418;
  --gold: #e9b94a;
  --green: #48b573;
  --green-soft: #16301f;
  --red: #ef6a55;
  --red-soft: #331915;
  --blue: #5aa3dd;
  --blue-soft: #16293a;
  --warn-soft: #322a12;
  --topbar: rgba(20,24,29,.92);
  --shadow: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
  font-family: 'Tajawal', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  padding-bottom: 84px;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── الهيدر ─── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--topbar); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 900;
  font-family: 'Montserrat', sans-serif; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { color: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; font-size: 20px; }
.badge {
  position: absolute; top: -6px; inset-inline-start: -8px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.pill {
  padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 700;
  background: var(--accent); color: #fff;
}
.pill-admin { background: var(--card); color: var(--accent); border: 1px solid var(--accent); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--txt); font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 700;
}

/* ─── الحاوية والبطاقات ─── */
.container { max-width: 640px; margin: 0 auto; padding: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-title { margin: 18px 0 10px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sec-title:first-child { margin-top: 4px; }

/* ─── الأزرار ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 16px; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-dark { background: var(--bg2); color: var(--txt); border: 1px solid var(--line); }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: transparent; color: var(--red); border: 1px solid var(--red); }
.btn-ghost { background: transparent; color: var(--txt); border: 1px solid var(--line); }

/* ─── النماذج ─── */
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  font-family: inherit; font-size: 15px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
input[type=file] { padding: 10px; font-size: 13px; background: var(--bg2); }
input[type=checkbox] { width: auto; accent-color: var(--accent); transform: scale(1.3); margin-inline-end: 6px; }
input[type=radio] { width: auto; accent-color: var(--accent); transform: scale(1.3); margin-inline-end: 6px; }
::placeholder { color: var(--muted); opacity: .7; }
.check-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-top: 10px;
  font-size: 14px; font-weight: 500; color: var(--txt); cursor: pointer;
}

/* ─── التنبيهات ─── */
.flashes { max-width: 640px; margin: 10px auto 0; padding: 0 16px; }
.flash {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
  font-size: 14px; font-weight: 500; animation: slideIn .3s; word-break: break-word;
}
.flash-ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); }
.flash-err { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); }
.flash-warn { background: var(--warn-soft); color: var(--gold); border: 1px solid var(--gold); }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } }

/* ─── القائمة السفلية ─── */
.bottomnav {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 50;
  display: flex; justify-content: space-around;
  background: var(--topbar); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--muted); flex: 1; padding: 4px 0;
}
.bottomnav a i { font-style: normal; font-size: 20px; }
.bottomnav a.on { color: var(--accent); font-weight: 700; }

/* ─── شارات الحالة ─── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.tag-gold { background: var(--warn-soft); color: var(--gold); }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-gray { background: var(--bg2); color: var(--muted); }

/* ─── الفعاليات ─── */
.event-card { display: flex; gap: 14px; }
.event-date {
  flex-shrink: 0; width: 60px; text-align: center;
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px;
}
.event-date b { display: block; font-size: 22px; color: var(--accent); }
.event-date span { font-size: 11px; color: var(--muted); }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-size: 15px; margin-bottom: 4px; }

/* ─── بلاطات التصنيفات بالرئيسية ─── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  text-align: center; padding: 15px 6px 12px; position: relative; box-shadow: var(--shadow);
}
.tile .em { font-size: 30px; display: block; line-height: 1.2; }
.tile b { font-size: 14px; display: block; margin-top: 4px; }
.tile small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 1px; }
.tile .cnt {
  display: inline-block; margin-top: 7px; background: var(--green-soft); color: var(--green);
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 10px;
}

/* ─── أقرب المواعيد (الرئيسية) — شبكة مضغوطة ─── */
.nearest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.nearest-card {
  display: flex; flex-direction: column; gap: 5px; padding: 10px; text-decoration: none;
}
.nc-kind { font-size: 10.5px; padding: 2px 7px; }
.nearest-card .tag { font-size: 10.5px; padding: 2px 7px; }
.nc-title {
  font-size: 12.5px; line-height: 1.35; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nc-date { font-size: 11px; }
.nc-reg { align-self: flex-start; }

/* ─── المتجر ─── */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product { text-align: center; }
.product .emoji { font-size: 44px; display: block; margin: 6px 0; }
.product .pimg {
  width: 100%; height: 120px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); margin: 6px 0; background: var(--bg2);
}
.price { color: var(--accent); font-weight: 900; font-size: 16px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.media-grid img, .media-grid video {
  width: 100%; height: 140px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); background: #000;
}

/* ─── الجداول ─── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 8px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-size: 12px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ─── بطاقة العضوية ─── */
.member-card {
  background: linear-gradient(145deg, #2b2016 0%, #1a1611 55%, #4a3413 100%);
  border: 1px solid var(--gold); border-radius: 18px; padding: 22px;
  position: relative; overflow: hidden; color: #f0e9dd;
}
.member-card::after {
  content: '🏴'; position: absolute; left: -18px; bottom: -26px;
  font-size: 120px; opacity: .06;
}
.member-card .logo { width: 60px; margin-bottom: 8px; }
.member-card h2 { font-size: 24px; }
.member-card .muted { color: #a99a83; font-size: 15px; }
.member-no { color: var(--gold); font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.mc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 17px; }
.mc-row b { font-size: 17px; }
.mc-row span { color: #a99a83; font-size: 14px; }
.qr-box { background: #fff; border-radius: 12px; padding: 10px; width: fit-content; margin: 14px auto 0; }

/* ─── الإحصائيات ─── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 22px; color: var(--accent); }
.stat span { font-size: 11px; color: var(--muted); }

/* ─── الواجهة الرئيسية (الصحراء) ─── */
.hero { text-align: center; padding: 30px 10px 10px; }
.hero img { width: 110px; }
.hero h1 { font-size: 26px; margin: 10px 0 6px; }
.hero p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.desert-hero {
  margin: -14px -14px 12px;
  padding: 18px 16px 0;
  text-align: center;
  background:
    linear-gradient(180deg, #ffd9a0 0%, #ffc178 30%, #f8a95c 55%, #e88f45 75%, #d97b35 100%);
  border-bottom: 4px solid var(--accent2);
  position: relative; overflow: hidden;
}
.desert-hero .sun {
  position: absolute; top: 16px; inset-inline-start: 12%;
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, #fff3cf 0%, #ffdf7e 55%, rgba(255,220,120,0) 72%);
}
.desert-hero .dunes { display: block; width: 116%; height: 44px; margin: 12px -8% 0; }
.desert-hero .logo-big {
  width: 126px; height: 126px; object-fit: contain;
  filter: drop-shadow(0 6px 13px rgba(90,50,0,.38));
  position: relative; z-index: 2;
}
.desert-hero h1 {
  font-family: 'Montserrat', sans-serif; font-size: 21px; font-weight: 800;
  letter-spacing: .4px; line-height: 1.22; color: #4a2c10; margin: 8px 0 3px; position: relative; z-index: 2;
}
.desert-hero h1 b { color: #a33f0f; font-weight: 900; }
.desert-hero p { color: #6b3f1a; font-weight: 700; font-size: 14px; max-width: 460px; margin: 0 auto; position: relative; z-index: 2; }
.socials { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow);
}

/* ─── متفرقات ─── */
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.checkin-code {
  font-size: 44px; font-weight: 900; letter-spacing: 12px;
  color: var(--accent); text-align: center; padding: 10px;
  background: var(--bg2); border-radius: 14px; border: 1px dashed var(--accent);
  direction: ltr;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.steps { display: flex; gap: 6px; margin: 14px 0; }
.steps div { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.steps div.done { background: var(--accent); }
details { margin-top: 8px; }
summary { cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; }
.back-bar { margin-bottom: 12px; }
.back-bar a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 700; font-size: 14px;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 20px; box-shadow: var(--shadow);
}
.knet-frame { background: #f4f6f8; color: #111; border-radius: 14px; padding: 18px; border: 1px solid #dde; }
.knet-frame label { color: #445; }
.knet-frame input, .knet-frame select { background: #fff; color: #111; border-color: #ccd; }
.knet-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #0055a5; padding-bottom: 10px; margin-bottom: 12px; }
.knet-head b { color: #0055a5; font-size: 18px; }
@media (min-width: 700px) { .products { grid-template-columns: repeat(3, 1fr); } }

/* ─── الطباعة (ملفات الأرشيف) ─── */
.print-only { display: none; }
@media print {
  html, html[data-theme="dark"] {
    --bg: #fff; --bg2: #f5f5f5; --card: #fff; --line: #bbb;
    --txt: #000; --muted: #444; --topbar: #fff; --shadow: none;
  }
  body { background: #fff !important; padding: 0; }
  .topbar, .bottomnav, .back-bar, .flashes, .no-print, button { display: none !important; }
  .print-only { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

/* ─── شريط الأخبار المتحرك ─── */
.ticker { overflow: hidden; background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; white-space: nowrap; }
.ticker-track { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0;
  animation: tick 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-weight: 700; font-size: 13px; color: var(--accent2); padding: 0 4px; }
.ticker-sep { color: var(--muted); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── شبكة الخدمات (12 خدمة، 3 أعمدة مضغوطة) ─── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc-tile { display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 6px; text-align: center; }
.svc-tile .ic { font-size: 30px; line-height: 1; }
.svc-tile b { font-size: 12.5px; line-height: 1.25; }
.svc-tile span:not(.ic) { display: none; }         /* الوصف الفرعي مخفي بشبكة 3 أعمدة — يفضّل مساحة بدون سكرول */

/* ─── حركات دخول خفيفة لبطاقات الخدمات + حركات سياقية لمرة واحدة ─── */
@media (prefers-reduced-motion: no-preference) {
  .svc-grid .svc-tile {
    opacity: 0; animation: itemFadeIn .32s ease-out forwards;
  }
  .svc-grid .svc-tile:nth-child(1) { animation-delay: .04s; }
  .svc-grid .svc-tile:nth-child(2) { animation-delay: .08s; }
  .svc-grid .svc-tile:nth-child(3) { animation-delay: .12s; }
  .svc-grid .svc-tile:nth-child(4) { animation-delay: .16s; }
  .svc-grid .svc-tile:nth-child(5) { animation-delay: .20s; }
  .svc-grid .svc-tile:nth-child(6) { animation-delay: .24s; }
  .svc-grid .svc-tile:nth-child(7) { animation-delay: .28s; }
  .svc-grid .svc-tile:nth-child(8) { animation-delay: .32s; }
  .svc-grid .svc-tile:nth-child(9) { animation-delay: .36s; }
  .compass-kaaba { animation: spinIn .6s ease-out; }
  .shimmer-once { animation: shimmerOnce .8s ease-out; }
  .wave-once { animation: waveOnce .8s ease-out; }
  .pulse-once { animation: pulseOnce .6s ease-out; }
}
@keyframes itemFadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@keyframes spinIn { from{transform:rotate(-70deg) scale(.5);opacity:0} to{transform:rotate(0) scale(1);opacity:1} }
@keyframes shimmerOnce { 0%{filter:brightness(1.6)} 100%{filter:brightness(1)} }
@keyframes waveOnce { 0%{transform:translateY(-4px) rotate(-4deg)} 50%{transform:translateY(2px) rotate(3deg)} 100%{transform:none} }
@keyframes pulseOnce { 0%{transform:scale(1)} 30%{transform:scale(1.15)} 100%{transform:scale(1)} }

/* ─── كاميرا AR (بوصلة الشروق والغروب) ─── */
.ar-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: #000; overflow: hidden; }
#arVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ar-fallback-bg { position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(circle at 50% 30%, #1a2338, #04060c 75%); display: none; }
.ar-fallback-bg.show { display: block; }
.ar-topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex;
  align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.ar-iconbtn { width: 38px; height: 38px; border-radius: 50%; background: rgba(20,26,40,.7);
  border: 1px solid rgba(255,255,255,.15); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 16px; }
.ar-title { color: #fff; font-size: 14.5px; font-weight: 600; }
.ar-note { position: absolute; top: 70px; left: 14px; right: 14px; z-index: 5; color: #ffd9d3;
  font-size: 12px; text-align: center; background: rgba(10,14,22,.55); border-radius: 10px;
  padding: 8px 10px; display: none; }
.ar-note.show { display: block; }
.ar-reticle { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px;
  border: 2px solid rgba(255,255,255,.5); border-radius: 50%; z-index: 4; pointer-events: none; }
.ar-reticle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 4px; height: 4px;
  margin: -2px; background: #fff; border-radius: 50%; }
.ar-target { position: absolute; top: 50%; left: 50%; z-index: 3; display: flex;
  flex-direction: column; align-items: center; gap: 4px;
  transition: transform .12s linear, opacity .2s ease; opacity: 0; pointer-events: none; }
.ar-target.visible { opacity: 1; }
.ar-target-dot { width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,164,88,.95), rgba(224,164,88,0));
  box-shadow: 0 0 18px 6px rgba(224,164,88,.55); animation: arPulse 1.8s ease-in-out infinite; }
@keyframes arPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.ar-target-label { background: rgba(10,14,22,.7); color: #fff; font-size: 11.5px;
  padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.ar-target.onaim .ar-target-dot { background: radial-gradient(circle, rgba(94,208,138,.95), rgba(94,208,138,0));
  box-shadow: 0 0 22px 8px rgba(94,208,138,.6); }
.ar-target.sunset .ar-target-dot { background: radial-gradient(circle, rgba(255,107,74,.95), rgba(255,107,74,0));
  box-shadow: 0 0 18px 6px rgba(255,107,74,.55); }
.ar-target.sunset.onaim .ar-target-dot { background: radial-gradient(circle, rgba(94,208,138,.95), rgba(94,208,138,0));
  box-shadow: 0 0 22px 8px rgba(94,208,138,.6); }
.ar-guidance { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 14px;
  right: 14px; z-index: 5; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.ar-guide-row { background: rgba(10,14,22,.6); color: #fff; font-size: 13.5px; padding: 8px 16px;
  border-radius: 20px; text-align: center; min-width: 200px; }
.ar-guide-row.ok { background: rgba(94,208,138,.85); color: #06210f; font-weight: 700; }

/* ─── ملاءمة الشاشات الضيّقة (6 تبويبات + الهيدر) ─── */
.topbar { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 6px; }
.bottomnav { padding: 5px 2px calc(5px + env(safe-area-inset-bottom)); }
.bottomnav a { flex: 1 1 0; min-width: 0; font-size: 9.5px; gap: 1px; padding: 3px 1px; }
.bottomnav a i { font-size: 18px; }
.brand { min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { flex-shrink: 0; }
.icon-btn { width: 31px; height: 31px; font-size: 14px; }
body { padding-bottom: 72px; }

/* ─── قائمة الإعدادات العلوية (لغة/وضع/من نحن) ─── */
.menu-wrap { position: relative; }
.menu-panel {
  position: absolute; top: 42px; left: 0; right: auto; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(30,30,30,.22); min-width: 220px; padding: 6px; display: none;
}
[dir=ltr] .menu-panel { left: auto; right: 0; }
.menu-panel.open { display: block; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: start;
  padding: 12px; border: 0; background: none; color: var(--txt);
  font-family: inherit; font-size: 14px; font-weight: 700; border-radius: 8px; cursor: pointer;
}
.menu-panel a:active, .menu-panel button:active { background: var(--bg2); }

/* ─── النوافذ المنبثقة ─── */
.modal {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; max-width: 460px; width: 100%; max-height: 82vh; overflow-y: auto;
}

/* ─── زر واتساب العائم ─── */
.wa-float {
  position: fixed; bottom: 84px; inset-inline-end: 14px; z-index: 55;
  width: 50px; height: 50px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 25px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.wa-float:active { transform: scale(.94); }

/* ─── قائمة التجهيزات ─── */
.gear-list { list-style: none; margin: 8px 0 0; padding: 0; }
.gear-list li { padding: 5px 0; font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.gear-list li:last-child { border-bottom: none; }

/* ─── نجوم التقييم ─── */
.stars-row { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 10px 0 4px; }
.stars-row input { display: none; }
.stars-row label { font-size: 36px; color: var(--line); cursor: pointer; margin: 0; transition: color .1s; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--gold); }

/* ─── شريط الأخبار: هوامش جانبية ─── */
.ticker { margin: 8px 12px 4px; }

/* ─── عناوين أقسام قائمة التجهيزات ─── */
.gear-list .gh {
  font-weight: 900; color: var(--accent2); border-bottom: none;
  margin-top: 8px; padding-bottom: 2px; font-size: 14.5px;
}

/* ─── الشاشات العريضة (ماك/آيباد) ─── */
@media (min-width: 700px) {
  .ticker { max-width: 640px; margin: 10px auto 4px; }
  .desert-hero {
    margin: 4px 0 14px; border-radius: var(--radius);
    border: 1px solid var(--line); border-bottom: 4px solid var(--accent2);
  }
  .desert-hero .logo-big { width: 150px; height: 150px; }
  .desert-hero h1 { font-size: 25px; }
  .container { padding-top: 10px; }
  .bottomnav { max-width: 640px; margin: 0 auto; left: 0; right: 0;
    border: 1px solid var(--line); border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0; }
  .wa-float { inset-inline-end: calc(50% - 320px + 14px); }
}

/* ─── صف السلة (ترتيب ثابت بدون التفاف) ─── */
.cart-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-of-type { border-bottom: none; }
.ci-thumb { flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px;
  background: var(--bg2); display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ci-side input { width: 58px; padding: 7px 6px; text-align: center; font-size: 14px; }
.ci-side .price { font-size: 13.5px; }
