/* ==========================================================================
   Pulse of Life — Design System
   Palette roles:
     --navy   #03045E  brand / headings / header & footer surfaces
     --ocean  #0077B6  primary actions, links, active states
     --cyan   #00B4D8  accents, icons, focus rings, live/pulse indicators
     --sky    #90E0EF  borders, dividers, soft badges, secondary buttons
     --mist   #CAF0F8  section tints, icon tiles, input fills
   ========================================================================== */

:root {
  --navy: #03045e;
  --ocean: #0077b6;
  --cyan: #00b4d8;
  --sky: #90e0ef;
  --mist: #caf0f8;

  --navy-90: rgba(3, 4, 94, 0.9);
  --navy-60: rgba(3, 4, 94, 0.6);
  --ocean-dark: #005f92;
  --mist-soft: #eefbfd;
  --white: #ffffff;
  --text: #0b1440;
  --text-muted: #4a5a86;
  --danger: #d64550;
  --success: #0a9b7a;
  --warning: #e69a1a;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(3, 4, 94, 0.06), 0 1px 3px rgba(3, 4, 94, 0.08);
  --shadow: 0 6px 18px rgba(3, 4, 94, 0.08), 0 2px 6px rgba(3, 4, 94, 0.05);
  --shadow-lg: 0 20px 45px rgba(3, 4, 94, 0.16);
  --ring: 0 0 0 4px rgba(0, 180, 216, 0.25);

  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--mist-soft);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}
.main { flex: 1; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--mist); }
.section--white { background: var(--white); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ocean);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--dark { background: rgba(144, 224, 239, 0.18); color: var(--sky); }

.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-90);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(144, 224, 239, 0.15);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--white); }
.brand__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--ocean));
  color: var(--white);
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(0, 180, 216, 0.35);
  animation: heartbeat 2.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(0.97); }
  30% { transform: scale(1.06); }
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--mist);
  font-size: .94rem;
  font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(144, 224, 239, 0.12); }
.nav__link.is-active { color: var(--white); background: rgba(0, 180, 216, 0.22); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  transform: translateX(-50%);
}
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__user {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--sky); font-size: .9rem; font-weight: 500;
}
.nav__user i { color: var(--cyan); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(144, 224, 239, 0.3);
  border-radius: 12px;
  background: transparent;
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ocean); color: var(--white); box-shadow: 0 8px 20px rgba(0, 119, 182, 0.28); }
.btn--primary:hover { background: var(--ocean-dark); color: var(--white); box-shadow: 0 12px 26px rgba(0, 119, 182, 0.36); }

.btn--accent { background: var(--cyan); color: var(--navy); box-shadow: 0 8px 20px rgba(0, 180, 216, 0.32); }
.btn--accent:hover { background: var(--sky); color: var(--navy); }

.btn--soft { background: var(--mist); color: var(--ocean); border-color: var(--sky); }
.btn--soft:hover { background: var(--sky); color: var(--navy); }

.btn--outline { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn--outline:hover { background: var(--ocean); color: var(--white); }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(202, 240, 248, 0.45); }
.btn--ghost-light:hover { background: rgba(202, 240, 248, 0.12); color: var(--white); border-color: var(--mist); }

/* ---------- Alerts / messages ---------- */
.messages { padding-top: 20px; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--sky);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  animation: slideDown .45s var(--ease);
}
.alert i { margin-top: 3px; color: var(--cyan); }
.alert--success { border-left: 4px solid var(--success); }
.alert--success i { color: var(--success); }
.alert--error { border-left: 4px solid var(--danger); }
.alert--error i { color: var(--danger); }
.alert--info { border-left: 4px solid var(--cyan); }
.alert__close {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--text-muted); font-size: 1rem; padding: 0 4px;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(0, 180, 216, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #05207a 55%, var(--ocean) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 80px;
  background: var(--mist-soft);
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(96px, 12vw, 140px);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { color: var(--mist); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 44px; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--white); line-height: 1.1; }
.hero__stat span { color: var(--sky); font-size: .88rem; }

.hero__media { position: relative; }
.hero__image {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(202, 240, 248, 0.12);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--text-muted); font-size: .75rem; }
.float-card strong { font-size: 1rem; }
.float-card--tl { top: 24px; left: -24px; }
.float-card--br { bottom: 28px; right: -18px; animation-delay: 1.4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.live-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}
.live-dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 300px at 90% -20%, rgba(0, 180, 216, 0.35), transparent 60%),
    linear-gradient(135deg, var(--navy), #05207a 70%, var(--ocean));
  color: var(--white);
  padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 8vw, 88px);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-hero p { color: var(--mist); max-width: 620px; margin: 0; }
