:root {
  --blue-900: #0b2a5b;
  --blue-700: #1446a0;
  --blue-600: #1d5fd1;
  --blue-500: #2f7bf5;
  --blue-100: #e3eeff;
  --blue-50: #f3f7ff;
  --white: #ffffff;
  --ink: #0f1d33;
  --muted: #5d6b82;
  --line: #dde6f3;
  --green: #12a150;
  --green-bg: #e6f7ee;
  --red: #d93a3a;
  --red-bg: #fdecec;
  --amber: #b7791f;
  --amber-bg: #fff6e0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 70, 160, 0.08), 0 2px 6px rgba(20, 70, 160, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--blue-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue-600); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--blue-900); text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800;
}
.brand span em { font-style: normal; color: var(--blue-500); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem;
  padding: 8px 12px; border-radius: 10px;
}
.nav-links a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav-links a.nav-cta { background: var(--blue-600); color: #fff; }
.nav-links a.nav-cta:hover { background: var(--blue-700); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 78% 30%, rgba(77, 147, 255, .55) 0, transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(18, 161, 80, .18) 0, transparent 40%),
    linear-gradient(140deg, var(--blue-700), var(--blue-900) 70%);
  color: #fff;
  padding: 48px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.greeting-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -0.03em; }
.hero h1 .grad { background: linear-gradient(90deg, #9cc4ff, #ffffff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; max-width: 540px; color: #d5e4ff; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-actions .btn { text-decoration: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 10px 16px; font-size: .85rem; color: #d5e4ff;
}
.hero-stat b { display: block; color: #fff; font-size: 1.12rem; }

.hero-visual { position: relative; height: 440px; perspective: 1000px; }
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.hero-visual.ready canvas { opacity: 1; }
.hero-visual.no-3d::before {
  content: '+'; position: absolute; inset: 0; margin: auto; width: 180px; height: 180px; border-radius: 44px;
  display: grid; place-items: center; font-size: 8rem; font-weight: 800; color: var(--blue-600);
  background: linear-gradient(145deg, #fff, #dbe8ff); box-shadow: 0 30px 60px rgba(0,0,0,.3);
  transform: rotateX(12deg) rotateY(-18deg);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(12px);
  border-radius: 16px; padding: 10px 14px; box-shadow: 0 18px 40px rgba(4, 20, 50, .35);
  font-size: .82rem; animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .88rem; }
.float-card small { color: var(--muted); }
.float-card img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; }
.fc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-100); font-size: 1.15rem; }
.fc-ico.green { background: var(--green-bg); color: var(--green); font-weight: 800; }
.fc-1 { top: 6%; left: 0; transform: rotateY(12deg); }
.fc-2 { bottom: 10%; left: 4%; animation-delay: -2s; }
.fc-3 { top: 44%; right: 0; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 860px) {
  .hero { padding-bottom: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Trust strip ---------- */
.trust {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 0;
  width: calc(100% - 32px); max-width: 1048px;
}
.trust-item { background: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.trust-item b { font-size: 1.5rem; color: var(--blue-700); letter-spacing: -0.02em; }
.trust-item span { color: var(--muted); font-size: .85rem; line-height: 1.3; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; } }

/* ---------- Layout ---------- */
.main { margin-top: 28px; padding-bottom: 48px; }
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 22px;
}
.section-title { font-size: 1.35rem; margin: 40px 0 6px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); margin: 0 0 18px; }

