/* ===== الألوان حسب الوضع ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #151923;
  --surface2: #1e2431;
  --line: #262d3d;
  --text: #eef0f6;
  --muted: #8e97ab;
  --accent: #8b7cff;
  --grad: linear-gradient(135deg, #8b7cff, #6d5bf0);
  --star: #ffb84d;
  --danger: #ff5d6c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --glass: rgba(11, 13, 18, .88);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f8f6ff;
  --surface2: #efe9ff;
  --line: #e7e1f7;
  --text: #1c1433;
  --muted: #6f6889;
  --accent: #7c3aed;
  --grad: linear-gradient(135deg, #a78bfa, #7c3aed);
  --star: #f59e0b;
  --danger: #e11d48;
  --shadow: 0 10px 30px rgba(124, 58, 237, .12);
  --glass: rgba(255, 255, 255, .92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.ltr { direction: ltr; text-align: start; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.star { color: var(--star); }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 8px 16px 110px; flex: 1; }

/* ===== الشريط العلوي ===== */
.topbar {
  position: sticky; top: 0; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  background: var(--glass); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.logo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 900;
}
.top-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
  font-size: 17px; text-decoration: none;
}
.searchbar { padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 61px; z-index: 14; }
.searchbar input {
  width: 100%; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); outline: none;
}
.searchbar input:focus { border-color: var(--accent); }
.announce {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 16px; background: var(--grad); color: #fff; font-size: 13px;
}
.announce button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 16px; }

