/* ════════════════════════════════════════════════
   موعد — Style v3
   Hero Voronoi + Dynamic Status Colors
   Mobile-First | RTL | Cairo + Amiri
   ════════════════════════════════════════════════ */

/* ─── 1. متغيرات ثابتة ──────────────────────── */
:root {
  --gold:           #C9A55A;
  --gold-light:     #E2BC72;
  --gold-xlight:    #FBF5E8;
  --gold-deep:      #A8883C;
  --primary:        #1A2535;
  --primary-mid:    #2C3E55;
  --bg:             #F5F3EE;
  --bg-card:        #FFFFFF;
  --bg-warm:        #FDFAF4;
  --text:           #1A2535;
  --text-muted:     #7A8494;
  --border:         rgba(201,165,90,.2);
  --border-hard:    rgba(201,165,90,.35);
  --shadow:         rgba(26,37,53,.06);
  --shadow-md:      rgba(26,37,53,.14);
  --shadow-gold:    rgba(201,165,90,.2);
  --danger:         #C0392B;
  --success:        #27AE60;
  --warning:        #D4AC0D;
  --radius:         10px;
  --radius-lg:      18px;
  --radius-xl:      28px;
  --trans:          .22s ease;
  --max-w:          1080px;

  /* ── متغيرات الحالة (تُعاد كتابتها بـ JS) ── */
  --accent:         #C9A55A;
  --accent-glow:    rgba(201,165,90,.55);
  --bg-dark:        #0C1520;
  --bg-tint:        rgba(10,17,28,.70);
  --badge-bg:       rgba(201,165,90,.10);
  --badge-border:   rgba(201,165,90,.40);
  --badge-color:    #7a5c1e;
  --dot-color:      #C9A55A;
}

/* ── حالة مفتوح ── */
body.s-open {
  --accent:       #22C55E;
  --accent-glow:  rgba(34,197,94,.55);
  --bg-dark:      #071410;
  --bg-tint:      rgba(5,12,8,.72);
  --badge-bg:     rgba(34,197,94,.10);
  --badge-border: rgba(34,197,94,.38);
  --badge-color:  #14532d;
  --dot-color:    #22c55e;
}
/* ── حالة مغلق ── */
body.s-closed {
  --accent:       #EF4444;
  --accent-glow:  rgba(239,68,68,.55);
  --bg-dark:      #170808;
  --bg-tint:      rgba(14,5,5,.72);
  --badge-bg:     rgba(239,68,68,.10);
  --badge-border: rgba(239,68,68,.38);
  --badge-color:  #991b1b;
  --dot-color:    #ef4444;
}
/* ── حالة عطلة ── */
body.s-vacation {
  --accent:       #FBBF24;
  --accent-glow:  rgba(251,191,36,.55);
  --bg-dark:      #140F03;
  --bg-tint:      rgba(12,9,2,.72);
  --badge-bg:     rgba(251,191,36,.10);
  --badge-border: rgba(251,191,36,.38);
  --badge-color:  #78350f;
  --dot-color:    #fbbf24;
}

