/* ==========================================================
   دكتور سوري — نظام التصميم
   الفكرة: يافطة العيادة السورية. لوحة بيضاء مثبتة ببراغي،
   اسم الطبيب بخط كوفي، وتحته خط ملوّن.
   ========================================================== */

@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: "Reem Kufi"; src: url("../fonts/reem-kufi-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+060C, U+061F; }
@font-face { font-family: "Reem Kufi"; src: url("../fonts/reem-kufi-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  /* الألوان */
  --sand: #F2E6D6;        /* خلفية الصفحة */
  --sand-deep: #E8D7BF;
  --line: #E2D2BB;
  --plate: #FFFFFF;       /* لوحة اليافطة */
  --forest: #0F3D3A;      /* الحبر الأساسي */
  --forest-2: #17524D;
  --clay: #E0745E;        /* خط اليافطة */
  --clay-ink: #AE4C37;    /* نص بلون الطين (تباين كافٍ على الأبيض) */
  --gold: #F4B13B;
  --golden: #F9D601;
  --blue: #2F66F0;        /* زر الاتصال — مستوحى من حروف اليافطات الزرقاء */
  --blue-2: #2253CF;
  --ink: #171717;
  --muted: #625A4E;
  --field: #EFEFEF;
  --ok: #1D8A5C;
  --wait: #8A5A00;

  /* الخطوط */
  --f-body: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-sign: "Reem Kufi", "Plex Arabic", sans-serif;
  --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.3rem; --t-lg: 1.6rem; --t-xl: 2.05rem; --t-2xl: clamp(2.1rem, 5vw, 3.1rem);

  --r-plate: 12px; --r-ctl: 10px;
  --wrap: 1180px;
  --shadow-mount: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 40px -28px rgba(15, 61, 58, .45), 0 2px 0 rgba(15,61,58,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--f-body); font-size: var(--t-base); line-height: 1.7; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--blue-2); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--forest); }
h1 { font-family: var(--f-sign); font-weight: 700; font-size: var(--t-xl); }
h2 { font-size: var(--t-md); font-weight: 700; }
h3 { font-size: var(--t-base); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--forest); color: #fff; padding: .5rem 1rem; z-index: 50; border-radius: 0 0 8px 8px; }
.skip:focus { top: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 900px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic .fill, .ic use .fill { fill: currentColor; stroke: none; }

/* ---------------- أزرار ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .5rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--plate); color: var(--forest); font: 600 var(--t-base)/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--forest); color: var(--forest); }
.btn-primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); color: #fff; }
.btn-call { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-call:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn-wa { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn-wa:hover { background: var(--forest-2); color: #fff; }
.btn-wa .ic { fill: none; }
.btn-join { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-join:hover { background: var(--golden); border-color: var(--golden); color: var(--ink); }
.btn-quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost-light { background: transparent; color: var(--sand); border-color: rgba(242,230,214,.4); }
.btn-ghost-light:hover { color: #fff; border-color: var(--gold); }
.btn-lg { min-height: 56px; padding-inline: 1.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn small { display: block; font-weight: 400; font-size: .8rem; opacity: .85; }

/* ---------------- الرأس ---------------- */
.demo-bar { background: var(--golden); color: var(--ink); text-align: center; font-size: var(--t-sm); padding: .35rem 1rem; }
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--forest); }
.logo-mark { width: 44px; height: 36px; color: var(--forest); }
.logo-text { font-family: var(--f-sign); font-weight: 700; font-size: 1.55rem; color: var(--forest); line-height: 1; margin: 0; }
.main-nav { display: flex; gap: .25rem; margin-inline-start: auto; }
.main-nav a, .mobile-nav a { padding: .45rem .8rem; border-radius: 8px; text-decoration: none; color: var(--forest); font-weight: 600; }
.main-nav a:hover { background: var(--sand-deep); }
.main-nav a[aria-current], .mobile-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--clay); border-radius: 0; }
.mobile-nav { display: none; }
@media (max-width: 760px) {
  .header-row { min-height: 60px; gap: .75rem; }
  .main-nav { display: none; }
  .btn-join { margin-inline-start: auto; min-height: 40px; padding: .35rem .8rem; font-size: .95rem; }
  .logo-mark { width: 36px; height: 30px; }
  .logo-text { font-size: 1.3rem; }
  .mobile-nav { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .4rem; }
  .mobile-nav a { white-space: nowrap; font-size: .95rem; padding: .35rem .6rem; }
}

