/* =========================================================
   بيت وذوق — نظام التصميم
   ========================================================= */

:root {
  /* الألوان — الوضع الفاتح */
  --clay-50:  #FBF5F1;
  --clay-100: #F5E7DE;
  --clay-200: #EBCEBD;
  --clay-400: #D08A5F;
  --clay-500: #BE6A3C;
  --clay-600: #A2542C;
  --clay-700: #7F4023;

  --sage-100: #E8EEE7;
  --sage-500: #6B8F71;
  --sage-600: #557359;

  --ink-900: #1E1A17;
  --ink-800: #322B26;
  --ink-700: #4A403A;
  --ink-500: #7A6D64;
  --ink-400: #9C8F86;

  --bg:          #FFFDFB;
  --bg-alt:      #FBF5F1;
  --bg-card:     #FFFFFF;
  --bg-inset:    #F7F1EC;
  --border:      #EDE1D8;
  --border-soft: #F4EBE4;

  --text:        var(--ink-900);
  --text-muted:  var(--ink-500);
  --text-soft:   var(--ink-700);
  --brand:       var(--clay-600);
  --brand-hover: var(--clay-700);
  --brand-soft:  var(--clay-100);
  --accent:      var(--sage-600);
  --accent-soft: var(--sage-100);

  --gold: #D9A441;
  --warn-bg: #FFF6E5;
  --warn-border: #F0D9A8;
  --warn-text: #6B4E12;

  --shadow-sm: 0 1px 2px rgba(30,26,23,.05), 0 1px 3px rgba(30,26,23,.04);
  --shadow-md: 0 2px 4px rgba(30,26,23,.04), 0 8px 20px rgba(30,26,23,.07);
  --shadow-lg: 0 4px 8px rgba(30,26,23,.05), 0 16px 40px rgba(30,26,23,.10);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --wrap: 1180px;
  --read: 720px;

  --font: "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Cairo", "Tajawal", system-ui, sans-serif;
}

:root:not([data-theme="light"]) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #14110F;
    --bg-alt:      #1B1715;
    --bg-card:     #1F1A17;
    --bg-inset:    #241E1A;
    --border:      #362E29;
    --border-soft: #2A2420;

    --text:        #F5EFE9;
    --text-muted:  #A79A90;
    --text-soft:   #CFC3B9;
    --brand:       #E09A6C;
    --brand-hover: #EDAE83;
    --brand-soft:  #34241B;
    --accent:      #8FB495;
    --accent-soft: #1F2A20;

    --gold: #E5B85C;
    --warn-bg: #2A2113;
    --warn-border: #4A3A1C;
    --warn-text: #E8CE93;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.45);
    --shadow-lg: 0 8px 36px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #14110F;
  --bg-alt:      #1B1715;
  --bg-card:     #1F1A17;
  --bg-inset:    #241E1A;
  --border:      #362E29;
  --border-soft: #2A2420;

  --text:        #F5EFE9;
  --text-muted:  #A79A90;
  --text-soft:   #CFC3B9;
  --brand:       #E09A6C;
  --brand-hover: #EDAE83;
  --brand-soft:  #34241B;
  --accent:      #8FB495;
  --accent-soft: #1F2A20;

  --gold: #E5B85C;
  --warn-bg: #2A2113;
  --warn-border: #4A3A1C;
  --warn-text: #E8CE93;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 8px 36px rgba(0,0,0,.55);
  color-scheme: dark;
}

/* ============ الأساسيات ============ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4.2vw, 2.7rem); line-height: 1.3; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-top: 2.2em; }
h3 { font-size: clamp(1.12rem, 2.2vw, 1.35rem); margin-top: 1.8em; }

p { margin: 0 0 1.15em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.read { max-width: var(--read); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 18px; z-index: 999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 12px; color: #fff; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ============ الهيدر ============ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  height: 68px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--text); white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--clay-400), var(--clay-600));
  color: #fff; border-radius: 10px; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a {
  padding: 8px 13px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-size: .94rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] {
  background: var(--brand-soft); color: var(--brand);
}

.header-tools { display: flex; gap: 6px; align-items: center; margin-inline-start: 8px; }

.icon-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; color: var(--text-soft);
  font-size: 1rem; transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--bg-inset); border-color: var(--brand); color: var(--brand); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform .25s ease;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .header-tools { margin-inline-start: auto; }
}

/* ============ شريط الإفصاح ============ */