/* ─── 2. Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  overflow-x: hidden;
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img    { max-width: 100%; display: block; }
a      { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul     { list-style: none; }

/* ─── 3. Container ────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* ─── 4. أزرار ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  transition: all var(--trans);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff 35%));
  color: #fff;
  box-shadow: 0 3px 14px var(--accent-glow);
  transition: all .9s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--accent-glow);
}
.btn-secondary {
  background: var(--primary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--primary-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--gold-deep);
  border: 2px solid var(--border-hard);
}
.btn-outline:hover { background: var(--gold-xlight); }
.btn-ghost {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.20); }
.btn-large    { padding: .9rem 2.25rem; font-size: 1.05rem; }
.btn-full     { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── 5. Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,250,244,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(201,165,90,.22);
  box-shadow: 0 2px 20px rgba(26,37,53,.07);
  transition: border-bottom-color .9s ease;
}
/* حد الهيدر يتغير مع الحالة */
body.s-open    .site-header { border-bottom-color: rgba(34,197,94,.28); }
body.s-closed  .site-header { border-bottom-color: rgba(239,68,68,.22); }
body.s-vacation .site-header { border-bottom-color: rgba(251,191,36,.28); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: .75rem;
  flex-wrap: wrap;
}
.header-brand { display: flex; align-items: center; gap: .7rem; }
.brand-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #fbf5e8, #fdf0d0);
  border: 1.5px solid rgba(201,165,90,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 2px 12px rgba(201,165,90,.2);
}
.brand-icon-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.brand-name { font-size: 1rem; font-weight: 800; color: #1a2535; line-height: 1.2; }
.brand-sub  { font-size: .7rem; color: #9a8a7a; }

/* شارة الحالة */
.status-badge {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .32rem .95rem;
  border-radius: 50px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-color);
  font-size: .76rem;
  font-weight: 700;
  transition: all .9s ease;
  flex-shrink: 0;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dot-color);
  transition: background .9s ease;
}
body.s-open .status-dot { animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* شريط الملاحظة */
.public-note-bar {
  background: var(--primary);
  color: rgba(255,255,255,.92);
  text-align: center;
  padding: .5rem 0;
  font-size: .85rem;
  font-weight: 700;
  border-top: 2px solid var(--accent);
  transition: border-top-color .9s ease;
}

/* ─── 6. Hero — Voronoi ───────────────────────── */
.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* SVG الخلفية */
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

/* طبقات SVG تتأثر بـ CSS variables */
.t-glow polygon { fill: var(--accent); transition: fill .9s ease; }
.t-gap  polygon { fill: var(--accent); transition: fill .9s ease; }
.t-face polygon { fill: url(#tg); }
.t-spec polygon { fill: url(#spec); }

/* overlay التدرج المعتم */
.hero-ov {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--bg-tint);
  transition: background .9s ease;
}

/* المحتوى */
.hero-content, .hero-cnt {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
}

/* eyebrow */
.hero-eyebrow, .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .32rem 1.15rem;
  border-radius: 50px;
  background: rgba(201,165,90,.12);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 1.6rem;
  transition: color .9s ease, border-color .9s ease;
}
.hero-badge::before, .ey-dot {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: background .9s ease;
  flex-shrink: 0;
  display: inline-block;
}
.hero-badge::before { content: ''; }

/* العنوان الرئيسي */
.hero-title, .hero-h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(3rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: .6rem;
  text-shadow: 0 3px 32px rgba(0,0,0,.4);
}
.hero-title em, .hero-h1 em {
  font-style: normal;
  color: var(--accent);
  transition: color .9s ease;
  text-shadow: 0 2px 24px var(--accent-glow);
}

.hero-subtitle, .hero-sub {
  font-size: 1.05rem;
  opacity: .72;
  margin-bottom: 2.6rem;
  font-weight: 400;
  line-height: 1.75;
  max-width: 440px;
}

.hero-actions, .hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.25rem;
}

/* زر الحجز في الـ hero */
.btn-hero-primary, .btn-g {
  padding: .92rem 2.25rem;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff 35%));
  color: #1a2535;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 24px var(--accent-glow);
  transition: all .9s ease;
}
.btn-hero-primary:hover, .btn-g:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px var(--accent-glow);
}

.hero-hours { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.hours-chip, .hour-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem 1.1rem;
  background: rgba(255,255,255,.09);
  border: 1px solid var(--accent-glow);
  border-radius: 50px;
  font-size: .83rem;
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  transition: border-color .9s ease;
}
.hour-b { color: var(--accent); font-weight: 700; transition: color .9s ease; }

/* ─── 7. شريط الحالة (strip) ─────────────────── */
.status-section, .strip-section {
  background: var(--bg-warm);
  border-top: 3px solid var(--accent);
  transition: border-color .9s ease;
  box-shadow: 0 4px 24px rgba(26,37,53,.07);
}
.status-card, .strip {
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--bg-warm);
  position: relative;
}

