:root { --ink:#142321; --muted:#5d6d69; --teal:#006a63; --teal-dark:#073f3c; --mint:#e7f2ec; --paper:#fbfaf6; --gold:#b98934; --coral:#ba5b49; --white:#fff; --line:#d9e0dc; --shadow:0 18px 46px rgba(7,63,60,.14); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Tahoma,"Noto Sans Arabic","Segoe UI",Arial,sans-serif; line-height:1.7; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button { cursor:pointer; }
img { display:block; max-width:100%; }
.site-shell { min-height:100vh; overflow:hidden; }
.topbar { width:min(1240px,calc(100% - 40px)); min-height:78px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.language-switch { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:#fff; font-size:1.35rem; line-height:1; box-shadow:0 4px 14px rgba(20,35,33,.08); }
.language-switch:focus-visible { outline:3px solid rgba(0,106,99,.25); outline-offset:2px; }
.arabic-header .language-switch { order:3; }
.brand { display:flex; align-items:flex-start; flex-direction:column; line-height:1.2; }
.brand span { color:var(--teal-dark); font-weight:900; font-size:1.25rem; }
.brand small { color:var(--muted); }
.topbar nav { display:flex; align-items:center; gap:26px; font-weight:750; }
.nav-cta { border:1px solid var(--teal); border-radius:6px; color:var(--teal); padding:8px 16px; }
.hero { width:min(1240px,calc(100% - 40px)); min-height:calc(92vh - 78px); margin:auto; padding:52px 0 80px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(440px,1.1fr); align-items:center; gap:clamp(36px,6vw,88px); }
.hero-content { max-width:650px; }
.eyebrow,.section-label { margin:0 0 12px; color:var(--coral); font-size:.95rem; font-weight:900; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:22px; color:var(--teal-dark); font-size:clamp(2.7rem,6vw,5.3rem); font-weight:900; line-height:1.05; letter-spacing:0; }
h1 span { color:var(--coral); }
h2 { color:var(--teal-dark); font-size:clamp(2rem,4vw,3.35rem); line-height:1.18; font-weight:900; letter-spacing:0; }
h3 { color:var(--teal-dark); font-size:1.35rem; line-height:1.3; }
.hero-copy,.section-heading>p,.doctor-band>p,.benefits-copy>p,.safety-band p,.form-heading>p { color:var(--muted); font-size:clamp(1.02rem,1.5vw,1.24rem); }
.doctor-signature { border-right:3px solid var(--gold); padding-right:15px; display:flex; flex-direction:column; color:var(--teal-dark); }
.doctor-signature strong { font-size:1.08rem; }
.doctor-signature span { color:var(--muted); font-size:.92rem; }
[dir="ltr"] .doctor-signature { border-right:0; border-left:3px solid var(--gold); padding-right:0; padding-left:15px; }
[dir="ltr"] .booking-aside li { padding:0 0 24px 52px; }
[dir="ltr"] .booking-aside li::before { right:auto; left:0; }
[dir="ltr"] .benefits-copy li { padding:10px 0 10px 32px; }
[dir="ltr"] .benefits-copy li::before { right:auto; left:0; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:28px 0 22px; }
.button { min-height:50px; border:0; border-radius:6px; padding:12px 22px; display:inline-flex; align-items:center; justify-content:center; font-weight:850; transition:transform .18s ease,box-shadow .18s ease; }
.button:hover { transform:translateY(-2px); }
.button-primary { background:var(--teal); color:var(--white); box-shadow:0 12px 28px rgba(0,106,99,.22); }
.button-secondary { border:1px solid var(--line); background:var(--white); color:var(--teal-dark); }
.button-light { background:var(--white); color:var(--teal-dark); }
.hero-badges { display:flex; flex-wrap:wrap; gap:8px; }
.hero-badges span { border:1px solid #c8d7d1; border-radius:999px; background:#fff; color:var(--teal-dark); padding:7px 12px; font-size:.9rem; font-weight:750; }
.carousel { min-width:0; }
.carousel-stage { position:relative; aspect-ratio:3/2; overflow:hidden; border-radius:8px; background:#dbe9e4; box-shadow:var(--shadow); }
.carousel-slide { position:absolute; inset:0; margin:0; opacity:0; transition:opacity .55s ease; pointer-events:none; }
.carousel-slide.active { opacity:1; pointer-events:auto; }
.carousel-slide img { width:100%; height:100%; object-fit:cover; }
.carousel-slide figcaption { position:absolute; right:18px; bottom:18px; max-width:calc(100% - 36px); border-radius:5px; background:rgba(7,63,60,.9); color:#fff; padding:8px 13px; font-weight:800; }
.carousel-arrow { position:absolute; top:50%; z-index:2; width:42px; height:42px; transform:translateY(-50%); border:1px solid rgba(255,255,255,.7); border-radius:50%; background:rgba(255,255,255,.9); color:var(--teal-dark); font-size:2rem; line-height:1; box-shadow:0 4px 18px rgba(0,0,0,.14); }
.carousel-next { right:14px; }.carousel-prev { left:14px; }
.carousel-dots { display:flex; justify-content:center; gap:8px; margin-top:14px; }
.carousel-dots button { width:9px; height:9px; padding:0; border:0; border-radius:50%; background:#aab9b4; }
.carousel-dots button[aria-selected="true"],.carousel-dots button.active { width:28px; border-radius:6px; background:var(--teal); }
.doctor-band { width:100%; padding:clamp(38px,6vw,68px) max(20px,calc((100% - 1180px)/2)); display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; align-items:center; background:var(--mint); border-block:1px solid #d3e1db; }
.doctor-band h2 { margin-bottom:0; }
.doctor-band>p { margin-bottom:0; }
.section,.benefits-band,.booking-section,.safety-band { width:min(1180px,calc(100% - 40px)); margin:auto; }
.section { padding:clamp(64px,9vw,108px) 0; }
.section-heading { max-width:800px; margin-bottom:32px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.feature-card { border-top:4px solid var(--teal); background:#fff; padding:30px; box-shadow:0 12px 32px rgba(20,35,33,.07); }
.feature-card>span { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:var(--mint); color:var(--teal); font-weight:900; }
.feature-card h3 { margin:24px 0 9px; }
.feature-card p { margin-bottom:0; color:var(--muted); }
.benefits-band { display:grid; grid-template-columns:1fr 1fr; align-items:stretch; background:var(--teal-dark); color:#fff; }
.benefits-image { min-height:570px; }
.benefits-image img { width:100%; height:100%; object-fit:cover; }
.benefits-copy { padding:clamp(34px,6vw,70px); }
.benefits-copy h2,.benefits-copy>p,.benefits-copy .section-label { color:#fff; }
.benefits-copy ul { margin:28px 0; padding:0; list-style:none; }
.benefits-copy li { position:relative; padding:10px 32px 10px 0; border-bottom:1px solid rgba(255,255,255,.16); }
.benefits-copy li::before { content:"✓"; position:absolute; right:0; color:#e9be6c; font-weight:900; }
.comparison-table { border:1px solid var(--line); background:#fff; overflow:hidden; }
.comparison-row { display:grid; grid-template-columns:.85fr 1fr 1fr; border-top:1px solid var(--line); }
.comparison-row:first-child { border-top:0; }
.comparison-row span { padding:18px; }
.comparison-head { background:var(--teal-dark); color:#fff; font-weight:850; }
.comparison-row:not(.comparison-head) span:nth-child(2) { color:var(--teal); font-weight:850; }
.comparison-row:not(.comparison-head) span:nth-child(3) { color:#805849; }
.booking-section { margin-bottom:clamp(68px,9vw,110px); display:grid; grid-template-columns:.78fr 1.22fr; align-items:stretch; border:1px solid var(--line); background:#fff; }
.booking-aside { background:#edf4f0; padding:clamp(30px,5vw,58px); }
.booking-aside ol { margin:32px 0; padding:0; list-style:none; counter-reset:booking; }
.booking-aside li { position:relative; padding:0 52px 24px 0; display:flex; flex-direction:column; }
.booking-aside li::before { counter-increment:booking; content:counter(booking); position:absolute; right:0; top:0; width:34px; height:34px; border-radius:50%; display:grid; place-items:center; background:var(--teal); color:#fff; font-weight:900; }
.booking-aside li span { color:var(--muted); }
.schedule-note { border-top:1px solid #cbd9d3; padding-top:18px; color:var(--teal-dark); font-weight:750; }
.booking-form { padding:clamp(30px,5vw,58px); }
.form-heading h2 { margin-bottom:8px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.booking-form label,.admin-form label { display:flex; flex-direction:column; gap:6px; color:var(--teal-dark); font-weight:800; }
.booking-form input,.booking-form select,.booking-form textarea { width:100%; min-height:48px; border:1px solid #c9d3cf; border-radius:5px; background:#fff; padding:10px 12px; color:var(--ink); outline:none; }
.booking-form input:focus,.booking-form select:focus,.booking-form textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(0,106,99,.1); }
.full-field { grid-column:1/-1; }
.emergency-toggle { margin:20px 0; padding:14px; flex-direction:row!important; align-items:flex-start; gap:10px!important; border:1px solid #e6c9c2; background:#fff8f6; }
.emergency-toggle input { width:18px!important; min-height:18px!important; margin-top:4px; }
.emergency-toggle span { display:flex; flex-direction:column; }
.emergency-toggle small { color:var(--muted); font-weight:400; }
.submit-button { width:100%; margin-top:22px; }
.form-status { margin:14px 0 0; padding:12px; border-radius:5px; font-weight:750; }
.form-status.success { background:#e4f4e9; color:#176234; }.form-status.error { background:#fff0ed; color:#9a3c2d; }
.form-fineprint { margin:12px 0 0; color:var(--muted); font-size:.86rem; text-align:center; }
.safety-band { margin-bottom:24px; padding:clamp(30px,5vw,52px); display:flex; justify-content:space-between; align-items:center; gap:30px; background:var(--teal); color:#fff; }
.safety-band h2,.safety-band p,.safety-band .section-label { color:#fff; }
.safety-band p { max-width:800px; margin-bottom:0; opacity:.9; }
.faq-list { display:grid; gap:10px; }
.faq details { border:1px solid var(--line); background:#fff; padding:0 20px; }
.faq summary { cursor:pointer; padding:18px 0; color:var(--teal-dark); font-weight:850; }
.faq details p { padding-bottom:20px; color:var(--muted); }
footer { padding:32px max(20px,calc((100% - 1180px)/2)); display:flex; justify-content:space-between; align-items:center; gap:20px; background:#102d2b; color:#fff; }
footer div { display:flex; flex-direction:column; } footer span,footer a { color:#b8cbc4; }
.mobile-bar { display:none; position:fixed; z-index:20; right:10px; bottom:10px; left:10px; grid-template-columns:1fr 1fr; gap:8px; padding:8px; background:rgba(7,63,60,.94); border-radius:7px; box-shadow:0 10px 32px rgba(0,0,0,.25); }
.mobile-bar a { border-radius:5px; background:#fff; color:var(--teal-dark); padding:10px; text-align:center; font-weight:900; }

/* Back-office */
.admin-shell { min-height:100vh; display:grid; grid-template-columns:245px minmax(0,1fr); background:#f3f5f4; color:#1a2826; font-family:"Segoe UI",Arial,sans-serif; line-height:1.5; }
.admin-sidebar { position:sticky; top:0; height:100vh; padding:24px 18px; display:flex; flex-direction:column; background:#153c39; color:#fff; }
.admin-brand { padding:0 8px 22px; display:flex; flex-direction:column; border-bottom:1px solid rgba(255,255,255,.14); }
.admin-brand strong { font-size:1rem; }.admin-brand span { color:#a8c9c2; font-size:.85rem; }
.admin-sidebar nav { display:grid; gap:5px; margin-top:22px; }
.admin-sidebar nav button { border:0; border-radius:5px; background:transparent; color:#c8dad6; padding:10px 12px; text-align:left; }
.admin-sidebar nav button:hover,.admin-sidebar nav button.active { background:#fff; color:#153c39; font-weight:800; }
.admin-sidebar nav a { border-radius:5px; color:#c8dad6; padding:10px 12px; }
.admin-sidebar nav a:hover,.admin-sidebar nav a.active { background:#fff; color:#153c39; font-weight:800; }
.admin-account { margin-top:auto; padding:16px 8px 0; display:flex; flex-direction:column; border-top:1px solid rgba(255,255,255,.14); }
.admin-account small { color:#a8c9c2; }.admin-account a { margin-top:8px; color:#fff; text-decoration:underline; font-size:.85rem; }
.admin-main { min-width:0; padding:34px clamp(22px,4vw,58px) 60px; }
.admin-header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:24px; }
.admin-header p { margin-bottom:2px; color:#71817d; font-size:.88rem; }
.admin-header h1 { margin:0; font-size:clamp(1.8rem,3vw,2.6rem); color:#153c39; }
.admin-site-link,.admin-panel button,.admin-form button,.staff-form button { border:1px solid #b9c6c2; border-radius:5px; background:#fff; color:#153c39; padding:9px 13px; font-weight:700; }
.admin-message { border-left:4px solid #b98934; background:#fff7e8; padding:12px 16px; }
.admin-panel { border:1px solid #d6ddda; background:#fff; padding:24px; }
.admin-panel h2 { margin-bottom:20px; font-size:1.25rem; color:#153c39; }
.admin-panel-head { display:flex; justify-content:space-between; align-items:center; padding-bottom:18px; border-bottom:1px solid #e0e5e3; }
.admin-panel-head div { display:flex; align-items:baseline; gap:8px; }.admin-panel-head strong { font-size:1.7rem; color:#ba5b49; }
.appointment-list { display:grid; }
.appointment-row { min-width:0; display:grid; grid-template-columns:105px minmax(180px,1fr) 110px minmax(180px,auto); gap:18px; align-items:center; padding:18px 0; border-bottom:1px solid #e4e8e6; }
.appointment-row.emergency { border-left:4px solid #ba5b49; padding-left:14px; }
.appointment-row.slot-conflict { margin:0 -12px; padding-right:12px; border:2px solid #cf3f35; background:#fff8f7; }.conflict-warning { color:#a72f28!important; }.conflict-counter { display:flex; align-items:baseline; gap:8px; color:#a72f28; }.conflict-counter strong { font-size:1.5rem; }.conflict-summary { margin-top:18px; border:2px solid #cf3f35; }.conflict-summary-head { display:flex; justify-content:space-between; gap:24px; align-items:end; }.conflict-summary-head h2 { margin:0; }.conflict-summary-head>p { max-width:600px; margin:0; color:#6c4a46; }.conflict-groups { display:grid; gap:12px; margin-top:18px; }.conflict-groups>article { border:1px solid #e2b0ab; background:#fff9f8; }.conflict-groups article>header { display:flex; align-items:center; gap:12px; padding:10px 12px; background:#fbe5e2; }.conflict-groups article>header b { margin-left:auto; color:#a72f28; }.conflict-groups article>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:8px; padding:10px; }.conflict-groups button { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #d5dcda; background:#fff; color:#153c39; }.conflict-groups button small { font-weight:800; }.conflict-groups button small.pending { color:#8a5c00; }.conflict-groups button small.confirmed { color:#176234; }
.appointment-date,.appointment-person { display:flex; flex-direction:column; }.appointment-date strong { font-size:1.25rem; color:#153c39; }.appointment-date span,.appointment-person a { color:#60716c; }
.appointment-person p { margin:7px 0 0; color:#8e3f31; font-size:.9rem; }
.appointment-person .internal-note { color:#52635e; }
.status-pill { border-radius:999px; padding:5px 9px; text-align:center; font-size:.82rem; font-weight:800; background:#ecefee; }
.status-pill.pending { background:#fff0cf; color:#775000; }.status-pill.confirmed { background:#dcf0e2; color:#176234; }.status-pill.rejected,.status-pill.cancelled { background:#f5e4e1; color:#8e3f31; }
.appointment-actions { display:flex; justify-content:flex-end; gap:7px; }.appointment-actions button.confirm { background:#087067; color:#fff; border-color:#087067; }
.admin-two-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; align-items:start; }
.admin-form { display:grid; gap:14px; }
.admin-form input,.admin-form select,.admin-form textarea,.staff-form input,.staff-form select,.hours-form input { width:100%; min-height:42px; border:1px solid #cbd4d1; border-radius:4px; padding:8px 10px; background:#fff; }
.admin-form button,.staff-form button,.hours-form>button { background:#087067; color:#fff; border-color:#087067; }
.inline-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.compact-list { margin-top:24px; border-top:1px solid #e0e5e3; }
.compact-list>div { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid #e8ecea; }
.compact-list span { display:flex; gap:7px; flex-direction:column; }.compact-list small { color:#677772; }
.gallery-row { display:grid; grid-template-columns:72px minmax(120px,1fr) auto auto; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #e5e9e7; }
.gallery-row img { width:72px; height:52px; object-fit:cover; }.gallery-row span { display:flex; flex-direction:column; }.gallery-row small { color:#71817d; }
.hours-form { display:grid; gap:8px; }.hours-row { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:8px; align-items:center; }.hours-row label { display:flex; gap:7px; align-items:center; }.hours-row label input { width:16px; min-height:16px; }
.hours-form>button { margin-top:12px; border:0; border-radius:5px; padding:10px; font-weight:800; }
.staff-form { display:grid; grid-template-columns:1fr 1.3fr .8fr auto; gap:10px; margin-bottom:24px; }
.staff-list>div { display:grid; grid-template-columns:1fr 140px 90px; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #e4e8e6; }.staff-list span { display:flex; flex-direction:column; }.staff-list small { color:#71817d; }.staff-list b { font-size:.85rem; }
.empty-state { padding:24px 0; color:#71817d; }.admin-loading { min-height:100vh; display:grid; place-content:center; text-align:center; font-family:"Segoe UI",Arial,sans-serif; }.admin-loading a { color:#087067; text-decoration:underline; }
.reschedule-panel { margin-top:18px; border-left:4px solid #b98934; }
.calendar-panel { padding-bottom:16px; }
.calendar-scroll { overflow:auto; border:1px solid #d6ddda; }
.schedule-grid { min-width:1640px; display:grid; background:#dfe5e2; gap:1px; }
.schedule-corner,.schedule-day,.schedule-time,.schedule-cell { min-height:54px; background:#fff; }
.schedule-corner,.schedule-time { position:sticky; left:0; z-index:2; display:grid; place-items:center; font-weight:800; color:#42534f; }
.schedule-corner { z-index:4; background:#153c39; color:#fff; }
.schedule-day { position:sticky; top:0; z-index:3; padding:7px; display:flex; flex-direction:column; align-items:center; background:#eef3f1; color:#153c39; }
.schedule-day span { font-size:.78rem; color:#697a75; }
.schedule-cell { border:0; border-radius:0; padding:6px; font-size:.76rem; line-height:1.25; }
.schedule-cell.available { background:#dff3e6; color:#236340; }.schedule-cell.blocked { background:#ffe3b8; color:#76501e; }.schedule-cell.appointment { background:#cfe4f7; color:#174e78; font-weight:800; }.schedule-cell.closed { background:#ecefee; color:#7d8986; }
.schedule-cell.appointment:hover { outline:2px solid #2772a8; outline-offset:-2px; }
.schedule-cell.appointment-stack { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:3px; padding:3px; background:#fff; }.schedule-cell.appointment-stack.conflict { border:3px solid #d33f35; background:#fff1ef; }.schedule-appointment { min-width:0; width:100%; border:0; border-radius:3px; padding:5px 3px; overflow-wrap:anywhere; font-size:.7rem; line-height:1.2; font-weight:800; cursor:pointer; }.schedule-appointment.pending { background:#ffe4a8; color:#704900; }.schedule-appointment.confirmed { background:#cfe4f7; color:#174e78; }.schedule-appointment:hover { outline:2px solid #174e78; outline-offset:-2px; }
.schedule-legend { margin-top:14px; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:14px; color:#52635e; font-size:.85rem; }
.schedule-legend span { display:flex; align-items:center; gap:6px; }.schedule-legend i { width:14px; height:14px; border:1px solid rgba(0,0,0,.08); }.schedule-legend i.available { background:#dff3e6; }.schedule-legend i.pending { background:#ffe4a8; }.schedule-legend i.blocked { background:#ffe3b8; }.schedule-legend i.appointment { background:#cfe4f7; }.schedule-legend i.conflict { background:#fff1ef; border:2px solid #d33f35; }.schedule-legend i.closed { background:#ecefee; }
.gallery-layout { display:grid; grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr); gap:18px; align-items:start; }
.format-hint { margin:0; padding:10px; background:#eef6f3; color:#3d5c55; font-size:.82rem; }
.gallery-cards { display:grid; gap:16px; }.gallery-card { display:grid; grid-template-columns:220px minmax(220px,1fr); gap:16px; padding:16px 0; border-bottom:1px solid #e1e6e4; }
.gallery-preview { aspect-ratio:3/2; overflow:hidden; background:#edf1ef; }.gallery-preview img { width:100%; height:100%; object-fit:cover; }
.gallery-edit-form,.gallery-replace { display:grid; gap:9px; }.gallery-edit-form label,.gallery-replace label { display:grid; gap:4px; font-weight:700; color:#29443f; }.gallery-edit-form input,.gallery-replace input { min-height:38px; border:1px solid #cbd4d1; padding:7px; }
.gallery-replace { grid-column:2; padding-top:10px; border-top:1px dashed #cdd7d3; }.gallery-replace small { color:#657671; }.gallery-actions { display:flex; align-items:center; gap:16px; }.visibility-check { display:flex!important; grid-auto-flow:column; align-items:center; }.visibility-check input { min-height:auto; width:16px; }
.danger-button { grid-column:2; justify-self:start; color:#923f33!important; border-color:#dbb9b2!important; }
.content-editor>form { display:grid; }.content-header,.content-row { display:grid; grid-template-columns:180px 1fr 1fr; gap:14px; padding:14px 0; border-bottom:1px solid #e2e7e5; }.content-header { position:sticky; top:0; z-index:2; background:#153c39; color:#fff; padding:11px 14px; }.content-row>label:first-child { align-self:start; color:#314742; font-weight:800; }.content-row label { display:grid; gap:5px; }.content-row label span { display:none; }.content-row input,.content-row textarea { width:100%; border:1px solid #cbd4d1; border-radius:4px; padding:9px; resize:vertical; }.content-save { margin-top:18px; justify-self:end; border:0; border-radius:5px; padding:11px 20px; background:#087067; color:#fff; font-weight:800; }
.content-admin-layout { display:grid; gap:18px; }.identity-editor>p,.content-editor>p,.techniques-editor p { color:#657671; }.logo-language-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }.logo-language-card { border:1px solid #dce3e0; padding:16px; background:#fbfcfb; }.logo-language-card h3 { margin-top:0; }.logo-language-card .danger-button { margin-top:10px; }.logo-preview { display:flex; align-items:center; gap:16px; padding:8px 0 18px; }.logo-preview img { width:160px; height:80px; object-fit:contain; border:1px solid #dce3e0; background:#fff; }.content-group { margin:20px 0 0; padding:10px 14px; background:#edf4f1; color:#153c39; font-size:1rem; }.technique-admin-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }.technique-editor-card { border:1px solid #dce3e0; padding:16px; background:#fbfcfb; }.technique-editor-card form { display:grid; gap:10px; }.technique-editor-card label,.technique-add label { display:grid; gap:5px; color:#29443f; font-weight:700; }.technique-editor-card input,.technique-editor-card textarea,.technique-add input,.technique-add textarea { width:100%; border:1px solid #cbd4d1; border-radius:4px; padding:9px; resize:vertical; }.technique-editor-card button,.technique-add button { border:0; border-radius:5px; padding:10px 14px; background:#087067; color:#fff; font-weight:800; }.technique-editor-card .danger-button { margin-top:8px; background:#fff; color:#a23b34; border:1px solid #e3b7b3; }.technique-add { margin-top:22px; padding-top:20px; border-top:1px solid #dce3e0; }
.settings-layout,.settings-content { display:grid; gap:18px; }.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.settings-grid label { display:grid; gap:6px; color:#29443f; font-weight:700; }.settings-grid input,.settings-grid select,.settings-grid textarea { width:100%; min-height:42px; border:1px solid #cbd4d1; border-radius:4px; padding:8px 10px; background:#fff; }.settings-grid textarea { resize:vertical; }.settings-full { grid-column:1/-1; }.settings-grid small { color:#657671; font-weight:400; }.settings-save { margin-top:18px; border:0!important; background:#087067!important; color:#fff!important; }
.profile-panel { max-width:760px; }.profile-summary { margin-bottom:26px; padding-bottom:20px; display:flex; align-items:center; gap:16px; border-bottom:1px solid #e1e6e4; }.profile-summary>span { width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; border-radius:50%; background:#153c39; color:#fff; font-size:1.15rem; font-weight:850; text-transform:uppercase; }.profile-summary h2 { margin:0; font-size:1.35rem; }.profile-summary p { margin:3px 0 0; color:#71817d; }

@media (max-width:980px) {
  .gallery-layout { grid-template-columns:1fr; }
  .technique-admin-grid,.logo-language-grid,.settings-grid { grid-template-columns:1fr; }.settings-full { grid-column:1; }
  .content-header { display:none; }.content-row { grid-template-columns:1fr 1fr; }.content-row>label:first-child { grid-column:1/-1; }.content-row label span { display:block; font-size:.78rem; color:#71817d; }
  .hero { grid-template-columns:1fr; min-height:auto; }.carousel { order:-1; }.doctor-band,.benefits-band,.booking-section { grid-template-columns:1fr; }.feature-grid { grid-template-columns:1fr; }.benefits-image { min-height:390px; }.admin-shell { grid-template-columns:1fr; }.admin-sidebar { position:static; height:auto; }.admin-sidebar nav { grid-template-columns:repeat(5,auto); overflow-x:auto; }.admin-account { margin-top:18px; }.admin-two-columns { grid-template-columns:1fr; }.appointment-row { grid-template-columns:90px 1fr 105px; }.appointment-actions { grid-column:2/-1; justify-content:flex-start; }
}

/* PHP V2 additions */
.notice { margin:0 0 18px; border:1px solid #ccd8d4; border-radius:5px; padding:12px 15px; }
.notice.success { border-color:#a9d0b5; background:#e8f6ec; color:#185d31; }
.notice.error { border-color:#dfb3aa; background:#fff0ed; color:#8e3f31; }
.auth-page { min-height:100vh; margin:0; padding:30px 16px; display:grid; place-items:center; background:#eef3f1; font-family:"Segoe UI",Arial,sans-serif; }
.auth-box { width:min(100%,430px); border:1px solid #d4ddda; border-radius:7px; background:#fff; padding:30px; box-shadow:0 18px 48px rgba(21,60,57,.12); }
.auth-box.install-box { width:min(100%,720px); }
.auth-box h1 { margin:6px 0; font-size:2rem; }.auth-box h2 { margin:24px 0 4px; font-size:1.1rem; }.auth-box>p { color:#63736f; }
.stack-form { display:grid; gap:14px; }.stack-form label,.gallery-card label { display:grid; gap:5px; color:#29443f; font-weight:700; }
.stack-form input,.gallery-card input,.gallery-card textarea,.gallery-card select { width:100%; min-height:42px; border:1px solid #cbd4d1; border-radius:4px; padding:8px 10px; }
.stack-form button,.gallery-card button { border:0; border-radius:5px; background:#087067; color:#fff; padding:11px 14px; font-weight:800; }
.back-link { color:#087067; font-weight:700; }.narrow-panel { max-width:760px; }.staff-list .inactive { opacity:.55; }
.appointment-actions details { min-width:220px; }.appointment-actions details summary { cursor:pointer; color:#087067; font-weight:700; }
.appointment-actions details form { margin-top:10px; display:grid; gap:8px; padding:12px; border:1px solid #d9e0dd; background:#f8faf9; }
.appointment-actions details label { display:grid; gap:3px; }.appointment-actions details input,.appointment-actions details select,.appointment-actions details textarea { width:100%; border:1px solid #cbd4d1; padding:7px; }
.gallery-card>form { display:grid; gap:9px; align-content:start; }.gallery-card>form+form { padding-top:10px; border-top:1px dashed #cdd7d3; }
.image-form { max-width:760px; }.admin-header>a { border:1px solid #b9c6c2; border-radius:5px; background:#fff; padding:9px 13px; font-weight:700; }
.schedule-cell.appointment { width:100%; cursor:pointer; text-align:left; font:inherit; }
.appointment-modal { width:min(680px,calc(100% - 28px)); max-height:calc(100vh - 32px); margin:auto; padding:0; border:0; border-radius:8px; background:#fff; color:#1a2826; box-shadow:0 28px 80px rgba(13,42,39,.28); }
.appointment-modal::backdrop { background:rgba(12,31,29,.62); backdrop-filter:blur(2px); }
.appointment-modal-card { min-width:0; padding:26px; }
.appointment-modal-card>header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid #dfe6e3; }
.appointment-modal-card>header .section-label { margin-bottom:3px; font-size:.8rem; }.appointment-modal-card>header h2 { margin:0; font-size:1.55rem; }
.modal-close { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border:1px solid #cbd6d2; border-radius:50%; background:#fff; color:#29443f; font-size:1.65rem; line-height:1; }
.modal-loading { padding:42px 0; color:#657671; text-align:center; }
.appointment-detail { padding-top:20px; }.detail-primary { display:grid; grid-template-columns:1.35fr .7fr 1fr; gap:10px; }
.detail-primary>div { min-width:0; padding:13px; background:#eef5f2; }.detail-primary span,.appointment-detail dt { display:block; color:#667772; font-size:.78rem; }.detail-primary strong { display:block; margin-top:3px; color:#153c39; }
.modal-status { width:max-content; border-radius:999px; padding:3px 9px; font-size:.82rem; }.modal-status.pending { background:#fff0cf; color:#775000; }.modal-status.confirmed { background:#d8eddf; color:#176234; }.modal-status.rejected,.modal-status.cancelled { background:#f5e4e1; color:#8e3f31; }
.appointment-detail dl { margin:18px 0; display:grid; grid-template-columns:1fr 1fr; border:1px solid #dde4e1; }.appointment-detail dl>div { min-width:0; padding:12px 14px; border-bottom:1px solid #e4e9e7; }.appointment-detail dl>div:nth-child(odd) { border-right:1px solid #e4e9e7; }.appointment-detail dd { margin:2px 0 0; overflow-wrap:anywhere; color:#263d38; font-weight:700; }.appointment-detail dd a { color:#087067; text-decoration:underline; }
.modal-emergency,.modal-note { margin-top:12px; padding:14px 16px; border-left:4px solid #b98934; background:#fff7e8; }.modal-emergency { border-left-color:#ba5b49; background:#fff0ed; }.modal-emergency strong { color:#8e3f31; }.modal-emergency p,.modal-note p { margin:5px 0 0; white-space:pre-wrap; color:#52635e; }
.appointment-detail>footer { margin-top:22px; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; }.appointment-detail>footer a { border:1px solid #b9c6c2; border-radius:5px; padding:10px 14px; font-weight:800; }.appointment-detail>footer .modal-call { border-color:#087067; background:#087067; color:#fff; }
@media (max-width:720px) {
  .appointment-modal-card { padding:19px; }.detail-primary { grid-template-columns:1fr 1fr; }.detail-primary>div:first-child { grid-column:1/-1; }.appointment-detail dl { grid-template-columns:1fr; }.appointment-detail dl>div:nth-child(odd) { border-right:0; }.appointment-detail>footer a { width:100%; text-align:center; }
  .gallery-card { grid-template-columns:1fr; }.gallery-replace,.danger-button { grid-column:1; }.gallery-preview { max-width:420px; }.content-row { grid-template-columns:1fr; }.content-row>label:first-child { grid-column:1; }.schedule-legend { justify-content:flex-start; }
  [dir="ltr"] .comparison-row span:nth-child(2)::before { content:"Au cabinet de la docteure : "; }
  [dir="ltr"] .comparison-row span:nth-child(3)::before { content:"Dans un lieu non médical : "; }
  .topbar { min-height:64px; }.topbar nav a:not(.nav-cta) { display:none; }.hero { width:calc(100% - 28px); padding:14px 0 58px; }.hero h1 { font-size:clamp(2.45rem,13vw,3.7rem); }.carousel-stage { aspect-ratio:4/3; }.carousel-slide figcaption { font-size:.86rem; }.doctor-band { grid-template-columns:1fr; gap:14px; }.section,.benefits-band,.booking-section,.safety-band { width:calc(100% - 28px); }.benefits-image { min-height:280px; }.form-grid { grid-template-columns:1fr; }.form-grid label { grid-column:1; }.booking-form,.booking-aside { padding:26px 20px; }.comparison-table { border:0; background:transparent; }.comparison-head { display:none; }.comparison-row { grid-template-columns:1fr; margin-bottom:12px; border:1px solid var(--line); }.comparison-row span:first-child { background:var(--teal-dark); color:#fff; font-weight:850; }.comparison-row span:nth-child(2)::before { content:"في عيادة الدكتورة: "; }.comparison-row span:nth-child(3)::before { content:"في مكان غير طبي: "; font-weight:850; }.safety-band { align-items:flex-start; flex-direction:column; }.button { width:100%; }.mobile-bar { display:grid; } footer { margin-bottom:76px; }.admin-main { padding:22px 14px 40px; }.admin-header { align-items:flex-start; flex-direction:column; }.admin-sidebar nav { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:max-content; }.appointment-row { grid-template-columns:72px 1fr; gap:10px; }.appointment-row .status-pill { grid-column:1; }.appointment-actions { grid-column:2; flex-wrap:wrap; }.admin-panel { padding:16px; }.gallery-row { grid-template-columns:60px 1fr; }.gallery-row label,.gallery-row button { grid-column:2; }.staff-form { grid-template-columns:1fr; }.staff-list>div { grid-template-columns:1fr auto; }.staff-list button { grid-column:2; }.hours-row { grid-template-columns:1fr 1fr; }.hours-row label { grid-column:1/-1; }
}