/* ---------------- اليافطة (القطعة المميزة) ---------------- */
.screw { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #c9c2b6 40%, #8f877a 100%); box-shadow: 0 1px 1px rgba(0,0,0,.25); }
.screw::after { content: ""; position: absolute; inset: 3.8px 1.5px; background: rgba(60,55,48,.55); transform: rotate(35deg); border-radius: 1px; }
.s1 { top: 10px; right: 10px; } .s2 { top: 10px; left: 10px; } .s3 { bottom: 10px; right: 10px; } .s4 { bottom: 10px; left: 10px; }
.s2::after { transform: rotate(-20deg); } .s3::after { transform: rotate(80deg); }

.sign-rule { display: block; width: 72px; height: 6px; border-top: 2.5px solid var(--clay); border-bottom: 1px solid var(--clay); margin-top: .55rem; }
.sign-name { font-family: var(--f-sign); font-weight: 700; color: var(--forest); font-size: 1.4rem; line-height: 1.35; margin: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sign-title { display: block; color: var(--clay-ink); font-weight: 600; margin-top: .15rem; }
.verified { color: var(--gold); display: inline-flex; }
.verified .ic { width: 1.05em; height: 1.05em; fill: var(--gold); stroke: #fff; stroke-width: 1.6; }

.sign { position: relative; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-plate); box-shadow: var(--shadow-mount); display: flex; flex-direction: column; overflow: hidden; }
.sign.is-featured { border-top: 4px solid var(--gold); }
.sign-plate { position: relative; display: block; padding: 1.5rem 1.6rem 1rem; text-decoration: none; color: inherit; }
.sign-plate:hover .sign-name { color: var(--blue-2); }
.sign-meta { padding: 0 1.6rem .9rem; font-size: .95rem; color: var(--muted); }
.sign-meta p { display: flex; gap: .5rem; margin: 0 0 .3rem; }
.sign-meta .ic { color: var(--forest); margin-top: .25rem; width: 1.05em; height: 1.05em; }
.sign-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .9rem 1.6rem 1.5rem; margin-top: auto; border-top: 1px dashed var(--line); }
.sign-actions .btn { min-height: 44px; }

.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; }
.status .dot, .live .dot, .toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: #b9b0a2; flex: none; }
.status-open { color: var(--ok); } .status-open .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(29,138,92,.18); }
.status-later { color: var(--wait); } .status-later .dot { background: var(--gold); }
.status-closed { color: var(--muted); }

/* ---------------- الواجهة الرئيسية ---------------- */
.hero { padding: 2.5rem 0 3rem; }
.hero-sign { position: relative; max-width: 920px; margin-inline: auto; background: var(--plate); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-mount); padding: 2.6rem clamp(1.2rem, 4vw, 3.2rem) 2rem; }
.hero-sign .screw { width: 12px; height: 12px; } .hero-sign .screw::after { inset: 5px 2px; }
.hero-sign .s1, .hero-sign .s2 { top: 16px; } .hero-sign .s3, .hero-sign .s4 { bottom: 16px; }
.hero-sign .s1, .hero-sign .s3 { right: 16px; } .hero-sign .s2, .hero-sign .s4 { left: 16px; }
.hero-kicker { color: var(--clay-ink); font-weight: 700; margin: 0 0 .2rem; font-size: 1.05rem; }
.hero-h { font-size: var(--t-2xl); margin: 0; letter-spacing: 0; }
.hero-h::after { content: ""; display: block; width: 110px; height: 8px; border-top: 3.5px solid var(--clay); border-bottom: 1.5px solid var(--clay); margin-top: .7rem; }
.hero-sub { color: var(--muted); margin: 1rem 0 1.4rem; max-width: 60ch; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1.1rem 0 0; font-size: .95rem; color: var(--muted); }
.quick a { padding: .2rem .75rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--sand); }
.quick a:hover { border-color: var(--forest); }
.live { display: flex; width: fit-content; margin: 1.2rem auto 0; align-items: center; gap: .55rem; color: var(--forest); font-weight: 600; text-decoration: none; }
.live .dot { background: var(--ok); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(29,138,92,.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(29,138,92,0); } }