/* ---------- Stepper ---------- */
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.step {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--muted);
}
.step .dot {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-50); border: 2px solid var(--line); font-size: .8rem;
}
.step .bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; }
.step.done .dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.step.done .bar { background: var(--blue-600); }
.step.active { color: var(--blue-700); }
.step.active .dot { border-color: var(--blue-600); color: var(--blue-700); background: #fff; }
.step:last-child .bar { display: none; }
@media (max-width: 560px) { .step .label { display: none; } }

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.link-btn {
  background: none; border: none; color: var(--blue-600); font-weight: 700; padding: 6px 0; white-space: nowrap;
}

/* ---------- Doctor cards ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-weight: 600; font-size: .88rem; color: var(--muted);
}
.chip.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

.doctor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.doctor {
  text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 16px;
  display: flex; gap: 14px; align-items: flex-start; transition: border-color .15s, transform .2s ease-out, box-shadow .15s;
}
.doctor:hover { border-color: var(--blue-500); transform: translateY(-2px); box-shadow: var(--shadow); }
.doctor.selected { border-color: var(--blue-600); background: var(--blue-50); }
.avatar {
  flex: none; width: 64px; height: 72px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), #fff); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--blue-700);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doctor h3 { margin: 0; font-size: 1rem; }
.doctor .meta b { color: var(--ink); font-weight: 700; }
.doctor .spec { color: var(--blue-600); font-weight: 700; font-size: .85rem; }
.doctor .meta { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Dates ---------- */
.date-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.date {
  flex: none; width: 82px; scroll-snap-align: start;
  border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 6px; text-align: center;
  transition: border-color .15s, background .15s;
}
.date .dow { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.date .num { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.date .mon { font-size: .75rem; color: var(--muted); }
.date .left { margin-top: 6px; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: 2px 4px; background: var(--green-bg); color: var(--green); }
.date .left.low { background: var(--amber-bg); color: var(--amber); }
.date .left.none { background: var(--red-bg); color: var(--red); }
.date:hover:not(:disabled) { border-color: var(--blue-500); }
.date.selected { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
.date.selected .dow, .date.selected .mon { color: #dbe8ff; }
.date:disabled { cursor: not-allowed; background: #f5f7fb; color: #a8b3c4; }
.date:disabled .left { background: #eceff4; color: #8a96a8; }

/* ---------- Slots ---------- */
.suggest {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--blue-50), #fff); border: 1px dashed var(--blue-500);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 18px;
}
.suggest .bulb { font-size: 1.5rem; }
.suggest .txt { flex: 1; min-width: 180px; }
.suggest .txt b { color: var(--blue-700); }
.suggest .txt small { display: block; color: var(--muted); }

.token-meter { margin-bottom: 18px; }
.token-meter .row { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.token-meter .row b { color: var(--blue-700); }
.meter { height: 8px; background: var(--blue-100); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); border-radius: 99px; transition: width .4s; }

.slot-group h4 { margin: 0 0 10px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.slot-group + .slot-group { margin-top: 18px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot {
  position: relative; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 4px;
  font-weight: 700; font-size: .92rem; transition: border-color .15s, background .15s;
}
.slot small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); }
.slot:hover:not(:disabled) { border-color: var(--blue-500); }
.slot.selected { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.slot.selected small { color: #dbe8ff; }
.slot.best::after {
  content: 'Best'; position: absolute; top: -8px; right: -6px;
  background: var(--green); color: #fff; font-size: .62rem; padding: 1px 7px; border-radius: 99px;
}
.slot:disabled { cursor: not-allowed; background: #f5f7fb; color: #a8b3c4; text-decoration: line-through; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 16px; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--line); background: #fff; }
.legend .l-sel::before { background: var(--blue-600); border-color: var(--blue-600); }
.legend .l-off::before { background: #eceff4; }

/* ---------- Form ---------- */
.summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
  background: var(--blue-50); border-radius: 14px; padding: 14px; margin-bottom: 18px;
}
.summary div small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.summary div b { font-size: .95rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.input {
  width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 1rem; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px var(--blue-100); }
.phone-wrap { display: flex; }
.phone-wrap .prefix {
  display: grid; place-items: center; padding: 0 12px; border: 2px solid var(--line); border-right: none;
  border-radius: 12px 0 0 12px; background: var(--blue-50); font-weight: 700; color: var(--muted);
}
.phone-wrap .input { border-radius: 0 12px 12px 0; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hello { color: var(--blue-700); font-weight: 700; min-height: 1.5em; margin: -4px 0 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px; padding: 13px 22px; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
  box-shadow: 0 8px 20px rgba(29, 95, 209, 0.28); transition: transform .1s, box-shadow .15s, opacity .15s;
}
.btn:hover { box-shadow: 0 10px 24px rgba(29, 95, 209, 0.36); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: .88rem; border-radius: 11px; }
.btn.glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); box-shadow: none; backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255,255,255,.2); }
.btn.ghost { background: #fff; color: var(--blue-700); border: 2px solid var(--line); box-shadow: none; }
.btn.danger { background: #fff; color: var(--red); border: 2px solid #f3c6c6; box-shadow: none; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { flex: 1; }

.alert { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: .92rem; margin-bottom: 14px; }
.alert.error { background: var(--red-bg); color: var(--red); }
.alert.info { background: var(--blue-50); color: var(--blue-700); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* ---------- Ticket ---------- */
.ticket { max-width: 460px; margin: 0 auto; text-align: center; }
.ticket .check {
  width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--green-bg); color: var(--green);
  display: grid; place-items: center; font-size: 2rem; animation: pop .4s ease-out;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ticket h2 { margin: 0; }
.ticket .sub { color: var(--muted); margin: 4px 0 20px; }
.token-box {
  background: linear-gradient(140deg, var(--blue-600), var(--blue-900)); color: #fff; border-radius: 20px; padding: 22px;
  position: relative; overflow: hidden;
}
.token-box::before, .token-box::after {
  content: ''; position: absolute; top: 50%; width: 26px; height: 26px; background: #fff; border-radius: 50%; transform: translateY(-50%);
}
.token-box::before { left: -13px; }
.token-box::after { right: -13px; }
.token-box small { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: #bcd3ff; font-weight: 700; }
.token-num { font-size: 4.2rem; font-weight: 800; line-height: 1; margin: 6px 0; letter-spacing: -0.03em; }
.token-box .left-note { display: inline-block; background: rgba(255,255,255,.14); border-radius: 99px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }
.ticket-details { text-align: left; margin-top: 16px; border: 1px dashed var(--line); border-radius: 16px; padding: 6px 16px; }
.ticket-details div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ticket-details div:last-child { border-bottom: none; }
.ticket-details span { color: var(--muted); }
.ticket-details b { text-align: right; }
.ticket .tip { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.service {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  transition: transform .15s, box-shadow .15s;
}
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px; }
.service h3 { margin: 0 0 4px; font-size: 1rem; }
.service p { margin: 0; color: var(--muted); font-size: .88rem; }
.service .go { margin-top: 10px; color: var(--blue-600); font-weight: 700; font-size: .85rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.info-grid .card { padding: 18px; }
.info-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.info-grid p { margin: 0; color: var(--muted); font-size: .9rem; }



/* ---------- Admin ---------- */
.admin-body { background: var(--blue-50); }
.pin-card { max-width: 380px; margin: 60px auto; text-align: center; }
.pin-card .lock { font-size: 2.2rem; }
.pin-input { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.stat b { display: block; font-size: 1.7rem; color: var(--blue-900); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { flex: 1; min-width: 150px; padding: 10px 12px; }
.toolbar select.input { flex: 0 1 200px; }
.appt-list { display: grid; gap: 10px; }
.appt {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.appt.cancelled { opacity: .6; }
.appt .tk {
  width: 54px; height: 54px; border-radius: 14px; background: var(--blue-600); color: #fff;
  display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.2rem; line-height: 1;
}
.appt .tk small { display: block; font-size: .55rem; font-weight: 700; letter-spacing: .08em; opacity: .8; }
.appt.cancelled .tk { background: #9aa6b8; }
.appt h3 { margin: 0; font-size: 1rem; }
.appt .meta { color: var(--muted); font-size: .85rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.badge.booked { background: var(--green-bg); color: var(--green); }
.badge.cancelled { background: var(--red-bg); color: var(--red); }
.badge.past { background: #eceff4; color: var(--muted); }
.assist-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.assist-tag { background: var(--amber-bg); color: var(--amber); font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
@media (max-width: 560px) {
  .appt { grid-template-columns: auto 1fr; }
  .appt .btn { grid-column: 1 / -1; }
  .nav-links a.hide-sm { display: none; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--blue-900); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600;
  box-shadow: var(--shadow); transition: transform .3s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Section labels ---------- */
.eyebrow {
  display: inline-block; margin-top: 48px; font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-600);
}
.eyebrow + .section-title { margin-top: 4px; }
.booking .eyebrow { margin-top: 0; }
.section-title.flush { margin: 2px 0 18px; }
.booking { padding: 26px; }

/* ---------- Doctor profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.profile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease-out, box-shadow .2s; transform-style: preserve-3d;
}
.profile::after, .doctor::after, .assist-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .2s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), transparent 50%);
}
.doctor { position: relative; }
.profile:hover::after, .doctor:hover::after, .assist-card:hover::after { opacity: 1; }
.profile:hover { box-shadow: 0 24px 50px rgba(20, 70, 160, .18); }
.profile-photo { position: relative; height: 250px; background: linear-gradient(160deg, var(--blue-100), #fff); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.profile-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(11, 42, 91, .35)); }
.exp-badge {
  position: absolute; right: 14px; bottom: 14px; z-index: 1; background: #fff; border-radius: 12px; padding: 6px 10px;
  font-size: .78rem; color: var(--muted); box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.exp-badge b { color: var(--blue-700); font-size: 1rem; }
.profile-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.profile .spec { color: var(--blue-600); font-weight: 700; font-size: .82rem; }
.profile h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.01em; }
.profile .title { margin: 0; color: var(--muted); font-size: .88rem; }
.degrees { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; gap: 8px; }
.degrees li { display: flex; gap: 10px; align-items: flex-start; }
.deg {
  flex: none; min-width: 52px; text-align: center; background: var(--blue-50); color: var(--blue-700);
  border: 1px solid var(--blue-100); font-weight: 800; font-size: .74rem; padding: 4px 6px; border-radius: 8px;
}
.degrees b { display: block; font-size: .84rem; line-height: 1.3; }
.degrees small { color: var(--muted); font-size: .76rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.tags span { background: #f1f5fb; color: var(--ink); font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.profile-foot {
  display: grid; grid-template-columns: auto auto 1fr; gap: 14px; border-top: 1px dashed var(--line);
  padding-top: 12px; margin: 6px 0 10px; font-size: .8rem;
}
.profile-foot small { display: block; color: var(--muted); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.profile-foot b { font-size: .82rem; }
.profile .btn { margin-top: auto; }

.stars { color: #f5a524; letter-spacing: 1px; }
.stars i { font-style: normal; color: #d8dee8; }
.rating > span:not(.stars) { color: var(--muted); }

/* ---------- Assistance ---------- */
.assist-section {
  margin-top: 56px; border-radius: 28px; padding: 36px; color: #fff;
  background: radial-gradient(circle at 100% 0, rgba(77,147,255,.45), transparent 45%), linear-gradient(140deg, var(--blue-700), var(--blue-900));
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center;
}
.eyebrow.light { color: #9cc4ff; margin-top: 0; }
.assist-intro h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; margin: 6px 0 12px; letter-spacing: -0.02em; }
.assist-intro h2 em { font-style: normal; color: #9cc4ff; }
.assist-intro p { color: #d5e4ff; margin: 0 0 18px; }
.assist-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.assist-flow li { display: flex; gap: 12px; align-items: flex-start; }
.assist-flow li > b {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
}
.assist-flow strong { display: block; }
.assist-flow span { color: #d5e4ff; font-size: .9rem; }
.assist-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; perspective: 900px; }
.assist-card {
  position: relative; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
  padding: 16px; backdrop-filter: blur(8px); transition: transform .2s ease-out, background .2s;
}
.assist-card:hover { background: rgba(255,255,255,.14); }
.assist-card .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 10px;
  background: linear-gradient(145deg, #fff, #cfe0ff); box-shadow: 0 10px 20px rgba(0,0,0,.25), inset 0 -3px 0 rgba(20,70,160,.15);
}
.assist-card b { display: block; font-size: .92rem; }
.assist-card small { color: #c3d6f7; font-size: .8rem; }
@media (max-width: 860px) { .assist-section { grid-template-columns: 1fr; padding: 24px 18px; } }

/* Booking form – assistance */
.assist-field { border: 2px solid var(--line); border-radius: 16px; padding: 14px; margin: 0 0 16px; }
.assist-field legend { font-weight: 700; font-size: .95rem; padding: 0 6px; }
.assist-field .opt { font-weight: 600; font-size: .72rem; color: var(--muted); background: var(--blue-50); border-radius: 99px; padding: 2px 8px; margin-left: 4px; }
.assist-field .hint { margin: 0 0 12px; }
.assist-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 10px; }
.assist-opt {
  position: relative; display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 10px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.assist-opt:hover { border-color: var(--blue-500); }
.assist-opt input { position: absolute; opacity: 0; pointer-events: none; }
.assist-opt .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); display: grid; place-items: center; font-size: 1.1rem; }
.assist-opt b { display: block; font-size: .86rem; }
.assist-opt small { color: var(--muted); font-size: .76rem; line-height: 1.3; display: block; }
.assist-opt:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); }
.assist-opt:has(input:checked) .ico { background: var(--blue-600); color: #fff; }
.assist-opt:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--blue-100); }
textarea.input { resize: vertical; min-height: 56px; }

.ready-box {
  text-align: left; margin-top: 14px; background: var(--amber-bg); border: 1px solid #f3dfa6; border-radius: 16px; padding: 12px 16px;
}
.ready-box small { display: block; color: var(--muted); font-size: .8rem; margin-top: 6px; }

/* ---------- Reviews ---------- */
.reviews-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; margin-top: 18px; }
.review-summary { text-align: center; position: sticky; top: 84px; }
.review-summary .big { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--blue-900); letter-spacing: -0.03em; }
.review-summary .stars { font-size: 1.3rem; }
.review-summary p { color: var(--muted); margin: 4px 0 14px; font-size: .88rem; }
.per-doc { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.per-doc li { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.per-doc img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.per-doc span { flex: 1; }
.per-doc b { color: var(--blue-700); }
.per-doc b::after { content: ' ★'; color: #f5a524; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s;
}
.review:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.review-top { display: flex; justify-content: space-between; align-items: center; }
.review-top time { color: var(--muted); font-size: .76rem; }
.review blockquote { margin: 0; font-size: .92rem; color: var(--ink); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review figcaption b { display: block; font-size: .88rem; }
.review figcaption small { color: var(--muted); font-size: .76rem; }
.r-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff;
}
@media (max-width: 760px) {
  .reviews-wrap { grid-template-columns: 1fr; }
  .review-summary { position: static; }
}

/* ---------- Footer ---------- */
footer { background: var(--blue-900); color: #c3d6f7; margin-top: 56px; padding: 32px 0 40px; font-size: .85rem; }
.foot { display: grid; gap: 8px; justify-items: center; text-align: center; }
.foot .brand { color: #fff; }
.foot p { margin: 0; }
.foot .small { color: #8fa7cf; }
.foot a { color: #fff; }

@media print {
  .topbar, .hero, .trust, #doctors, #assistance, #services, #reviews, #info, footer, .steps, .actions { display: none !important; }
  .main { margin: 0; }
  .card { box-shadow: none; border: none; }
}