/* أيقونة الحالة */
.status-icon-wrap, .strip-ico {
  width: 54px; height: 54px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fbf5e8, #fdf0d0);
  border: 1.5px solid rgba(201,165,90,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.strip-left { display: flex; align-items: center; gap: 1rem; }
.strip-title, .status-title { font-size: 1.1rem; font-weight: 800; color: #1a2535; }
.strip-sub, .status-detail  { font-size: .8rem; color: #9a8a7a; margin-top: .1rem; }
.status-sessions, .strip-sessions { display: flex; gap: .6rem; flex-wrap: wrap; }
.session-chip, .ss {
  padding: .42rem .9rem;
  background: #fbf5e8;
  border: 1px solid rgba(201,165,90,.22);
  border-radius: 8px;
  font-size: .8rem;
  color: #1a2535;
}
.ss b, .session-time { color: #a8883c; font-weight: 700; }
.session-label { color: var(--text-muted); font-size: .72rem; font-weight: 600; }
.session-chip { display: flex; flex-direction: column; gap: .1rem; }

/* ─── 8. عنوان القسم ──────────────────────────── */
.section-header { text-align: center; margin-bottom: 2rem; }
.section-title  {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: .35rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: linear-gradient(to left, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff));
  border-radius: 2px;
  margin: .4rem auto 0;
  transition: background .9s ease;
}
.section-sub { color: var(--text-muted); font-size: .9rem; }

/* ─── 9. الخدمات ─────────────────────────────── */
.services-section { padding: 2.5rem 0; background: var(--bg-warm); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  transition: all var(--trans);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to left, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--trans), background .9s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px var(--shadow-gold); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-xlight), #FDF0D0);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.service-name { font-size: .85rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.service-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

/* Skeleton */
.skeleton {
  min-height: 110px;
  background: linear-gradient(90deg, #f0ece3 25%, #f8f4ed 50%, #f0ece3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ─── 10. قسم الطبيب ─────────────────────────── */
.doctor-section { padding: 2.5rem 0; background: var(--bg); }
.doctor-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.doctor-card::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 180px; height: 180px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,4 56,20 56,52 30,68 4,52 4,20' fill='none' stroke='rgba(201,165,90,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.doctor-avatar { flex-shrink: 0; }
.avatar-circle {
  width: 80px; height: 80px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold-xlight), #FDF0D0);
  border: 2px solid var(--border-hard);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: var(--gold-deep);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-gold);
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.doctor-info { flex: 1; min-width: 0; }
.doctor-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-xlight), #FDF0D0);
  border: 1px solid var(--border-hard);
  color: var(--gold-deep);
  padding: .2rem .75rem;
  border-radius: 50px;
  font-size: .75rem; font-weight: 700;
  margin-bottom: .6rem;
}
.doctor-name { font-size: 1.35rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.doctor-bio  { font-size: .88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.1rem; }
.doctor-contacts { display: flex; flex-direction: column; gap: .5rem; }
.contact-row { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-muted); }
.contact-icon { font-size: 1rem; }

/* ─── 11. قبل وبعد ──────────────────────────── */
.gallery-section { padding: 2.5rem 0; background: var(--bg-warm); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  transition: all var(--trans);
}
.gallery-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-gold); border-color: var(--border-hard); }
.gallery-pair { display: flex; height: 140px; }
.gallery-side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; position: relative; }
.gallery-side.before { background: #f7f3ec; }
.gallery-side.after  { background: linear-gradient(135deg, var(--gold-xlight), #FDF8EC); }
.gallery-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.gallery-img-placeholder { font-size: 2rem; opacity: .6; }
.gallery-img-placeholder.bright { opacity: 1; }
.gallery-divider { width: 2px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); flex-shrink: 0; }
.gallery-caption { padding: .65rem 1rem; font-size: .82rem; font-weight: 600; color: var(--primary); border-top: 1px solid var(--border); text-align: center; }
.gallery-note { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 1.25rem; }

/* ─── 12. FAQ ──────────────────────────────── */
.faq-section { padding: 2.5rem 0; background: var(--bg); }
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--trans); }
.faq-item:hover { border-color: var(--border-hard); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: none; font-family: 'Cairo', sans-serif; font-size: .9rem; font-weight: 600; color: var(--primary); text-align: right; cursor: pointer; transition: background var(--trans); }
.faq-q:hover { background: var(--gold-xlight); }
.faq-arrow { font-size: 1.1rem; color: var(--accent); font-weight: 700; flex-shrink: 0; transition: transform var(--trans), color .9s ease; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.1rem 1rem; font-size: .87rem; color: var(--text-muted); line-height: 1.75; border-top: 1px solid var(--border); }
.faq-item.open .faq-a { display: block; }

/* ─── 13. الموقع ──────────────────────────────── */
.location-section { padding: 2.5rem 0; background: var(--bg-warm); }
.location-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  position: relative;
  overflow: hidden;
}
.location-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpolygon points='30,4 56,20 56,52 30,68 4,52 4,20' fill='rgba(201,165,90,0.06)' stroke='rgba(201,165,90,0.12)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}
.location-info { position: relative; z-index: 1; }
.location-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .9rem; color: var(--text-muted); }
.location-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.location-address { line-height: 1.6; }
.location-phone { font-weight: 700; color: var(--primary); transition: color var(--trans); }
.location-phone:hover { color: var(--gold-deep); }

