/* مركز التميز للعلاج الطبيعي — الموقع العام (Premium Medical Design) */
:root {
  /* ===== Palette ===== */
  --navy: #123b5d;          /* Primary */
  --navy-2: #1a4f78;
  --navy-700: #0d2c47;
  --navy-900: #0a2035;
  --navy-50: #eef3f6;
  --navy-100: #dbe6ec;
  --secondary: #167d8d;     /* Secondary (deep teal-blue) */
  --teal: #21a89a;          /* Accent — used sparingly */
  --teal-dark: #178b7f;
  --teal-50: #e9f6f4;
  --amber: #d99a3c;
  --paper: #f7fafc;         /* Background */
  --blush: #eef6f7;         /* Light sections */
  --ink: #172b3a;           /* Text (headings) */
  --text: #33475a;
  --muted: #64748b;         /* Muted text */
  --faint: #94a3b8;
  --line: #e4ebef;
  --line-2: #eef2f5;
  --white: #fff;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --ok: #1e8a63;
  --ok-bg: #e3f5ee;
  --r: 12px;
  --r-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(18, 59, 93, .05);
  --shadow: 0 8px 24px rgba(18, 59, 93, .08);
  --shadow-lg: 0 24px 60px rgba(10, 32, 53, .14);
  --font: "IBM Plex Sans Arabic", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --wrap: 1220px;
  --ease: cubic-bezier(.16, .84, .44, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.32; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; position: relative; }
.num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--teal-50); outline-offset: 2px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: .02s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .2s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .26s; }
[data-reveal-group].is-visible > *:nth-child(n+6) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(18, 59, 93, .22); background: var(--navy-700); }
.btn:active { transform: translateY(0); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 13.5px; border-radius: 10px; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--navy-50); box-shadow: none; border-color: var(--navy-100); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, .16); background: #fff; }
.btn-coral { background: var(--teal); }
.btn-coral:hover { background: var(--teal-dark); box-shadow: 0 14px 28px rgba(33, 168, 154, .3); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #a5311f; box-shadow: 0 14px 28px rgba(192, 57, 43, .3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; }
.btn-ghost:hover { background: var(--navy-50); box-shadow: none; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(-3px); }
[dir="rtl"] .btn:hover .i { transform: translateX(3px); }

/* Topbar */
.topbar { background: var(--navy-900); color: #a8b6c2; font-size: 12.5px; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 38px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 14px; height: 14px; }
.topbar .social { margin-inline-start: auto; display: flex; gap: 14px; }
.topbar .social a:hover { color: var(--teal); }

/* ---------- Header: floating premium navbar ---------- */
.header { position: sticky; top: 0; z-index: 50; padding-top: 14px; transition: padding .3s var(--ease); }
.header .wrap {
  display: flex; align-items: center; gap: 20px; height: 74px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(160%);
  border-radius: 18px; padding-inline: 16px 8px; box-shadow: 0 2px 10px rgba(18, 59, 93, .05);
  border: 1px solid rgba(18, 59, 93, .06);
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-radius .3s var(--ease);
}
.header.scrolled { padding-top: 0; }
.header.scrolled .wrap { border-radius: 0; box-shadow: 0 4px 24px rgba(18, 59, 93, .1); background: rgba(255, 255, 255, .96); max-width: 100%; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 2px; margin-inline-start: 14px; }
.nav a { padding: 10px 15px; border-radius: 10px; font-size: 14.5px; color: var(--text); font-weight: 500; position: relative; transition: color .2s, background .2s; }
.nav a:hover { color: var(--navy); background: var(--navy-50); }
.nav a.active { color: var(--navy); font-weight: 700; }
.nav a.active::after { content: ""; position: absolute; bottom: 4px; inset-inline: 15px; height: 2px; border-radius: 2px; background: var(--teal); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu .hello { font-size: 14px; color: var(--ink); font-weight: 600; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); font-weight: 700; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; place-items: center; transition: background .2s; }
.menu-toggle:hover { background: var(--navy-50); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-block: 0 48px; min-height: 560px; }
.hero-ribbon {
  position: absolute; bottom: 18px; inset-inline-start: -70px; width: 260px; padding: 10px 0; text-align: center;
  background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; transform: rotate(-8deg);
  box-shadow: 0 8px 20px rgba(33, 168, 154, .3); z-index: 2; pointer-events: none;
}
@media (max-width: 1100px) { .hero-ribbon { display: none; } }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none;
}
.hero::before { width: 440px; height: 440px; background: radial-gradient(circle, rgba(18, 59, 93, .08), transparent 70%); top: -160px; inset-inline-end: -140px; }
.hero::after { width: 380px; height: 380px; background: radial-gradient(circle, rgba(33, 168, 154, .1), transparent 70%); bottom: -140px; inset-inline-start: -120px; }
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { padding-inline-end: 53%; padding-top: 64px; opacity: 0; transform: translateY(24px); animation: heroIn .8s var(--ease) .1s forwards; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroInScale { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-copy, .hero-media { animation: none; opacity: 1; transform: none; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 9px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-xs); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 22px;
}
.hero-badge span.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: #fff; }
.hero-badge span.dot .i { width: 13px; height: 13px; stroke-width: 2.6; }
.hero h1 { font-size: 50px; line-height: 1.24; max-width: 580px; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { color: var(--text); margin: 20px 0 32px; max-width: 500px; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; margin-inline-start: -10px; box-shadow: 0 2px 6px rgba(0, 0, 0, .1); }
.hero-trust .avatars img:first-child { margin-inline-start: 0; }
.hero-trust span { font-size: 13.5px; color: var(--muted); }
.hero-trust strong { color: var(--ink); }

.hero-media .frame { position: absolute; inset: 0; overflow: hidden; }
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.hero-media .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, .62) 62%, rgba(255, 255, 255, .88) 100%); }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px;
  padding: 14px 17px; box-shadow: var(--shadow-lg); z-index: 2; animation: floatChip 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-chip { animation: none; } }