.page-hero .row--between { align-items: flex-end; }
.breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--sky); font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--sky); }
.breadcrumb a:hover { color: var(--white); }
.page-body { margin-top: -48px; position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 88px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid rgba(144, 224, 239, 0.55);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}
.card--flat { box-shadow: none; }
.card__title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card__title h2, .card__title h3 { margin: 0; }

.icon-tile {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--mist);
  color: var(--ocean);
  font-size: 1.25rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.icon-tile--sm { width: 42px; height: 42px; font-size: 1rem; border-radius: 12px; }
.icon-tile--navy { background: var(--navy); color: var(--cyan); }

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid rgba(144, 224, 239, 0.6);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .icon-tile { background: var(--ocean); color: var(--white); transform: rotate(-6deg); }
.feature-card h3 { margin: 0; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: .94rem; }

/* ---------- Doctors ---------- */
.doctor-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(144, 224, 239, 0.6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mist);
  overflow: hidden;
}
.doctor-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.doctor-card:hover .doctor-card__img img { transform: scale(1.06); }
.doctor-card__body { padding: 18px 20px 22px; text-align: center; }
.doctor-card__body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--ocean);
  border: 1px solid var(--sky);
  font-size: .78rem;
  font-weight: 600;
}
.badge--navy { background: var(--navy); color: var(--sky); border-color: var(--navy); }
.badge--success { background: #e2f7f1; color: var(--success); border-color: #a8e6d5; }
.badge--danger { background: #fde8ea; color: var(--danger); border-color: #f5b8be; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(0, 180, 216, 0.45), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--ocean));
  color: var(--white);
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center;
  gap: 28px;
}
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { color: var(--mist); margin: 0; max-width: 560px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
}
.field .hint { font-size: .78rem; color: var(--text-muted); }
.input-wrap { position: relative; }
.input-wrap > i {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--ocean);
  opacity: .75;
  pointer-events: none;
}
.input-wrap > .input,
.input-wrap > input,
.input-wrap > select,
.field .input-wrap > input:not([type="checkbox"]):not([type="radio"]),
.field .input-wrap > select,
.input-wrap > .form-control { padding-left: 44px; }

.input,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--sky);
  border-radius: 12px;
  background: var(--mist-soft);
  color: var(--text);
  font-size: .96rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea, textarea.input { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.field select, select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230077B6' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.input::placeholder, .form-control::placeholder, .field input::placeholder, .field textarea::placeholder { color: #7f8fb5; }
.input:hover, .form-control:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--cyan); }
.input:focus, .form-control:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: var(--ring);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.errorlist, .field-error { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: .82rem; }
.form-text, .text-muted { color: var(--text-muted); font-size: .8rem; }
.helptext ul, .form-text ul, ul.form-text { padding-left: 18px; margin: 6px 0 0; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ocean); }

.form-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ocean);
  margin: 8px 0 14px;
}
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--sky); opacity: .7; }

/* Choice chips (radio groups) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid var(--sky);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: .9rem; font-weight: 500;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.chip span:hover { border-color: var(--cyan); }
.chip input:checked + span { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.chip input:focus-visible + span { box-shadow: var(--ring); }

/* ---------- Auth ---------- */
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.auth__aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(3, 4, 94, 0.15) 0%, rgba(3, 4, 94, 0.92) 85%),
    var(--auth-img) center / cover no-repeat,
    var(--navy);
}
.auth__aside h2 { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.auth__aside p { color: var(--mist); max-width: 440px; }
.auth__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.auth__list li { display: flex; align-items: center; gap: 12px; color: var(--mist); }
.auth__list i { color: var(--cyan); }
.auth__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
  background: var(--mist-soft);
}
.auth__card { width: 100%; max-width: 460px; }
.auth__card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); margin-bottom: 6px; }
.auth__card > p { color: var(--text-muted); margin-bottom: 28px; }
.auth__foot { margin-top: 24px; text-align: center; color: var(--text-muted); font-size: .92rem; }
.auth__foot a { font-weight: 600; }

/* ---------- Data / lists ---------- */
.info-list { display: grid; gap: 0; margin: 0; }
.info-list__row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(144, 224, 239, 0.9);
}
.info-list__row:last-child { border-bottom: 0; }
.info-list dt { color: var(--text-muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.info-list dt i { color: var(--cyan); width: 16px; text-align: center; }
.info-list dd { margin: 0; color: var(--navy); font-weight: 500; word-break: break-word; }

.list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.list-item:hover { background: var(--mist-soft); border-color: rgba(144, 224, 239, 0.7); }
.list-item__body { flex: 1; min-width: 0; }
.list-item__body strong { display: block; color: var(--navy); }
.list-item__body span { color: var(--text-muted); font-size: .9rem; }

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid rgba(144, 224, 239, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.stat-card span { color: var(--text-muted); font-size: .85rem; }

.metric { padding: 20px; border-radius: var(--radius); background: var(--mist-soft); border: 1px solid rgba(144, 224, 239, 0.7); }
.metric__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.metric__head strong { color: var(--navy); }
.metric__range { font-size: .82rem; color: var(--ocean); font-weight: 600; }
.metric p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.progress { height: 8px; border-radius: var(--radius-pill); background: var(--mist); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ocean), var(--cyan)); }

.chart-box {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--mist-soft));
  border: 1px solid rgba(144, 224, 239, 0.7);
  padding: 16px;
}

