/* الموقع العام — مجمع عيادات زاد الخيرية (يعتمد على متغيرات styles.css) */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.s-body { background: var(--surface); }
.s-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.s-section { padding: 84px 0; }
.s-section.alt { background: var(--bg); }
.s-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #1b2a54; background: var(--gold-50); border-radius: 99px; padding: 4px 14px; font-weight: 800; font-size: 13px; }
.s-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.s-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 12px 0 8px; font-weight: 800; line-height: 1.3; }
.s-head p { color: var(--text-2); margin: 0; font-size: 16px; }

/* header */
.s-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.s-header.scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(16,24,47,.05); }
.s-header .s-wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.s-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.s-logo .z-logo { width: 40px; height: 40px; font-size: 19px; }
.s-logo b { display: block; font-size: 15.5px; line-height: 1.2; }
.s-logo span { font-size: 12px; color: var(--text-3); }
.s-auth-side .s-logo span, .s-auth-side .s-logo b { color: #fff; }   /* الشعار على اللوحة الكحلية في الدخول/التسجيل */
.s-auth-side .s-logo span span { color: #c5cfe8; }
.s-nav { display: flex; gap: 2px; margin-inline-start: 8px; }
.s-nav a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 8px 10px; border-radius: 9px; }
.s-nav a:hover { color: var(--brand-700); background: var(--brand-50); }
.s-acts { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.s-menu { display: none !important; }
.s-user { display: flex; align-items: center; gap: 8px; }
.s-user .hello { font-weight: 700; font-size: 14px; }

/* hero */
.s-hero { position: relative; overflow: hidden; padding: 64px 0 80px; background: linear-gradient(180deg, #f5f7fb 0%, #fff 100%); }
.s-hero::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(34,52,104,.16), transparent 68%); inset-inline-end: -160px; top: -160px; }
.s-hero::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(74,104,184,.16), transparent 68%); inset-inline-start: -140px; bottom: -200px; }
.s-hero .s-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.s-hero h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.22; margin: 16px 0 14px; font-weight: 800; letter-spacing: -.01em; }
.s-hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.s-hero h1 em::after { content: ''; position: absolute; inset-inline: 0; bottom: 4px; height: 10px; background: rgba(74,104,184,.28); z-index: -1; border-radius: 4px; }
.s-hero p.lead { color: var(--text-2); font-size: 17.5px; max-width: 560px; margin: 0 0 26px; }
.s-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.s-cta .z-btn-md { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.s-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.s-stats div b { display: block; font-size: 26px; font-weight: 800; color: var(--brand-700); }
.s-stats div span { color: var(--text-2); font-size: 13.5px; }
.s-live { background: #fff; border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 70px rgba(16,24,47,.12); padding: 20px; }
.s-live h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.s-live h3 i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-50); }
.s-live > p { color: var(--text-3); font-size: 13px; margin: 0 0 12px; }
.s-live-row { width: 100%; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 13px; padding: 10px 12px; background: var(--surface); cursor: pointer; text-align: start; margin-bottom: 8px; transition: border-color .15s, transform .15s; }
.s-live-row:hover { border-color: var(--brand); transform: translateY(-1px); }
.s-live-row .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; font-weight: 800; }
.s-live-row b { display: block; font-size: 14.5px; }
.s-live-row small { color: var(--text-3); font-size: 12.5px; }
.s-live-row .when { margin-inline-start: auto; text-align: end; font-size: 12.5px; color: var(--brand-700); font-weight: 700; white-space: nowrap; }

/* about */
.s-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.s-about h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 12px 0; line-height: 1.35; }
.s-about p { color: var(--text-2); font-size: 16px; }
.s-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.s-value { background: var(--bg); border-radius: 16px; padding: 18px; }
.s-value .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.s-value b { display: block; margin-bottom: 4px; }
.s-value span { color: var(--text-2); font-size: 14px; }