/* ===== الأقسام الأفقية (التمرير بدل النزول) ===== */
.block { margin-top: 26px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.block-head h2 { font-size: 18px; }
.more { color: var(--accent); font-size: 14px; font-weight: 600; }
.row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.row::-webkit-scrollbar { display: none; }
.row > * { flex: 0 0 auto; scroll-snap-align: start; }
.shots img {
  height: 260px; width: auto; border-radius: 16px; border: 1px solid var(--line);
  scroll-snap-align: start; flex: 0 0 auto;
}

/* ===== البانر المميز ===== */
.hero {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 16px 10px; margin: 0 -16px; scrollbar-width: none;
}
.hero::-webkit-scrollbar { display: none; }
.hero-item {
  flex: 0 0 88%; max-width: 560px; min-height: 140px; scroll-snap-align: center;
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px;
  background: var(--grad); color: #fff; box-shadow: var(--shadow);
}
.hero-icon { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.3); }
.hero-text { flex: 1; min-width: 0; }
.hero-text .tag { font-size: 11px; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 999px; }
.hero-text h3 { font-size: 18px; margin: 8px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-text p { font-size: 13px; opacity: .85; }
.hero-get { background: #fff; color: #5b43d6; padding: 9px 16px; border-radius: 12px; font-weight: 800; font-size: 14px; }

/* ===== بطاقة التطبيق ===== */
.app-card {
  width: 128px; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.app-card:hover, .app-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); outline: none; }
.app-icon { width: 100%; aspect-ratio: 1; border-radius: 14px; object-fit: cover; background: var(--surface2); }
.app-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.app-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.get {
  margin-top: 6px; text-align: center; padding: 7px 0; border-radius: 10px;
  background: var(--surface2); color: var(--accent); font-weight: 700; font-size: 13px;
}
.get:hover { background: var(--accent); color: #fff; }

/* شبكة العرض (البحث والمفضلة والأقسام) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.grid .app-card { width: auto; }
.page-title { font-size: 22px; margin: 14px 0 6px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center;
}
.cat-tile:hover { border-color: var(--accent); }
.cat-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 22px; font-weight: 800;
}
.cat-tile small { color: var(--muted); }

/* ===== صفحة التفاصيل ===== */
.detail-top { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.back { color: var(--muted); font-size: 14px; }
.top-tools { display: flex; gap: 6px; }
.detail-hero { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.detail-icon { width: 104px; height: 104px; border-radius: 24px; object-fit: cover; flex: 0 0 auto; box-shadow: var(--shadow); }
.detail-hero h1 { font-size: 22px; margin-bottom: 4px; }
.rating-line { margin-top: 6px; font-size: 15px; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-weight: 800; text-decoration: none;
}
.btn.big { width: 100%; margin-top: 18px; padding: 16px; font-size: 16px; box-shadow: var(--shadow); }
.btn.ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.info-grid div {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px;
}
.info-grid span { display: block; font-size: 12px; color: var(--muted); }
.info-grid b { font-size: 14px; }
.desc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; line-height: 1.9; white-space: pre-line; max-height: 7.5em; overflow: hidden;
}
.desc.expanded { max-height: none; }
.link-btn { margin-top: 8px; background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; }
.stars { display: flex; gap: 6px; }
.stars button {
  font-size: 30px; background: none; border: 0; cursor: pointer; color: var(--line);
}
.stars button.on { color: var(--star); }
.install { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.install summary { cursor: pointer; font-weight: 700; }
.pre { white-space: pre-line; line-height: 1.9; margin-top: 10px; font-size: 14px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; margin-top: 16px;
}
.panel h3 { font-size: 16px; margin-bottom: 10px; }

/* ===== صفحة التحميل المؤقتة ===== */
.dl-wrap {
  max-width: 460px; margin: 24px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; box-shadow: var(--shadow);
}
.dl-wrap h2 { margin-bottom: 4px; }
.ring { width: 140px; height: 140px; margin: 18px auto; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 800; }
.ring .fg { transition: stroke-dashoffset 1s linear; }
.dl-actions { margin-top: 18px; }
.dl-actions .btn { width: 100%; padding: 15px; }

/* ===== الشريط السفلي ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 11px; color: var(--muted); padding: 6px 0; border-radius: 14px;
}
.bottom-nav .ni { font-size: 20px; line-height: 1.2; }
.bottom-nav a.active { color: var(--accent); background: var(--surface2); font-weight: 700; }

.footer {
  padding: 20px; text-align: center; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--line); margin-bottom: 70px;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--surface2); border: 1px solid var(--line); color: var(--text);
  padding: 11px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); white-space: nowrap;
}

/* =====================================================
   لوحة التحكم (Admin)
   ===================================================== */
.admin-body .container { padding-bottom: 16px; }
.login {
  max-width: 380px; margin: 12vh auto; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
}
.login .brand { justify-content: center; margin-bottom: 18px; }
.stack { display: grid; gap: 12px; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; }

.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side {
  background: var(--surface); border-inline-end: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; gap: 6px;
}
.side .tab { padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.side .tab.active, .side .tab:hover { background: var(--surface2); color: var(--text); }
.main { padding: 24px; overflow-x: auto; min-width: 0; }
.main h2 { margin-bottom: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat b { font-size: 26px; display: block; margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bars-wrap { padding-bottom: 26px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; }
.bars > div {
  flex: 1; min-height: 2px; position: relative; border-radius: 6px 6px 0 0;
  background: linear-gradient(var(--accent), #6d5bf0);
}
.bars > div small {
  position: absolute; bottom: -22px; left: -6px; right: -6px;
  text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap;
}
.row-bar { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; }
.mini { height: 6px; background: var(--surface2); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.mini i { display: block; height: 100%; background: var(--grad); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; }
.thumb {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  background: var(--surface2); display: grid; place-items: center; font-weight: 700; color: var(--accent);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.shot-row { display: flex; gap: 8px; overflow-x: auto; }
.shot-thumb { height: 110px; width: auto; border-radius: 10px; border: 1px solid var(--line); flex: 0 0 auto; }

@media (max-width: 820px) {
  .admin { grid-template-columns: 1fr; }
  .side {
    flex-direction: row; overflow-x: auto; position: sticky; top: 0; z-index: 5;
    border-inline-end: 0; border-bottom: 1px solid var(--line);
  }
  .side .tab { white-space: nowrap; }
  .two, .form-grid { grid-template-columns: 1fr; }
  .detail-hero { flex-direction: column; text-align: center; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== شريط سفلي بأسلوب LiteAPKs ===== */
.bottom-nav {
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.bottom-nav a {
  background: none !important;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  gap: 3px;
  padding: 6px 0 4px;
  border-radius: 0;
}
.bottom-nav a svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.bottom-nav a.active { color: var(--accent); font-weight: 800; }

/* ===== أيقونات الشريط العلوي ===== */
.top-actions { gap: 14px; }
.top-actions .icon-btn { width: auto; height: auto; padding: 4px; background: none; border: 0; color: var(--text); }
.top-actions .icon-btn svg {
  width: 24px; height: 24px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== ميزات الإصدار 2 ===== */

/* أدوات الترتيب والفلترة */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.sort-select {
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; outline: none;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* اقتراحات البحث */
.suggest {
  position: absolute; inset-inline: 16px; top: 100%; margin-top: 4px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.sg {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.sg:last-child { border-bottom: 0; }

/* بانر الطلبات */
.request-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.request-banner p { margin-top: 4px; }

/* نماذج عامة */
.stack { display: grid; gap: 10px; }
.stack input, .stack textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; outline: none;
}
.stack input:focus, .stack textarea:focus { border-color: var(--accent); }
.stack textarea { resize: vertical; }

/* الطلبات والتصويت */
.req-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.req-item p { margin-top: 4px; }
.vote-btn {
  border: 1px solid var(--line); background: var(--surface2); color: var(--text);
  border-radius: 12px; padding: 7px 12px; cursor: pointer; font: inherit; white-space: nowrap;
}
.vote-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* الإصدارات السابقة */
.ver-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.ver-item p { margin-top: 4px; line-height: 1.6; }
.ver-item .get { margin: 0; padding: 8px 14px; width: auto; white-space: nowrap; }

/* التعليقات */
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.comment p { margin-top: 6px; line-height: 1.7; }

/* صفحة التحميل: الروابط والإبلاغ */
.link-btn-full {
  display: block; width: 100%; margin-top: 10px; padding: 14px; border-radius: 14px;
  background: var(--grad); color: #fff; font-weight: 800; text-align: center;
}
.report-box {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: grid; gap: 8px; text-align: start;
}
.report-box h3 { font-size: 15px; }
.report-box .sort-select { width: 100%; }
.report-box .btn { width: 100%; }

.pre.panel { white-space: pre-line; }
.install-btn { margin-top: 10px; }
.lang-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

/* ===== ميزات الإصدار 3 ===== */
.more-wrap { display: flex; justify-content: center; margin: 16px 0 8px; }
.more-wrap .btn { min-width: 160px; }
.ad-slot { margin: 16px 0; text-align: center; overflow: hidden; }
.ad-slot img, .ad-slot iframe { max-width: 100%; }

/* ===== تحسينات الإصدار 4 ===== */
.link-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.link-row .link-btn-full { flex: 1; margin: 0; }
.lang-top { width: auto; padding: 4px 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.to-top {
  position: fixed; inset-inline-end: 16px; bottom: 80px; z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 20px; box-shadow: var(--shadow);
}
.to-top.hidden { display: none; }

/* ===== أزرار التحميل الكبيرة (الإصدار 5) ===== */
.dl-pill {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; margin: 10px 0; padding: 14px 18px; box-sizing: border-box;
  border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(180deg, #8bd048, #6fb233);
  box-shadow: 0 8px 20px rgba(111, 178, 51, 0.35); transition: transform 0.15s;
}
.dl-pill:active { transform: scale(0.98); }
.dl-pill svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dl-pill.alt {
  min-height: 48px; font-size: 15px; color: var(--text); background: var(--surface2);
  border: 1px solid var(--line); box-shadow: none;
}


/* ===== القائمة الجانبية (تستعمل نفس أيقونات الشريط السفلي) ===== */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer.open { pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(78vw, 300px); overflow-y: auto;
  background: var(--bg); padding: 14px 12px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
}
.drawer.open .drawer-panel { transform: translateX(0); visibility: visible; box-shadow: 4px 0 24px rgba(0, 0, 0, .35); }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.drawer-head .icon-btn { width: auto; height: auto; padding: 4px; background: none; border: 0; color: var(--text); }
.drawer-nav, .drawer-cats { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px;
  color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none;
}
.drawer-nav a svg {
  width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.drawer-nav a.active { color: var(--accent); background: var(--surface2); font-weight: 800; }
.drawer-title { margin: 18px 12px 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.drawer-cats a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-size: 15px; text-decoration: none;
}
.drawer-cats a::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); }

/* ===== أيقونة القائمة (☰) وزر الإغلاق: نفس ستايل أيقونات الشريط العلوي ===== */
.topbar > #menuBtn { width: auto; height: auto; padding: 4px; background: none; border: 0; color: var(--text); }
.topbar > #menuBtn svg, .drawer-head .icon-btn svg {
  width: 24px; height: 24px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