.disclosure-bar {
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border-soft);
  font-size: .8rem; color: var(--text-muted);
  padding: 7px 0; text-align: center;
}
.disclosure-bar a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.disclosure-bar a:hover { color: var(--brand); }

/* ============ الهيرو ============ */

.hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 68px);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--brand-soft), transparent 65%),
    radial-gradient(700px 380px at 10% 0%, var(--accent-soft), transparent 60%);
}
.hero-inner { max-width: 780px; }
.hero h1 { margin-bottom: .45em; }
.hero .lede {
  font-size: clamp(1.02rem, 2.1vw, 1.22rem);
  color: var(--text-soft); line-height: 1.85; max-width: 620px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 100px;
  font-size: .85rem; color: var(--text-soft); box-shadow: var(--shadow-sm);
}

/* ============ الأقسام العامة ============ */

section { scroll-margin-top: 90px; }
.band { padding: clamp(44px, 6vw, 72px) 0; }
.band-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 30px; max-width: 640px; }
.section-head h2 { margin-top: 0; margin-bottom: .35em; }
.section-head p { color: var(--text-muted); margin: 0; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; color: var(--brand);
  background: var(--brand-soft); padding: 4px 11px;
  border-radius: 100px; margin-bottom: 14px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ============ بطاقة قسم ============ */

.cat-card {
  display: block; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .18s, box-shadow .18s, border-color .18s;
  color: var(--text);
}
.cat-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--clay-200); color: var(--text);
}
.cat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.cat-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.cat-card p { color: var(--text-muted); font-size: .9rem; margin: 0; line-height: 1.7; }
.cat-card .more { color: var(--brand); font-size: .87rem; font-weight: 600; margin-top: 12px; display: inline-block; }

/* ============ بطاقة مقال ============ */

.post-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  color: var(--text); height: 100%;
}
.post-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--clay-200); color: var(--text);
}
.post-thumb {
  height: 148px; display: grid; place-items: center;
  font-size: 3rem; flex: none;
  background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border-bottom: 1px solid var(--border-soft);
}
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .76rem; color: var(--text-muted); margin-bottom: 10px;
}
.tag {
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 100px; font-weight: 600; font-size: .75rem;
}
.post-card h3 { font-size: 1.05rem; margin: 0 0 8px; line-height: 1.55; }
.post-card p { color: var(--text-muted); font-size: .89rem; margin: 0 0 14px; line-height: 1.7; }
.post-card .more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: .87rem; }

.post-card.wide { flex-direction: row; }
.post-card.wide .post-thumb { width: 190px; height: auto; border-bottom: 0; border-inline-end: 1px solid var(--border-soft); }
@media (max-width: 640px) {
  .post-card.wide { flex-direction: column; }
  .post-card.wide .post-thumb { width: 100%; height: 130px; border-inline-end: 0; border-bottom: 1px solid var(--border-soft); }
}

/* ============ بطاقة منتج ============ */