/* cards */
.s-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.s-spec { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .2s, transform .2s; }
.s-spec:hover { box-shadow: 0 16px 40px rgba(16,24,47,.08); transform: translateY(-2px); }
.s-spec .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.s-spec h3 { margin: 4px 0 0; font-size: 18px; }
.s-spec p { color: var(--text-2); margin: 0; font-size: 14.5px; flex: 1; }
.s-spec .meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); font-size: 13px; margin-top: 6px; }
.s-doc { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.s-doc .z-avatar { width: 72px; height: 72px; font-size: 24px; margin-bottom: 6px; }
.s-doc h3 { margin: 0; font-size: 17px; }
.s-doc .spec { font-weight: 800; font-size: 13.5px; }
.s-doc p { color: var(--text-2); font-size: 13.5px; margin: 2px 0 6px; flex: 1; }
.s-doc .days { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-bottom: 10px; }
.s-doc .days span { background: var(--bg); border-radius: 99px; padding: 1px 9px; font-size: 12px; color: var(--text-2); }

/* services */
.s-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.s-tab { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 8px 18px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.s-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.s-prices { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.s-price { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--border); }
.s-price:first-child { border-top: 0; }
.s-price .n { flex: 1; min-width: 0; }
.s-price .n b { display: block; }
.s-price .n small { color: var(--text-3); }
.s-price .d { color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.s-price .p { font-weight: 800; color: var(--brand-700); font-size: 17px; white-space: nowrap; min-width: 90px; text-align: end; }

/* steps & hours & contact */
.s-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.s-step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; position: relative; }
.s-step::before { counter-increment: st; content: counter(st); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.s-step b { display: block; margin-bottom: 4px; }
.s-step span { color: var(--text-2); font-size: 14px; }
.s-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.s-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.s-card h3 { margin: 0 0 12px; font-size: 18px; display: flex; gap: 8px; align-items: center; }
.s-hours { width: 100%; border-collapse: collapse; }
.s-hours td { padding: 9px 4px; border-bottom: 1px solid var(--border); }
.s-hours tr:last-child td { border-bottom: 0; }
.s-hours tr.today td { color: var(--brand-700); font-weight: 800; }
.s-hours td:last-child { text-align: end; }
.s-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.s-info li { display: flex; gap: 12px; align-items: flex-start; }
.s-info .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.s-info small { display: block; color: var(--text-3); }
.s-band { background: linear-gradient(120deg, var(--brand-700), var(--brand)); color: #fff; border-radius: 24px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.s-band h3 { margin: 0 0 4px; font-size: 24px; }
.s-band p { margin: 0; color: #d6ddf0; }

.s-footer { background: #10182f; color: #b9c4e2; padding: 40px 0 26px; }
.s-footer .s-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.s-footer a { color: #e2e7f5; text-decoration: none; }
.s-footer .copy { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; margin-top: 10px; font-size: 13px; }

/* booking modal */
.s-book .z-dialog-body { padding-top: 12px; }
.s-book-steps { display: flex; gap: 4px; margin-bottom: 16px; }
.s-book-steps i { flex: 1; height: 5px; border-radius: 99px; background: var(--gray-50); }
.s-book-steps i.on { background: var(--brand); }
.s-book h4 { margin: 0 0 12px; font-size: 16px; }
.s-ok { text-align: center; padding: 8px 0; }
.s-ok .mark { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; background: var(--ok-50); color: var(--ok); }
.s-ref { display: inline-block; background: var(--gold-50); color: #223468; border: 1px dashed #8fa6e0; border-radius: 12px; padding: 8px 18px; font-size: 22px; font-weight: 800; letter-spacing: 1px; margin: 6px 0 12px; }

/* auth pages */
.s-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.s-auth-side { background: linear-gradient(150deg, var(--brand-700), var(--brand) 60%, var(--brand-600)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.s-auth-side::after { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(34,52,104,.28), transparent 70%); inset-inline-start: -120px; bottom: -120px; }
.s-auth-side h2 { font-size: 32px; margin: 0 0 10px; line-height: 1.35; }
.s-auth-side p { color: var(--brand-100); font-size: 16px; }
.s-auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.s-auth-side li { display: flex; gap: 10px; align-items: center; }
.s-auth-side a { color: #fff; }
.s-auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.s-auth-box { width: 100%; max-width: 420px; }
.s-auth-box h1 { font-size: 28px; margin: 0 0 6px; }
.s-auth-box > p { color: var(--text-2); margin: 0 0 24px; }
/* تصميم احترافي لصفحة الدخول */
.s-auth-main { background: var(--bg); background-image: radial-gradient(circle at 15% 10%, rgba(34,52,104,.07), transparent 40%), radial-gradient(circle at 85% 90%, rgba(34,52,104,.07), transparent 40%); }
.s-auth-card { background: var(--surface); border: 1px solid var(--border, #e3e7f0); border-radius: 22px; padding: 40px 36px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 18px 48px -12px rgba(16,24,47,.18); }
.s-auth-card h1 { font-size: 26px; text-align: center; }
.s-auth-card > p { text-align: center; }
.s-auth-logo { display: block; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; box-shadow: 0 6px 18px rgba(34,52,104,.2); }
.s-auth-card .z-input, .s-auth-card input { min-height: 48px; }
.s-auth-card button[type=submit] { min-height: 50px; font-size: 16px; box-shadow: 0 8px 20px -8px rgba(34,52,104,.6); }
.s-auth-or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 22px 0 14px; }
.s-auth-or::before, .s-auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border, #e3e7f0); }
.s-auth-alt { display: flex; justify-content: center; align-items: center; min-height: 48px; border: 1.5px solid var(--brand); color: var(--brand); border-radius: 12px; font-weight: 700; text-decoration: none; transition: .15s; }
.s-auth-alt:hover { background: var(--brand); color: #fff; }
.s-auth-note { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0 0 !important; padding: 12px 14px; background: var(--bg); border-radius: 12px; font-size: 13px; color: var(--text-2); text-align: start !important; }
.s-auth-side::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; }
.s-auth-side > * { position: relative; z-index: 1; }
.s-auth-side h2 { font-size: 38px; }
.s-auth-side li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 14px; max-width: 380px; gap: 14px; }
.s-auth-side li small { display: block; color: var(--brand-100); font-size: 13px; }
.s-auth-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.s-pass { position: relative; }
.s-pass .z-input { padding-inline-end: 44px; }
.s-pass button { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--text-3); padding: 6px; }
.s-demo { margin-top: 22px; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.s-demo b { font-size: 13.5px; }
.s-demo-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.s-demo-row:first-of-type { border-top: 0; }

/* patient portal */
.s-portal { background: var(--bg); min-height: calc(100vh - 72px); padding: 28px 0 60px; }
.s-welcome { background: linear-gradient(120deg, var(--brand-700), var(--brand) 60%, var(--brand-600)); color: #fff; border-radius: 20px; padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.s-welcome h1 { margin: 0; font-size: 24px; }
.s-welcome p { margin: 4px 0 0; color: var(--brand-100); }
.s-appt { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.s-appt + .s-appt { margin-top: 12px; }
.s-appt .date { width: 74px; flex: none; text-align: center; background: var(--brand-50); color: var(--brand-700); border-radius: 14px; padding: 8px 4px; }
.s-appt .date b { display: block; font-size: 24px; line-height: 1.1; }
.s-appt .date small { font-size: 12px; }
.s-appt .info { flex: 1; min-width: 200px; }
.s-appt .info b { font-size: 16px; }
.s-appt .info div { color: var(--text-2); font-size: 14px; }
.s-appt .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.s-inbox { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; }
.s-inbox + .s-inbox { margin-top: 10px; }
.s-inbox.unread { border-color: var(--brand-100); background: #fafbfd; }
.s-inbox p { margin: 4px 0 0; color: var(--text-2); white-space: pre-line; font-size: 14px; }

/* responsive */
@media (max-width: 1080px) {
  .s-nav { display: none; }
  .s-menu { display: inline-flex !important; }
  .s-header.open .s-nav { display: flex; flex-direction: column; position: absolute; top: 72px; inset-inline: 0; background: #fff; padding: 10px 20px 16px; border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(0,0,0,.06); }
  .s-hero .s-wrap, .s-about, .s-contact { grid-template-columns: minmax(0, 1fr); }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .s-section { padding: 56px 0; }
  .s-hide-sm { display: none !important; }
  .s-auth { grid-template-columns: minmax(0, 1fr); }
  .s-auth-side { padding: 28px 20px; }
  .s-auth-side ul { display: none; }
  .s-values { grid-template-columns: minmax(0, 1fr); }
  .s-steps { grid-template-columns: minmax(0, 1fr); }
  .s-price { flex-wrap: wrap; }
  .s-price .p { min-width: 0; }
  .s-band { padding: 24px; }
  .s-acts .z-btn-md { height: 38px; padding: 0 12px; font-size: 14px; }
}
@media (max-width: 760px) {
  .s-header .s-wrap { gap: 8px; padding: 0 12px; }
  .s-logo > span:last-child { display: none; }
  .s-acts { gap: 6px; }
  .s-acts .z-btn-icon { width: 38px; height: 38px; }
}
@media (max-width: 400px) {
  .s-acts > .z-btn-primary span { display: none; }
  .s-acts > .z-btn-primary { width: 40px; padding: 0; }
}
.s-nav .only-m { display: none; }
@media (max-width: 1080px) {
  .s-header.open .s-nav .only-m { display: block; color: var(--brand-700); }
}

/* أزرار الدخول وإنشاء الحساب في الهيدر — مميزة عن زر الحجز */
.s-btn-login { background: transparent; color: var(--brand-700); border: 1.5px solid var(--brand); }
.s-btn-login:hover { background: var(--brand-50); }
.s-btn-signup { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; border: 0; box-shadow: 0 6px 16px rgba(34,52,104,.3); }
.s-btn-signup:hover { filter: brightness(1.1); transform: translateY(-1px); }
.s-header.on-dark .s-btn-login { color: #fff; border-color: rgba(255,255,255,.55); }
.s-header.on-dark .s-btn-login:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.s-header.on-dark .s-btn-signup { background: linear-gradient(135deg, #4a68b8, #223468); box-shadow: 0 6px 18px rgba(34,52,104,.35), inset 0 0 0 1px rgba(255,255,255,.18); }

/* جدول عمل الطبيب داخل نافذة الحجز */
.s-dweek { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; background: var(--surface-2); }
.s-dweek summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--brand-700); }
.s-dweek[open] summary { margin-bottom: 10px; }

/* زر جوجل */
.s-gbtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 16px; background: #fff; color: #3c4043; border: 1.5px solid #dadce0; border-radius: 12px; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; transition: box-shadow .15s, background .15s, border-color .15s; }
.s-gbtn:hover:not(:disabled) { background: #f8f9fa; border-color: #c6c9cc; box-shadow: 0 1px 3px rgba(60,64,67,.25); }
.s-gbtn:active:not(:disabled) { background: #f1f3f4; }
.s-gbtn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 2px; }
.s-gbtn:disabled { opacity: .6; cursor: progress; }
.s-gnote { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
