:root {
  color-scheme: light;
  --bg: #f5f9fb;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --surface: #ffffff;
  --surface-soft: #f0f8f7;
  --surface-muted: #edf3f5;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #101828;
  --text-soft: #667085;
  --text-faint: #98a2b3;
  --line: rgba(20, 56, 63, 0.09);
  --line-strong: rgba(20, 56, 63, 0.16);
  --emerald: #00b982;
  --emerald-deep: #008c68;
  --cyan: #00bfe8;
  --blue: #2563eb;
  --violet: #2f80ed;
  --orange: #f79009;
  --red: #ef476f;
  --shadow-sm: 0 8px 24px rgba(25, 74, 74, 0.07);
  --shadow: 0 18px 50px rgba(24, 74, 76, 0.11);
  --shadow-lg: 0 26px 80px rgba(16, 50, 66, 0.18);
  --radius-sm: 13px;
  --radius: 20px;
  --radius-lg: 28px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: 80px;
  --nav-height: 74px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(13, 28, 45, 0.92);
  --surface: #0d1b2b;
  --surface-soft: #0c2630;
  --surface-muted: #132438;
  --glass: rgba(13, 28, 45, 0.76);
  --text: #f3f8ff;
  --text-soft: #a4b1c2;
  --text-faint: #8798ab;
  --violet: #79a7ff;
  --line: rgba(207, 241, 255, 0.09);
  --line-strong: rgba(207, 241, 255, 0.16);
  --emerald: #18d7a0;
  --emerald-deep: #00ab7e;
  --cyan: #35d5ff;
  --blue: #5c8aff;
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.22);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 4%, rgba(0, 201, 139, 0.09), transparent 27rem),
    radial-gradient(circle at 94% 28%, rgba(0, 200, 255, 0.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  border: 0;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 45%, transparent);
  outline-offset: 2px;
}

button:active {
  transform: scale(0.97);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.ambient-one {
  width: 22rem;
  height: 22rem;
  left: -12rem;
  top: 34%;
  background: rgba(0, 201, 139, 0.07);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  right: -9rem;
  top: 4%;
  background: rgba(37, 99, 235, 0.06);
}

.app-shell {
  width: min(100%, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 22px calc(var(--nav-height) + var(--safe-bottom) + 36px);
}

.app-header {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: var(--header-height);
  margin: 0 -22px;
  padding: 13px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(to bottom, var(--bg) 58%, transparent);
}

.header-left,
.header-actions,
.row,
.inline,
.location-pill,
.rating,
.meta-line,
.doctor-actions,
.choice-row,
.queue-meta,
.report-meta,
.account-line {
  display: flex;
  align-items: center;
}

.header-left {
  min-width: 0;
  gap: 11px;
}

.header-actions {
  flex-shrink: 0;
  gap: 8px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.mini-brand span span {
  color: var(--emerald);
}

.mini-logo {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: white;
  font-size: 25px;
  font-weight: 500;
  box-shadow: 0 9px 22px rgba(0, 185, 130, 0.22);
}

.animated-brand-mark {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  overflow: hidden;
  border: 1px solid rgba(70, 218, 239, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(10, 42, 61, 0.98), rgba(6, 29, 45, 0.98));
  box-shadow: 0 9px 24px rgba(0, 164, 193, 0.28), inset 0 0 18px rgba(62, 217, 225, 0.05);
  isolation: isolate;
  animation: sehatline-logo-breathe 4.8s ease-in-out infinite;
}

.animated-brand-mark > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-brand-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 18px;
}

.location-block {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-pill {
  max-width: 210px;
  gap: 5px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.location-pill svg {
  width: 15px;
  color: var(--emerald-deep);
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: 160ms ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.icon-button svg,
.btn svg,
.nav-item svg,
.action-icon svg,
.search-icon svg,
.tiny-icon svg,
.service-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.badge-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 8px;
  right: 8px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--red);
}

.status-banner {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 50%;
  width: min(calc(100% - 28px), 480px);
  padding: 11px 16px;
  border-radius: 14px;
  background: #25344b;
  color: white;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

#app {
  min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

/* The main landmark is focused after route changes for screen-reader context.
   Do not draw the generic control focus ring around the entire page. */
#app:focus,
#app:focus-visible {
  outline: none;
}

.page {
  animation: page-in 320ms ease both;
}

.page-head {
  margin: 12px 0 23px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.page-title,
.hero-title {
  margin: 0;
  color: var(--text);
  font-weight: 820;
  letter-spacing: -0.045em;
}

.page-title {
  font-size: clamp(27px, 4.5vw, 40px);
}

.page-subtitle {
  max-width: 570px;
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.section {
  margin-top: 29px;
}

.section-head {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-link {
  padding: 6px;
  background: transparent;
  color: var(--emerald-deep);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.section-link:hover {
  text-decoration: underline;
}

.muted {
  color: var(--text-soft);
}

.fine {
  color: var(--text-faint);
  font-size: 12px;
}

.strong {
  font-weight: 800;
}

.text-emerald {
  color: var(--emerald-deep);
}

.glass-card,
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
}

.home-hero {
  position: relative;
  min-height: 280px;
  padding: clamp(24px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(0, 185, 130, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.4), transparent 19%),
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--emerald) 12%), color-mix(in srgb, var(--surface) 90%, var(--cyan) 10%));
  box-shadow: var(--shadow);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.home-hero::before {
  width: 230px;
  height: 230px;
  left: -100px;
  bottom: -145px;
  border: 38px solid rgba(0, 185, 130, 0.08);
  animation: care-orbit 11s ease-in-out infinite alternate;
}

.home-hero::after {
  width: 120px;
  height: 120px;
  right: 28%;
  top: -76px;
  background: rgba(53, 213, 255, 0.08);
  animation: care-orbit 9s ease-in-out infinite alternate-reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(66%, 650px);
}

.hello {
  margin: 0 0 6px;
  color: var(--emerald-deep);
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  max-width: 620px;
  font-size: clamp(31px, 5.3vw, 54px);
  line-height: 1.04;
}

.hero-title span {
  background: linear-gradient(105deg, var(--emerald-deep), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 540px;
  margin: 13px 0 21px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  min-height: 46px;
  padding-inline: 18px;
}

.hero-trust {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--emerald-deep);
}

.ai-search {
  width: min(100%, 580px);
  min-height: 58px;
  padding: 6px 7px 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(31, 100, 101, 0.12);
}

.ai-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.ai-search input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.search-icon {
  display: grid;
  color: var(--violet);
}

.ai-search .icon-button {
  border: 0;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
}

.oxygen-tree-patient {
  position: absolute;
  z-index: 1;
  width: clamp(230px, 29vw, 360px);
  height: auto;
  right: clamp(-45px, 0.5vw, 12px);
  bottom: -16%;
  opacity: 0.94;
  filter: drop-shadow(0 22px 34px rgba(0, 112, 123, 0.14));
  pointer-events: none;
  user-select: none;
}

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

.section-kicker {
  margin: 0 0 5px;
  color: var(--emerald-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.specialty-scroll {
  margin: 1px -22px 15px;
  padding: 7px 22px 10px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.specialty-scroll::-webkit-scrollbar {
  display: none;
}

.specialty-chip {
  min-height: 42px;
  padding: 8px 13px 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font: 750 11px/1.2 inherit;
  cursor: pointer;
  transition: 180ms ease;
}

.specialty-chip span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 185, 130, 0.1);
  color: var(--emerald-deep);
}

.specialty-chip svg {
  width: 15px;
  height: 15px;
}

.specialty-chip:hover,
.specialty-chip.active {
  border-color: rgba(0, 185, 130, 0.38);
  background: color-mix(in srgb, var(--surface) 86%, var(--emerald) 14%);
  color: var(--emerald-deep);
  transform: translateY(-1px);
}

.coming-section {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 95%, var(--blue) 5%), color-mix(in srgb, var(--surface) 94%, var(--emerald) 6%));
}

.coming-note {
  color: var(--text-faint);
  font-size: 11px;
}

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

.coming-card {
  position: relative;
  min-height: 186px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-sm);
  transition: 180ms ease;
}

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

.coming-card h3 {
  margin: 17px 0 7px;
  font-size: 15px;
}

.coming-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.6;
}

.coming-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.coming-icon svg {
  width: 21px;
  height: 21px;
}

.coming-icon.mint { background: rgba(0, 185, 130, 0.11); color: var(--emerald-deep); }
.coming-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.coming-icon.orange { background: rgba(247, 144, 9, 0.11); color: var(--orange); }
.coming-icon.rose { background: rgba(239, 71, 111, 0.1); color: var(--red); }

.coming-badge {
  position: absolute;
  top: 17px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 84%, var(--blue) 16%);
  color: var(--blue);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes care-orbit {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(28px, -15px, 0) rotate(12deg); }
}

.quick-action {
  min-height: 114px;
  padding: 15px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: 180ms ease;
}

.quick-action:hover {
  border-color: color-mix(in srgb, var(--emerald) 32%, var(--line));
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quick-action span:last-child {
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.action-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--action-bg, rgba(0, 185, 130, 0.11));
  color: var(--action-color, var(--emerald-deep));
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.75fr);
  gap: 20px;
}

.appointment-spotlight {
  position: relative;
  min-height: 198px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
}

.appointment-spotlight::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  bottom: -60px;
  border-radius: 50%;
  background: rgba(0, 201, 139, 0.1);
}

.appointment-top,
.doctor-card-top,
.lab-card-top,
.booking-summary-head,
.profile-hero,
.notification-row,
.timeline-row,
.report-card,
.setting-row {
  display: flex;
  gap: 13px;
}