.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  margin: 34px 0; box-shadow: var(--shadow-sm);
}
.product-head {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 24px 18px; background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.product-rank {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  background: linear-gradient(140deg, var(--clay-400), var(--clay-600));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.product-head-text { flex: 1; min-width: 200px; }
.product-badge {
  display: inline-block; background: var(--gold); color: #3B2A08;
  font-size: .74rem; font-weight: 700; padding: 3px 11px;
  border-radius: 100px; margin-bottom: 8px;
}
.product-card h3, .product-head h2 {
  margin: 0 0 6px; font-size: 1.2rem; line-height: 1.5;
}
.product-brand { font-size: .82rem; color: var(--text-muted); }

.rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.stars { color: var(--gold); font-size: .95rem; letter-spacing: 1px; }
.rating-num { font-weight: 700; font-size: .88rem; color: var(--text-soft); }
.rating-label { font-size: .76rem; color: var(--text-muted); }

.product-body { padding: 20px 24px 24px; }
.product-summary { color: var(--text-soft); font-size: .96rem; margin-bottom: 18px; }

.pc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pc-box { background: var(--bg-inset); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--border-soft); }
.pc-box h4 { margin: 0 0 10px; font-size: .9rem; display: flex; align-items: center; gap: 7px; }
.pc-box.pros h4 { color: var(--accent); }
.pc-box.cons h4 { color: var(--clay-600); }
:root[data-theme="dark"] .pc-box.cons h4 { color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pc-box.cons h4 { color: var(--brand); } }
.pc-box ul { margin: 0; padding: 0; list-style: none; }
.pc-box li {
  font-size: .87rem; color: var(--text-soft); line-height: 1.7;
  padding-inline-start: 20px; position: relative; margin-bottom: 7px;
}
.pc-box li::before {
  position: absolute; inset-inline-start: 0; top: 0;
  font-weight: 700;
}
.pc-box.pros li::before { content: "✓"; color: var(--accent); }
.pc-box.cons li::before { content: "✕"; color: var(--clay-500); font-size: .8rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .87rem; margin-bottom: 18px; }
.spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-soft); }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table td:first-child { color: var(--text-muted); width: 42%; font-weight: 500; }
.spec-table td:last-child { color: var(--text); font-weight: 600; }

.best-for {
  background: var(--accent-soft); border-inline-start: 3px solid var(--accent);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text-soft); margin-bottom: 20px;
}
.best-for strong { color: var(--text); }

/* ============ أزرار الشراء ============ */

.buy-block { border-top: 1px dashed var(--border); padding-top: 18px; }
.buy-title { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px;
  font-family: var(--font); font-weight: 700; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: var(--shadow-md); }

.btn-store {
  background: var(--bg-card); color: var(--text);
  border-color: var(--border); flex: 1 1 160px;
}
.btn-store:hover { border-color: var(--brand); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-store .store-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.btn-store[data-primary="1"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-store[data-primary="1"]:hover { background: var(--brand-hover); color: #fff; }

.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }

.store-note { font-size: .76rem; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* ============ جدول المقارنة ============ */

.compare-wrap {
  overflow-x: auto; margin: 30px 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .88rem; }
.compare-table th, .compare-table td {
  padding: 13px 15px; text-align: start;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
  background: var(--bg-inset); font-family: var(--font-display);
  font-size: .9rem; font-weight: 800; border-bottom: 2px solid var(--border);
  vertical-align: top;
}
.compare-table thead th:first-child { width: 130px; color: var(--text-muted); font-weight: 600; }
.compare-table tbody th {
  color: var(--text-muted); font-weight: 600; background: var(--bg-inset);
  white-space: nowrap; font-size: .84rem;
}
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }
.compare-table .ct-badge {
  display: block; font-size: .72rem; color: var(--brand);
  font-weight: 700; margin-bottom: 4px;
}
.scroll-hint { font-size: .76rem; color: var(--text-muted); margin: -20px 0 26px; }
@media (min-width: 760px) { .scroll-hint { display: none; } }

/* ============ محتوى المقال ============ */

.article-header { padding: 36px 0 26px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

.article-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-size: .84rem; color: var(--text-muted); margin-top: 16px;
}
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }

.article-body { padding: 34px 0 56px; font-size: 1.03rem; }
.article-body > .read > p:first-of-type { font-size: 1.12rem; color: var(--text-soft); }
.article-body h2 { border-bottom: 1px solid var(--border-soft); padding-bottom: .35em; }
.article-body ul, .article-body ol { padding-inline-start: 22px; margin: 0 0 1.3em; }
.article-body li { margin-bottom: .6em; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 20px;
  border-inline-start: 3px solid var(--brand);
  color: var(--text-soft); font-style: normal;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.article-body th, .article-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: start; }
.article-body th { background: var(--bg-inset); }

/* عناصر عرض عريضة داخل المقال */
.article-body .product-card,
.article-body .compare-wrap,
.article-body .callout {
  max-width: 860px;
  margin-inline: auto;
}

.callout {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius); padding: 16px 20px; margin: 26px auto;
  font-size: .92rem; color: var(--warn-text);
}
.callout strong { color: var(--warn-text); }
.callout p:last-child { margin-bottom: 0; }