.result-banner {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--mist), var(--white));
  border: 1px solid var(--sky);
  margin-bottom: 24px;
}
.result-banner strong { color: var(--navy); font-size: 1.1rem; }

.pagination { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--sky);
  background: var(--white);
  color: var(--ocean);
  font-weight: 600; font-size: .9rem;
}
.pagination a:hover { background: var(--mist); }
.pagination .is-active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.pagination .is-disabled { opacity: .45; pointer-events: none; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.avatar {
  width: 112px; height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--cyan), var(--shadow);
  background: var(--mist);
}
.avatar--initials {
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--ocean), var(--cyan));
}

/* Appointment */
.steps { display: grid; gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700; font-size: .9rem;
}
.steps strong { display: block; color: var(--white); }
.steps span { color: var(--mist); font-size: .9rem; }
.aside-dark {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(0, 180, 216, 0.35), transparent 60%),
    var(--navy);
  color: var(--white);
  border: 0;
}
.aside-dark h3 { color: var(--white); }
.aside-dark hr { border: 0; border-top: 1px solid rgba(144, 224, 239, 0.2); margin: 24px 0; }
.contact-line { display: flex; align-items: center; gap: 12px; color: var(--mist); margin-bottom: 10px; font-size: .94rem; }
.contact-line i { color: var(--cyan); width: 18px; text-align: center; }

.doctor-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.doctor-pick label { position: relative; cursor: pointer; }
.doctor-pick input { position: absolute; opacity: 0; pointer-events: none; }
.doctor-pick .pick {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
  background: var(--white);
  transition: all .2s var(--ease);
}
.doctor-pick .pick img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.doctor-pick .pick strong { display: block; font-size: .92rem; color: var(--navy); line-height: 1.25; }
.doctor-pick .pick small { color: var(--text-muted); font-size: .78rem; }
.doctor-pick .pick:hover { border-color: var(--cyan); }
.doctor-pick input:checked + .pick { border-color: var(--ocean); background: var(--mist); box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15); }
.doctor-pick input:checked + .pick::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  margin-left: auto;
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ocean); color: var(--white); font-size: .7rem;
}
.doctor-pick input:focus-visible + .pick { box-shadow: var(--ring); }

.success-card { text-align: center; max-width: 620px; margin: 0 auto; }
.success-card .icon-tile { width: 76px; height: 76px; font-size: 2rem; margin: 0 auto 18px; background: #e2f7f1; color: var(--success); border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--sky); padding: clamp(40px, 6vw, 64px) 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer p { color: var(--sky); font-size: .92rem; max-width: 320px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--sky); font-size: .92rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(144, 224, 239, 0.18);
  font-size: .85rem; color: rgba(144, 224, 239, 0.8);
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(144, 224, 239, 0.12); color: var(--sky);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.socials a:hover { background: var(--cyan); color: var(--navy); transform: translateY(-2px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px clamp(16px, 4vw, 32px) 28px;
    background: var(--navy);
    border-bottom: 1px solid rgba(144, 224, 239, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 12px 16px; border-radius: 12px; }
  .nav__link.is-active::after { left: auto; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .nav__actions { flex-direction: column; align-items: stretch; }
  .nav__actions .btn { width: 100%; }
  .nav__user { justify-content: center; padding: 6px 0; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .float-card--tl { left: 8px; }
  .float-card--br { right: 8px; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta p { margin: 0 auto; }
  .cta__actions { justify-content: center; }

  .auth { grid-template-columns: 1fr; }
  .auth__aside { min-height: 260px; }
  .auth__aside .auth__list { display: none; }

  .layout-split { grid-template-columns: 1fr !important; }
  .form-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-doctors { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .form-grid, .form-grid--3, .form-grid--4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-list__row { grid-template-columns: 1fr; gap: 4px; }
  .hero__actions .btn { width: 100%; }
  .float-card { display: none; }
  .page-hero .row--between { flex-direction: column; align-items: flex-start; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head .row { justify-content: center; }
  .btn--lg { height: 50px; }
  .doctor-card__body { padding: 14px 12px 16px; }
  .doctor-card__body h3 { font-size: .95rem; }
}