.appointment-top {
  align-items: flex-start;
}

.appointment-info {
  min-width: 0;
  flex: 1;
}

.appointment-info h3,
.doctor-main h3,
.lab-main h3,
.profile-hero h2,
.booking-summary-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.appointment-info p,
.doctor-main p,
.lab-main p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.appointment-time {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.info-pill,
.status-pill,
.tag,
.verified,
.filter-chip,
.date-chip,
.time-chip,
.type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
}

.info-pill {
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.status-pill {
  padding: 7px 10px;
  background: rgba(0, 185, 130, 0.11);
  color: var(--emerald-deep);
}

.status-pill.orange {
  background: rgba(247, 144, 9, 0.12);
  color: #c46b00;
}

.status-pill.blue {
  background: rgba(37, 99, 235, 0.11);
  color: var(--blue);
}

.time-chip.booked,
.time-chip:disabled,
.type-chip:disabled {
  cursor: not-allowed;
  opacity: .56;
  color: var(--text-faint);
  border-color: var(--line);
  background: var(--surface-soft);
  box-shadow: none;
  text-decoration: none;
}

.spotlight-actions {
  position: relative;
  z-index: 1;
  margin-top: 19px;
  display: flex;
  gap: 9px;
}

.btn {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: 180ms ease;
}

.btn:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald), #00aab4);
  color: white;
  box-shadow: 0 9px 24px rgba(0, 185, 130, 0.2);
}

.btn-ai {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
  box-shadow: 0 9px 24px rgba(124, 58, 237, 0.21);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--emerald-deep);
}

.btn-danger {
  background: rgba(239, 71, 111, 0.1);
  color: var(--red);
}

.btn-block {
  width: 100%;
}

.queue-card {
  min-height: 198px;
  padding: 21px;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(37, 99, 235, 0.95), rgba(79, 48, 180, 0.95)),
    var(--surface);
  color: white;
  box-shadow: 0 18px 48px rgba(37, 78, 194, 0.24);
}

.queue-card .section-title {
  color: white;
}

.queue-content {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.queue-ring {
  --progress: 72%;
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#50e7c3 var(--progress), rgba(255, 255, 255, 0.15) 0);
  box-shadow: 0 0 35px rgba(80, 231, 195, 0.25);
}

.queue-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #3149a8;
}

.queue-number {
  z-index: 1;
  grid-area: 1 / 1;
  text-align: center;
}

.queue-number strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.queue-number small {
  opacity: 0.7;
  font-size: 9px;
  text-transform: uppercase;
}

.queue-details {
  min-width: 0;
  flex: 1;
}

.queue-details strong {
  font-size: 18px;
}

.queue-details p {
  margin: 5px 0 13px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 12px;
}

.queue-card .btn {
  min-height: 35px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  backdrop-filter: blur(9px);
}

.horizontal-scroll {
  margin: -8px -22px;
  padding: 8px 22px 15px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 32%);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: inline mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.doctor-card,
.lab-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: 180ms ease;
}

.doctor-card:hover,
.lab-card:hover {
  border-color: color-mix(in srgb, var(--emerald) 27%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.doctor-card-top,
.lab-card-top {
  align-items: flex-start;
}

.doctor-avatar {
  position: relative;
  width: 60px;
  height: 65px;
  flex: 0 0 60px;
  overflow: hidden;
  display: grid;
  place-items: end center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--avatar-a, #d8f9ef), var(--avatar-b, #bde8ff));
  color: var(--avatar-ink, #176456);
  font-size: 19px;
  font-weight: 820;
}

.doctor-avatar.large {
  width: 86px;
  height: 94px;
  flex-basis: 86px;
  border-radius: 24px;
  font-size: 25px;
}

.doctor-avatar::before {
  content: "";
  position: absolute;
  width: 35px;
  height: 35px;
  top: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.doctor-avatar::after {
  content: "";
  width: 54px;
  height: 35px;
  margin-bottom: -7px;
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.82);
}

.doctor-avatar span {
  position: absolute;
  z-index: 1;
  top: 17px;
}

.doctor-main,
.lab-main {
  min-width: 0;
  flex: 1;
}

.verified {
  margin-top: 7px;
  padding: 4px 7px;
  background: rgba(0, 185, 130, 0.1);
  color: var(--emerald-deep);
  font-size: 9px;
}

.rating {
  gap: 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 780;
}

.rating svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.save-button {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text-faint);
  cursor: pointer;
}

.save-button.saved {
  color: var(--red);
}

.save-button.saved svg {
  fill: currentColor;
}

.doctor-stats,
.lab-stats {
  margin: 15px 0 13px;
  padding: 11px 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  text-align: center;
}

.stat-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  color: var(--text);
  font-size: 12px;
}

.stat-item small {
  color: var(--text-faint);
  font-size: 9px;
}

.doctor-actions {
  justify-content: space-between;
  gap: 8px;
}

.doctor-actions .btn {
  flex: 1;
  min-height: 38px;
  padding-inline: 10px;
}

.compare-check {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.compare-check.selected {
  border-color: var(--emerald);
  background: rgba(0, 185, 130, 0.12);
  color: var(--emerald-deep);
}

.lab-logo {
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.1), rgba(0, 200, 255, 0.14));
  color: var(--blue);
}

.lab-logo svg {
  width: 27px;
}

.offer-card {
  min-height: 145px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(135deg, #036c64, #00a981);
  color: white;
  box-shadow: 0 18px 45px rgba(0, 132, 100, 0.2);
}

.offer-card.violet {
  background: linear-gradient(135deg, #5230ad, #2563eb);
}

.offer-card h3 {
  width: 75%;
  margin: 7px 0 12px;
  font-size: 20px;
  line-height: 1.2;
}

.offer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.offer-card .tag {
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.tip-card {
  min-height: 145px;
  padding: 21px;
  border-radius: var(--radius);
}

.tip-card p {
  margin: 11px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.tip-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(247, 144, 9, 0.12);
  color: var(--orange);
}

.listing-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  padding: 19px;
  border-radius: var(--radius);
}

.filter-title {
  margin: 0 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
}

.filter-group {
  margin: 18px 0;
}

.filter-label,
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip,
.type-chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.filter-chip.active,
.type-chip.active {
  border-color: rgba(0, 185, 130, 0.24);
  background: rgba(0, 185, 130, 0.1);
  color: var(--emerald-deep);
}

.range-line {
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 11px;
}

input[type="range"] {
  width: 100%;
  margin: 10px 0 0;
  accent-color: var(--emerald);
}

.search-toolbar {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  min-height: 48px;
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}
.search-box > svg { width:18px; height:18px; flex:0 0 18px; }

.select-box {
  min-height: 48px;
  padding: 0 33px 0 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: 0;
  background: var(--surface);
}

.result-line {
  margin: 4px 0 13px;
  display: flex;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 12px;
}

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

.result-grid .doctor-card,
.result-grid .lab-card {
  min-width: 0;
}

.mobile-filter {
  display: none;
}

.compare-bar {
  position: fixed;
  z-index: 65;
  left: 50%;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 18px);
  width: min(calc(100% - 30px), 560px);
  padding: 10px 11px 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(20, 35, 56, 0.94);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  animation: rise 240ms ease both;
}

.compare-bar small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
}

.compare-bar .btn {
  min-height: 38px;
}

.active-queue-banner {
  margin: 10px 0 22px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-color: rgba(24, 215, 160, 0.3);
  border-radius: 22px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--surface) 86%, var(--emerald) 14%), color-mix(in srgb, var(--surface) 90%, var(--blue) 10%));
  box-shadow: 0 18px 45px rgba(0, 185, 130, 0.12);
}

.active-token {
  min-width: 108px;
  padding: 13px 18px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: #fff;
  text-align: center;
}

.active-token small,
.active-token strong {
  display: block;
}

.active-token small {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.active-token strong {
  font-size: 27px;
  line-height: 1.1;
}

.active-queue-copy h2 {
  margin: 7px 0 3px;
  font-size: 18px;
}

.active-queue-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
}

.appointment-tabs {
  margin: 0 0 19px;
  padding: 4px;
  display: inline-flex;
  gap: 3px;
  border-radius: 15px;
  background: var(--surface-muted);
}

