:root {
  --navy: #17406b;
  --navy-700: #12345a;
  --navy-50: #eef3f9;
  --gold: #c19a5b;
  --gold-50: #faf4ea;
  --ink: #142233;
  --muted: #5d6b7c;
  --line: #e3e8ef;
  --bg: #f7f9fc;
  --card: #ffffff;
  --green: #1f8a5b;
  --amber: #b7791f;
  --red: #b4434a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 34, 51, .05), 0 6px 20px rgba(20, 34, 51, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--navy); background: var(--navy-50); }
.nav .nav-cta { background: var(--navy); color: #fff; }
.nav .nav-cta:hover { background: var(--navy-700); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(193, 154, 91, .18), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(23, 64, 107, .10), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner { text-align: center; padding: 56px 16px 44px; }
.hero-logo { margin: 0 auto 8px; width: 112px; height: auto; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; color: var(--navy); line-height: 1.2; }
.hero-tagline { margin: 6px 0 0; font-size: clamp(1.1rem, 3vw, 1.45rem); font-weight: 700; color: var(--gold); }
.hero-desc { max-width: 640px; margin: 14px auto 0; color: var(--muted); font-size: 1.05rem; }
.search {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 28px auto 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 0 16px; color: var(--muted);
  box-shadow: var(--shadow);
  transition: border-color .15s;
}
.search:focus-within { border-color: var(--navy); }
.search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1rem; padding: 14px 0; color: var(--ink); min-width: 0;
}
.stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.stat { background: var(--navy-50); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }
.stat b { font-weight: 800; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--navy); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 500; font-size: .95rem;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--muted); border: 1.5px solid var(--line);
  transition: all .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .count { font-size: .8rem; opacity: .75; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); border-color: #cfd8e3; box-shadow: 0 2px 4px rgba(20,34,51,.05), 0 12px 28px rgba(20,34,51,.09); }
.card.featured { border-color: rgba(193, 154, 91, .55); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--navy); background: var(--navy-50); border-radius: 8px; padding: 3px 10px; }
.tag svg { width: 15px; height: 15px; }
.badges { display: flex; gap: 6px; }
.badge { font-size: .78rem; font-weight: 700; border-radius: 8px; padding: 3px 9px; }
.badge.featured { background: var(--gold-50); color: #9a7536; }
.badge.open { background: #e8f6ef; color: var(--green); }
.badge.soon { background: #fdf4e3; color: var(--amber); }
.badge.closed { background: #fbecec; color: var(--red); }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .9rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.card p.desc { margin: 10px 0 0; color: #3d4b5c; font-size: .96rem; flex: 1; }
.deadline { margin-top: 12px; font-size: .9rem; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 7px 12px; }
.deadline b { color: var(--navy); }
.apply {
  margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px;
  transition: background .15s;
}
.apply:hover { background: var(--navy-700); }
.apply:focus-visible, .chip:focus-visible, .nav a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.card.closed-card .apply { background: #8a96a5; }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.notice { text-align: center; color: var(--muted); font-size: .9rem; margin: 28px 0 0; }
.notice:empty { display: none; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.service-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-50); color: #9a7536; margin-bottom: 14px; }
.service h3 { margin: 0 0 6px; font-size: 1.12rem; color: var(--navy); }
.service p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, #1d4f84 100%);
  color: #fff; border-radius: 22px; padding: 36px;
}
.cta h2 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.cta p { margin: 4px 0 0; opacity: .85; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; padding: 11px 18px; border-radius: 12px;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25);
}
.btn:hover { background: rgba(255,255,255,.2); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.primary:hover { background: #ad8749; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .92rem; }
.footer .brand strong { color: var(--navy); }
.copy { margin: 0; }

@media (max-width: 640px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-inner { padding: 40px 16px 34px; }
  .section { padding: 42px 0; }
  .grid { grid-template-columns: 1fr; }
  .cta { padding: 26px 20px; }
  .cta-buttons, .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ================= إضافات التحديث ================= */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }
.container.narrow { max-width: 820px; }
[hidden] { display: none !important; }

/* قائمة الجوال */
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px; color: var(--navy); cursor: pointer; }

/* أزرار الهيرو */
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-btn { text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 12px; border: 1.5px solid var(--navy); color: var(--navy); background: #fff; transition: all .15s; }
.hero-btn:hover { background: var(--navy-50); }
.hero-btn.primary { background: var(--navy); color: #fff; }
.hero-btn.primary:hover { background: var(--navy-700); }

/* أزرار بطاقات الروابط */
.card-actions { display: grid; gap: 8px; margin-top: 16px; }
.card-actions.two { grid-template-columns: 1fr 1fr; }
.card-actions .apply { margin-top: 0; padding: 10px 12px; font-size: .95rem; }
.apply.assist { background: var(--gold); }
.apply.assist:hover { background: #ad8749; }
.card.closed-card .apply.assist { background: var(--gold); }

/* بطاقات الخدمات */
.service { position: relative; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service p { white-space: pre-line; flex: 1; }
.service.popular { border-color: rgba(193, 154, 91, .7); background: #fff; box-shadow: var(--shadow); }
.ribbon { position: absolute; top: 16px; inset-inline-end: 16px; background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 8px; padding: 3px 10px; }
.price { margin-top: 14px; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.service-apply {
  margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; background: var(--gold); color: #fff;
  padding: 11px 16px; border-radius: 12px; transition: background .15s;
}
.service-apply:hover { background: #ad8749; }
.service-apply:focus-visible, .hero-btn:focus-visible, .qa summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* خطوات العمل */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* آراء العملاء */
.testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 14px; color: #3d4b5c; }
.quote blockquote::before { content: "”"; display: block; font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: 8px; }
.quote figcaption b { color: var(--navy); display: block; }
.quote figcaption span { color: var(--muted); font-size: .88rem; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 10px; }
.qa { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.qa summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* زر واتساب العائم */
.wa-float { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 66px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a, .nav a:not(.nav-cta) { display: block; padding: 12px; }
  .nav .nav-cta { text-align: center; }
}
@media (max-width: 640px) {
  .card-actions.two { grid-template-columns: 1fr; }
  .hero-btn { flex: 1 1 100%; text-align: center; }
}

/* ================= صفحات من نحن والخصوصية ================= */
.page-hero { background: radial-gradient(800px 300px at 85% -20%, rgba(193,154,91,.18), transparent 60%), #fff; border-bottom: 1px solid var(--line); padding: 44px 0 36px; }
.page-hero h1 { margin: 4px 0 0; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--navy); line-height: 1.25; }
.crumbs { margin: 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--gold); text-decoration: none; }
.lead { font-size: 1.12rem; color: #3d4b5c; margin: 14px 0 0; }
.updated { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
.center { text-align: center; margin-top: 26px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.mv-box .service-icon { font-size: 1.4rem; }
.mv-box h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.3rem; }
.mv-box p { margin: 0; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.value { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.value h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.1rem; }
.value p { margin: 0; color: var(--muted); }
.what-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.what-list li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 700; color: var(--ink); }
.what-list svg { color: var(--gold); flex: none; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.facts a { color: var(--navy); font-weight: 700; text-decoration: none; }
.prose h2 { color: var(--navy); font-size: 1.3rem; margin: 30px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3d4b5c; }
.prose ul { padding-inline-start: 22px; }
.prose a { color: var(--navy); font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--navy-50); }
@media (max-width: 640px) {
  .mv, .what-list { grid-template-columns: 1fr; }
}

/* ================= التفاصيل والمسابقة والدليل ================= */
.card h3 a, .service h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover, .service h3 a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.apply.outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.apply.outline:hover { background: var(--navy-50); }
.official { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; align-self: center; font-size: .88rem; color: var(--muted); text-decoration: none; }
.official:hover { color: var(--navy); }
.service-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.service-actions .service-more { order: 2; padding: 8px 16px; }
.service-actions .service-apply { margin-top: 0; }
.service-more { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 12px; padding: 10px 16px; background: #fff; }
.service-more:hover { background: var(--navy-50); }

/* إعلان أعلى الصفحة */
.announce { display: block; text-align: center; text-decoration: none; background: linear-gradient(90deg, var(--gold), #d5b47c); color: #fff; padding: 8px 16px; font-size: .95rem; }
.announce:hover { filter: brightness(1.05); }

/* المسابقة */
.contest { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; background: linear-gradient(135deg, #1d4f84 0%, var(--navy) 60%); color: #fff; border-radius: 24px; padding: 36px; position: relative; overflow: hidden; }
.contest::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(193,154,91,.35), transparent 70%); top: -120px; inset-inline-start: -100px; pointer-events: none; }
.contest > * { position: relative; z-index: 1; }
.contest-kicker { display: inline-block; background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .92rem; }
.contest h2 { margin: 12px 0 6px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.contest-info p { margin: 0; opacity: .9; }
.contest-prize { margin-top: 14px; background: rgba(193,154,91,.25); border: 1px solid rgba(193,154,91,.6); border-radius: 12px; padding: 10px 14px; }
.contest-rules { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.contest-rules li { padding-inline-start: 26px; position: relative; opacity: .95; }
.contest-rules li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }
.contest-side { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.countdown { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 18px; text-align: center; }
.cd-label { font-size: .92rem; opacity: .85; }
.cd-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 6px; }
.cd-boxes span { background: rgba(255,255,255,.12); border-radius: 12px; padding: 8px 4px; font-size: .8rem; display: flex; flex-direction: column; }
.cd-boxes b { font-size: 1.5rem; line-height: 1.2; }
.cd-date { font-size: .85rem; opacity: .8; }
.contest-btn { display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: 1.1rem; background: var(--gold); color: #fff; border-radius: 14px; padding: 14px; transition: background .15s; }
.contest-btn:hover { background: #ad8749; }
.contest-closed { background: rgba(255,255,255,.12); border-radius: 14px; padding: 16px; text-align: center; font-weight: 700; }
.winners h3 { margin: 0 0 6px; font-size: 1rem; color: var(--gold); }
.winners ul { margin: 0; padding-inline-start: 20px; }

/* المقالات */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.article { display: flex; flex-direction: column; gap: 8px; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .15s, box-shadow .15s; }
.article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.article .tag { align-self: flex-start; }
.article h3 { margin: 0; color: var(--navy); font-size: 1.15rem; line-height: 1.5; }
.article p { margin: 0; color: var(--muted); flex: 1; }
.article .more, .rel span { color: var(--gold); font-weight: 700; }

/* صفحة التفاصيل */
.d-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag.light { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.d-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.d-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.d-block h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--navy); font-size: 1.25rem; }
.d-block h2 svg { color: var(--gold); }
.d-block .prose p:first-child { margin-top: 0; }
.d-block .prose p:last-child { margin-bottom: 0; }
.d-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d-list li { position: relative; padding-inline-start: 28px; color: #3d4b5c; }
.d-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 0; color: var(--green); font-weight: 800; }
.d-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.d-steps li { counter-increment: st; position: relative; padding-inline-start: 44px; min-height: 32px; color: #3d4b5c; padding-top: 3px; }
.d-steps li::before { content: counter(st); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.deadline.big { margin: 0 0 18px; font-size: 1rem; padding: 12px 16px; background: var(--gold-50); border: 1px solid #ecdcbd; }
.d-note { display: flex; gap: 10px; background: var(--navy-50); border-radius: 14px; padding: 14px 16px; color: var(--navy); margin-bottom: 18px; }
.d-note svg { flex: none; margin-top: 4px; }
.d-note p { margin: 0; }
.form-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.form-frame iframe { width: 100%; height: 900px; border: 0; display: block; }
.muted { color: var(--muted); }
.small { font-size: .88rem; margin: 10px 0 0; }
.d-side { position: sticky; top: 86px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.side-card h3 { margin: 0; color: var(--navy); font-size: 1.1rem; }
.side-card .price { margin: 0; }
.side-card .service-apply, .side-card .apply { margin-top: 0; }
.side-hint { margin: 0; color: var(--muted); font-size: .92rem; }
.side-link { display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; color: var(--navy); background: var(--navy-50); border: 0; border-radius: 12px; padding: 10px 14px; text-decoration: none; cursor: pointer; }
.side-link:hover { background: #e2eaf4; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.rel { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rel:hover { box-shadow: var(--shadow); }
.rel h3 { margin: 0; color: var(--navy); font-size: 1.08rem; }
.rel p { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }

@media (max-width: 900px) {
  .d-layout { grid-template-columns: 1fr; }
  .d-side { position: static; order: -1; }
  .contest { grid-template-columns: 1fr; padding: 26px 20px; }
}
@media (max-width: 640px) {
  .service-actions { grid-template-columns: 1fr; }
  .d-block { padding: 18px; }
  .form-frame iframe { height: 1000px; }
}

/* ================= النسخة الاحترافية: المقالات، التذييل، التواصل ================= */
.brand-name { line-height: 1; }
.crumbs a, .crumbs span { text-decoration: none; }

/* بطاقات المقالات */
.article { padding: 0; overflow: hidden; }
.article-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-50); }
.article-thumb img, .article-thumb picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.inline-search { margin: 22px 0 0; max-width: 520px; }

/* صفحة المقال */
.post-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.post-hero .tag { text-decoration: none; margin-top: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.post-layout { padding-top: 32px; padding-bottom: 48px; }
.post-cover { margin: 0 0 28px; }
.post-cover img, .post-cover picture { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.post-cover figcaption, .post-body figcaption { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 8px; }
.toc { background: var(--navy-50); border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; }
.toc summary { font-weight: 800; color: var(--navy); cursor: pointer; }
.toc ol { margin: 10px 0 0; padding-inline-start: 22px; }
.toc a { color: var(--navy); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.post-body { font-size: 1.08rem; line-height: 1.95; }
.post-body h2 { font-size: 1.5rem; margin: 38px 0 12px; scroll-margin-top: 86px; }
.post-body h3 { font-size: 1.2rem; color: var(--navy); margin: 26px 0 8px; scroll-margin-top: 86px; }
.post-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 18px auto; }
.post-body blockquote { margin: 20px 0; padding: 14px 18px; border-inline-start: 4px solid var(--gold); background: var(--gold-50); border-radius: 0 12px 12px 0; }
.post-body blockquote p { margin: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .96rem; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.post-body th { background: var(--navy-50); color: var(--navy); }
.post-body code { background: var(--bg); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.draft-flag { display: inline-block; background: #fdf4e3; color: var(--amber); border-radius: 10px; padding: 6px 12px; font-weight: 700; margin: 10px 0 0; }
.ad-slot { margin: 26px 0; min-height: 90px; }

/* المشاركة */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0; }
.side-card .share-row { margin: 6px 0 0; justify-content: center; }
.share-label { font-weight: 700; color: var(--muted); }
.share-btn { font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--navy); background: var(--navy-50); border: 0; border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.share-btn:hover { background: #e2eaf4; }

/* صندوق الدعوة وصندوق الكاتب */
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, var(--navy) 0%, #1d4f84 100%); color: #fff; border-radius: 18px; padding: 24px; margin: 10px 0 24px; }
.post-cta h2 { margin: 0; font-size: 1.3rem; }
.post-cta p { margin: 4px 0 0; opacity: .85; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.post-cta .service-apply { margin: 0; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.author-box img { flex: none; }
.author-box b { color: var(--navy); font-size: 1.05rem; }
.author-box p { margin: 4px 0 6px; color: var(--muted); font-size: .95rem; }
.author-box a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* الترقيم */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a { text-decoration: none; min-width: 42px; text-align: center; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.pager a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
a.chip { text-decoration: none; }

/* صفحة التواصل */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .15s; }
.contact-card:hover { transform: translateY(-2px); }
.contact-card b { color: var(--navy); font-size: 1.1rem; }
.contact-card span[dir] { color: var(--muted); }
.contact-card small { color: var(--green); font-weight: 700; }
.d-list.links li::before { content: "←"; color: var(--gold); }
.d-list.links a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* التذييل */
.footer { padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-about .brand { margin-bottom: 10px; }
.footer-about .brand strong { color: var(--navy); font-size: 1.2rem; }
.footer-about p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { text-decoration: none; font-size: .88rem; font-weight: 700; color: var(--navy); background: var(--navy-50); border-radius: 8px; padding: 5px 10px; }
.footer nav h2 { font-size: 1rem; color: var(--navy); margin: 0 0 10px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.footer nav a:hover { color: var(--navy); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; padding-bottom: 20px; color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .post-body { font-size: 1.02rem; }
  .post-cta { padding: 20px; }
  .author-box { flex-direction: column; }
}

/* ================= تجربة التطبيق ================= */
.top-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.tool-btn:hover { background: var(--navy-50); }
.tool-btn .i-sun { display: none; }
.install-top span { font-size: .9rem; }
.topbar-inner .nav { order: 0; }
.topbar-inner .top-tools { order: 1; }
.menu-btn { order: 2; }

/* زر الحفظ ♡ */
.save-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: transform .15s, color .15s, background .15s; font: inherit; font-weight: 700; }
.save-btn:hover { color: var(--red); border-color: rgba(180, 67, 74, .35); }
.save-btn[aria-pressed="true"] { color: var(--red); background: rgba(180, 67, 74, .08); border-color: rgba(180, 67, 74, .35); }
.save-btn[aria-pressed="true"] svg path { fill: currentColor; }
.save-btn:active { transform: scale(.9); }
.card-top .badges { display: inline-flex; align-items: center; gap: 6px; }
.card-top .save-btn { width: 34px; height: 34px; flex-basis: 34px; }
.service-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.service.popular .service-head .save-btn { margin-top: 30px; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.title-row .save-btn { margin-top: 8px; width: 44px; height: 44px; flex-basis: 44px; }

/* صفحة المحفوظات */
.saved-tabs { margin-bottom: 18px; }
.saved-list { display: grid; gap: 12px; }
.saved-item { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.saved-item > a { flex: 1; text-decoration: none; min-width: 0; }
.saved-item h3 { margin: 8px 0 4px; font-size: 1.08rem; color: var(--navy); }
.saved-item p { margin: 0; color: var(--muted); font-size: .94rem; }
.saved-empty, .center { text-align: center; }
.offline-icon { font-size: 3rem; line-height: 1; margin: 6px 0 16px; color: var(--red); }
.cta-buttons-inline { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.muted { color: var(--muted); }

/* صفحة التطبيق */
.app-hero { display: flex; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 6px 18px rgba(20, 34, 51, .14); flex: 0 0 96px; }
.app-hero h2 { margin: 0; color: var(--navy); }
.app-hero p { margin: 2px 0 12px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-actions .hero-btn { cursor: pointer; font: inherit; font-weight: 700; }
.app-installed { font-weight: 700; color: var(--green); }
.app-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 22px; }
.app-feature { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.app-feature b { color: var(--navy); }
.app-feature span { color: var(--muted); font-size: .94rem; }

/* شريط التنقل السفلي (الجوال) */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
    background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .74rem; font-weight: 700; padding: 4px 0; border-radius: 12px; }
  .bottom-nav a[aria-current="page"] { color: var(--navy); }
  .bottom-nav a[aria-current="page"] svg { background: var(--navy-50); border-radius: 10px; padding: 2px 10px; box-sizing: content-box; }
  .saved-count { position: absolute; top: 0; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(80px + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
  .install-top span { display: none; }
  .app-hero { flex-direction: column; text-align: center; }
  .app-actions { justify-content: center; }
}

/* بانر التثبيت + الرسائل */
.install-banner { position: fixed; z-index: 45; inset-inline: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: 460px; margin-inline: auto; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 12px 40px rgba(20, 34, 51, .22); animation: rise .3s ease; }
.install-banner[hidden], .toast[hidden] { display: none; }
.install-banner img { border-radius: 12px; flex: 0 0 44px; }
.ib-text { flex: 1; display: grid; line-height: 1.4; min-width: 0; }
.ib-text b { color: var(--navy); }
.ib-text span { color: var(--muted); font-size: .86rem; }
.ib-install { background: var(--navy); color: #fff; border: 0; border-radius: 12px; padding: 9px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.ib-close { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 6px; }
@media (min-width: 761px) { .install-banner { bottom: 24px; inset-inline-start: auto; inset-inline-end: 24px; } }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(88px + env(safe-area-inset-bottom)); background: #142233; color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; animation: rise .25s ease; }
@media (min-width: 761px) { .toast { bottom: 28px; } }
@keyframes rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* داخل التطبيق المثبّت: إحساس تطبيق أصلي */
.is-app body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
.is-app .install-top, .is-app .install-banner { display: none !important; }
.is-app .topbar { padding-top: env(safe-area-inset-top); }
@media (prefers-reduced-motion: reduce) { .install-banner, .toast { animation: none; } html { scroll-behavior: auto; } }

/* ================= الوضع الليلي ================= */
:root[data-theme="dark"] {
  --navy: #8fb8e6; --navy-700: #a9c9ee; --navy-50: #1b2c40;
  --gold: #c9a467; --gold-50: #2a2418;
  --ink: #e6edf5; --muted: #9fb0c3; --line: #263547;
  --bg: #0b1520; --card: #121f2e;
  --green: #4cc28d; --amber: #e0a94a; --red: #ef7f86;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #8fb8e6; --navy-700: #a9c9ee; --navy-50: #1b2c40;
    --gold: #c9a467; --gold-50: #2a2418;
    --ink: #e6edf5; --muted: #9fb0c3; --line: #263547;
    --bg: #0b1520; --card: #121f2e;
    --green: #4cc28d; --amber: #e0a94a; --red: #ef7f86;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .bottom-nav { background: rgba(14, 25, 37, .92); }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .page-hero, :root[data-theme="dark"] .search, :root[data-theme="dark"] .chip, :root[data-theme="dark"] .section-alt, :root[data-theme="dark"] .footer, :root[data-theme="dark"] .hero-btn, :root[data-theme="dark"] .service.popular, :root[data-theme="dark"] .quote, :root[data-theme="dark"] .nav, :root[data-theme="dark"] .mv-box, :root[data-theme="dark"] .what-list li, :root[data-theme="dark"] .apply.outline, :root[data-theme="dark"] .service-more, :root[data-theme="dark"] .tag.light, :root[data-theme="dark"] .d-block, :root[data-theme="dark"] .side-card, :root[data-theme="dark"] .author-box, :root[data-theme="dark"] .pager a, :root[data-theme="dark"] .contact-card { background-color: var(--card); }
:root[data-theme="dark"] .search input { color: var(--ink); background: transparent; }
:root[data-theme="dark"] .card p.desc, :root[data-theme="dark"] .quote blockquote, :root[data-theme="dark"] .lead, :root[data-theme="dark"] .prose p, :root[data-theme="dark"] .prose li, :root[data-theme="dark"] .d-list li, :root[data-theme="dark"] .d-steps li { color: #c3cfdc; }
:root[data-theme="dark"] .nav .nav-cta, :root[data-theme="dark"] .nav .nav-cta:hover, :root[data-theme="dark"] .chip[aria-selected="true"], :root[data-theme="dark"] .apply, :root[data-theme="dark"] .hero-btn.primary, :root[data-theme="dark"] .step-n, :root[data-theme="dark"] .d-steps li::before, :root[data-theme="dark"] .pager a[aria-current="page"], :root[data-theme="dark"] .skip, :root[data-theme="dark"] .ib-install { color: #0b1520; }
:root[data-theme="dark"] .apply.outline { color: var(--navy); }
:root[data-theme="dark"] .apply.assist, :root[data-theme="dark"] .service-apply, :root[data-theme="dark"] .contest-btn, :root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .ribbon { color: #fff; }
:root[data-theme="dark"] .cta, :root[data-theme="dark"] .contest, :root[data-theme="dark"] .post-cta { background: linear-gradient(135deg, #17406b 0%, #1d4f84 100%); }
:root[data-theme="dark"] .badge.open { background: rgba(76, 194, 141, .14); }
:root[data-theme="dark"] .badge.soon, :root[data-theme="dark"] .draft-flag { background: rgba(224, 169, 74, .14); }
:root[data-theme="dark"] .badge.closed { background: rgba(239, 127, 134, .14); }
:root[data-theme="dark"] .badge.featured, :root[data-theme="dark"] .service-icon { color: var(--gold); }
:root[data-theme="dark"] .side-link:hover, :root[data-theme="dark"] .share-btn:hover { background: var(--navy-50); }
:root[data-theme="dark"] .card:hover { border-color: #33475e; }
:root[data-theme="dark"] .deadline.big { border-color: #4a3d25; }
:root[data-theme="dark"] .toast { background: #e6edf5; color: #0b1520; }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .footer .brand img { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)); }
:root[data-theme="dark"] img:not(.app-icon):not([src*="logo"]) { filter: brightness(.92); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .topbar, :root:not([data-theme="light"]) .bottom-nav { background: rgba(14, 25, 37, .92); }
:root:not([data-theme="light"]) .hero, :root:not([data-theme="light"]) .page-hero, :root:not([data-theme="light"]) .search, :root:not([data-theme="light"]) .chip, :root:not([data-theme="light"]) .section-alt, :root:not([data-theme="light"]) .footer, :root:not([data-theme="light"]) .hero-btn, :root:not([data-theme="light"]) .service.popular, :root:not([data-theme="light"]) .quote, :root:not([data-theme="light"]) .nav, :root:not([data-theme="light"]) .mv-box, :root:not([data-theme="light"]) .what-list li, :root:not([data-theme="light"]) .apply.outline, :root:not([data-theme="light"]) .service-more, :root:not([data-theme="light"]) .tag.light, :root:not([data-theme="light"]) .d-block, :root:not([data-theme="light"]) .side-card, :root:not([data-theme="light"]) .author-box, :root:not([data-theme="light"]) .pager a, :root:not([data-theme="light"]) .contact-card { background-color: var(--card); }
:root:not([data-theme="light"]) .search input { color: var(--ink); background: transparent; }
:root:not([data-theme="light"]) .card p.desc, :root:not([data-theme="light"]) .quote blockquote, :root:not([data-theme="light"]) .lead, :root:not([data-theme="light"]) .prose p, :root:not([data-theme="light"]) .prose li, :root:not([data-theme="light"]) .d-list li, :root:not([data-theme="light"]) .d-steps li { color: #c3cfdc; }
:root:not([data-theme="light"]) .nav .nav-cta, :root:not([data-theme="light"]) .nav .nav-cta:hover, :root:not([data-theme="light"]) .chip[aria-selected="true"], :root:not([data-theme="light"]) .apply, :root:not([data-theme="light"]) .hero-btn.primary, :root:not([data-theme="light"]) .step-n, :root:not([data-theme="light"]) .d-steps li::before, :root:not([data-theme="light"]) .pager a[aria-current="page"], :root:not([data-theme="light"]) .skip, :root:not([data-theme="light"]) .ib-install { color: #0b1520; }
:root:not([data-theme="light"]) .apply.outline { color: var(--navy); }
:root:not([data-theme="light"]) .apply.assist, :root:not([data-theme="light"]) .service-apply, :root:not([data-theme="light"]) .contest-btn, :root:not([data-theme="light"]) .btn.primary, :root:not([data-theme="light"]) .ribbon { color: #fff; }
:root:not([data-theme="light"]) .cta, :root:not([data-theme="light"]) .contest, :root:not([data-theme="light"]) .post-cta { background: linear-gradient(135deg, #17406b 0%, #1d4f84 100%); }
:root:not([data-theme="light"]) .badge.open { background: rgba(76, 194, 141, .14); }
:root:not([data-theme="light"]) .badge.soon, :root:not([data-theme="light"]) .draft-flag { background: rgba(224, 169, 74, .14); }
:root:not([data-theme="light"]) .badge.closed { background: rgba(239, 127, 134, .14); }
:root:not([data-theme="light"]) .badge.featured, :root:not([data-theme="light"]) .service-icon { color: var(--gold); }
:root:not([data-theme="light"]) .side-link:hover, :root:not([data-theme="light"]) .share-btn:hover { background: var(--navy-50); }
:root:not([data-theme="light"]) .card:hover { border-color: #33475e; }
:root:not([data-theme="light"]) .deadline.big { border-color: #4a3d25; }
:root:not([data-theme="light"]) .toast { background: #e6edf5; color: #0b1520; }
:root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .footer .brand img { filter: drop-shadow(0 0 1px rgba(255,255,255,.55)); }
:root:not([data-theme="light"]) img:not(.app-icon):not([src*="logo"]) { filter: brightness(.92); }
}
:root[data-theme="dark"] .tool-btn .i-moon { display: none; }
:root[data-theme="dark"] .tool-btn .i-sun { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tool-btn .i-moon { display: none; } :root:not([data-theme="light"]) .tool-btn .i-sun { display: block; } }
:root[data-theme="dark"] .hero-btn.primary, :root[data-theme="dark"] .chip[aria-selected="true"] { background-color: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-btn.primary, :root:not([data-theme="light"]) .chip[aria-selected="true"] { background-color: var(--navy); } }
