:root {
  --navy: #071525;
  --ink: #0d1722;
  --muted: #65717f;
  --line: #d9dde2;
  --soft: #f5f7f8;
  --white: #ffffff;
  --gold: #b99b62;
  --aqua: #5ca7b0;
  --shadow: 0 24px 70px rgba(9, 21, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(20px, 4vw, 58px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 28px rgba(8, 18, 30, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(185, 155, 98, 0.85);
  color: var(--gold);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: currentColor;
  font-size: 14px;
}

.nav-action {
  padding: 11px 18px;
  border: 1px solid rgba(185, 155, 98, 0.9);
  color: currentColor;
  font-size: 14px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  color: currentColor;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(7, 21, 37, 0.95) 0%, rgba(7, 21, 37, 0.72) 36%, rgba(7, 21, 37, 0.2) 72%),
    linear-gradient(180deg, rgba(7, 21, 37, 0.56), rgba(7, 21, 37, 0.16) 48%, rgba(7, 21, 37, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 100px);
  padding-top: 80px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 500;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.hero-subtitle {
  margin-bottom: 18px;
  font-size: clamp(21px, 3vw, 33px);
  line-height: 1.2;
  color: #eaf0f6;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 34px;
  color: #cdd6dd;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.section-heading,
.contact-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
}

.button.primary {
  background: var(--gold);
  color: #08111d;
}

.button.quiet {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

.button.ghost {
  border-color: rgba(185, 155, 98, 0.7);
  color: inherit;
}

.authority-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.authority-strip div {
  min-height: 132px;
  padding: 30px clamp(20px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.authority-strip div:last-child {
  border-right: 0;
}

.authority-strip strong,
.authority-strip span {
  display: block;
}

.authority-strip strong {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 18px;
}

.authority-strip span,
.section-copy,
.service-card p,
.article-card p,
.why-list p,
.booking-intro p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.section-copy {
  max-width: 650px;
  font-size: 18px;
}

.services-section,
.education-section {
  background: var(--soft);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 42px;
}

.text-link {
  color: var(--gold);
  font-weight: 800;
}

.service-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.article-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(8, 18, 30, 0.04);
}

.service-card {
  min-height: 250px;
  padding: 30px;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(185, 155, 98, 0.45);
}

.why-section {
  color: var(--white);
  background: #0b1b2b;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.why-list div {
  min-height: 310px;
  padding: 30px;
  background: #0b1b2b;
}

.why-list span {
  display: block;
  margin-bottom: 58px;
  color: var(--gold);
}

.why-list strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
}

.why-list p {
  color: #c4cdd6;
}

.article-card {
  display: block;
  min-height: 238px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.article-card span {
  display: block;
  margin-bottom: 44px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 800;
}

.article-card strong {
  display: block;
  margin-bottom: 14px;
  font-size: 23px;
  line-height: 1.2;
}

.testimonial-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.testimonial {
  min-height: 330px;
  padding: clamp(36px, 7vw, 78px);
  background: var(--white);
}

.testimonial p {
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 45px);
  line-height: 1.16;
}

.testimonial span {
  color: var(--gold);
  font-weight: 800;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: clamp(30px, 6vw, 80px);
  background: #fbfcfc;
}

.booking-panel {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.patient-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.patient-toggle button {
  min-height: 62px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.patient-toggle button:last-child {
  border-right: 0;
}

.patient-toggle button.active {
  background: var(--navy);
  color: var(--white);
}

.booking-content {
  display: none;
  padding: 28px;
}

.booking-content.active {
  display: block;
}

.booking-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.slot-card {
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.slot-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.slot-card.selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.booking-mode {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.booking-mode label,
.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.payment-summary {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--muted);
  line-height: 1.6;
}

.payment-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}

.payment-summary p {
  margin: 0 0 8px;
}

.payment-summary .button {
  margin-top: 8px;
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
}

.booking-step:first-child {
  margin-top: 0;
}

.booking-step span {
  display: grid;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.booking-step h3 {
  margin: 0;
  color: var(--ink);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card,
.day-card {
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.choice-card {
  display: grid;
  gap: 10px;
  min-height: 188px;
  padding: 20px;
}

.choice-card strong {
  font-size: 20px;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.choice-card small,
.day-card small {
  color: var(--gold);
  font-weight: 850;
  line-height: 1.45;
}

.choice-card.selected,
.day-card.selected {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gold);
  position: relative;
}

.choice-panel {
  display: none;
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.choice-panel.active {
  display: block;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.day-card {
  min-height: 82px;
  padding: 14px;
  font-weight: 900;
}

.day-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.date-picker {
  position: relative;
  margin-bottom: 24px;
}

.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.date-trigger span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.date-trigger strong {
  color: var(--navy);
  font-size: 19px;
}

.date-trigger::after {
  content: "▾";
  color: var(--gold);
  font-size: 18px;
}

.date-picker.open .date-trigger {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.date-picker-panel {
  display: none;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  box-shadow: var(--shadow);
}

.date-picker.open .date-picker-panel {
  display: block;
}

.month-select-label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.calendar-stack {
  display: block;
  margin-bottom: 24px;
}

.calendar-month-panel {
  display: none;
}

.calendar-month-panel.active {
  display: block;
}

.booking-calendar {
  border: 1px solid var(--line);
  background: var(--white);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.calendar-head strong {
  color: var(--navy);
  font-size: 20px;
}

.calendar-head small {
  color: var(--gold);
  font-weight: 850;
}

.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week {
  border-bottom: 1px solid var(--line);
  background: #f6f8f9;
}

.calendar-week span {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.calendar-grid {
  gap: 1px;
  background: var(--line);
}

.calendar-empty,
.calendar-day {
  min-height: 82px;
  border: 0;
  background: var(--white);
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  cursor: not-allowed;
}

.calendar-day span {
  color: inherit;
  font-size: 20px;
  font-weight: 850;
}

.calendar-day small {
  color: inherit;
  font-size: 11px;
  font-weight: 800;
}

.calendar-day.available {
  color: var(--navy);
  cursor: pointer;
}

.calendar-day.disabled {
  opacity: 0.38;
}

.calendar-day.selected {
  z-index: 1;
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--gold);
}

body.lang-ar .choice-card,
body.lang-ar .day-card {
  text-align: right;
}

body.lang-ar .date-trigger {
  text-align: right;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.booking-form textarea,
.booking-form .consent,
.booking-form .button {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.consent input {
  width: auto;
  min-height: auto;
}

.contact-section {
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
}

.contact-section p {
  max-width: 620px;
  color: #cbd4dd;
}

.contact-card {
  display: grid;
  min-width: min(100%, 360px);
  gap: 11px;
  padding: 28px;
  color: var(--ink);
}

.contact-card .button.quiet {
  margin-top: 8px;
  border-color: var(--gold);
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #cbd4dd;
  background: #050e18;
}

@media (max-width: 920px) {
  .main-nav,
  .nav-action {
    display: none;
  }

  .menu-button {
    display: grid;
    margin-left: auto;
    place-items: center;
  }

  .site-header.menu-open .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    margin: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .site-header.menu-open .main-nav a {
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
  }

  .authority-strip,
  .split,
  .service-grid,
  .article-grid,
  .why-list,
  .testimonial-section,
  .booking-section {
    grid-template-columns: 1fr;
  }

  .authority-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .why-list div {
    min-height: 220px;
  }

  .why-list span {
    margin-bottom: 28px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand span:last-child {
    max-width: 160px;
    white-space: normal;
    line-height: 1.1;
  }

  .hero {
    min-height: 96vh;
  }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(7, 21, 37, 0.9), rgba(7, 21, 37, 0.7));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 64px 16px;
  }

  .booking-options,
  .booking-form,
  .choice-grid,
  .day-grid,
  .patient-toggle {
    grid-template-columns: 1fr;
  }

  .calendar-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-week span {
    font-size: 10px;
  }

  .calendar-empty,
  .calendar-day {
    min-height: 58px;
  }

  .calendar-day span {
    font-size: 16px;
  }

  .calendar-day small {
    display: none;
  }

  .patient-toggle button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-content {
    padding: 18px;
  }

.site-footer {
    flex-direction: column;
  }
}

/* Full platform pages */
.page-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 28px rgba(8, 18, 30, 0.08);
  backdrop-filter: blur(18px);
}

.main-nav a.active {
  color: var(--gold);
  font-weight: 900;
}

.page-hero {
  padding: 150px clamp(20px, 5vw, 72px) 82px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 21, 37, 0.96), rgba(7, 21, 37, 0.72)),
    url("assets/hero-clinic.png") center / cover;
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 92px);
}

.page-hero p {
  max-width: 820px;
  color: #d5dde6;
  font-size: 20px;
  line-height: 1.75;
}

body.lang-ar .page-hero {
  text-align: right;
}

.compact-grid,
.condition-grid,
.contact-grid,
.two-card-grid {
  display: grid;
  gap: 16px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid a,
.condition-card,
.feature-card,
.detail-list div,
.faq-grid details,
.confirmation-note,
.note {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(8, 18, 30, 0.04);
}

.compact-grid a {
  min-height: 88px;
  display: grid;
  align-items: center;
  padding: 18px;
  color: var(--navy);
  font-weight: 850;
}

.two-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.feature-card,
.condition-card {
  padding: 28px;
}

.feature-card h3,
.condition-card h3 {
  margin-bottom: 20px;
}

.feature-card ul,
.condition-card ul,
.detail-list ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

body.lang-ar .feature-card ul,
body.lang-ar .condition-card ul,
body.lang-ar .detail-list ul {
  padding-left: 0;
  padding-right: 18px;
}

.condition-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list div {
  padding: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.faq-grid details {
  padding: 20px;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 850;
}

.faq-grid p,
.note,
.confirmation-note {
  color: var(--muted);
  line-height: 1.65;
}

.note,
.confirmation-note {
  margin-top: 18px;
  padding: 18px;
}

.final-cta {
  color: var(--white);
  background: #071525;
}

.final-cta h2 {
  max-width: 900px;
  margin-bottom: 28px;
}

.expanded-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: start;
}

.expanded-footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 20px;
}

.expanded-footer p {
  max-width: 420px;
  color: #cbd4dd;
  line-height: 1.7;
}

.expanded-footer small {
  color: var(--gold);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-list.six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 560px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px;
  color: var(--white);
  background: #071525;
}

.admin-sidebar strong {
  margin-bottom: 18px;
  color: var(--gold);
}

.admin-sidebar a {
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #d8e0e8;
}

.admin-main {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 24px;
  background: #f8fafb;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpis div {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-kpis strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 34px;
}

.admin-kpis span,
.mini-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-table {
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.4fr 0.9fr 0.8fr;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  color: var(--navy);
  background: #f1f4f6;
  font-weight: 900;
}

.crm-pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-column {
  min-height: 360px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.pipeline-column strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
}

.pipeline-column p {
  min-height: 62px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mini-card {
  margin-top: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.5;
}

.admin-product {
  background: #f6f8fa;
}

.admin-login-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.admin-login-strip h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--navy);
}

.admin-login-strip p,
.admin-toolbar p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.role-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.role-switcher button,
.admin-product-nav button,
.admin-actions button,
.admin-card button,
.admin-data-row button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.role-switcher button {
  min-height: 42px;
  padding: 0 14px;
}

.role-switcher button.active,
.admin-product-nav button.active {
  border-color: var(--gold);
  background: #fff8eb;
  color: var(--navy);
}

.admin-product-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 760px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-product-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  background: #071525;
}

.admin-product-nav strong {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 20px;
}

.admin-product-nav button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  color: #d9e1ea;
}

.admin-product-main {
  min-width: 0;
  padding: 22px;
  background: #f8fafb;
}

.admin-view {
  display: none;
}

.admin-view.active {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-toolbar h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.admin-search {
  max-width: 320px;
  background: #fbfcfc;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-metric-grid div,
.admin-card,
.crm-board article {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 18, 30, 0.04);
}

.admin-metric-grid div {
  padding: 20px;
}

.admin-metric-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 34px;
}

.admin-metric-grid span,
.admin-card p,
.admin-card li,
.admin-card small {
  color: var(--muted);
}

.admin-split,
.patient-record-grid,
.schedule-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.patient-record-grid,
.schedule-admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  padding: 20px;
}

.admin-card h4 {
  margin: 0 0 12px;
  color: var(--navy);
}

.admin-card ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

.highlight-card {
  border-color: rgba(185, 155, 98, 0.55);
  background: #fffaf0;
}

.highlight-card strong,
.admin-card > strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 28px;
}

.admin-data-table {
  display: grid;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-data-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.9fr 1.25fr 1fr 0.8fr 1fr 1fr 1.1fr;
  min-width: 1080px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.admin-data-table.compact .admin-data-row {
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 0.8fr;
  min-width: 720px;
}

.admin-data-row:last-child {
  border-bottom: 0;
}

.admin-data-head {
  color: var(--navy);
  background: #eef2f5;
  font-weight: 900;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(185, 155, 98, 0.55);
  background: #fff8eb;
  color: var(--navy);
  font-weight: 850;
}

.slot-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cfd7df;
  background: #f7fafc;
  color: var(--muted);
  font-weight: 850;
}

.slot-state.closed {
  border-color: rgba(31, 123, 84, 0.35);
  background: #edf8f2;
  color: #1f7b54;
}

.automation-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.automation-flow article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--white);
}

.automation-flow strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.automation-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions button,
.admin-card button,
.admin-data-row button {
  min-height: 34px;
  padding: 0 10px;
}

.crm-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.crm-board article {
  min-height: 340px;
  padding: 16px;
  background: #f8fafb;
}

.crm-board strong,
.crm-board small,
.crm-board b {
  display: block;
}

.crm-board strong {
  margin-bottom: 6px;
  color: var(--navy);
}

.crm-board small {
  min-height: 34px;
  color: var(--muted);
}

.crm-board b {
  margin: 10px 0 14px;
  color: var(--gold);
  font-size: 24px;
}

.crm-lead {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 850;
  line-height: 1.45;
}

.crm-lead span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.surgery-calendar-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.surgery-calendar-strip div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--white);
}

.surgery-calendar-strip strong {
  display: grid;
  min-height: 64px;
  place-items: center;
  background: #071525;
  color: var(--gold);
}

.surgery-calendar-strip span {
  color: var(--muted);
  line-height: 1.5;
  font-weight: 800;
}

.surgery-table .admin-data-row {
  grid-template-columns: 0.75fr 1.25fr 1.1fr 0.45fr 1.05fr 1.2fr 0.9fr 0.75fr 0.9fr 1fr;
  min-width: 1280px;
}

.access-section,
.database-section {
  background: #f6f8fa;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.login-panel,
.access-map article {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 18, 30, 0.04);
}

.login-panel {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.login-panel h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.login-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.access-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.access-map article {
  padding: 20px;
}

.access-map strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.access-map p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.database-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.launch-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.launch-steps article {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(8, 18, 30, 0.04);
}

.launch-steps span {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid rgba(185, 155, 98, 0.55);
  background: #fff8eb;
  color: var(--navy);
  font-weight: 900;
}

.launch-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
}

.launch-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

body.lang-ar .admin-product-nav button,
body.lang-ar .admin-toolbar,
body.lang-ar .admin-login-strip {
  text-align: right;
}

body.lang-ar .admin-card ul {
  padding-left: 0;
  padding-right: 18px;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 12px;
    font-size: 12px;
  }
}

@media (max-width: 920px) {
  .compact-grid,
  .condition-grid,
  .two-card-grid,
  .faq-grid,
  .contact-grid,
  .expanded-footer,
  .why-list.six {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 126px;
  }

  .admin-shell,
  .admin-kpis,
  .admin-login-strip,
  .admin-product-shell,
  .admin-metric-grid,
  .admin-split,
  .automation-flow,
  .surgery-calendar-strip,
  .login-layout,
  .access-map,
  .database-grid,
  .launch-steps,
  .patient-record-grid,
  .schedule-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-strip,
  .admin-toolbar {
    align-items: stretch;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .role-switcher {
    justify-content: stretch;
  }

  .role-switcher button,
  .admin-search {
    width: 100%;
    max-width: none;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}

/* Bilingual expansion */
body.lang-ar {
  direction: rtl;
  font-family: Tahoma, Arial, sans-serif;
}

.ar,
body.lang-ar .en {
  display: none;
}

body.lang-ar .ar {
  display: inline;
}

body.lang-ar h1,
body.lang-ar h2 {
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.12;
}

body.lang-ar .site-header,
body.lang-ar .hero-actions,
body.lang-ar .section-heading,
body.lang-ar .booking-section,
body.lang-ar .locations-section,
body.lang-ar .site-footer {
  direction: rtl;
}

body.lang-ar .main-nav {
  margin-left: 0;
  margin-right: auto;
}

body.lang-ar .hero-content {
  margin-left: 0;
  margin-right: clamp(20px, 7vw, 100px);
  text-align: right;
}

body.lang-ar .slot-card {
  text-align: right;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  min-width: 78px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: currentColor;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-weight: 800;
}

.site-header.scrolled .lang-toggle,
.site-header.menu-open .lang-toggle {
  border-color: var(--line);
}

h1 span {
  display: block;
}

.image-split {
  align-items: center;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.stats-row div {
  border: 1px solid var(--line);
  padding: 18px;
  background: #fbfcfc;
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  margin-bottom: 8px;
  color: var(--navy);
}

.stats-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.photo-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #050e18;
}

.photo-band figure {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.photo-band figure:last-child {
  border-right: 0;
}

.photo-band img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 240ms ease;
}

.photo-band figure:hover img {
  transform: scale(1.025);
}

.photo-band figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  padding-top: 20px;
  color: var(--white);
  font-weight: 800;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.service-card {
  min-height: 340px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.lang-ar .service-card ul {
  padding-left: 0;
  padding-right: 18px;
}

.pathway-section {
  color: var(--white);
  background: #0b1b2b;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pathway-grid div {
  min-height: 250px;
  padding: 30px;
  background: #0b1b2b;
}

.pathway-grid span:first-child {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
}

.pathway-grid strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
}

.pathway-grid p {
  color: #c4cdd6;
  line-height: 1.7;
}

.contact-mini {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-mini a {
  display: inline-flex;
  width: fit-content;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.locations-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: clamp(30px, 6vw, 80px);
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.location-card {
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.location-card strong {
  font-size: 22px;
}

.location-card p,
.location-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.location-card.online {
  background: #0b1b2b;
  color: var(--white);
}

.location-card.online p,
.location-card.online span {
  color: #cbd4dd;
}

.map-placeholder {
  display: grid;
  min-height: 110px;
  margin-top: auto;
  place-items: center;
  border: 1px solid rgba(185, 155, 98, 0.5);
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 920px) {
  .header-tools {
    margin-left: auto;
  }

  body.lang-ar .header-tools {
    margin-left: 0;
    margin-right: auto;
  }

  .photo-band,
  .pathway-grid,
  .locations-section,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .pathway-grid div,
  .location-card {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  body.lang-ar .hero-content {
    margin: 0 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }
}