.appointment-tabs button {
  padding: 9px 15px;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.appointment-tabs button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.appointments-list {
  display: grid;
  gap: 13px;
}

.appointment-card {
  padding: 18px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.date-block {
  width: 60px;
  padding: 10px 4px;
  border-radius: 17px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
  text-align: center;
}

.date-block strong {
  display: block;
  font-size: 22px;
  line-height: 1.05;
}

.date-block small {
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

.appointment-card h3 {
  margin: 0;
  font-size: 15px;
}

.appointment-card p {
  margin: 4px 0;
  color: var(--text-soft);
  font-size: 12px;
}

.appointment-card-actions {
  display: flex;
  gap: 8px;
}

.empty-state {
  padding: 50px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  margin: 7px auto 18px;
  color: var(--text-soft);
  font-size: 13px;
}

.ai-page {
  min-height: calc(100vh - var(--header-height) - var(--nav-height) - 48px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
}

.ai-intro {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  height: fit-content;
  min-height: 470px;
  padding: 31px 24px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 25%, rgba(53, 213, 255, 0.24), transparent 28%),
    linear-gradient(155deg, #172954, #34246d 56%, #151e49);
  color: white;
  box-shadow: var(--shadow-lg);
}

.assistant-stage {
  width: 218px;
  height: 245px;
  margin: -6px auto 10px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
}

.assistant-stage::before {
  content: "";
  position: absolute;
  inset: 13px 3px 27px;
  z-index: -3;
  border: 1px solid rgba(117, 234, 255, 0.16);
  border-radius: 48% 52% 45% 55% / 50% 45% 55% 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(120, 241, 255, 0.23), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(40, 225, 164, 0.17), transparent 38%);
  box-shadow: inset 0 0 38px rgba(157, 238, 255, 0.08), 0 0 48px rgba(49, 197, 255, 0.11);
  backdrop-filter: blur(13px);
  animation: assistant-float 5s ease-in-out infinite;
}

.assistant-halo {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: -2;
  border: 1px solid rgba(100, 226, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.65;
}

.halo-one { width: 150px; height: 150px; }
.halo-two { width: 190px; height: 190px; border-color: rgba(59, 225, 171, 0.14); }

.voice-wave {
  position: absolute;
  top: 84px;
  width: 20px;
  height: 64px;
  border: solid rgba(112, 231, 255, 0.36);
  opacity: 0;
}

.wave-one { left: 5px; border-width: 0 0 0 2px; border-radius: 50% 0 0 50%; }
.wave-two { right: 5px; border-width: 0 2px 0 0; border-radius: 0 50% 50% 0; }

.glass-boy {
  width: 124px;
  height: 206px;
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 18px rgba(0, 11, 52, 0.3));
}

.glass-head {
  width: 63px;
  height: 69px;
  position: absolute;
  left: 31px;
  top: 2px;
  z-index: 4;
  border: 1px solid rgba(221, 251, 255, 0.6);
  border-radius: 46% 46% 43% 43% / 41% 41% 58% 58%;
  background:
    radial-gradient(circle at 34% 23%, rgba(255, 255, 255, 0.75) 0 3%, transparent 13%),
    linear-gradient(145deg, rgba(211, 250, 255, 0.68), rgba(84, 200, 255, 0.27) 48%, rgba(80, 113, 255, 0.3));
  box-shadow: inset 7px 5px 16px rgba(255, 255, 255, 0.19), inset -7px -9px 18px rgba(40, 75, 195, 0.18), 0 0 26px rgba(90, 225, 255, 0.2);
  backdrop-filter: blur(8px);
}

.glass-hair {
  position: absolute;
  inset: -4px -2px auto;
  height: 27px;
  border-radius: 54% 58% 30% 24%;
  background: linear-gradient(155deg, rgba(11, 31, 73, 0.96), rgba(27, 87, 133, 0.78));
  clip-path: polygon(0 8%, 100% 0, 94% 73%, 78% 54%, 65% 80%, 49% 50%, 34% 76%, 18% 52%, 4% 78%);
}

.glass-eye {
  width: 6px;
  height: 4px;
  position: absolute;
  top: 32px;
  border-radius: 999px;
  background: #d9fcff;
  box-shadow: 0 0 8px rgba(150, 246, 255, 0.95);
  animation: assistant-blink 5s infinite;
}

.glass-eye.left { left: 17px; }
.glass-eye.right { right: 17px; }

.glass-ear {
  width: 8px;
  height: 17px;
  position: absolute;
  top: 29px;
  z-index: -1;
  border: 1px solid rgba(205, 249, 255, 0.44);
  border-radius: 50%;
  background: rgba(95, 197, 243, 0.28);
}

.glass-ear.left { left: -5px; }
.glass-ear.right { right: -5px; }

.glass-nose {
  width: 5px;
  height: 9px;
  position: absolute;
  left: 29px;
  top: 35px;
  border-right: 1px solid rgba(226, 253, 255, 0.58);
  border-bottom: 1px solid rgba(226, 253, 255, 0.28);
  border-radius: 0 0 4px;
}

.glass-mouth {
  width: 17px;
  height: 7px;
  position: absolute;
  left: 23px;
  top: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 999px;
  background: rgba(18, 67, 118, 0.3);
}

.glass-mouth i {
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #bff8ff;
}

.glass-neck {
  width: 24px;
  height: 21px;
  position: absolute;
  left: 50px;
  top: 62px;
  z-index: 2;
  border: 1px solid rgba(202, 247, 255, 0.35);
  border-radius: 6px 6px 11px 11px;
  background: rgba(103, 203, 241, 0.32);
}

.glass-body {
  width: 88px;
  height: 105px;
  position: absolute;
  left: 18px;
  top: 76px;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(210, 250, 255, 0.54);
  border-radius: 27px 27px 20px 20px;
  background:
    linear-gradient(105deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 39% 42%, transparent 43%),
    linear-gradient(155deg, rgba(88, 225, 255, 0.55), rgba(55, 104, 227, 0.34) 55%, rgba(70, 229, 176, 0.28));
  box-shadow: inset 9px 7px 18px rgba(255, 255, 255, 0.12), inset -10px -11px 20px rgba(23, 56, 145, 0.2);
  backdrop-filter: blur(10px);
}

.owner-mark {
  width: 25px;
  height: 25px;
  position: absolute;
  left: 31px;
  top: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(224, 255, 250, 0.55);
  border-radius: 9px;
  color: #ecfffb;
  background: linear-gradient(135deg, rgba(38, 225, 166, 0.75), rgba(37, 126, 235, 0.72));
  box-shadow: 0 0 15px rgba(53, 229, 190, 0.32);
  font-size: 11px;
  font-weight: 900;
}

.glass-lapel {
  width: 29px;
  height: 45px;
  position: absolute;
  top: 0;
  border-bottom: 1px solid rgba(229, 253, 255, 0.4);
}

.glass-lapel.left { left: 9px; transform: skew(17deg); border-right: 1px solid rgba(229, 253, 255, 0.4); }
.glass-lapel.right { right: 9px; transform: skew(-17deg); border-left: 1px solid rgba(229, 253, 255, 0.4); }

.glass-arm {
  width: 25px;
  height: 92px;
  position: absolute;
  top: 82px;
  z-index: 1;
  border: 1px solid rgba(203, 249, 255, 0.4);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(80, 203, 247, 0.4), rgba(48, 112, 221, 0.25));
  transform-origin: top center;
}

.glass-arm.left { left: 3px; transform: rotate(7deg); }
.glass-arm.right { right: 3px; transform: rotate(-7deg); }

.glass-hand {
  width: 18px;
  height: 23px;
  position: absolute;
  top: 164px;
  z-index: 2;
  border: 1px solid rgba(218, 251, 255, 0.47);
  border-radius: 45%;
  background: rgba(112, 209, 241, 0.34);
}

.glass-hand.left { left: 2px; }
.glass-hand.right { right: 2px; }

.glass-leg {
  width: 33px;
  height: 43px;
  position: absolute;
  top: 169px;
  z-index: 1;
  border: 1px solid rgba(197, 243, 255, 0.35);
  border-radius: 4px 4px 13px 13px;
  background: linear-gradient(180deg, rgba(55, 114, 209, 0.43), rgba(36, 68, 153, 0.5));
}

.glass-leg.left { left: 25px; transform: rotate(2deg); }
.glass-leg.right { right: 25px; transform: rotate(-2deg); }

.stage-floor {
  width: 132px;
  height: 18px;
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: -1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(80, 235, 220, 0.38), rgba(70, 141, 255, 0.09) 55%, transparent 72%);
  filter: blur(2px);
  animation: stage-glow 3s ease-in-out infinite;
}

.owner-ai-label {
  width: max-content;
  max-width: 100%;
  margin: -2px auto 15px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(175, 245, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.owner-ai-label > i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #42e6b1;
  box-shadow: 0 0 10px rgba(66, 230, 177, 0.8);
}

.owner-ai-label span strong,
.owner-ai-label span small { display: block; }
.owner-ai-label span strong { color: rgba(255, 255, 255, 0.94); font-size: 9px; }
.owner-ai-label span small { margin-top: 1px; color: rgba(255, 255, 255, 0.55); font-size: 7px; }

.owner-voice-cta {
  min-height: 40px;
  width: 100%;
  margin-top: 14px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(172, 245, 255, 0.25);
  border-radius: 13px;
  color: #eaffff;
  background: linear-gradient(135deg, rgba(39, 220, 170, 0.34), rgba(47, 129, 234, 0.4));
  box-shadow: 0 12px 28px rgba(0, 9, 48, 0.22);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.owner-voice-cta svg { width: 16px; }
.owner-voice-cta:hover { border-color: rgba(174, 250, 255, 0.55); transform: translateY(-1px); }

.ai-intro[data-voice-state="listening"] .assistant-halo,
.ai-intro[data-voice-state="speaking"] .assistant-halo { animation: listening-ring 1.55s ease-out infinite; }
.ai-intro[data-voice-state="listening"] .halo-two,
.ai-intro[data-voice-state="speaking"] .halo-two { animation-delay: 0.45s; }
.ai-intro[data-voice-state="listening"] .voice-wave,
.ai-intro[data-voice-state="speaking"] .voice-wave { opacity: 1; animation: voice-wave 1.15s ease-in-out infinite; }
.ai-intro[data-voice-state="speaking"] .glass-mouth i { animation: owner-talk 0.42s ease-in-out infinite alternate; }
.ai-intro[data-voice-state="speaking"] .glass-mouth i:nth-child(2) { animation-delay: 0.12s; }
.ai-intro[data-voice-state="speaking"] .glass-mouth i:nth-child(3) { animation-delay: 0.24s; }
.ai-intro[data-voice-state="speaking"] .glass-arm.right { animation: owner-gesture 1.9s ease-in-out infinite; }
.ai-intro[data-voice-state="listening"] .owner-ai-label > i { background: #55dcff; animation: status-pulse 0.85s ease-in-out infinite; }
.ai-intro[data-voice-state="speaking"] .owner-ai-label > i { background: #55f0b8; animation: status-pulse 0.55s ease-in-out infinite; }
.voice-input-button.is-listening { animation: status-pulse 0.8s ease-in-out infinite; background: linear-gradient(135deg, #00c98b, #00a8dd); }

.ai-intro h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.ai-intro > p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.65;
}

.safety-note {
  margin-top: 20px;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.67);
  font-size: 10px;
  line-height: 1.5;
}

.safety-note svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 1px;
}

.ai-chat {
  min-height: 560px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
}

.chat-messages {
  min-height: 370px;
  max-height: calc(100vh - 310px);
  padding: 3px 4px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ai-empty-start {
  min-height: 366px;
  padding: 26px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.ai-empty-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  color: white;
  box-shadow: 0 13px 30px rgba(37, 114, 232, 0.2);
}

.ai-empty-mark svg {
  width: 23px;
  height: 23px;
}

.ai-empty-start h2 {
  margin: 15px 0 5px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.ai-empty-start > p {
  max-width: 390px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.55;
}

.medical-suggestion-grid {
  width: min(100%, 560px);
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  text-align: left;
}

.medical-suggestion {
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 7px 20px rgba(25, 65, 105, 0.04);
  cursor: pointer;
  transition: 180ms ease;
}

.medical-suggestion > span {
  width: 35px;
  height: 35px;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
}

.medical-suggestion > span svg {
  width: 17px;
  height: 17px;
}

.medical-suggestion strong,
.medical-suggestion small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.medical-suggestion strong {
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.medical-suggestion small {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.35;
  white-space: nowrap;
}

.medical-suggestion:hover,
.medical-suggestion:focus-visible {
  border-color: rgba(0, 185, 130, 0.32);
  background: var(--surface-soft);
  box-shadow: 0 11px 25px rgba(0, 138, 118, 0.1);
  transform: translateY(-2px);
}

.chat-message {
  max-width: 84%;
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  animation: page-in 260ms ease both;
}

.chat-message.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
}

.chat-avatar svg {
  width: 16px;
}

.user .chat-avatar {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.bubble {
  padding: 11px 13px;
  border-radius: 6px 16px 16px 16px;
  background: var(--surface-muted);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.user .bubble {
  border-radius: 16px 6px 16px 16px;
  background: linear-gradient(135deg, var(--emerald), #00aab4);
  color: white;
}

.ai-results {
  margin: 8px 0 15px 40px;
  display: grid;
  gap: 8px;
}

.ai-result-card {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.ai-result-card .doctor-avatar {
  width: 46px;
  height: 49px;
  flex-basis: 46px;
  border-radius: 13px;
}

.ai-result-card .doctor-avatar::before {
  width: 26px;
  height: 26px;
  top: 7px;
}

.ai-result-card .doctor-avatar::after {
  width: 39px;
  height: 26px;
}

.ai-result-card .doctor-avatar span {
  top: 12px;
  font-size: 14px;
}

.ai-result-card .btn {
  min-height: 34px;
  margin-left: auto;
  padding: 6px 10px;
}

.prompt-chips {
  margin: auto 0 11px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 11px;
  cursor: pointer;
}

.chat-form {
  padding: 6px 6px 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: var(--surface);
}

.chat-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.chat-form .icon-button {
  border: 0;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: white;
}

.typing {
  display: inline-flex;
  gap: 3px;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: typing 1s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

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

.report-card {
  align-items: flex-start;
  padding: 17px;
  border-radius: var(--radius);
}

.report-icon {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
}

.report-icon.prescription {
  background: rgba(124, 58, 237, 0.1);
  color: var(--violet);
}

.report-card > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.report-card h3 {
  margin: 2px 0 5px;
  font-size: 14px;
}

.report-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.report-meta {
  margin-top: 10px;
  gap: 9px;
}

.report-card .icon-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 11px;
  box-shadow: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.76fr) minmax(0, 1.24fr);
  gap: 20px;
}

.profile-card {
  height: fit-content;
  padding: 23px;
  border-radius: var(--radius-lg);
}

.profile-hero {
  align-items: center;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border: 4px solid color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 23px;
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  color: white;
  font-size: 21px;
  font-weight: 820;
  box-shadow: 0 12px 28px rgba(0, 185, 130, 0.2);
}

.profile-hero p {
  margin: 5px 0;
  color: var(--text-soft);
  font-size: 12px;
}

.profile-score {
  margin: 23px 0;
  padding: 15px;
  border-radius: 16px;
  background: var(--surface-soft);
}

.profile-score .row {
  justify-content: space-between;
  font-size: 12px;
}

.progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-muted);
}

.progress span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.profile-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.profile-mini-stats > div {
  padding: 12px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}

.profile-mini-stats strong {
  display: block;
  font-size: 16px;
}

.profile-mini-stats span {
  color: var(--text-faint);
  font-size: 9px;
}

.settings-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.settings-group + .settings-group {
  border-top: 8px solid var(--bg);
}

.settings-label {
  margin: 0;
  padding: 17px 19px 8px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setting-row {
  width: 100%;
  min-height: 58px;
  padding: 11px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.setting-row:hover {
  background: var(--surface-soft);
}

.setting-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
}

.setting-icon svg {
  width: 18px;
}

.setting-copy {
  min-width: 0;
  flex: 1;
}

.setting-copy strong {
  display: block;
  font-size: 13px;
}

.setting-copy small {
  color: var(--text-faint);
  font-size: 10px;
}

.chevron {
  color: var(--text-faint);
}

.switch {
  position: relative;
  width: 43px;
  height: 25px;
  flex: 0 0 43px;
  border-radius: 999px;
  background: var(--surface-muted);
  transition: 160ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  transition: 180ms ease;
}

.switch.on {
  background: var(--emerald);
}

.switch.on::after {
  transform: translateX(18px);
}

.bottom-nav {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(12px, var(--safe-bottom));
  width: min(calc(100% - 26px), 610px);
  min-height: var(--nav-height);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  backdrop-filter: blur(24px) saturate(1.4);
}

.nav-item {
  min-width: 0;
  height: 57px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 17px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  transition: 180ms ease;
}

.nav-item > span {
  display: grid;
  place-items: center;
}

.nav-item small {
  font-size: 9px;
  font-weight: 730;
}

.nav-item.active {
  background: rgba(0, 185, 130, 0.09);
  color: var(--emerald-deep);
}

.ai-nav {
  overflow: visible;
}

.nav-item .ai-nav-orb {
  width: 49px;
  height: 49px;
  margin-top: -25px;
  border: 4px solid var(--bg-elevated);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, var(--cyan), var(--violet) 58%, #273097);
  color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.34);
  animation: breathing 2.8s ease-in-out infinite;
}

.ai-nav small {
  margin-top: 1px;
}

.nav-item.ai-nav.active {
  background: transparent;
  color: var(--violet);
}

.modal-backdrop {
  position: fixed;
  z-index: 120;
  inset: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 16, 26, 0.52);
  backdrop-filter: blur(7px);
  animation: fade 180ms ease both;
}

.modal-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: min(88vh, 850px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 27px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-panel.wide {
  width: min(100%, 940px);
}

.modal-content {
  padding: 28px;
}

.auth-modal {
  width: min(100%, 940px);
  overflow: hidden;
}

.auth-modal .modal-content {
  padding: 0;
}

.auth-onboarding {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
}

.auth-brand-pane {
  position: relative;
  padding: 42px 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background:
    radial-gradient(circle at 82% 14%, rgba(83, 224, 255, 0.34), transparent 29%),
    radial-gradient(circle at 18% 85%, rgba(0, 221, 153, 0.24), transparent 35%),
    linear-gradient(150deg, #063d45, #075e67 48%, #173c7f);
  color: white;
}

.auth-brand-pane::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -12px;
  background:
    linear-gradient(180deg, rgba(2, 42, 49, 0.03) 8%, rgba(4, 52, 67, 0.72) 70%, rgba(20, 50, 105, 0.93)),
    url("/assets/brand-motion/auth-care-tree-doctor.png") center 58% / cover no-repeat;
  opacity: 0.72;
  transform: scale(1.04);
  transform-origin: center;
  animation: auth-scene-breathe 10s ease-in-out infinite;
}

.auth-brand-pane::after {
  content: "";
  z-index: 0;
  position: absolute;
  width: 290px;
  height: 290px;
  right: -135px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.035), 0 0 0 84px rgba(255, 255, 255, 0.025);
}

.auth-brand-pane > :not(.auth-scene-particles) {
  position: relative;
  z-index: 2;
}

.auth-scene-particles {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.auth-scene-particles i {
  position: absolute;
  width: 9px;
  height: 6px;
  border-radius: 100% 0 100% 0;
  background: rgba(117, 255, 205, 0.78);
  filter: drop-shadow(0 4px 5px rgba(0, 53, 62, 0.24));
  animation: auth-leaf-drift 7s ease-in-out infinite;
}

.auth-scene-particles i:nth-child(1) { top: 19%; right: 22%; }
.auth-scene-particles i:nth-child(2) { top: 42%; right: 10%; animation-delay: -2.1s; }
.auth-scene-particles i:nth-child(3) { top: 31%; left: 27%; animation-delay: -4.4s; }

.auth-brand-mark {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 21px;
  box-shadow: 0 17px 34px rgba(0, 19, 36, 0.25);
}

.auth-security-kicker {
  margin-top: 58px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #82ffe0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-security-kicker svg {
  width: 15px;
  height: 15px;
}

.auth-brand-pane h2 {
  max-width: 330px;
  margin: 16px 0 13px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.auth-brand-pane > p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  line-height: 1.7;
}

.auth-trust-list {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 9px;
}

.auth-trust-list span {
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.auth-trust-list svg {
  width: 16px;
  color: #72efd2;
}

.auth-form-pane {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.08), transparent 31%),
    var(--surface);
}

.auth-tabs {
  width: 100%;
  margin-bottom: 31px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
}

.auth-tabs button {
  min-height: 39px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.auth-tabs button.active {
  background: var(--surface);
  color: var(--emerald-deep);
  box-shadow: var(--shadow-sm);
}

.auth-heading {
  margin: 9px 0 0;
  color: var(--text);
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.auth-phone-field {
  min-height: 51px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  transition: 160ms ease;
}

.auth-phone-field:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 185, 130, 0.09);
}

.auth-phone-field > span {
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.field .auth-phone-field input {
  min-height: 49px;
  border: 0;
  box-shadow: none;
}

.auth-consent {
  margin: 3px 0 16px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}

.auth-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--emerald);
}

.auth-primary {
  position: relative;
  min-height: 50px;
  overflow: hidden;
  isolation: isolate;
  animation: auth-button-glow 3.2s ease-in-out infinite;
}

.auth-primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -60%;
  bottom: -60%;
  left: -42%;
  width: 28%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(18deg);
  animation: auth-button-shine 3.6s ease-in-out infinite;
}

.auth-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(0, 185, 130, 0.32);
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.auth-method-divider {
  margin: 15px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.auth-method-divider::before,
.auth-method-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.google-signin-slot {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.google-signin-slot > div,
.google-signin-slot iframe {
  max-width: 100%;
}

.google-signin-fallback {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.google-signin-fallback:hover {
  border-color: var(--text-soft);
  background: var(--surface-muted);
}

.google-signin-fallback span {
  font-size: 17px;
  font-weight: 800;
}

.auth-captcha {
  min-height: 0;
  margin: 8px 0;
  display: flex;
  justify-content: center;
}

.auth-captcha:empty {
  display: none;
}

.auth-captcha iframe {
  max-width: 100%;
}

.button-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.auth-resend {
  min-height: 34px;
  margin-top: -6px;
  font-size: 11px;
}

.auth-resend:disabled {
  color: var(--text-faint);
  cursor: default;
}

.auth-privacy-note,
.identity-data-note {
  margin-top: 15px;
  padding: 11px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(0, 185, 130, 0.12);
  border-radius: 12px;
  background: rgba(0, 185, 130, 0.05);
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.5;
}

.auth-privacy-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--emerald-deep);
}

.auth-step-shell {
  width: min(100%, 520px);
  min-height: 540px;
  margin: 0 auto;
  padding: 42px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-step-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 201, 139, 0.14), rgba(37, 99, 235, 0.12));
  color: var(--emerald-deep);
}

.auth-step-icon.success {
  background: linear-gradient(135deg, var(--emerald), #00a8c6);
  color: white;
}

.auth-step-icon svg {
  width: 24px;
  height: 24px;
}

.auth-progress {
  margin-bottom: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.auth-progress span {
  position: relative;
  padding-top: 12px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 750;
  text-align: center;
}

.auth-progress span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.auth-progress span.active::before {
  background: linear-gradient(90deg, var(--emerald), var(--blue));
}

.auth-progress i {
  display: none;
}

.auth-otp-input {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.45em;
}

.identity-method-card {
  margin: 5px 0 16px;
  padding: 15px;
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 185, 130, 0.25);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(0, 201, 139, 0.07), rgba(37, 99, 235, 0.05));
}

.identity-method-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface);
  color: var(--emerald-deep);
}

.identity-method-card strong,
.identity-method-card small {
  display: block;
}

.identity-method-card strong {
  font-size: 11px;
}

.identity-method-card small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 9px;
  line-height: 1.4;
}