/* ─── 14. Footer ──────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 1.75rem 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpolygon points='40,5 72,23 72,59 40,77 8,59 8,23' fill='none' stroke='rgba(201,165,90,0.07)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; font-size: .95rem; }
.footer-phone { color: var(--gold-light); font-weight: 600; font-size: .88rem; transition: color var(--trans); }
.footer-phone:hover { color: var(--gold); }
.footer-copy { font-size: .75rem; opacity: .45; }

/* ─── 15. FAB + PWA ──────────────────────────── */
.fab-wrap {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: none;
}
@media (max-width: 640px) { .fab-wrap { display: block; } }
.fab-btn { border-radius: 50px; padding: .75rem 2rem; font-size: .95rem; box-shadow: 0 6px 24px rgba(26,37,53,.3); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff)); color: #1a2535; font-weight: 800; transition: all .9s ease; }

.pwa-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; background: var(--bg-card); border-top: 1px solid var(--border); padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: center; gap: .75rem; box-shadow: 0 -4px 20px var(--shadow); }
.pwa-install-btn { font-size: .88rem; }
.pwa-close-btn { background: none; border: none; font-size: 1.1rem; color: var(--text-muted); cursor: pointer; }

/* ─── 16. Modal ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,37,53,.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 1rem; } }
.modal-box { background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; box-shadow: 0 -8px 40px rgba(26,37,53,.25); }
@media (min-width: 640px) { .modal-box { border-radius: var(--radius-xl); box-shadow: 0 16px 60px rgba(26,37,53,.25); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.modal-close-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text-muted); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: all var(--trans); }
.modal-close-btn:hover { background: #f0e8d8; color: var(--gold-deep); }
.modal-body { padding: 1.5rem; }

/* حقول النموذج */
.field-group { margin-bottom: 1.1rem; }
.field-label { display: block; font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: .4rem; }
.required { color: var(--danger); }
.field-input, .field-select, .field-textarea { width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border-hard); border-radius: var(--radius); font-family: 'Cairo', sans-serif; font-size: .9rem; color: var(--text); background: var(--bg-card); transition: border-color var(--trans), box-shadow var(--trans); direction: rtl; }
.field-input:focus, .field-select:focus, .field-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); transition: all .9s ease; }
.field-input.err, .field-select.err, .field-textarea.err { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(192,57,43,.15) !important; }
.field-error { display: block; font-size: .78rem; color: var(--danger); margin-top: .3rem; }

.radio-group { display: flex; gap: .65rem; flex-wrap: wrap; }
.radio-opt { flex: 1; min-width: 130px; display: flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border: 1.5px solid var(--border-hard); border-radius: var(--radius); cursor: pointer; font-size: .88rem; font-weight: 600; transition: all var(--trans); }
.radio-opt:has(input:checked) { border-color: var(--accent); background: var(--gold-xlight); color: var(--gold-deep); }
.radio-opt input { display: none; }

.booking-success { text-align: center; padding: 1.5rem 0; }
.success-icon { font-size: 3rem; margin-bottom: .75rem; }
.booking-success h3 { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.booking-success p { color: var(--text-muted); font-size: .9rem; margin-bottom: .5rem; }
.success-note { font-size: .82rem !important; line-height: 1.6; }

/* ─── 17. Responsive ─────────────────────────── */
@media (max-width: 640px) {
  .hero-content, .hero-cnt { padding: 3.5rem 1.25rem; }
  .status-card, .strip { flex-direction: column; align-items: flex-start; }
  .hero-actions, .hero-btns { flex-direction: column; width: 100%; }
  .btn-hero-primary, .btn-g, .hero-actions .btn { width: 100%; justify-content: center; }
  .doctor-card { flex-direction: column; }
}
@media (max-width: 400px) {
  .modal-box { margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-height: 92vh; width: 100%; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .container { padding: 0 .75rem; }
  .hero-title, .hero-h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .section-title { font-size: 1.3rem; }
}

/* ─── 18. Admin utils ─────────────────────────── */
.undo-btn { padding: .3rem .8rem; border-radius: var(--radius); font-size: .8rem; font-weight: 600; background: rgba(212,172,13,.1); color: #b7950b; border: 1px solid rgba(212,172,13,.3); transition: all var(--trans); font-family: 'Cairo', sans-serif; cursor: pointer; }
.undo-btn:hover { background: rgba(212,172,13,.2); }