/* ============ الأسئلة الشائعة ============ */

.faq-list { margin: 22px 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--bg-card); overflow: hidden;
}
.faq-item summary {
  padding: 15px 20px; cursor: pointer; font-weight: 700;
  font-family: var(--font-display); font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--brand); font-size: 1.4rem;
  font-weight: 400; flex: none; transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-inset); }
.faq-answer { padding: 0 20px 18px; color: var(--text-soft); font-size: .94rem; }
.faq-answer p { margin: 0; }

/* ============ صندوق الاشتراك ============ */

.subscribe {
  background: linear-gradient(140deg, var(--brand-soft), var(--accent-soft));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); text-align: center; margin: 40px auto;
  max-width: 860px;
}
.subscribe h3 { margin-top: 0; font-size: 1.3rem; }
.subscribe p { color: var(--text-soft); max-width: 460px; margin-inline: auto; }
.subscribe-form { display: flex; gap: 10px; max-width: 430px; margin: 20px auto 10px; flex-wrap: wrap; }
.subscribe-form input {
  flex: 1 1 210px; padding: 13px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-card);
  font-family: var(--font); font-size: .93rem; color: var(--text);
}
.subscribe-form input::placeholder { color: var(--text-muted); }
.subscribe .fineprint { font-size: .78rem; color: var(--text-muted); margin: 0; }
.form-msg { font-size: .86rem; color: var(--accent); margin-top: 10px; min-height: 1.2em; font-weight: 600; }

/* ============ البحث ============ */

.search-panel {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--ink-900) 55%, transparent);
  backdrop-filter: blur(4px);
  display: none; padding: 12vh 20px 20px;
}
.search-panel.open { display: block; }
.search-box {
  max-width: 620px; margin-inline: auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-box input {
  width: 100%; padding: 20px 24px; border: 0; background: transparent;
  font-family: var(--font); font-size: 1.05rem; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.search-box input:focus { outline: none; }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-results a {
  display: block; padding: 13px 24px; border-bottom: 1px solid var(--border-soft);
  color: var(--text);
}
.search-results a:hover { background: var(--bg-inset); color: var(--text); }
.search-results .sr-title { font-weight: 700; font-size: .95rem; margin-bottom: 3px; }
.search-results .sr-desc { font-size: .82rem; color: var(--text-muted); }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: .9rem; }

/* ============ الفوتر ============ */

.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: 40px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px; margin-bottom: 34px;
}
.footer-about p { color: var(--text-muted); font-size: .87rem; max-width: 320px; line-height: 1.8; }
.footer-col h4 { font-size: .88rem; margin: 0 0 14px; color: var(--text); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); font-size: .87rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--text-muted);
}
.footer-disclosure {
  background: var(--bg-inset); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 30px;
  font-size: .82rem; color: var(--text-muted); line-height: 1.75;
}

/* ============ صفحات عامة ============ */

.page-header { padding: 40px 0 30px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: .3em; }
.page-header p { color: var(--text-muted); margin: 0; max-width: 620px; }

.legal-body { padding: 40px 0 60px; }
.legal-body h2 { font-size: 1.25rem; }
.legal-body ul { padding-inline-start: 22px; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}

/* ============ مساعدات ============ */

.center { text-align: center; }
.mt-lg { margin-top: 34px; }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.geo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px; font-size: .76rem;
  color: var(--text-muted); cursor: pointer; font-family: var(--font);
}
.geo-pill:hover { border-color: var(--brand); color: var(--brand); }

@media print {
  .site-header, .site-footer, .buy-block, .subscribe, .disclosure-bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