.identity-method-card > i {
  color: var(--emerald-deep);
}

.identity-data-note {
  display: block;
  border-color: var(--line);
  background: var(--surface-soft);
}

.face-step {
  align-items: center;
  text-align: center;
}

.face-scan-visual {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 5px auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 185, 130, 0.22);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(0, 201, 139, 0.12), rgba(37, 99, 235, 0.11));
  color: var(--emerald-deep);
  overflow: hidden;
}

.face-scan-visual span svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.25;
}

.face-scan-visual i {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2de5be, transparent);
  box-shadow: 0 0 12px #2de5be;
  animation: face-scan 2.2s ease-in-out infinite;
}

.face-scan-visual b {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(37, 99, 235, 0.28);
  border-radius: 35px;
}

.sandbox-chip {
  margin-bottom: 13px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: #a56b00;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-complete {
  align-items: center;
  text-align: center;
}

.auth-result-grid {
  width: 100%;
  margin: 9px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.auth-result-grid span {
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.auth-result-grid b,
.auth-result-grid small {
  display: block;
}

.auth-result-grid b {
  font-size: 9px;
}

.auth-result-grid small {
  margin-top: 4px;
  color: var(--emerald-deep);
  font-size: 8px;
}

@keyframes face-scan {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(103px); opacity: 1; }
}

.auth-modal .modal-close {
  position: absolute;
  z-index: 5;
  top: 17px;
  right: 17px;
  margin: 0;
  border: 1px solid rgba(8, 32, 56, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #102036;
  box-shadow: 0 8px 24px rgba(0, 25, 48, 0.14);
  backdrop-filter: blur(12px);
}

.auth-modal .modal-close:hover {
  color: var(--red);
  transform: rotate(90deg) scale(1.04);
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  margin: 14px 14px -56px 0;
  background: var(--bg-elevated);
}

.modal-handle {
  display: none;
}

.modal-title {
  margin: 0;
  padding-right: 45px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.modal-subtitle {
  margin: 7px 0 22px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.modal-section {
  margin-top: 24px;
}

.field {
  margin-bottom: 14px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: var(--surface);
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 185, 130, 0.09);
}

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

.choice-row {
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip,
.time-chip {
  min-width: 68px;
  padding: 10px 12px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.date-chip strong {
  color: var(--text);
  font-size: 16px;
}

.date-chip.active,
.time-chip.active,
.type-chip.active {
  border-color: var(--emerald);
  background: rgba(0, 185, 130, 0.09);
  color: var(--emerald-deep);
}

.booking-summary {
  margin: 19px 0;
  padding: 15px;
  border-radius: 17px;
  background: var(--surface-soft);
}

.booking-summary-head {
  align-items: center;
}

.booking-total {
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.booking-total strong {
  font-size: 18px;
}

.stepper {
  margin: 4px 0 23px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.stepper span {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-muted);
}

.stepper span.active {
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

.success-state {
  padding: 18px 4px 5px;
  text-align: center;
}

.success-check {
  width: 82px;
  height: 82px;
  margin: 0 auto 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), #00aab4);
  color: white;
  box-shadow: 0 0 0 12px rgba(0, 185, 130, 0.08);
  animation: success-pop 500ms cubic-bezier(0.2, 0.9, 0.2, 1.2);
}

.success-check svg {
  width: 38px;
  height: 38px;
  stroke-width: 3;
}

.success-state h2 {
  margin: 0;
  font-size: 25px;
}

.success-state p {
  margin: 8px auto 20px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.profile-cover {
  height: 148px;
  margin: -28px -28px 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #006f65, #00a88b 48%, #2974df);
}

.doctor-profile-head {
  position: relative;
  margin-top: -52px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.doctor-profile-head .doctor-main {
  padding-bottom: 5px;
}

.profile-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.detail-tile {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.detail-tile strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.detail-tile small {
  color: var(--text-faint);
  font-size: 10px;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-footer-actions {
  position: sticky;
  bottom: 0;
  margin: 24px -28px -28px;
  padding: 13px 28px;
  display: flex;
  gap: 9px;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
}

.profile-footer-actions .btn-primary {
  flex: 1;
}

.compare-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-table th,
.compare-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  color: var(--text-soft);
  font-size: 10px;
  text-transform: uppercase;
}

.compare-table td:first-child {
  color: var(--text-soft);
  font-weight: 700;
}

.compare-doctor-head {
  min-width: 160px;
}

.compare-doctor-head strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
}

.notification-list {
  margin: 13px -5px -6px;
}

.notification-row {
  padding: 13px 5px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
}

.notification-row:last-child {
  border: 0;
}

.notification-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--emerald-deep);
}

.notification-copy {
  flex: 1;
}

.notification-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.notification-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.45;
}

.notification-row.unread::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

.queue-live {
  padding: 8px 0;
  text-align: center;
}

.queue-live .queue-ring {
  width: 155px;
  height: 155px;
  margin: 20px auto;
  box-shadow: 0 0 0 13px rgba(37, 99, 235, 0.05), 0 0 45px rgba(37, 99, 235, 0.18);
}

.queue-live .queue-ring::before {
  width: 130px;
  height: 130px;
  background: var(--surface);
}

.queue-live .queue-number {
  color: var(--text);
}

.queue-live .queue-number strong {
  font-size: 38px;
}

.queue-meta {
  justify-content: center;
  gap: 25px;
  margin: 20px 0;
}

.queue-meta > div {
  text-align: center;
}

.queue-meta strong {
  display: block;
  font-size: 20px;
}

.queue-meta small {
  color: var(--text-faint);
}

.timeline {
  margin: 20px 0;
  text-align: left;
}

.timeline-row {
  position: relative;
  padding-bottom: 17px;
  align-items: flex-start;
}

.timeline-row::before {
  content: "";
  position: absolute;
  width: 1px;
  left: 7px;
  top: 16px;
  bottom: 0;
  background: var(--line-strong);
}

.timeline-row:last-child::before {
  display: none;
}

.timeline-dot {
  z-index: 1;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald);
}

.timeline-row.pending .timeline-dot {
  background: var(--surface);
  box-shadow: 0 0 0 2px var(--line-strong);
}

.timeline-row strong {
  display: block;
  font-size: 12px;
}

.timeline-row small {
  color: var(--text-faint);
  font-size: 10px;
}

.location-list {
  display: grid;
  gap: 8px;
}

.location-option {
  width: 100%;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.location-option.active {
  border-color: var(--emerald);
  background: rgba(0, 185, 130, 0.07);
}

.location-option > span:nth-child(2) {
  flex: 1;
}
.location-option > svg { width:20px; height:20px; flex:0 0 20px; color:var(--emerald); }

.toast-region {
  position: fixed;
  z-index: 300;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 8px;
}

.toast {
  width: min(calc(100vw - 36px), 350px);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: toast-in 260ms ease both;
  font-size: 12px;
  font-weight: 680;
}

.toast svg {
  width: 18px;
  color: var(--emerald-deep);
}

.splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.19), transparent 24%),
    linear-gradient(145deg, #006f66, #00b184 43%, #1786cf 100%);
  color: white;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.splash.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.splash-logo-motion {
  position: relative;
  width: min(62vw, 250px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(96, 232, 220, 0.24);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(9, 43, 62, 0.96), rgba(5, 25, 40, 0.95));
  box-shadow: 0 22px 58px rgba(0, 45, 50, 0.3), inset 0 0 42px rgba(62, 217, 225, 0.06);
  backdrop-filter: blur(16px);
  animation: splash-pop 600ms cubic-bezier(0.2, 0.9, 0.2, 1.2), sehatline-logo-splash 4s ease-in-out 650ms infinite;
}

.splash-logo-motion img,
.splash-logo-motion video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--surface-muted);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.45) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50% { transform: translateY(-50%) translateY(-9px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orb-pulse {
  0%, 100% { filter: saturate(1); }
  50% { filter: saturate(1.3) brightness(1.08); }
}

@keyframes assistant-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes assistant-blink {
  0%, 45%, 49%, 100% { transform: scaleY(1); }
  47% { transform: scaleY(0.12); }
}

@keyframes listening-ring {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.82); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
}

@keyframes voice-wave {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  50% { opacity: 0.9; transform: scaleY(1); }
}

@keyframes owner-talk {
  from { height: 2px; opacity: 0.55; }
  to { height: 6px; opacity: 1; }
}

@keyframes owner-gesture {
  0%, 100% { transform: rotate(-7deg); }
  45%, 60% { transform: rotate(-28deg) translate(9px, -5px); }
}

@keyframes stage-glow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleX(0.85); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(85, 226, 255, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(85, 226, 255, 0); }
}

@keyframes breathing {
  0%, 100% { box-shadow: 0 8px 25px rgba(124, 58, 237, 0.32); }
  50% { box-shadow: 0 8px 33px rgba(0, 200, 255, 0.55); }
}

@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes success-pop {
  from { opacity: 0; transform: scale(0.45) rotate(-18deg); }
}

@keyframes heartbeat-draw {
  from { stroke-dashoffset: 145; }
  to { stroke-dashoffset: 0; }
}

@keyframes splash-pop {
  from { opacity: 0; transform: scale(0.7); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes auth-scene-breathe {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); filter: saturate(1); }
  50% { transform: scale(1.075) translate3d(-4px, -5px, 0); filter: saturate(1.08); }
}

@keyframes auth-leaf-drift {
  0%, 100% { opacity: 0.28; transform: translate3d(0, 0, 0) rotate(20deg); }
  45% { opacity: 0.92; transform: translate3d(-18px, 25px, 0) rotate(130deg); }
  75% { opacity: 0.55; transform: translate3d(7px, 42px, 0) rotate(210deg); }
}

@keyframes auth-button-glow {
  0%, 100% { box-shadow: 0 9px 24px rgba(0, 185, 130, 0.2); }
  50% { box-shadow: 0 13px 31px rgba(0, 170, 180, 0.34); }
}

@keyframes auth-button-shine {
  0%, 58% { left: -42%; opacity: 0; }
  66% { opacity: 1; }
  88%, 100% { left: 118%; opacity: 0; }
}

@media (max-width: 900px) {
  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .home-grid {
    grid-template-columns: 1fr;
  }

  .listing-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    display: none;
  }

  .mobile-filter {
    display: grid;
  }

  .ai-page {
    grid-template-columns: 1fr;
  }

  .ai-intro {
    position: relative;
    top: auto;
    min-height: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px;
  }

  .ai-intro .assistant-stage {
    width: 120px;
    height: 154px;
    grid-row: 1 / 5;
    margin: 0;
  }

  .ai-intro .glass-boy {
    bottom: 5px;
    transform: translateX(-50%) scale(0.62);
    transform-origin: bottom center;
  }

  .ai-intro .assistant-stage::before { inset: 7px 0 10px; }
  .ai-intro .halo-one { width: 92px; height: 92px; }
  .ai-intro .halo-two { width: 116px; height: 116px; }
  .ai-intro .stage-floor { bottom: 0; width: 92px; }
  .ai-intro .owner-ai-label { margin: 0; }
  .ai-intro .owner-voice-cta { width: max-content; min-width: 165px; margin-top: 2px; }

  .ai-intro h1 {
    align-self: end;
    font-size: 27px;
  }

  .ai-intro > p {
    align-self: start;
    margin: 0;
  }

  .ai-intro .safety-note {
    grid-column: 1 / -1;
    margin: 0;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .horizontal-scroll {
    grid-auto-columns: minmax(270px, 43%);
  }
}

@media (max-width: 640px) {
  .active-queue-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .active-token {
    min-width: 86px;
    padding: 12px 10px;
  }

  .active-queue-banner > .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  :root {
    --header-height: 72px;
    --nav-height: 68px;
  }

  .app-shell {
    padding-inline: 15px;
  }

  .app-header {
    min-height: var(--header-height);
    margin-inline: -15px;
    padding: 10px 15px;
  }

  .mini-brand {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .icon-button:first-child {
    display: none;
  }

  .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .home-hero {
    min-height: 352px;
    padding: 25px 20px;
  }

  .hero-content {
    position: static;
    width: 100%;
  }

  .hero-content > * {
    position: relative;
    z-index: 2;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-copy {
    max-width: 76%;
    font-size: 12px;
  }

  .hero-actions {
    max-width: 190px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    max-width: 180px;
    line-height: 1.45;
  }

  .oxygen-tree-patient {
    width: 195px;
    right: -42px;
    bottom: 12%;
    opacity: 0.7;
  }

  .ai-search {
    z-index: 3;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 21px;
    width: auto;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .coming-grid {
    grid-template-columns: 1fr;
  }

  .coming-note {
    display: none;
  }

  .quick-action {
    min-height: 98px;
    padding: 11px 5px;
    border-radius: 17px;
  }

  .action-icon {
    width: 39px;
    height: 39px;
    border-radius: 13px;
  }

  .horizontal-scroll {
    margin-inline: -15px;
    padding-inline: 15px;
    grid-auto-columns: minmax(266px, 83%);
  }

  .page-head {
    margin: 5px 0 18px;
    align-items: center;
  }

  .page-title {
    font-size: 28px;
  }

  .page-head .page-subtitle {
    display: none;
  }

  .section {
    margin-top: 25px;
  }

  .section-title {
    font-size: 17px;
  }

  .result-grid,
  .reports-grid {
    grid-template-columns: 1fr;
  }

  .search-toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: calc(100% - 50px);
  }

  .select-box {
    flex: 1;
  }

  .result-line {
    padding-inline: 2px;
  }

  .appointment-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }

  .appointment-card-actions {
    grid-column: 1 / -1;
  }

  .appointment-card-actions .btn {
    flex: 1;
  }

  .ai-page {
    gap: 12px;
  }

  .ai-intro {
    grid-template-columns: 70px 1fr;
    gap: 15px;
    padding: 18px;
    border-radius: 22px;
  }

  .ai-intro .assistant-stage {
    width: 74px;
    height: 104px;
  }

  .ai-intro .glass-boy {
    bottom: 1px;
    transform: translateX(-50%) scale(0.43);
  }

  .ai-intro .assistant-stage::before { inset: 5px -2px 3px; }
  .ai-intro .halo-one { width: 63px; height: 63px; }
  .ai-intro .halo-two { width: 78px; height: 78px; }
  .ai-intro .stage-floor { width: 62px; bottom: -2px; }
  .ai-intro .owner-ai-label { display: none; }
  .ai-intro .owner-voice-cta { min-width: 0; width: 100%; min-height: 34px; margin-top: 0; padding: 7px 10px; font-size: 9px; }

  .ai-intro h1 {
    font-size: 23px;
  }

  .ai-intro > p {
    font-size: 11px;
    line-height: 1.45;
  }

  .ai-intro .safety-note {
    display: none;
  }

  .ai-chat {
    min-height: calc(100vh - 270px);
    padding: 12px;
    border-radius: 22px;
  }

  .chat-messages {
    max-height: none;
  }

  .ai-empty-start {
    min-height: 330px;
    padding: 20px 4px;
  }

  .ai-empty-start h2 {
    font-size: 19px;
  }

  .medical-suggestion-grid {
    grid-template-columns: 1fr;
  }

  .medical-suggestion {
    min-height: 65px;
  }

  .chat-message {
    max-width: 94%;
  }

  .bubble {
    font-size: 12px;
  }

  .ai-results {
    margin-left: 0;
  }

  .ai-result-card .btn span {
    display: none;
  }

  .profile-card {
    padding: 19px;
  }

  .bottom-nav {
    width: calc(100% - 20px);
    min-height: var(--nav-height);
    bottom: max(8px, var(--safe-bottom));
    border-radius: 22px;
  }

  .nav-item {
    height: 53px;
  }

  .nav-item .ai-nav-orb {
    width: 47px;
    height: 47px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-panel,
  .modal-panel.wide {
    width: 100%;
    max-height: 92vh;
    border-radius: 27px 27px 0 0;
  }

  .modal-handle {
    width: 42px;
    height: 4px;
    margin: 9px auto -4px;
    display: block;
    border-radius: 999px;
    background: var(--line-strong);
  }

  .modal-content {
    padding: 24px 19px calc(22px + var(--safe-bottom));
  }

  .modal-close {
    top: 13px;
    margin-top: 9px;
    margin-right: 12px;
  }

  .auth-modal,
  .modal-panel.wide.auth-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .auth-onboarding {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    min-height: 270px;
    padding: 24px 22px;
  }

  .auth-brand-pane::before {
    inset: -7px;
    background:
      linear-gradient(90deg, rgba(2, 50, 59, 0.92) 0%, rgba(4, 63, 75, 0.46) 42%, rgba(10, 50, 92, 0.1) 100%),
      url("/assets/brand-motion/auth-care-tree-doctor.png") right 63% / 84% auto no-repeat,
      linear-gradient(145deg, #064e59, #15478e);
    opacity: 1;
  }

  .auth-brand-pane h2 {
    font-size: 26px;
  }

  .auth-brand-pane > p,
  .auth-trust-list {
    display: none;
  }

  .auth-security-kicker {
    margin-top: 18px;
  }

  .auth-brand-mark {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .auth-form-pane {
    padding: 26px 21px calc(24px + var(--safe-bottom));
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -16px 44px rgba(3, 36, 63, 0.13);
  }

  .auth-step-shell {
    min-height: 0;
    padding: 31px 21px calc(28px + var(--safe-bottom));
  }

  .auth-result-grid {
    grid-template-columns: 1fr;
  }

  .auth-modal .modal-close {
    top: 12px;
    right: 12px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .detail-tile {
    padding: 10px 7px;
    text-align: center;
  }

  .profile-cover {
    margin-inline: -19px;
  }

  .profile-footer-actions {
    margin-inline: -19px;
    margin-bottom: calc(-24px - var(--safe-bottom));
    padding: 12px 19px calc(12px + var(--safe-bottom));
  }

  .toast-region {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 380px) {
  .quick-action span:last-child {
    font-size: 10px;
  }

  .hero-title {
    font-size: 30px;
  }

  .location-pill {
    max-width: 150px;
  }

  .appointment-tabs {
    width: 100%;
  }

  .appointment-tabs button {
    flex: 1;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animated-brand-mark > video,
  .splash-logo-motion > video {
    display: none;
  }

  .face-scan-visual i {
    top: 50%;
    animation: none;
  }
}

/* Shared motion refinements */
.time-slots button,
.filter-chip,
.appointment-tabs button {
  transform-origin: center;
}

.time-slots button.active,
.filter-chip.active,
.appointment-tabs button.active {
  animation: patient-selection-pop 260ms var(--motion-ease-emphasized);
}

.queue-ring::before,
.queue-live .queue-ring::before {
  transition: background var(--motion-duration-slow) var(--motion-ease-emphasized);
}

.report-card,
.ai-result-card,
.notification-row {
  transition: transform var(--motion-duration-base) var(--motion-ease-standard),
    box-shadow var(--motion-duration-base) var(--motion-ease-standard),
    border-color var(--motion-duration-base) var(--motion-ease-standard);
}

.button-spinner {
  animation-duration: .75s;
}

@keyframes patient-selection-pop {
  0% { transform: scale(.94); }
  65% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.profile-photo-field {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  cursor: pointer;
}
.profile-photo-field input { position:absolute; inline-size:1px; block-size:1px; opacity:0; }
.profile-photo-field small { display:block; margin-top:4px; color:var(--text-muted); line-height:1.35; }
.profile-photo-preview { inline-size:68px; block-size:68px; display:grid; place-items:center; border-radius:22px; background:linear-gradient(145deg, var(--primary-soft), #dbeafe) center/cover; color:var(--primary); }
.profile-photo-preview svg { inline-size:25px; block-size:25px; }
.slot-empty { inline-size:100%; padding:14px; border:1px dashed var(--line-strong); border-radius:14px; color:var(--text-soft); background:var(--surface-soft); line-height:1.45; }

/* Connected care ecosystem — uses the same visual grammar as core patient cards. */
.ecosystem-section { position:relative; padding:clamp(18px,3vw,28px); overflow:hidden; border:1px solid rgba(0,185,130,.14); border-radius:var(--radius-lg); background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 95%,var(--emerald) 5%),color-mix(in srgb,var(--surface) 94%,var(--cyan) 6%)); box-shadow:var(--shadow-sm); }
.ecosystem-section::after { content:""; position:absolute; width:220px; height:220px; right:-125px; top:-125px; border:32px solid rgba(53,213,255,.055); border-radius:50%; pointer-events:none; }
.care-ecosystem-kicker { margin:0 0 5px; color:var(--emerald-deep); font-size:10px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.ecosystem-grid,.support-feature-grid,.network-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ecosystem-card,.network-card,.support-item { position:relative; padding:20px; overflow:hidden; border-radius:var(--radius); transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease; }
.ecosystem-card:hover,.network-card:hover,.support-item:hover { transform:translateY(-3px); border-color:rgba(0,185,130,.25); box-shadow:var(--shadow); }
.ecosystem-card { display:flex; min-height:220px; flex-direction:column; align-items:flex-start; background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 92%,var(--emerald) 8%)); }
.ecosystem-card:nth-child(2) { background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 92%,var(--cyan) 8%)); }
.ecosystem-card:nth-child(3) { background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 93%,var(--blue) 7%)); }
.ecosystem-card h3,.network-card h3,.support-item h3 { margin:15px 0 7px; font-size:18px; line-height:1.25; }
.ecosystem-card p,.network-card p,.support-item p { margin:0 0 16px; color:var(--text-soft); font-size:13px; line-height:1.55; }
.ecosystem-card .btn { margin-top:auto; }
.ecosystem-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid rgba(0,185,130,.12); border-radius:16px; color:var(--emerald-deep); background:rgba(0,185,130,.1); }
.ecosystem-card:nth-child(2) .ecosystem-icon { color:var(--cyan); background:rgba(0,191,232,.1); }.ecosystem-card:nth-child(3) .ecosystem-icon { color:var(--blue); background:rgba(37,99,235,.1); }
.ecosystem-icon svg { width:23px; height:23px; }
.ecosystem-profile-link { position:relative; z-index:1; width:max-content; max-width:100%; margin:15px auto 0; padding:10px 17px; border:1px solid rgba(0,185,130,.14); border-radius:999px; text-align:center; color:var(--text); background:var(--glass); backdrop-filter:blur(14px); font-size:12px; font-weight:800; }
.ecosystem-profile-link span { margin:0 5px; color:var(--emerald-deep); }.ecosystem-profile-link small { margin-left:5px; color:var(--text-soft); font-size:11px; font-weight:650; }
.network-filters { display:grid; grid-template-columns:1.7fr repeat(3,1fr); gap:10px; margin-bottom:18px; padding:12px; border-radius:var(--radius); background:var(--glass); backdrop-filter:blur(18px); }
.network-filters input,.network-filters select { width:100%; min-width:0; min-height:46px; padding:0 13px; border:1px solid var(--line); border-radius:13px; outline:0; color:var(--text); background:var(--surface); transition:border-color 180ms ease,box-shadow 180ms ease; }
.network-filters input:focus,.network-filters select:focus { border-color:rgba(0,185,130,.45); box-shadow:0 0 0 4px rgba(0,185,130,.08); }
.network-card { display:flex; min-height:310px; flex-direction:column; background:var(--glass); backdrop-filter:blur(18px); }
.network-card-head,.network-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; }.network-card-head > span:last-child { color:var(--text-faint); font-size:11px; font-weight:700; }
.government-badge { display:inline-flex; align-items:center; gap:5px; width:max-content; max-width:100%; padding:6px 9px; border:1px solid rgba(0,185,130,.13); border-radius:999px; color:var(--emerald-deep); background:rgba(0,185,130,.09); font-size:10px; font-weight:800; }
.government-badge svg { width:13px; height:13px; }
.service-tags { display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 13px; }.service-tags span { padding:6px 9px; border-radius:999px; background:var(--surface-soft); color:var(--text-soft); font-size:10px; font-weight:650; }
.network-card dl { margin:auto 0 15px; }.network-card dl div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:11px; }.network-card dt { color:var(--text-soft); }.network-card dd { margin:0; text-align:right; font-weight:700; }
.network-actions { justify-content:flex-start; }.network-actions .btn { min-height:40px; padding-inline:13px; text-decoration:none; }
.support-feature-grid { margin-bottom:14px; }.support-feature-grid .ecosystem-card { min-height:205px; }
.ecosystem-coming-note,.medical-disclaimer { margin:14px 0; padding:13px 15px; border:1px solid var(--line); border-radius:14px; color:var(--text-soft); background:var(--glass); backdrop-filter:blur(14px); font-size:11px; line-height:1.55; }
.medical-disclaimer { border-left:3px solid var(--emerald); }
.network-grid .empty-state { min-height:240px; border-style:dashed; background:var(--glass); backdrop-filter:blur(14px); }
.abha-card { position:relative; display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:18px; padding:24px; overflow:hidden; border-radius:var(--radius-lg); background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,var(--cyan) 6%),color-mix(in srgb,var(--surface) 94%,var(--emerald) 6%)); }.abha-card::after { content:"ABHA"; position:absolute; right:20%; color:var(--text); opacity:.025; font-size:80px; font-weight:900; }.abha-card > * { position:relative; z-index:1; }.abha-card h2 { margin:10px 0 5px; }.abha-card p { max-width:650px; margin:0; color:var(--text-soft); line-height:1.55; }
.detail-sheet h2 { margin:14px 0 6px; }.detail-list { margin:20px 0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-soft); }.detail-list > div { display:grid; grid-template-columns:140px 1fr; gap:16px; padding:13px 15px; border-bottom:1px solid var(--line); }.detail-list > div:last-child { border-bottom:0; }.detail-list span { color:var(--text-soft); line-height:1.5; }
.ecosystem-error { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:15px 17px; border:1px solid rgba(239,71,111,.2); border-radius:var(--radius); background:color-mix(in srgb,var(--surface) 94%,var(--red) 6%); }.ecosystem-error strong,.ecosystem-error p { display:block; }.ecosystem-error p { margin:4px 0 0; color:var(--text-soft); font-size:11px; }.ecosystem-error .btn { flex:0 0 auto; }
@media (max-width:780px) { .ecosystem-grid,.support-feature-grid,.network-grid { grid-template-columns:1fr 1fr; }.network-filters { grid-template-columns:1fr 1fr; } }
@media (max-width:620px) { .ecosystem-section { margin-inline:-4px; padding:16px; }.ecosystem-grid,.support-feature-grid,.network-grid,.network-filters { grid-template-columns:1fr; }.ecosystem-card,.support-feature-grid .ecosystem-card { min-height:185px; padding:17px; }.network-card { min-height:280px; }.abha-card { align-items:flex-start; flex-direction:column; padding:20px; }.detail-list > div { grid-template-columns:1fr; gap:5px; }.ecosystem-profile-link { width:100%; border-radius:16px; }.ecosystem-profile-link small { display:block; margin:6px 0 0; } }
.care-breadcrumb { display:flex; align-items:center; gap:7px; margin:2px 0 18px; color:var(--text-faint); font-size:11px; }.care-breadcrumb button { padding:0; color:var(--emerald-deep); background:transparent; cursor:pointer; }.care-breadcrumb strong { overflow:hidden; color:var(--text-soft); text-overflow:ellipsis; white-space:nowrap; }.care-filter-grid { grid-template-columns:1.6fr repeat(4,minmax(115px,1fr)) auto; }.care-filter-grid .btn { min-height:46px; white-space:nowrap; }.care-verified { width:max-content; margin-top:10px; }.care-pagination { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:20px; }.care-pagination span { color:var(--text-soft); font-size:11px; font-weight:700; }.care-skeleton-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }.care-skeleton { min-height:280px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(100deg,var(--surface) 30%,var(--surface-soft) 50%,var(--surface) 70%); background-size:220% 100%; animation:care-skeleton 1.3s ease-in-out infinite; }.detail-skeleton { min-height:520px; }.care-detail-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:25px; padding:clamp(22px,4vw,36px); border-radius:var(--radius-lg); background:linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,var(--emerald) 6%),color-mix(in srgb,var(--surface) 94%,var(--cyan) 6%)); }.care-detail-hero h1 { margin:10px 0; font-size:clamp(28px,5vw,46px); }.care-detail-hero p { max-width:720px; color:var(--text-soft); line-height:1.6; }.care-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }.care-detail-section { padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--glass); backdrop-filter:blur(16px); }.care-detail-section h2 { margin:0 0 11px; font-size:16px; }.care-detail-section p { margin:0; color:var(--text-soft); line-height:1.65; }.medicines-coming { padding:clamp(28px,7vw,70px); text-align:center; }.medicines-coming .government-badge { margin:auto; }.support-feature-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.my-healthcare { margin-top:18px; padding:24px; border-radius:var(--radius-lg); }.healthcare-summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }.healthcare-summary-grid > * { min-width:0; padding:16px; border:1px solid var(--line); border-radius:16px; color:var(--text); background:var(--surface-soft); text-align:left; }.healthcare-summary-grid span,.healthcare-summary-grid strong,.healthcare-summary-grid small { display:block; }.healthcare-summary-grid span { color:var(--emerald-deep); }.healthcare-summary-grid span svg { width:20px; }.healthcare-summary-grid strong { margin:10px 0 4px; }.healthcare-summary-grid small { color:var(--text-soft); }.profile-saved-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:15px; }.profile-saved-card { display:flex; flex-direction:column; align-items:flex-start; gap:9px; padding:15px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }.profile-saved-card small { color:var(--text-soft); }.profile-saved-card .btn { margin-top:auto; }.profile-saved-empty { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:15px; padding:15px; border:1px dashed var(--line-strong); border-radius:16px; }.profile-saved-empty p { flex:1 1 100%; margin:0 0 4px; color:var(--text-soft); }@keyframes care-skeleton{to{background-position:-220% 0}}
@media(max-width:950px){.care-filter-grid{grid-template-columns:1fr 1fr 1fr}.support-feature-grid{grid-template-columns:1fr 1fr}.healthcare-summary-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.care-filter-grid,.care-skeleton-grid,.care-detail-grid,.profile-saved-grid{grid-template-columns:1fr}.care-detail-hero{align-items:flex-start;flex-direction:column}.healthcare-summary-grid{grid-template-columns:1fr 1fr}.my-healthcare{padding:17px}}
/* Shared India-wide healthcare location search */
.healthcare-location{position:relative;z-index:20;padding:18px;margin-bottom:16px;overflow:visible;background:linear-gradient(145deg,rgba(9,35,58,.98),rgba(8,70,72,.96));color:#fff;border:1px solid rgba(89,217,203,.28)}
.location-state-select{display:grid;gap:6px;margin-bottom:12px}.location-state-select>span{font-size:.64rem;letter-spacing:.11em;font-weight:800;color:#72d8cc}.location-state-select select{width:100%;min-height:44px;padding:0 38px 0 12px;border:1px solid rgba(116,225,212,.35);border-radius:11px;background:#103b4b;color:#fff;font:inherit}.location-state-select small{color:#a6c8d1;font-size:.75rem}
.healthcare-location-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.healthcare-location-heading>div{display:grid;gap:5px}.healthcare-location-heading span,.compact-care-filters label>span{font-size:.68rem;letter-spacing:.13em;font-weight:800;color:#72d8cc}.healthcare-location-heading strong{font-size:1rem}.location-change{border:0;background:transparent;color:#7be2d6;font-weight:800;cursor:pointer}.location-combobox{position:relative}.location-combobox>span{position:absolute;left:14px;top:13px;color:#153b46;z-index:1}.location-combobox input{width:100%;min-height:48px;padding:0 44px 0 40px;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:#fff;color:#102c38;font:inherit}.location-combobox>button{position:absolute;right:7px;top:7px;width:34px;height:34px;border:0;border-radius:9px;background:#e8f6f4;color:#18514f;font-size:1.25rem;cursor:pointer}.location-suggestions{position:absolute;left:0;right:0;top:54px;max-height:290px;overflow:auto;border:1px solid rgba(79,211,196,.35);border-radius:13px;background:#0b2337;box-shadow:0 20px 50px rgba(0,0,0,.38);z-index:100}.location-suggestion{display:flex;width:100%;gap:11px;align-items:flex-start;padding:13px 14px;text-align:left;color:#fff;border:0;border-bottom:1px solid rgba(255,255,255,.08);background:transparent;cursor:pointer;min-height:58px}.location-suggestion:hover,.location-suggestion.active{background:#124b53}.location-suggestion span:last-child{display:grid;gap:3px}.location-suggestion small,.location-status small{display:block;color:#a6c8d1;font-size:.77rem}.location-status{padding:17px;color:#d8eef1}.location-error{color:#ffd2ca}.use-current-location{margin-top:12px;min-height:42px;padding:0 14px;border:1px solid rgba(116,225,212,.35);border-radius:11px;background:rgba(16,125,119,.28);color:#d8fffa;font-weight:800;cursor:pointer}.use-current-location:disabled{opacity:.65}.compact-care-filters label{display:grid;gap:7px}.compact-care-filters label input,.compact-care-filters label select{width:100%}.location-fallback-note{margin:-5px 0 16px;padding:11px 14px;border-radius:10px;background:#fff4cf;color:#624c08;font-size:.88rem}.facility-distance{color:#108b80!important;font-weight:800}.location-actions{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-top:12px}.location-actions .use-current-location{margin-top:0}.location-radius{display:grid;gap:5px}.location-radius span{font-size:.64rem;letter-spacing:.11em;font-weight:800;color:#72d8cc}.location-radius select{min-height:42px;border:1px solid rgba(116,225,212,.35);border-radius:10px;background:#103b4b;color:#fff;padding:0 28px 0 10px}
@media(max-width:640px){.healthcare-location{padding:14px}.location-suggestions{max-height:250px}.location-suggestion{min-height:62px;padding:14px 12px}.compact-care-filters{grid-template-columns:1fr!important}.healthcare-location-heading strong{font-size:.92rem}.location-actions{align-items:stretch;flex-direction:column}.location-radius select,.location-actions .use-current-location{width:100%}}