.hero-chip .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
.hero-chip strong { display: block; font-size: 19px; color: var(--ink); line-height: 1.1; }
.hero-chip span { font-size: 12px; color: var(--muted); }
.hero-chip.c1 { top: 100px; inset-inline-end: 28px; animation-delay: 0s; }
.hero-chip.c1 .ic { background: var(--navy); }
.hero-chip.c2 { bottom: 70px; inset-inline-end: 28px; animation-delay: 2.4s; }
.hero-chip.c2 .ic { background: var(--teal); }
.hero-eyebrow { margin-bottom: 16px; }
.hero-eyebrow::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; margin-inline-start: 8px; vertical-align: middle; }
.hero h1 em { display: block; font-style: normal; color: var(--teal); }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Trust bar ---------- */
.trustbar { position: relative; z-index: 2; margin-top: 36px; }
.trustbar .card {
  background: var(--blush); border-radius: var(--r-lg); box-shadow: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 30px 20px;
}
.trust-item { display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.trust-item .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-xs); }
.trust-item strong { display: block; font-size: 27px; color: var(--ink); line-height: 1.1; direction: ltr; text-align: right; }
[dir="rtl"] .trust-item strong { text-align: right; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .control { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--line);
  background: #fafcfd; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.field textarea { height: auto; padding-block: 12px; resize: vertical; line-height: 1.6; }
.field select {
  cursor: pointer; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
[dir="rtl"] .field select { background-position: left 14px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--navy-50); }
.field .control .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.field .control.has-icon input { padding-inline-start: 42px; }
.phone-control { display: flex; gap: 8px; }
.phone-control .country-code {
  flex: none; width: auto; max-width: 150px; height: 50px; padding: 0 12px; border-radius: var(--r);
  border: 1.5px solid var(--line); background-color: #fafcfd; color: var(--ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 10px center; padding-inline-start: 30px;
}
.phone-control .country-code:focus { outline: none; border-color: var(--navy); background-color: #fff; box-shadow: 0 0 0 4px var(--navy-50); }
.phone-control input { flex: 1; min-width: 0; }
.phone-control button.country-code { display: inline-flex; align-items: center; gap: 6px; padding-inline: 12px 30px; direction: ltr; }
.country-code__flag { font-size: 18px; line-height: 1; }
.country-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 60; width: min(340px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(15, 30, 60, .16); padding: 8px; }
.field .country-menu .country-menu__search { height: 42px; margin-bottom: 6px; font-size: 14px; }
.country-menu__list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.country-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 8px; text-align: start; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.country-menu__item:hover, .country-menu__item.is-active { background: var(--navy-50); }
.country-menu__name { flex: 1; }
.country-menu__cc { color: var(--muted); font-size: 13px; }
.country-menu__empty { padding: 12px; color: var(--muted); text-align: center; font-size: 14px; }
.field .toggle-pass { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; display: grid; place-items: center; width: 40px; height: 40px; inset-inline-end: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); background: #fff; }
.field .error { color: var(--danger); font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12.5px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; }
.alert .i { margin-top: 3px; }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.strength { display: flex; gap: 4px; margin-top: 2px; }
.strength i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .2s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: #d97757; }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--teal); }
.strength[data-level="4"] i { background: var(--ok); }

/* Sections */
.section { padding-block: 100px; }
.section.blush { background: var(--blush); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { color: var(--teal-dark); font-weight: 700; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::before { display: none; }
.section-head h2, .about h2 { font-size: 36px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.center { text-align: center; margin-top: 40px; }

/* About */
.about .wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-inline-end: 30px; padding-bottom: 30px; }
.about-media .main { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.6; }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.about-media:hover .main img { transform: scale(1.03); }
.about-media .accent { position: absolute; inset-inline-end: -12px; bottom: -12px; width: 42%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid #fff; }
.about-media .accent img { width: 100%; height: 100%; object-fit: cover; }
.about-media .years {
  position: absolute; top: 18px; inset-inline-start: -18px; background: var(--navy); color: #fff; border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-lg); text-align: center; line-height: 1.15;
}
.about-media .years strong { display: block; font-size: 28px; }
.about-media .years span { font-size: 11.5px; color: #b9c9d5; }
.about-media .video-badge {
  position: absolute; bottom: 14px; inset-inline-start: -14px; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: rgba(18, 59, 93, .82); backdrop-filter: blur(6px); color: #fff; border-radius: 14px; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-lg); max-width: 220px;
}
.about-media .video-badge .play { width: 32px; height: 32px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.about-media .video-badge span:last-child { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.about p.lead { margin: 18px 0 28px; font-size: 16px; }
.feature-row { display: flex; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.feature-mini { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; max-width: 130px; }
.feature-mini .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-dark); flex: none; }
.feature-mini span:last-child { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-dark); flex: none; }
.feature h4 { font-size: 16.5px; }
.feature p { color: var(--muted); font-size: 14.5px; margin-top: 3px; }

/* ---------- Services: clean icon cards (uniform, compact row) ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 20px 46px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service.big { grid-column: span 1; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-50); }
.service img { display: none; }
.service .badge-ic {
  position: static; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--teal-50); color: var(--teal-dark);
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.service:hover .badge-ic { background: var(--navy); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service .body { position: static; padding: 0; }
.service h3 { color: var(--ink); font-size: 16px; }
.service.big h3 { font-size: 16px; }
.service p {
  font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service .go {
  position: absolute; bottom: 20px; inset-inline-end: 20px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-dark); display: grid; place-items: center;
  opacity: 0; transform: translateX(6px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
[dir="rtl"] .service .go { transform: translateX(-6px); }
.service:hover .go { opacity: 1; transform: translateX(0); }
.service .go .i { width: 14px; height: 14px; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px 24px 26px; border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--teal); }
.why-card .idx { position: absolute; top: 16px; inset-inline-end: 20px; font-size: 32px; font-weight: 800; color: var(--navy-50); line-height: 1; }
.why-card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 18px; }
.why-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ---------- Patient journey ---------- */
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; position: relative; }
.journey::before {
  content: ""; position: absolute; top: 27px; inset-inline: 60px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); z-index: 0;
}
.journey-step { position: relative; z-index: 1; text-align: center; padding: 0 10px; }
.journey-step .n {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--navy); font-weight: 800; font-size: 19px;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.journey-step:hover .n { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.08); }
.journey-step h3 { font-size: 15.5px; margin-bottom: 6px; }
.journey-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 16px 22px; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.member:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.member .photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--navy-50); margin-bottom: 16px; }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.member:hover .photo img { transform: scale(1.06); }
.member .photo::after { content: none; }
.member h3 { font-size: 16.5px; }
.member p { color: var(--teal-dark); font-size: 13px; font-weight: 600; margin-top: 3px; }

/* ---------- Gallery ---------- */
.gallery { column-count: 4; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; border-radius: 16px; overflow: hidden; background: var(--navy-50); break-inside: avoid; }
.gallery figure:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.gallery figure:nth-child(3n+2) { aspect-ratio: 1; }
.gallery figure:nth-child(3n) { aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* Blog */
.posts { display: flex; flex-direction: column; gap: 16px; }
.post { background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; align-items: stretch; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post img { height: 100%; min-height: 160px; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.post:hover img { transform: scale(1.04); }
.post .body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.post .tag { background: var(--teal-50); color: var(--teal-dark); border-radius: 99px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.post h3 { font-size: 18.5px; line-height: 1.5; }
.post .read { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-dark); font-weight: 600; font-size: 13.5px; margin-top: 4px; transition: gap .2s; }
.post:hover .read { gap: 9px; }

/* Payment */
.pay .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pay h2 { font-size: 33px; }
.pay p { margin: 14px 0 26px; font-size: 16px; }
.pay-card {
  border-radius: var(--r-lg); aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow);
}
.pay-card::before, .pay-card::after { content: ""; position: absolute; border-radius: 50%; }
.pay-card::before { width: 160px; height: 160px; background: rgba(255, 255, 255, .06); top: -50px; inset-inline-end: -40px; }
.pay-card::after { width: 120px; height: 120px; background: rgba(33, 168, 154, .3); bottom: -40px; inset-inline-start: -30px; filter: blur(2px); }
.pay-card img { width: 46%; position: relative; z-index: 1; }

/* CTA */
.cta { padding-block: 0 100px; }
.cta-box { position: relative; overflow: hidden; background: var(--navy); border-radius: 28px; padding: 64px 32px 40px; text-align: center; color: #fff; }
.cta-box::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(33, 168, 154, .2), transparent 70%); top: -160px; inset-inline-start: -80px; }
.cta-box::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); bottom: -160px; inset-inline-end: -60px; }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: 33px; }
.cta-box p { color: #c8d6de; max-width: 600px; margin: 12px auto 28px; font-size: 16px; }
.socials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 46px; }
.socials a { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 20px 12px; transition: background .25s, transform .25s var(--ease); }
.socials a:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.socials .i { width: 28px; height: 28px; margin: 0 auto 8px; }
.socials strong { display: block; color: #fff; }
.socials span { font-size: 12.5px; color: #a8bcc7; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-900); color: #9aabb8; font-size: 14.5px; }
.footer-wave { display: block; width: 100%; height: 48px; margin-top: -47px; position: relative; z-index: 1; }
.footer-top { text-align: center; padding-block: 8px 36px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.footer-top img { height: 56px; width: auto; margin: 0 auto 14px; }
.footer-top p { color: #fff; font-size: 16.5px; font-weight: 600; max-width: 560px; margin: 0 auto 18px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 44px; }
.footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { transition: color .2s; }
.footer ul a:hover { color: var(--teal); }
.footer .contact small { display: block; color: #6d7f8c; font-size: 12px; }
.footer .contact strong { color: #fff; font-weight: 600; }
.footer .contact li { margin-bottom: 4px; }
.newsletter-box { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; min-width: 0; height: 44px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; padding: 0 12px; }
.newsletter input::placeholder { color: #8695a8; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .05); display: grid; place-items: center; transition: background .2s, color .2s; }
.footer-social a:hover { background: rgba(255, 255, 255, .12); color: var(--teal); }
.footer-bottom { text-align: center; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; }

/* ---------- Floating action buttons ---------- */
.floating { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.floating a {
  position: relative; height: 52px; padding-inline: 4px; border-radius: 999px; display: flex; align-items: center; gap: 10px; color: #fff;
  box-shadow: 0 10px 24px rgba(10, 32, 53, .22); transition: transform .25s var(--ease), box-shadow .25s var(--ease), padding .25s var(--ease);
}
.floating a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(10, 32, 53, .3); }
.floating a .ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; }
.floating .i { width: 22px; height: 22px; }
.floating a .tip { font-size: 13.5px; font-weight: 600; white-space: nowrap; padding-inline-end: 16px; }
@media (max-width: 560px) {
  .floating { inset-inline-end: 14px; bottom: 14px; gap: 10px; }
  .floating a { width: 48px; height: 48px; padding-inline: 0; justify-content: center; border-radius: 50%; }
  .floating a .ic { width: 100%; height: 100%; background: none; }
  .floating .i { width: 21px; height: 21px; }
  .floating a .tip { display: none; }
}

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; animation: drop .25s ease; max-width: calc(100vw - 32px); }
.toast .i { color: #6fe0b9; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-form { display: flex; flex-direction: column; padding: 28px 48px; }
.auth-form .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-form .top .logo img { height: 44px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; transition: color .2s; }
.back:hover { color: var(--navy); }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding-block: 36px; }
.auth-card h1 { font-size: 29px; }
.auth-card .lead { color: var(--muted); margin: 6px 0 26px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 6px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line); border-radius: var(--r); }
.btn-google:hover { background: var(--navy-50); box-shadow: none; transform: none; }
.switch { text-align: center; margin-top: 22px; color: var(--muted); }
.switch a, .link { color: var(--navy); font-weight: 600; }
.switch a:hover, .link:hover { text-decoration: underline; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-side { position: relative; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; overflow: hidden; }
.auth-side .bg { position: absolute; inset: 0; background: center / cover no-repeat; }
.auth-side .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 59, 93, .25), rgba(10, 32, 53, .92)); }
.auth-side::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(33, 168, 154, .3), transparent 70%); top: -100px; inset-inline-end: -80px; z-index: 1; }
.auth-side > *:not(.bg) { position: relative; z-index: 2; }
.auth-side img.logo-light { height: 56px; width: auto; margin-bottom: auto; align-self: flex-start; }
.auth-side h2 { color: #fff; font-size: 30px; margin-top: 40px; }
.auth-side p { color: #d6e0e5; margin-top: 10px; max-width: 460px; }
.auth-points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points .i { color: #7fe3c2; }
.success { text-align: center; }
.success .mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--ok-bg); color: var(--ok); }
.success .mark .i { width: 38px; height: 38px; stroke-width: 2.4; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header .wrap { border-radius: 16px; }
  .header.open .wrap { border-radius: 16px 16px 0 0; }
  .header.open .nav { display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline: 0; margin: 0; padding: 10px 14px 16px; background: #fff; box-shadow: 0 16px 30px rgba(10, 32, 53, .12); border-radius: 0 0 16px 16px; }
  .header.open .nav a { padding: 12px 14px; border-radius: var(--r); }
  .why, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { column-count: 3; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post { grid-template-columns: 200px 1fr; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .journey::before { display: none; }
}
@media (max-width: 860px) {
  .about .wrap, .pay .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 0 0; min-height: 0; }
  .hero-media { position: relative; inset: auto; width: auto; height: 280px; margin: 0 0 24px; }
  .hero-media .frame::after { background: linear-gradient(to top, rgba(10, 32, 53, .35), transparent 45%); }
  .hero-copy { padding-inline-end: 0; padding-top: 32px; }
  .hero h1 { font-size: 34px; }
  .hero-chip { padding: 10px 12px; }
  .hero-chip.c1 { top: 16px; inset-inline-end: 16px; }
  .hero-chip.c2 { bottom: 16px; inset-inline-end: 16px; }
  .trustbar .card { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .about-media { margin-bottom: 20px; max-width: 420px; margin-inline: auto; }
  .section { padding-block: 68px; }
  .section-head h2, .about h2, .pay h2, .cta-box h2 { font-size: 28px; }
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service.big { grid-column: span 1; }
  .gallery { column-count: 2; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post img { aspect-ratio: 16/9; min-height: 0; }
  .topbar .addr { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-form { padding: 20px; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .header { padding-top: 10px; }
  .header .wrap { height: 66px; gap: 10px; border-radius: 14px; }
  .logo img { height: 36px; }
  .header-actions > .btn-outline:not([href="login.html"]), .user-menu .hello, .user-menu [data-logout] span { display: none; }
  .user-menu [data-logout] { width: 40px; padding: 0; }
  .why, .team { grid-template-columns: minmax(0, 1fr); }
  .gallery { column-count: 2; column-gap: 10px; }
  .gallery figure { margin-bottom: 10px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .topbar .social { display: none; }
  .trustbar { margin-top: -30px; }
  .trustbar .card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 14px; gap: 18px 0; }
  .trust-item { padding: 0 10px; }
  .trust-item strong { font-size: 21px; }
  .hero-chip strong { font-size: 16px; }
  .journey { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== الخدمات والأسعار + رحلة الحجز (مربوطة بقاعدة البيانات) ===== */
.bk-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bk-svc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.bk-svc:hover { border-color: var(--teal-50); box-shadow: var(--shadow); transform: translateY(-3px); }
.bk-svc h3 { margin: 0; font-size: 17px; }
.bk-svc p { margin: 0; color: var(--muted); font-size: 14px; min-height: 20px; }
.bk-svc__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.bk-cat { background: var(--navy-50); color: var(--navy); padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.bk-svc__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.bk-svc__foot strong { font-size: 19px; color: var(--navy); }
.bk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-tag { background: var(--navy-50); color: var(--navy); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.bk-muted { color: var(--muted); text-align: center; padding: 8px 0; }
.bk-photo { display: grid; place-items: center; background: var(--navy-50); }
.bk-photo img { width: 100%; height: 100%; object-fit: cover; }
.bk-initials { font-size: 34px; font-weight: 800; color: var(--navy); }
.bk-bio { font-size: 13px; color: var(--muted); }
.bk-overlay { position: fixed; inset: 0; background: rgba(10, 32, 53, .55); z-index: 1000; display: grid; place-items: center; padding: 14px; }
.bk-modal { background: #fff; border-radius: var(--r-lg); width: min(680px, 100%); max-height: 92vh; overflow: auto; padding: 26px; position: relative; direction: rtl; box-shadow: var(--shadow-lg); }
.bk-x { position: absolute; top: 12px; inset-inline-start: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--navy-50); font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); display: grid; place-items: center; transition: background .2s, color .2s; }
.bk-x:hover { background: var(--navy-100); color: var(--navy); }
.bk-modal h2 { margin: 0 0 16px; font-size: 22px; }
.bk-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.bk-steps li { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: 99px; background: var(--navy-50); }
.bk-steps li.on { background: var(--navy); color: #fff; }
.bk-steps li.done { background: var(--ok-bg); color: var(--ok); }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bk-opt { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: 13px 14px; text-align: start; display: flex; flex-direction: column; gap: 3px; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.bk-opt:hover { border-color: var(--navy-100); background: var(--navy-50); }
.bk-opt strong { font-size: 14.5px; }
.bk-opt span { font-size: 12.5px; color: var(--muted); } .bk-opt em { font-style: normal; font-weight: 700; color: var(--navy); }
.bk-opt.sel, .bk-pill.sel, .bk-slot.sel { border-color: var(--navy); background: var(--navy); color: #fff; }
.bk-opt.sel span, .bk-opt.sel em { color: #dbe6ec; }
.bk-pill { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; transition: border-color .15s, background .15s; }
.bk-pill:hover { border-color: var(--navy-100); background: var(--navy-50); }
.bk-label { font-weight: 700; font-size: 14px; margin: 18px 0 8px; color: var(--ink); }
.bk-input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 0 14px; font: inherit; background: #fafcfd; transition: border-color .2s, background .2s; }
.bk-input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px var(--navy-50); }
textarea.bk-input { height: auto; padding-block: 12px; resize: vertical; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bk-slot { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); height: 42px; cursor: pointer; font: inherit; font-weight: 600; direction: ltr; transition: border-color .15s, background .15s; }
.bk-slot:hover { border-color: var(--navy-100); background: var(--navy-50); }
.bk-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.bk-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.bk-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.bk-sum div { background: #fff; padding: 12px; } .bk-sum dt { font-size: 12px; color: var(--muted); } .bk-sum dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }

/* ---------- تثبيت التطبيق (PWA) ---------- */
[data-pwa-install][hidden] { display: none !important; }
.btn.pwa-installed { cursor: default; opacity: .85; }
.pwa-sheet { position: fixed; inset: 0; z-index: 200; background: rgba(10, 20, 40, .45); display: grid; place-items: end center; padding: 16px; }
@media (min-width: 640px) { .pwa-sheet { place-items: center; } }
.pwa-sheet__card { background: #fff; color: var(--ink); width: 100%; max-width: 400px; border-radius: 18px; padding: 24px 20px 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.pwa-sheet__card img { border-radius: 14px; margin: 0 auto 10px; display: block; }
.pwa-sheet__card h3 { margin: 0 0 12px; font-size: 18px; }
.pwa-sheet__card ol { text-align: start; margin: 0 0 18px; padding-inline-start: 22px; line-height: 2; }
.pwa-sheet__card .i { width: 17px; height: 17px; vertical-align: -3px; }
@media (max-width: 1500px) { .header [data-pwa-install] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .header [data-pwa-install] { padding-inline: 12px; } }
.header .header-actions > .btn-outline[data-pwa-install]:not([hidden]) { display: inline-flex; }

/* زرار تبديل اللغة (عربي/English) — js/i18n.js */
.lang-btn { flex: none; height: 38px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line, #e3e6ef); background: #fff; color: var(--brand, #2a2f70); font: 700 13.5px/1 inherit; cursor: pointer; }
.lang-btn:hover { background: var(--brand-50, #eef0f8); }
.auth-form .lang-btn, .back + .lang-btn { float: inline-end; }

[dir="ltr"] .back .i { transform: scaleX(-1); }

/* خفة على الموبايل: تأثير الضبابية تقيل على المعالج */
@media (max-width: 768px) { * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }

/* الموبايل: «تسجيل الدخول» و«إنشاء حساب» ظاهرين بالكلام */
@media (max-width: 768px) {
  .header-actions { gap: 6px; }
  .header-actions > a[href="login.html"], .header-actions > a[href="signup.html"] { padding: 0 10px; height: 38px; font-size: 13px; white-space: nowrap; }
  .header-actions > a[href="signup.html"] svg { display: none; }
  .header-actions > [data-pwa-install] span { display: none; }
}

/* Safe area + ارتفاع الشاشة الحقيقي (viewport-fit=cover) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.topbar { padding-top: env(safe-area-inset-top); }
@media (display-mode: standalone) { .header { padding-top: max(10px, env(safe-area-inset-top)); } }
@supports (height: 100dvh) { .auth { min-height: 100dvh; } }
img { max-width: 100%; height: auto; }
@media (max-width: 360px) {
  .header .wrap { gap: 6px; padding-inline: 10px; }
  .logo { min-width: 0; flex: 0 1 auto; }
  .logo img { height: 30px; max-width: 64px; object-fit: contain; }
  .header-actions > a[href="login.html"], .header-actions > a[href="signup.html"] { padding: 0 8px; font-size: 12px; }
  .header-actions [data-lang-toggle], .header-actions [data-pwa-install] { width: 36px; min-width: 36px; padding: 0; }
}

/* الشاشات الصغيرة جدًا (iPhone SE / 320–400): اللوجو ثابت، والأزرار أصغر شوية من غير ما تطلع برّه */
@media (max-width: 400px) {
  .header .wrap { padding-inline: 10px; gap: 6px; }
  .header .logo { flex: none; }
  .header .logo img { height: 30px; width: auto; }
  .header .lang-btn { width: 38px; height: 38px; padding: 0; font-size: 13px; }
  .header .menu-toggle { width: 38px; height: 38px; }
  .header-actions { gap: 4px; }
  .header-actions > a[href="login.html"], .header-actions > a[href="signup.html"] { padding: 0 8px; font-size: 12px; height: 36px; }
  .header-actions > [data-pwa-install] { width: 36px; height: 36px; padding: 0; }
}
@media (max-width: 380px) {
  .header-actions > [data-pwa-install] { display: none !important; } /* التثبيت متاح من القائمة/المتصفح */
}
@media (max-width: 360px) {
  body .header .wrap { padding-inline: 8px; gap: 4px; }
  body .header .logo img { height: 24px; }
  body .header .lang-btn { width: 34px; min-width: 34px; height: 34px; padding: 0; }
  body .header .menu-toggle { width: 34px; height: 34px; }
  body .header .header-actions > a { padding: 0 7px; font-size: 11.5px; height: 34px; }
}