/* نموذج البحث */
.search-form { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .55rem; }
.sf-field { position: relative; display: block; }
.sf-field input, .sf-field select { width: 100%; height: 54px; border: 1.5px solid transparent; background: var(--field); border-radius: var(--r-ctl); padding: 0 .9rem; font: inherit; color: var(--ink); appearance: none; }
.sf-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3D3A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: left .8rem center; padding-left: 2.4rem; }
.sf-field input:focus, .sf-field select:focus { outline: none; border-color: var(--forest); background-color: #fff; }
.sf-q .ic { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sf-q input { padding-right: 2.6rem; }
.sf-go { height: 54px; padding-inline: 1.6rem; }
@media (max-width: 860px) {
  .search-form { grid-template-columns: 1fr 1fr; }
  .sf-q, .sf-go { grid-column: 1 / -1; }
}

/* الأقسام */
.section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-family: var(--f-sign); font-size: var(--t-lg); margin: 0; }
.more { font-weight: 600; }
.sub-h { font-family: var(--f-sign); font-size: var(--t-md); margin: 2.2rem 0 1rem; }

/* قائمة الاختصاصات: شبكة بفواصل رفيعة بدل بطاقات */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-plate); overflow: hidden; }
.spec-list li { background: var(--plate); }
.spec-list a { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); height: 100%; }
.spec-list a:hover { background: #FFFBF4; }
.spec-list a:hover .spec-name { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--clay); }
.spec-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; color: var(--forest); flex: none; }
.spec-ic .ic { width: 24px; height: 24px; }
.spec-name { font-weight: 600; flex: 1; line-height: 1.4; }
.spec-name small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.spec-cnt { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) { .spec-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .spec-list { grid-template-columns: repeat(2, 1fr); } .spec-list a { padding: .85rem; gap: .6rem; } .spec-ic { width: 38px; height: 38px; } }
@media (max-width: 420px) { .spec-list:not(.spec-list-full) .spec-name { font-size: .95rem; } }
.spec-list-full { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .spec-list-full { grid-template-columns: 1fr; } }

.gov-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; }
.gov-list a { display: block; padding: .8rem .9rem; border-radius: var(--r-ctl); border: 1px solid var(--line); background: rgba(255,255,255,.55); text-decoration: none; }
.gov-list a:hover { background: var(--plate); border-color: var(--forest); }
.gov-list span { display: block; font-weight: 700; color: var(--forest); }
.gov-list small { color: var(--muted); }
@media (max-width: 1000px) { .gov-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .gov-list { grid-template-columns: repeat(2, 1fr); } }

/* شريط الصيدليات */
.pharm-band { background: var(--forest); color: var(--sand); padding: 2rem 0; }
.pharm-band h2 { color: #fff; font-family: var(--f-sign); font-size: var(--t-lg); display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.pharm-band h2 .ic { color: var(--clay); fill: var(--clay); stroke: none; }
.pharm-band p { margin: 0; opacity: .9; }
.pharm-band-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem; align-items: center; }
@media (max-width: 860px) { .pharm-band-row { grid-template-columns: 1fr; } }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a, .chips span { display: inline-block; padding: .3rem .85rem; border-radius: 99px; border: 1px solid var(--line); background: var(--sand); text-decoration: none; font-size: .95rem; color: var(--forest); }
.chips-light a { background: transparent; color: var(--sand); border-color: rgba(242,230,214,.35); }
.chips-light a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.signs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 1000px) { .signs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .signs-grid { grid-template-columns: 1fr; } }
.signs-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.signs-list.wide { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .signs-list.wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .signs-list, .signs-list.wide { grid-template-columns: 1fr; } }

/* انضمام الأطباء */
.join-band { background: var(--plate); border-block: 1px solid var(--line); }
.join-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.join-copy h2 { font-family: var(--f-sign); font-size: var(--t-xl); max-width: 20ch; }
.join-copy > p { color: var(--muted); max-width: 52ch; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.5rem 0 1.8rem; display: grid; gap: .9rem; }
.steps li { counter-increment: s; position: relative; padding-inline-start: 3rem; }
.steps li::before { content: counter(s, arabic-indic); position: absolute; inset-inline-start: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 2px solid var(--clay); color: var(--clay-ink); display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; color: var(--forest); }
.steps span { color: var(--muted); font-size: .95rem; }
.join-visual { display: grid; place-items: center; padding: 2rem; background: var(--sand); border-radius: 18px; }
.mini-card { position: relative; width: min(280px, 100%); background: #fff; border-radius: 12px; padding: 1.6rem 1.4rem 1.2rem; text-align: center; box-shadow: var(--shadow-mount); transform: rotate(-2.5deg); }
.mini-card .sign-rule { margin-inline: auto; }
.mc-name { font-family: var(--f-sign); font-size: 1.4rem; color: var(--forest); margin: 0; }
.mc-title { color: var(--clay-ink); margin: 0; font-weight: 600; }
.mc-qr { margin: 1rem auto .5rem; width: 112px; height: 112px; border: 2px solid var(--forest); border-radius: 8px; display: grid; place-items: center; color: var(--forest); }
.mc-qr .ic { width: 72px; height: 72px; stroke-width: 1.4; }
.mc-url { font-family: var(--f-body); direction: ltr; color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .join-row { grid-template-columns: 1fr; gap: 1.5rem; } .join-visual { order: -1; padding: 1.5rem; } }

.art-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.art { display: block; padding: 1.3rem 1.4rem; border-radius: var(--r-plate); background: var(--plate); border: 1px solid var(--line); text-decoration: none; color: var(--ink); border-inline-start: 4px solid var(--clay); }
.art h2, .art h3 { font-size: 1.12rem; color: var(--forest); }
.art p { color: var(--muted); font-size: .95rem; margin: 0; }
.art:hover h2, .art:hover h3 { color: var(--blue-2); }
.art-tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--clay-ink); margin-bottom: .3rem; }
@media (max-width: 860px) { .art-list { grid-template-columns: 1fr; } }

/* ---------------- الصفحات الداخلية ---------------- */
.crumbs { padding-top: 1rem; font-size: .88rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: .35rem; color: #a99f90; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0 1.4rem; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: .2rem 0 0; color: var(--muted); }
.page-ic { width: 64px; height: 64px; border-radius: 14px; background: var(--plate); border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); flex: none; }
.page-ic .ic { width: 34px; height: 34px; }
.ic-pharm { color: var(--clay); } .ic-pharm .ic { fill: var(--clay); stroke: none; }
.lead { font-size: 1.08rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.page-side { position: sticky; top: 1rem; display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (max-width: 960px) { .page-grid { grid-template-columns: 1fr; } .page-side { position: static; } }
.side-box { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 1rem 1.1rem; }
.side-box h2 { font-size: 1rem; margin-bottom: .5rem; }
.link-list { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.link-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem .2rem; border-bottom: 1px solid #f1e8dc; text-decoration: none; font-size: .95rem; }
.link-list li:last-child a { border-bottom: 0; }
.link-list small { color: var(--muted); }
.link-list a:hover span { text-decoration: underline; }
.side-pharm { display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; border-radius: var(--r-plate); background: var(--forest); color: #fff; text-decoration: none; font-weight: 600; }
.side-pharm .ic { fill: var(--clay); stroke: none; }
.side-pharm:hover { color: #fff; background: var(--forest-2); }
.gov-pharm { margin: 1.2rem 0 0; width: fit-content; }
.filter-bar { display: flex; gap: .5rem; margin: 0 0 1rem; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .95rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--plate); text-decoration: none; font-weight: 600; font-size: .95rem; }
.toggle.is-on { background: var(--forest); color: #fff; border-color: var(--forest); }
.toggle.is-on .dot { background: #6FE0A8; }
.toggle .dot { background: var(--ok); }
.search-top { background: var(--plate); padding: 1rem; border-radius: var(--r-plate); border: 1px solid var(--line); margin-top: 1rem; }
.empty { background: var(--plate); border: 1px dashed var(--line); border-radius: var(--r-plate); padding: 1.5rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 1.6rem 0; }
.pager a { padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--plate); text-decoration: none; font-weight: 600; }
.cta-doctor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding: 1.1rem 1.3rem; border-radius: var(--r-plate); background: #FFF6E3; border: 1px solid #F1D59A; }
.cta-doctor p { margin: 0; }
@media (max-width: 600px) { .cta-doctor { flex-direction: column; align-items: stretch; } }
.faq details { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-ctl); margin-bottom: .5rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; color: var(--forest); }
.faq details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); }
.area-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.area-cloud a { padding: .3rem .8rem; border-radius: 99px; background: var(--plate); border: 1px solid var(--line); text-decoration: none; }
.area-cloud small { color: var(--muted); }

/* ---------------- صفحة الطبيب ---------------- */
.doc-wrap { max-width: 980px; padding-bottom: 2rem; }
.doc-sign { position: relative; margin-top: 1rem; background: var(--plate); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-mount); padding: 2.4rem 2.2rem 1.8rem; text-align: center; }
.doc-sign .screw { width: 12px; height: 12px; } .doc-sign .screw::after { inset: 5px 2px; }
.doc-sign .s1, .doc-sign .s2 { top: 16px; } .doc-sign .s3, .doc-sign .s4 { bottom: 16px; }
.doc-sign .s1, .doc-sign .s3 { right: 16px; } .doc-sign .s2, .doc-sign .s4 { left: 16px; }
.doc-name { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }
.doc-title { color: var(--clay-ink); font-weight: 700; font-size: 1.25rem; margin: .2rem 0 0; }
.doc-sub { color: var(--forest); margin: .1rem 0 0; }
.doc-sign .sign-rule { margin: .8rem auto 0; width: 120px; height: 8px; border-top-width: 3.5px; border-bottom-width: 1.5px; }
.doc-place { margin: .8rem 0 0; color: var(--muted); }
.doc-verified { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; margin: .9rem 0 0; padding: .3rem .9rem; border-radius: 99px; background: #FFF4D6; color: #6B4700; font-weight: 700; font-size: .95rem; }
.doc-verified .ic { fill: var(--gold); stroke: #fff; }
.doc-verified span { font-weight: 400; color: #7d6330; font-size: .85rem; }
.doc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.doc-actions .btn { min-height: 66px; text-align: start; justify-content: center; }
.doc-actions .ic { width: 1.6em; height: 1.6em; }
.doc-status { display: flex; justify-content: center; margin: .9rem 0 0; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.doc-block { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 1.2rem 1.3rem; }
.doc-block h2 { display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; }
.doc-wide { grid-column: 1 / -1; }
.doc-address { font-size: 1.05rem; }
.map-box { display: flex; flex-wrap: wrap; gap: .4rem; }
.map-box iframe { width: 100%; height: 260px; border: 0; border-radius: var(--r-ctl); margin-top: .5rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .38rem .3rem; border-bottom: 1px solid #f1e8dc; text-align: start; font-weight: 400; }
.hours td { text-align: end; font-variant-numeric: tabular-nums; }
.hours .is-off { color: #a59b8c; }
.hours .is-today { background: #FFF6E3; font-weight: 700; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--forest); }
.hours small { color: var(--clay-ink); font-weight: 600; }
.quals { color: var(--muted); font-size: .95rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-url { flex: 1 1 220px; height: 46px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--field); padding: 0 .8rem; font: inherit; color: var(--ink); }
.fine { font-size: .88rem; color: var(--muted); margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.fine a { color: var(--muted); }
.fine .ic { margin-inline-end: .25rem; }
.similar { margin-top: 1rem; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .doc-sign { padding: 2rem 1.2rem 1.5rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-actions .btn { min-height: 58px; font-size: 1rem; }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(15,61,58,.4); transform: translateY(110%); transition: transform .2s; }
  .sticky-cta.is-shown { transform: none; }
  .is-doctor .site-footer { padding-bottom: 6rem; }
}

/* ---------------- الصيدليات ---------------- */
.pharm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.pharm-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 1rem 1.2rem; }
.ph-info h3 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .15rem; font-size: 1.08rem; }
.ph-info h3 .ic { fill: var(--clay); stroke: none; width: 1em; height: 1em; }
.ph-info p { margin: 0; color: var(--muted); font-size: .95rem; }
.ph-actions { display: flex; gap: .4rem; flex: none; }
@media (max-width: 600px) { .pharm-list li { flex-direction: column; align-items: stretch; } .ph-actions .btn { flex: 1; } }

/* ---------------- النماذج ---------------- */
.notice { padding: .8rem 1rem; border-radius: var(--r-ctl); background: #FFF6E3; border: 1px solid #F1D59A; }
.notice-ok { background: #E6F4EC; border-color: #A8D8BE; }
.notice-err { background: #FCEBE6; border-color: #F0B6A8; color: #7A2B1B; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.form legend { font-family: var(--f-sign); font-size: 1.25rem; color: var(--forest); margin-bottom: .6rem; padding: 0; }
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--forest); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-ctl); padding: .55rem .85rem; font: inherit; color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(15,61,58,.12); }
.field em { display: block; font-style: normal; color: var(--clay-ink); font-size: .9rem; margin-top: .3rem; font-weight: 600; }
.field small { display: block; color: var(--muted); margin-top: .3rem; }
.has-err input, .has-err select { border-color: var(--clay); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .5rem; margin: -.2rem 0 1rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--forest); }
.seg, .days { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label, .days label { position: relative; cursor: pointer; }
.seg input, .days input { position: absolute; opacity: 0; inset: 0; }
.seg span, .days span { display: inline-block; padding: .55rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: #fff; font-weight: 600; }
.days span { padding: .45rem .75rem; font-size: .95rem; }
.seg input:checked + span, .days input:checked + span { background: var(--forest); color: #fff; border-color: var(--forest); }
.seg input:focus-visible + span, .days input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.optional { background: var(--plate); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .3rem 1rem; margin-bottom: 1.2rem; }
.optional summary { cursor: pointer; padding: .7rem 0; font-weight: 600; color: var(--forest); }
.join-page { padding-bottom: 3rem; }
.join-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.join-preview { position: sticky; top: 1rem; }
.preview-label { font-weight: 700; color: var(--muted); margin-bottom: .5rem; }
.perks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; }
.perks li { padding-inline-start: 1.6rem; position: relative; }
.perks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } .join-preview { position: static; order: -1; } .perks { display: none; } }
.install { padding: 3rem 0; max-width: 520px; }
.msg { padding: 3rem 0; }
.prose { padding-bottom: 2rem; }
.prose h1 { margin-top: 1.2rem; }
.prose h2 { font-family: var(--f-sign); margin-top: 1.8rem; }
.prose ul { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .35rem; }

/* ---------------- التذييل ---------------- */
.site-footer { background: var(--forest); color: var(--sand); padding: 2.8rem 0 1.5rem; margin-top: 3rem; }
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .8fr; gap: 2rem; }
.footer-brand .logo-text { color: #fff; margin-bottom: .6rem; }
.footer-brand p { opacity: .85; }
.footer-h { font-weight: 700; color: #fff; margin-bottom: .5rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .95rem; }
.footer-links .cols-2 { grid-template-columns: 1fr 1fr; }
.footer-note { margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(242,230,214,.18); font-size: .85rem; opacity: .75; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------------- بطاقة QR للطباعة ---------------- */
.card-page { background: var(--sand); padding: 1.5rem; }
.card-tools { max-width: 420px; margin: 0 auto 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.card-tools p { flex-basis: 100%; color: var(--muted); font-size: .9rem; margin: 0; }
.qr-card { width: 105mm; max-width: 100%; margin: 0 auto; background: var(--forest); border-radius: 14px; padding: 9mm 8mm 7mm; text-align: center; color: var(--sand); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.qr-sign { position: relative; background: #fff; border-radius: 10px; padding: 7mm 5mm 5mm; }
.qr-sign .sign-name { justify-content: center; font-size: 1.6rem; }
.qr-sign .sign-title { margin: 0; }
.qr-sign .sign-rule { margin-inline: auto; }
.qr-ask { font-family: var(--f-sign); font-size: 1.25rem; color: #fff; margin: 1.2rem 0 .7rem; }
.qr-code { width: 46mm; height: 46mm; margin: 0 auto; background: #fff; border-radius: 8px; padding: 2mm; }
.qr-code svg { width: 100%; height: 100%; display: block; }
.qr-why { font-size: .92rem; margin: .9rem auto .3rem; max-width: 30ch; }
.qr-url { font-weight: 700; color: var(--gold); margin: 0 0 .7rem; letter-spacing: .02em; }
.qr-brand { font-size: .8rem; opacity: .75; margin: 0; }
@media print {
  @page { size: A6; margin: 0; }
  .no-print { display: none !important; }
  .card-page { background: #fff; padding: 0; }
  .qr-card { border-radius: 0; width: 105mm; min-height: 148mm; }
}

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

/* ---------------- لوحة الإدارة ---------------- */
.admin { background: #F7F1E8; }
.admin-bar { background: var(--forest); color: #fff; }
.admin-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; min-height: 60px; padding-block: .5rem; }
.admin-bar .logo-text { color: #fff; text-decoration: none; font-size: 1.25rem; }
.admin-bar .logo-text small { font-family: var(--f-body); font-size: .8rem; opacity: .7; }
.admin-bar nav { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.admin-bar nav a { color: var(--sand); text-decoration: none; font-size: .95rem; }
.admin-bar nav a:hover { color: var(--gold); }
.admin-bar nav b { background: var(--gold); color: var(--ink); border-radius: 99px; padding: 0 .45rem; font-size: .8rem; }
.admin-main { padding: 1.5rem 0 4rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.admin-head h1 { margin: 0; }
.admin-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; margin: 1rem 0 1.5rem; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .9rem 1rem; }
.kpis b { display: block; font-size: 1.6rem; color: var(--forest); line-height: 1.2; }
.kpis span { color: var(--muted); font-size: .9rem; }
.kpis .warn { border-color: var(--gold); background: #FFF6E3; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.admin-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--r-plate); padding: 1.2rem; margin-bottom: 1.2rem; }
.admin-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) { .admin-cols { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.admin-sec .table-wrap { border: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: .55rem .7rem; border-bottom: 1px solid #f0e6d8; text-align: start; vertical-align: top; }
.tbl th { background: #FBF6EE; color: var(--forest); font-weight: 700; white-space: nowrap; }
.tbl .is-done { opacity: .55; } .tbl .is-today { background: #FFF6E3; }
.acts { display: flex; flex-wrap: wrap; gap: .3rem; }
form.inline { display: inline; }
.btn-sm { min-height: 32px; padding: .2rem .7rem; font-size: .85rem; }
.btn-danger { background: #fff; color: #9b2c1a; border-color: #e7b3a7; }
.danger-zone { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.tag { display: inline-block; font-size: .75rem; padding: 0 .45rem; border-radius: 99px; background: var(--sand); color: var(--forest); font-weight: 600; }
.tag-gold { background: #FFF0C7; color: #6B4700; }
.st { font-size: .82rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: #eee; }
.st-active { background: #E3F3EA; color: var(--ok); } .st-pending { background: #FFF0C7; color: #6B4700; } .st-rejected, .st-hidden { background: #F6E1DB; color: #8a3020; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.admin-filter input, .admin-filter select { min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 0 .8rem; font: inherit; background: #fff; }
.admin-filter input { flex: 1 1 240px; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-plate); padding: 1.3rem; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 760px) { .row-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .hide-sm { display: none !important; } .doc-actions .btn span { line-height: 1.3; } }
