﻿:root {
  --try-teal: #0f8f83;
  --try-teal-dark: #04786e;
  --try-mint: #e8fbf7;
  --try-ink: #08111f;
  --try-muted: #6b7280;
  --try-card: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }

body.try-page {
  min-height: 100vh;
  margin: 0;
  color: var(--try-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  background: #f7fbfb;
  overflow-x: hidden;
}

.try-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 18%, rgba(20, 184, 166, 0.2), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(15, 143, 131, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eefdf9 48%, #f9fafb 100%);
}

.try-container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.try-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.try-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.try-brand,
.try-nav-links,
.try-actions {
  display: flex;
  align-items: center;
}

.try-brand {
  gap: 8px;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

.try-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.try-nav-links { gap: 8px; }

.try-nav-links a,
.try-secondary,
.try-primary {
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.try-nav-links a {
  padding: 10px 16px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 184, 166, 0.16);
}

.try-main {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(370px, 0.78fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 80px;
}

.try-copy h1 {
  max-width: 620px;
  margin: 14px 0 18px;
  font-size: clamp(2.55rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.try-copy p {
  max-width: 560px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.75;
  font-weight: 650;
}

.try-eyebrow,
.try-note {
  display: inline-flex;
  border: 1px solid rgba(20, 184, 166, 0.16);
  background: rgba(232, 251, 247, 0.78);
  color: var(--try-teal);
  border-radius: 999px;
  font-weight: 800;
}

.try-eyebrow { padding: 9px 14px; }
.try-note { max-width: 560px; margin-top: 18px; padding: 12px 15px; line-height: 1.5; }

.try-actions { gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.try-primary,
.try-secondary {
  border: 0;
  padding: 14px 20px;
  cursor: pointer;
  font: inherit;
}

.try-primary {
  color: white;
  background: linear-gradient(135deg, #14b8a6, #087f73);
  box-shadow: 0 18px 34px rgba(20, 184, 166, 0.28);
}

.try-secondary {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.demo-shell {
  padding: 14px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 14px;
}

.demo-topbar span,
.demo-topbar button {
  color: #64748b;
  font-weight: 800;
  font-size: 0.8rem;
}

.demo-topbar strong { display: block; margin-top: 2px; }
.demo-topbar button { border: 0; background: transparent; cursor: pointer; }

.phone-frame {
  position: relative;
  width: min(390px, 100%);
  height: 760px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #fbfbfc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 20px 44px rgba(15, 23, 42, 0.16);
}

.phone-status {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  color: rgba(15, 23, 42, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.app-screen {
  position: absolute;
  inset: 0;
  display: none;
  padding: 74px 22px 24px;
  animation: screenIn 340ms ease both;
}

.app-screen.is-active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.splash-center {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.splash-mark { width: 76px; height: 76px; object-fit: contain; margin-bottom: 14px; }
.splash-center h2, .app-title-row h2 { color: var(--try-teal); }
.splash-center h2 { margin: 0; font-size: 2rem; letter-spacing: -0.06em; }
.splash-center p { color: #6b7280; font-weight: 800; }

.choice-stack { display: grid; gap: 18px; }
.choice-card {
  min-height: 78px;
  border: 0;
  border-radius: 24px;
  padding: 18px 18px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 143, 131, 0.22);
}
.choice-card i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: rgba(255,255,255,0.14); font-style: normal; }
.choice-card.patient { background: linear-gradient(135deg, #15998d, #087d72); }
.choice-card.doctor { background: #15171b; opacity: 0.92; cursor: not-allowed; }

.app-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.app-title-row h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.06em; }
.how-pill { border: 0; border-radius: 999px; padding: 9px 13px; color: var(--try-teal); background: #e8f5f2; font-weight: 800; }

.search-card,
.appointment-card,
.mini-doctor-card,
.token-card,
.fee-card,
.green-info,
.benefit-card,
.live-card,
.status-strip,
.live-update {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.search-card { margin-top: 28px; padding: 22px; }
.search-card h3 { margin: 0 0 18px; font-size: 1.25rem; }
.search-box { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid rgba(15,23,42,0.1); background: #f4f4f4; color: #a1a1aa; font: inherit; font-weight: 800; cursor: pointer; }
.search-box strong { margin-left: auto; color: var(--try-teal); }
.search-icon { color: var(--try-teal); }
.search-box.typed { color: #171717; }
.divider { height: 1px; background: rgba(15,23,42,0.14); margin: 22px 0 16px; }
.found-label { color: #71717a; font-weight: 700; }
.doctor-result { width: 100%; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(15,23,42,0.08); background: white; border-radius: 20px; padding: 12px; font: inherit; text-align: left; cursor: pointer; }
.doctor-result small { display: block; color: var(--try-teal); font-weight: 800; }
.doctor-result small + small { color: #9ca3af; }
.doctor-result b { margin-left: auto; color: #9ca3af; }
.avatar { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #334155, #050505); border: 3px solid #2dd4bf; box-shadow: 0 8px 18px rgba(20,184,166,0.18); }
.avatar.large { width: 74px; height: 74px; }

.hero-message { margin: 34px 0 26px; }
.hero-message h3 { margin: 0; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.05em; }
.hero-message p { color: #6b7280; font-weight: 750; line-height: 1.55; }
.compact { margin-top: 28px; }

.appointment-card { width: 100%; border: 0; padding: 22px; text-align: left; color: white; background: linear-gradient(135deg, #15998d, #087d72); display: grid; grid-template-columns: auto 1fr; gap: 16px; cursor: pointer; }
.card-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,0.18); color: var(--try-teal); font-weight: 900; }
.appointment-card strong, .appointment-card small { display: block; }
.appointment-card em { grid-column: 1 / -1; padding: 14px; border-radius: 16px; background: white; color: var(--try-teal); text-align: center; font-style: normal; font-weight: 900; }

.bottom-tabs { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; justify-content: space-around; padding: 14px 12px; border-radius: 24px; background: white; box-shadow: 0 14px 34px rgba(15,23,42,0.11); color: #9ca3af; font-weight: 800; font-size: 0.86rem; }
.bottom-tabs .active { color: var(--try-teal); }

.sheet-screen { padding: 0; }
.dimmed-results { position: absolute; inset: 0; background: rgba(0,0,0,0.48); }
.doctor-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px 28px; border-radius: 28px 28px 0 0; background: white; box-shadow: 0 -18px 44px rgba(0,0,0,0.18); }
.sheet-handle { display: block; width: 44px; height: 5px; border-radius: 999px; background: #d4d4d8; margin: 0 auto 22px; }
.doctor-head, .mini-doctor-card { display: flex; align-items: center; gap: 14px; }
.doctor-head h3, .mini-doctor-card h3 { margin: 0; font-size: 1.35rem; }
.doctor-head p, .doctor-head strong, .mini-doctor-card p, .mini-doctor-card strong { display: block; margin: 4px 0; color: var(--try-teal); font-weight: 800; }
.map-button, .mini-doctor-card button { margin-left: auto; border: 0; border-radius: 18px; width: 58px; height: 58px; color: var(--try-teal); background: #e8f5f2; font-weight: 900; }
.doctor-lines { padding: 16px 0; margin: 12px 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; color: #71717a; font-weight: 700; line-height: 1.6; }
.availability-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 22px; }
.availability-row span { padding: 14px; border-radius: 16px; background: #f4f4f5; text-align: center; }
.availability-row small, .token-card small, .status-strip small { display: block; color: #a1a1aa; font-weight: 800; }
.availability-row strong { display: block; margin-top: 4px; }
.availability-row span:last-child { background: #fff7ed; border: 1px solid #fed7aa; color: #ea580c; }

.full-cta { width: 100%; min-height: 58px; border: 0; border-radius: 18px; background: linear-gradient(135deg, #15998d, #087d72); color: white; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 16px 30px rgba(15,143,131,0.22); }
.full-cta.sticky { position: absolute; left: 22px; right: 22px; bottom: 58px; width: auto; }

.app-page-title { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: 28px; }
.app-page-title h2, .center-title { margin: 0; text-align: center; font-size: 1.35rem; }
.app-page-title button { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.mini-doctor-card { padding: 16px; margin-bottom: 30px; }
.field-label { display: block; margin-bottom: 12px; font-weight: 800; }
.date-field { width: 100%; display: flex; justify-content: space-between; padding: 18px; border-radius: 16px; border: 1px solid rgba(15,143,131,0.28); background: rgba(255,255,255,0.72); font: inherit; font-weight: 800; }
.token-card { margin-top: 26px; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; text-align: center; background: #eef8f6; }
.token-card strong { display: block; margin-top: 8px; font-size: 1.7rem; color: var(--try-teal); }
.token-card p { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(15,23,42,0.12); font-weight: 900; }
.tiny-note { position: absolute; left: 28px; right: 28px; bottom: 24px; color: #9ca3af; font-size: 0.8rem; text-align: center; }

.checkout-screen { padding-left: 18px; padding-right: 18px; }
.checkout-hero { margin: -74px -18px 24px; padding: 74px 20px 26px; color: white; background: linear-gradient(135deg, #087f73, #035f55); display: flex; gap: 14px; align-items: center; }
.checkout-hero button { border: 0; background: transparent; color: white; font-size: 2rem; }
.checkout-hero h2, .checkout-hero h3, .checkout-hero p { margin: 4px 0; }
.fee-card, .benefit-card { padding: 18px; }
.fee-row, .total-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fee-row small { display: block; color: #9ca3af; font-weight: 700; margin-top: 4px; }
.fee-row b, .total-row strong { font-size: 1.55rem; color: var(--try-teal); }
.warning { padding: 12px; border-radius: 12px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-weight: 800; }
.total-row { margin: 14px -18px -18px; padding: 18px; background: #f8fafc; font-weight: 900; }
.green-info { margin: 16px 0; padding: 16px; background: #ecfdf3; color: #166534; font-weight: 850; }
.benefit-card p { margin: 12px 0; color: #475569; font-weight: 800; }

.tabs-pill { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; padding: 5px; border-radius: 22px; background: #f0f0f0; color: #9ca3af; font-weight: 900; text-align: center; }
.tabs-pill span:first-child { padding: 14px; border-radius: 18px; background: white; color: var(--try-teal); box-shadow: 0 8px 18px rgba(15,23,42,0.1); }
.tabs-pill span:last-child { padding: 14px; }
.live-card { position: relative; padding: 22px; min-height: 260px; }
.token-badge { width: 72px; height: 72px; border-radius: 18px; background: #e8f5f2; display: grid; place-items: center; color: var(--try-teal); font-weight: 900; }
.token-badge strong { font-size: 1.6rem; }
.waiting { position: absolute; top: 30px; right: 22px; padding: 8px 14px; border-radius: 999px; background: #fff7df; color: #ea580c; font-weight: 900; }
.appointment-inner { margin: 26px 0 18px; padding: 16px; border-radius: 18px; background: #fafafa; display: flex; align-items: center; gap: 14px; }
.appointment-inner small { display: block; color: #9ca3af; font-weight: 800; }
.appointment-inner button { margin-left: auto; border: 0; border-radius: 16px; padding: 10px; color: var(--try-teal); background: #e8f5f2; font-weight: 900; }

.with-label, .doctor-name { text-align: center; }
.with-label { margin: 36px 0 10px; color: #71717a; font-weight: 700; }
.doctor-name { margin: 0 0 30px; color: var(--try-teal); }
.serving-circle { width: 192px; height: 192px; margin: 0 auto 34px; border-radius: 50%; border: 5px solid #d8efed; display: grid; place-items: center; align-content: center; box-shadow: 0 12px 44px rgba(20,184,166,0.14); }
.serving-circle small { color: #71717a; letter-spacing: 0.12em; font-weight: 900; }
.serving-circle strong { color: var(--try-teal); font-size: 2.4rem; }
.status-strip { display: grid; grid-template-columns: 1fr 1fr; padding: 18px; text-align: center; }
.status-strip strong { display: block; margin-top: 8px; font-size: 1.25rem; }
.status-strip div + div { border-left: 1px solid #e5e7eb; }
.waiting-title { text-align: center; color: #52525b; }
.live-update { padding: 16px; background: #e8f5f2; color: #0f766e; line-height: 1.45; font-weight: 750; }

@media (max-width: 940px) {
  .try-main { grid-template-columns: 1fr; gap: 34px; padding-top: 28px; }
  .try-copy { text-align: center; }
  .try-copy p, .try-note { margin-left: auto; margin-right: auto; }
  .try-actions { justify-content: center; }
}

@media (max-width: 520px) {
  .try-container { width: min(100% - 24px, 1160px); }
  .try-nav { border-radius: 22px; }
  .try-nav-links a { padding: 9px 12px; font-size: 0.88rem; }
  .try-brand span { font-size: 0.95rem; }
  .try-copy h1 { font-size: clamp(2.15rem, 12vw, 3.2rem); }
  .demo-shell { padding: 8px; border-radius: 26px; }
  .phone-frame { height: 720px; border-radius: 26px; }
  .app-screen { padding-left: 18px; padding-right: 18px; }
  .full-cta.sticky { left: 18px; right: 18px; }
}

/* Fidelity pass: keep the embedded app roomy, navigable, and closer to the mobile screenshots. */
.demo-shell {
  padding: 18px;
}

.phone-frame {
  width: min(414px, 100%);
  height: 870px;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.app-screen {
  padding: 74px 24px 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.app-screen::-webkit-scrollbar {
  display: none;
}

.splash-center {
  min-height: 520px;
}

.choice-stack {
  gap: 18px;
  padding-bottom: 18px;
}

.choice-card {
  min-height: 86px;
  border-radius: 26px;
  padding: 18px 20px 18px 26px;
  font-size: 1.02rem;
}

.demo-icon,
.choice-card i,
.card-icon,
.tab-icon,
.search-icon,
.mini-soft,
.profile-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.demo-icon,
.choice-card i {
  width: 56px;
  height: 56px;
  border-radius: 19px;
}

.icon-user::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 17px 0 5px currentColor;
  transform: translateY(-8px);
}

.icon-clinic::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
}

.icon-search::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(10px, 10px) rotate(45deg);
}

.icon-calendar::before {
  content: "";
  width: 22px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.18);
}

.icon-calendar::after {
  content: "";
  position: absolute;
  top: 13px;
  width: 24px;
  height: 3px;
  background: currentColor;
}

.icon-home::before {
  content: "";
  width: 22px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 40%, 84% 40%, 84% 100%, 60% 100%, 60% 64%, 40% 64%, 40% 100%, 16% 100%, 16% 40%, 0 40%);
}

.icon-pin::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  background: currentColor;
  transform: rotate(-45deg);
}

.icon-pin::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.icon-pin.white {
  color: white;
  width: 22px;
  height: 22px;
}

.icon-headset::before { content: "?"; font-weight: 900; }
.icon-logout::before { content: "↪"; font-weight: 900; }
.icon-settings::before { content: "⚙"; font-weight: 900; }

.search-card {
  margin-top: 30px;
  padding: 24px;
  border-radius: 28px;
}

.search-box {
  min-height: 58px;
  padding: 15px 18px;
  border-radius: 20px;
}

.search-placeholder {
  color: #b8b8bf;
}

.hero-message h3 {
  font-size: 1.68rem;
}

.appointment-card {
  min-height: 184px;
  border-radius: 24px;
}

.appointment-card em {
  margin-top: 12px;
  min-height: 56px;
  display: grid;
  place-items: center;
}

.bottom-tabs {
  left: 18px;
  right: 18px;
  bottom: 24px;
  min-height: 96px;
  padding: 12px 18px;
  border-radius: 32px;
  align-items: center;
  gap: 8px;
}

.bottom-tabs button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 84px;
  min-height: 68px;
  padding: 8px 10px;
  border-radius: 22px;
  cursor: pointer;
}

.bottom-tabs button.active {
  color: var(--try-teal);
}

.bottom-tabs button.active .tab-icon {
  width: 58px;
  height: 42px;
  border-radius: 999px;
  background: #e8f5f2;
}

.tab-icon {
  width: 28px;
  height: 28px;
}

.sheet-screen {
  overflow: hidden;
}

.doctor-sheet {
  max-height: 76%;
  overflow-y: auto;
  padding: 18px 22px 30px;
  border-radius: 30px 30px 0 0;
}

.doctor-head h3,
.mini-doctor-card h3 {
  font-size: 1.22rem;
}

.map-button,
.mini-doctor-card button {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 22px;
  font-size: 0.72rem;
}

.map-button small,
.mini-doctor-card button small {
  display: block;
  font-size: 0.58rem;
  line-height: 1.05;
}

.doctor-lines {
  list-style: none;
  padding-left: 0;
  font-size: 0.92rem;
}

.full-cta.sticky {
  position: sticky;
  left: auto;
  right: auto;
  bottom: 18px;
  width: 100%;
  margin-top: 26px;
  z-index: 3;
}

.book .full-cta.sticky,
.checkout-screen .full-cta.sticky {
  position: sticky;
}

.tiny-note {
  position: static;
  margin: 12px 6px 0;
}

.checkout-screen {
  padding-left: 20px;
  padding-right: 20px;
}

.checkout-hero {
  margin-left: -20px;
  margin-right: -20px;
}

.live-card {
  min-height: 282px;
}

.profile-preview {
  display: grid;
  justify-items: center;
  margin: 34px 0 42px;
  text-align: center;
}

.profile-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  color: var(--try-teal);
  background: rgba(255, 255, 255, 0.72);
  border: 5px solid #d8efed;
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.14);
}

.profile-preview h3 {
  margin: 18px 0 6px;
  font-size: 1.5rem;
}

.profile-preview p {
  margin: 0;
  color: var(--try-teal);
  font-weight: 800;
}

.profile-list {
  display: grid;
  gap: 18px;
}

.profile-list button {
  min-height: 74px;
  border: 0;
  border-radius: 22px;
  background: white;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 850;
  color: #18181b;
}

.profile-list button b {
  margin-left: auto;
  color: #a1a1aa;
}

.mini-soft {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--try-teal);
  background: #e8f5f2;
}

.mini-soft.danger {
  color: #ef4444;
  background: #fee2e2;
}

.mini-soft.muted {
  color: #a1a1aa;
  background: #f4f4f5;
}

@media (max-width: 520px) {
  .demo-shell {
    padding: 10px;
  }

  .phone-frame {
    height: min(820px, calc(100vh - 96px));
    min-height: 720px;
    border-radius: 30px;
  }

  .app-screen {
    padding: 68px 18px 126px;
  }

  .bottom-tabs {
    left: 14px;
    right: 14px;
    bottom: 18px;
    min-height: 92px;
    padding: 10px 12px;
  }

  .bottom-tabs button {
    min-width: 0;
    font-size: 0.72rem;
  }

  .splash-center {
    min-height: 470px;
  }
}

/* Desktop fit pass: keep the whole phone visible on laptop screens. */
@media (min-width: 941px) {
  .try-main {
    align-items: start;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .demo-shell {
    position: sticky;
    top: 92px;
    width: fit-content;
    margin-left: auto;
  }

  .phone-frame {
    width: min(380px, 34vw);
    height: min(760px, calc(100vh - 190px));
    min-height: 620px;
    border-radius: 34px;
  }

  .app-screen {
    padding-top: 64px;
    padding-bottom: 120px;
  }

  .splash-center {
    min-height: min(420px, 48vh);
  }

  .search-card {
    margin-top: 20px;
    padding: 20px;
  }

  .hero-message {
    margin: 24px 0 20px;
  }

  .hero-message h3 {
    font-size: 1.45rem;
  }

  .appointment-card {
    min-height: 164px;
    padding: 20px;
  }

  .bottom-tabs {
    min-height: 86px;
    bottom: 16px;
  }
}

/* Demo layout reset v4: remove overlap, normalize phone spacing, and keep the app preview faithful. */
.demo-shell {
  padding: 14px;
  border-radius: 34px;
}

.demo-topbar {
  padding: 4px 2px 12px;
}

.demo-topbar span {
  font-size: 0.72rem;
}

.demo-topbar strong {
  font-size: 0.94rem;
}

.phone-frame {
  width: min(380px, 100%);
  height: min(780px, calc(100vh - 160px));
  min-height: 650px;
  border-radius: 34px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.phone-status {
  top: 18px;
  left: 22px;
  right: 22px;
  z-index: 12;
  font-size: 0.72rem;
}

.app-screen {
  padding: 78px 22px 110px;
  overflow-y: auto;
}

.app-title-row {
  margin-bottom: 22px;
}

.app-title-row h2 {
  font-size: 1.38rem;
}

.how-pill {
  padding: 9px 12px;
  font-size: 0.82rem;
}

.search-card {
  margin-top: 0;
  padding: 20px;
  border-radius: 26px;
}

.search-card h3 {
  font-size: 1.12rem;
  margin-bottom: 14px;
}

.search-box {
  min-height: 54px;
  padding: 12px 14px;
  gap: 12px;
  border-radius: 18px;
  text-align: left;
}

.search-box .search-placeholder {
  text-align: left;
  line-height: 1.25;
}

.hero-message {
  margin: 24px 0 18px;
}

.hero-message h3 {
  font-size: 1.35rem;
  line-height: 1.22;
  letter-spacing: -0.055em;
}

.hero-message p {
  margin: 12px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.appointment-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 22px;
  gap: 14px;
  margin-bottom: 16px;
}

.appointment-card em {
  min-height: 48px;
  margin-top: 8px;
  padding: 11px;
  border-radius: 16px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.bottom-tabs {
  left: 22px;
  right: 22px;
  bottom: 18px;
  min-height: 74px;
  padding: 8px 10px;
  border-radius: 26px;
  gap: 2px;
  z-index: 20;
}

.bottom-tabs button {
  min-height: 56px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 18px;
  font-size: 0.68rem;
  gap: 4px;
}

.bottom-tabs button.active .tab-icon {
  width: 44px;
  height: 32px;
  border-radius: 999px;
}

.tab-icon {
  width: 24px;
  height: 24px;
}

.results-card {
  padding-bottom: 18px;
}

.doctor-result {
  padding: 10px;
  border-radius: 18px;
}

.doctor-result strong {
  font-size: 1rem;
}

.doctor-result small {
  font-size: 0.72rem;
}

.avatar {
  width: 50px;
  height: 50px;
}

.avatar.large {
  width: 64px;
  height: 64px;
}

.sheet-screen {
  padding: 0;
  overflow: hidden;
}

.doctor-sheet {
  max-height: 72%;
  padding: 16px 20px 24px;
  overflow-y: auto;
}

.sheet-handle {
  margin-bottom: 16px;
}

.doctor-head {
  align-items: center;
}

.doctor-head h3,
.mini-doctor-card h3 {
  font-size: 1.12rem;
}

.doctor-head p,
.doctor-head strong,
.mini-doctor-card p,
.mini-doctor-card strong {
  margin: 3px 0;
  font-size: 0.86rem;
}

.map-button,
.mini-doctor-card button {
  width: 62px;
  height: 62px;
  border-radius: 20px;
}

.doctor-lines {
  margin: 10px 0;
  padding: 12px 0;
  font-size: 0.82rem;
}

.availability-row {
  margin: 12px 0 18px;
}

.availability-row span {
  padding: 12px 10px;
}

.full-cta,
.full-cta.sticky {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 18px;
}

.app-screen[data-screen="book"],
.app-screen[data-screen="checkout"],
.app-screen[data-screen="live"] {
  padding-bottom: 34px;
}

.app-page-title {
  margin-bottom: 24px;
}

.app-page-title h2,
.center-title {
  font-size: 1.22rem;
}

.mini-doctor-card {
  padding: 14px;
  margin-bottom: 26px;
  border-radius: 24px;
}

.field-label {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.date-field {
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.token-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
}

.token-card strong {
  font-size: 1.55rem;
}

.token-card p {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 0.9rem;
}

.tiny-note {
  margin-top: 14px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.checkout-screen {
  padding-left: 20px;
  padding-right: 20px;
}

.checkout-hero {
  margin: -78px -20px 22px;
  padding: 78px 20px 24px;
  border-radius: 0;
}

.checkout-hero h2 {
  font-size: 1.4rem;
}

.checkout-hero h3 {
  font-size: 1.05rem;
}

.checkout-hero p {
  font-size: 0.86rem;
}

.fee-card,
.benefit-card {
  padding: 16px;
  border-radius: 22px;
}

.fee-row b,
.total-row strong {
  font-size: 1.35rem;
}

.warning {
  padding: 11px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.total-row {
  margin: 14px -16px -16px;
  padding: 16px;
}

.green-info {
  margin: 14px 0;
  padding: 14px;
  font-size: 0.86rem;
  border-radius: 18px;
}

.benefit-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 10px 0;
  font-size: 0.86rem;
}

.tabs-pill {
  margin: 22px 0;
}

.live-card {
  min-height: 246px;
  padding: 18px;
  border-radius: 24px;
  margin-bottom: 16px;
}

.token-badge {
  width: 64px;
  height: 64px;
}

.waiting {
  top: 24px;
  right: 18px;
  padding: 7px 12px;
  font-size: 0.76rem;
}

.appointment-inner {
  margin: 22px 0 16px;
  padding: 14px;
}

.serving-circle {
  width: 164px;
  height: 164px;
  margin-bottom: 24px;
}

.status-strip {
  padding: 16px;
}

.live-update {
  padding: 14px;
  font-size: 0.84rem;
}

@media (min-width: 941px) {
  .demo-shell {
    top: 78px;
  }

  .phone-frame {
    width: min(360px, 32vw);
    height: min(720px, calc(100vh - 150px));
    min-height: 610px;
  }

  .app-screen {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 520px) {
  .phone-frame {
    height: min(760px, calc(100vh - 86px));
    min-height: 650px;
  }

  .app-screen {
    padding: 72px 18px 104px;
  }

  .bottom-tabs {
    left: 18px;
    right: 18px;
    bottom: 16px;
    min-height: 72px;
  }
}

/* Demo polish v5: profile clearance, aligned bottom nav icons, and resilient search text. */
.app-screen[data-screen="profile"] {
  padding-bottom: 130px;
}

.profile-list {
  padding-bottom: 18px;
}

.bottom-tabs button {
  grid-template-rows: 34px 18px;
  align-content: center;
  line-height: 1;
}

.tab-icon {
  width: 26px;
  height: 26px;
  color: currentColor;
}

.bottom-tabs button.active .tab-icon {
  width: 44px;
  height: 34px;
}

.tab-icon.icon-calendar::before {
  width: 18px;
  height: 20px;
  border-width: 2.5px;
}

.tab-icon.icon-calendar::after {
  top: 10px;
  width: 20px;
  height: 2.5px;
}

.tab-icon.icon-user::before {
  width: 10px;
  height: 10px;
  box-shadow: 0 15px 0 5px currentColor;
  transform: translateY(-7px);
}

.search-box {
  min-width: 0;
}

.search-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.78rem, 2.2vw, 0.98rem);
  line-height: 1.2;
}

.search-box strong {
  flex: 0 0 auto;
}

@media (max-width: 360px) {
  .search-placeholder {
    max-width: 160px;
  }
}

/* Demo polish v6: anchor bottom nav inside the phone instead of letting it travel with content. */
.app-screen:has(.bottom-tabs) {
  padding-bottom: 118px;
}

.bottom-tabs {
  position: sticky;
  left: auto;
  right: auto;
  bottom: 0;
  width: 100%;
  margin-top: 28px;
  transform: translateY(4px);
}

.app-screen[data-screen="profile"] .bottom-tabs,
.app-screen[data-screen="home"] .bottom-tabs,
.app-screen[data-screen="results"] .bottom-tabs,
.app-screen[data-screen="appointments"] .bottom-tabs {
  margin-top: 34px;
}

.profile-list {
  margin-bottom: 26px;
}

@supports not selector(:has(*)) {
  .app-screen[data-screen="home"],
  .app-screen[data-screen="results"],
  .app-screen[data-screen="appointments"],
  .app-screen[data-screen="profile"] {
    padding-bottom: 118px;
  }
}

/* Demo polish v7: pin bottom nav to the phone bottom; content scrolls behind safe padding. */
.app-screen:has(.bottom-tabs) {
  padding-bottom: 142px;
}

.bottom-tabs,
.app-screen[data-screen="profile"] .bottom-tabs,
.app-screen[data-screen="home"] .bottom-tabs,
.app-screen[data-screen="results"] .bottom-tabs,
.app-screen[data-screen="appointments"] .bottom-tabs {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  width: auto;
  margin-top: 0;
  transform: none;
  z-index: 30;
}

.profile-list {
  margin-bottom: 104px;
}

.appointment-card,
.live-card {
  margin-bottom: 104px;
}

@supports not selector(:has(*)) {
  .app-screen[data-screen="home"],
  .app-screen[data-screen="results"],
  .app-screen[data-screen="appointments"],
  .app-screen[data-screen="profile"] {
    padding-bottom: 142px;
  }
}

@media (max-width: 520px) {
  .bottom-tabs,
  .app-screen[data-screen="profile"] .bottom-tabs,
  .app-screen[data-screen="home"] .bottom-tabs,
  .app-screen[data-screen="results"] .bottom-tabs,
  .app-screen[data-screen="appointments"] .bottom-tabs {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }
}

/* Demo structure v8: one phone-level nav outside scrollable screens. */
.app-screen .bottom-tabs {
  display: none !important;
}

.phone-bottom-tabs {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 60;
  min-height: 74px;
  padding: 8px 10px;
  border: 0;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.phone-bottom-tabs[hidden] {
  display: none !important;
}

.phone-bottom-tabs button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  grid-template-rows: 34px 18px;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 56px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 18px;
  cursor: pointer;
}

.phone-bottom-tabs button.active {
  color: var(--try-teal);
}

.phone-bottom-tabs button.active .tab-icon {
  width: 44px;
  height: 34px;
  border-radius: 999px;
  background: #e8f5f2;
}

.phone-frame.has-phone-tabs .app-screen {
  padding-bottom: 132px;
}

.phone-frame.has-phone-tabs .profile-list,
.phone-frame.has-phone-tabs .appointment-card,
.phone-frame.has-phone-tabs .live-card {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .phone-bottom-tabs {
    left: 18px;
    right: 18px;
    bottom: 16px;
    min-height: 72px;
  }
}

/* Demo data polish v9: friendly general-doctor avatar. */
.avatar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, #f8fafc 0 10px, transparent 11px),
    radial-gradient(ellipse at 50% 74%, #f8fafc 0 19px, transparent 20px),
    linear-gradient(145deg, #0f766e, #14b8a6);
  border: 3px solid #2dd4bf;
}

.avatar::before {
  content: "+";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  background: #0f8f83;
  border: 2px solid white;
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
}

.avatar.large::before {
  width: 24px;
  height: 24px;
  font-size: 0.95rem;
}

/* Demo data polish v10: cleaner doctor avatar, no personal-looking address. */
.avatar {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 28%, #f8fafc 0 10px, transparent 10.5px),
    radial-gradient(ellipse at 50% 86%, #ffffff 0 25px, transparent 25.5px),
    radial-gradient(ellipse at 50% 68%, #0f766e 0 22px, transparent 22.5px),
    linear-gradient(145deg, #0f766e, #14b8a6);
  border: 3px solid #2dd4bf;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 30px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 10px 10px 4px 4px;
  background:
    linear-gradient(90deg, transparent 0 43%, #14b8a6 43% 57%, transparent 57% 100%),
    #f8fafc;
}

.avatar::after {
  content: "+";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: white;
  background: #0f8f83;
  border: 2px solid white;
  font-weight: 900;
  font-size: 0.82rem;
  line-height: 1;
}

.avatar.large::before {
  width: 40px;
  height: 32px;
  bottom: 6px;
}

.avatar.large::after {
  width: 23px;
  height: 23px;
  font-size: 0.95rem;
}

/* Demo polish v11: medical badge avatar and tappable bottom-sheet backdrop. */
.avatar {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 62%, transparent 63%),
    linear-gradient(145deg, #14b8a6, #0f766e);
  border: 3px solid #2dd4bf;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: #0f8f83;
  clip-path: path("M12 2h6v8h8v6h-8v8h-6v-8H4v-6h8z");
}

.avatar::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #0f8f83;
  background: white;
  box-shadow: -8px -7px 0 -5px #0f8f83, 8px -7px 0 -5px #0f8f83;
}

.avatar.large::before {
  width: 36px;
  height: 36px;
}

.avatar.large::after {
  width: 19px;
  height: 19px;
}

.dimmed-results {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.sheet-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.94));
  pointer-events: none;
}

.doctor-sheet {
  animation: sheetUp 260ms ease both;
}

@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0.72; }
  to { transform: translateY(0); opacity: 1; }
}

/* Demo avatar v12: real doctor photo with simple plus fallback. */
.avatar {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background:
    linear-gradient(#0f8f83, #0f8f83) center / 34% 11% no-repeat,
    linear-gradient(#0f8f83, #0f8f83) center / 11% 34% no-repeat,
    #ffffff;
  border: 3px solid #2dd4bf;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: inherit;
  z-index: 2;
}

.avatar::before,
.avatar::after {
  content: none !important;
}

/* Demo polish v13: visual date picker and searched-screen backdrop behind sheet. */
.calendar-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 184, 166, 0.18);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.calendar-panel[hidden] {
  display: none !important;
}

.calendar-head,
.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: center;
  text-align: center;
}

.calendar-head {
  grid-template-columns: 34px 1fr 34px;
  margin-bottom: 12px;
}

.calendar-head button,
.calendar-grid button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.calendar-head button {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--try-teal);
  background: #e8f5f2;
  font-size: 1.2rem;
  font-weight: 900;
}

.calendar-head strong {
  grid-column: 2;
  font-size: 0.9rem;
}

.calendar-week {
  margin-bottom: 8px;
  color: #94a3b8;
  font-size: 0.62rem;
  font-weight: 900;
}

.calendar-grid button {
  min-height: 34px;
  border-radius: 12px;
  color: #334155;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
}

.calendar-grid button.muted {
  color: #cbd5e1;
}

.calendar-grid button.selected {
  color: white;
  background: var(--try-teal);
  box-shadow: 0 8px 18px rgba(15, 143, 131, 0.22);
}

.dimmed-results {
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: rgba(0, 0, 0, 0.44);
}

.sheet-backdrop-preview {
  position: absolute;
  inset: 0;
  padding: 74px 22px 132px;
  background: rgba(255, 255, 255, 0.76);
  opacity: 0.58;
  filter: saturate(0.9);
}

.sheet-backdrop-preview .search-card {
  margin-top: 0;
}

.sheet-backdrop-preview .doctor-result {
  pointer-events: none;
}

.sheet-screen::before {
  content: none;
}

/* Demo polish v14: consistent person icon and Open in Maps style. */
.icon-user::before,
.tab-icon.icon-user::before,
.profile-avatar.icon-user::before,
.card-icon.icon-user::before {
  content: "";
  position: static;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 17px 0 7px currentColor;
  transform: translateY(-9px);
}

.tab-icon.icon-user,
.card-icon.icon-user {
  overflow: hidden;
}

.tab-icon.icon-user::before {
  width: 9px;
  height: 9px;
  box-shadow: 0 14px 0 6px currentColor;
  transform: translateY(-7px);
}

.bottom-tabs button.active .tab-icon.icon-user::before,
.phone-bottom-tabs button.active .tab-icon.icon-user::before {
  width: 9px;
  height: 9px;
  box-shadow: 0 14px 0 6px currentColor;
  transform: translateY(-7px);
}

.profile-avatar.icon-user::before {
  width: 24px;
  height: 24px;
  box-shadow: 0 38px 0 20px currentColor;
  transform: translateY(-20px);
}

.map-button,
.mini-doctor-card button,
.appointment-inner button {
  width: 78px;
  height: auto;
  min-height: 78px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--try-teal);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  font-weight: 900;
  box-shadow: none;
}

.map-button .icon-pin,
.mini-doctor-card button .icon-pin,
.appointment-inner button .icon-pin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e8f5f2;
  display: grid;
  place-items: center;
  color: var(--try-teal);
}

.map-button .icon-pin::before,
.mini-doctor-card button .icon-pin::before,
.appointment-inner button .icon-pin::before {
  width: 18px;
  height: 18px;
}

.map-button .icon-pin::after,
.mini-doctor-card button .icon-pin::after,
.appointment-inner button .icon-pin::after {
  width: 5px;
  height: 5px;
}

.map-button small,
.mini-doctor-card button small,
.appointment-inner button small {
  display: block;
  color: var(--try-teal);
  font-size: 0.65rem;
  line-height: 1.08;
  text-align: center;
  max-width: 70px;
}

/* Demo polish v15: profile icon as small person inside soft pill. */
.profile-avatar {
  width: 118px;
  height: 72px;
  border-radius: 28px;
  border: 0;
  background: #e8f5f2;
  color: var(--try-teal);
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.1);
}

.profile-avatar.icon-user::before {
  width: 14px;
  height: 14px;
  box-shadow: 0 24px 0 11px currentColor;
  transform: translateY(-14px);
}

.phone-bottom-tabs button.active .tab-icon.icon-user,
.bottom-tabs button.active .tab-icon.icon-user {
  width: 54px;
  height: 34px;
  border-radius: 999px;
  background: #e8f5f2;
  color: var(--try-teal);
}

.phone-bottom-tabs button.active .tab-icon.icon-user::before,
.bottom-tabs button.active .tab-icon.icon-user::before {
  width: 8px;
  height: 8px;
  box-shadow: 0 13px 0 6px currentColor;
  transform: translateY(-7px);
}

.phone-bottom-tabs .tab-icon.icon-user::before,
.bottom-tabs .tab-icon.icon-user::before {
  width: 8px;
  height: 8px;
  box-shadow: 0 13px 0 6px currentColor;
  transform: translateY(-7px);
}

/* Demo polish v16: circular profile avatar with proper head-and-shoulders glyph. */
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 5px solid #d8efed;
  background: rgba(255, 255, 255, 0.72);
  color: var(--try-teal);
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.14);
}

.profile-avatar.icon-user::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: none;
  transform: translateX(-50%);
}

.profile-avatar.icon-user::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 46px;
  height: 24px;
  border-radius: 24px 24px 6px 6px;
  background: currentColor;
  transform: translateX(-50%);
}

/* Demo polish v17: exact Material person icon from provided SVG, in Turno teal/currentColor. */
.icon-user::before,
.tab-icon.icon-user::before,
.profile-avatar.icon-user::before,
.card-icon.icon-user::before,
.demo-icon.icon-user::before {
  content: "" !important;
  position: static;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: currentColor;
  box-shadow: none !important;
  transform: none !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M367-527q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm296.5-343.5Q560-607 560-640t-23.5-56.5Q513-720 480-720t-56.5 23.5Q400-673 400-640t23.5 56.5Q447-560 480-560t56.5-23.5ZM480-640Zm0 400Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M367-527q-47-47-47-113t47-113q47-47 113-47t113 47q47 47 47 113t-47 113q-47 47-113 47t-113-47ZM160-160v-112q0-34 17.5-62.5T224-378q62-31 126-46.5T480-440q66 0 130 15.5T736-378q29 15 46.5 43.5T800-272v112H160Zm80-80h480v-32q0-11-5.5-20T700-306q-54-27-109-40.5T480-360q-56 0-111 13.5T260-306q-9 5-14.5 14t-5.5 20v32Zm296.5-343.5Q560-607 560-640t-23.5-56.5Q513-720 480-720t-56.5 23.5Q400-673 400-640t23.5 56.5Q447-560 480-560t56.5-23.5ZM480-640Zm0 400Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon-user::after,
.tab-icon.icon-user::after,
.profile-avatar.icon-user::after,
.card-icon.icon-user::after,
.demo-icon.icon-user::after {
  content: none !important;
}

.demo-icon.icon-user::before {
  width: 34px;
  height: 34px;
}

.tab-icon.icon-user::before,
.phone-bottom-tabs .tab-icon.icon-user::before,
.bottom-tabs .tab-icon.icon-user::before,
.phone-bottom-tabs button.active .tab-icon.icon-user::before,
.bottom-tabs button.active .tab-icon.icon-user::before {
  width: 24px;
  height: 24px;
}

.card-icon.icon-user::before {
  width: 28px;
  height: 28px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 5px solid #d8efed;
  background: rgba(255, 255, 255, 0.76);
  color: var(--try-teal);
  box-shadow: 0 18px 40px rgba(20, 184, 166, 0.14);
}

.profile-avatar.icon-user::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) !important;
}

.phone-bottom-tabs button.active .tab-icon.icon-user,
.bottom-tabs button.active .tab-icon.icon-user {
  width: 54px;
  height: 34px;
  border-radius: 999px;
  background: #e8f5f2;
  color: var(--try-teal);
}

/* Demo polish v18: enlarge only the bottom-nav profile SVG icon. */
.phone-bottom-tabs .tab-icon.icon-user::before,
.bottom-tabs .tab-icon.icon-user::before,
.phone-bottom-tabs button.active .tab-icon.icon-user::before,
.bottom-tabs button.active .tab-icon.icon-user::before {
  width: 30px;
  height: 30px;
}

.phone-bottom-tabs button.active .tab-icon.icon-user,
.bottom-tabs button.active .tab-icon.icon-user {
  width: 56px;
  height: 36px;
}

/* Doctor / clinic flow v19 */
.choice-card.doctor {
  cursor: pointer;
}

.clinic-screen {
  background: #fbfbfc;
}

.clinic-top-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.clinic-top-title h2 {
  margin: 0;
  color: var(--try-teal);
  font-size: 1.45rem;
  letter-spacing: -0.05em;
}

.clinic-help {
  position: absolute;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--try-teal);
  color: var(--try-teal);
  background: transparent;
  font-weight: 900;
}

.clinic-kicker {
  margin: 0 0 22px;
  text-align: center;
  letter-spacing: 0.22em;
  font-weight: 900;
  color: #171717;
}

.clinic-main-card,
.staff-card,
.disable-card,
.shift-card,
.earnings-card,
.earnings-note {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.clinic-main-card {
  padding: 22px;
}

.clinic-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clinic-card-head h3 {
  margin: 0;
  color: var(--try-teal);
  font-size: 1.45rem;
}

.clinic-square,
.staff-avatar.star,
.staff-patients {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--try-teal);
  background: #e8f5f2;
}

.clinic-square {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.clinic-square.icon-clinic::before,
.clinic-bottom-tabs .icon-clinic::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 4px;
  font-weight: 900;
  line-height: 1;
}

.clinic-divider {
  height: 1px;
  margin: 22px 0;
  background: rgba(15, 23, 42, 0.16);
}

.clinic-label {
  margin: 0 0 12px;
  color: #737373;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.join-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.join-code-row strong {
  color: #71717a;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
}

.join-code-row button,
.staff-more,
.staff-patients {
  border: 0;
  background: transparent;
  color: var(--try-teal);
  font: inherit;
  cursor: pointer;
}

.copy-icon {
  display: block;
  width: 24px;
  height: 28px;
  border: 3px solid currentColor;
  border-radius: 4px;
  box-shadow: -7px 7px 0 -2px #fff, -7px 7px 0 0 currentColor;
}

.clinic-muted {
  color: #71717a;
  font-weight: 700;
  line-height: 1.55;
}

.clinic-address {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--try-teal);
}

.clinic-address p {
  margin: 0;
  color: #3f3f46;
  font-weight: 750;
  line-height: 1.45;
}

.outline-action {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 143, 131, 0.36);
  color: var(--try-teal);
  background: transparent;
  font: inherit;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gps-icon {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff inset;
}

.staff-title {
  margin: 28px 0 14px;
  font-size: 1.25rem;
}

.staff-list {
  display: grid;
  gap: 14px;
  padding-bottom: 92px;
}

.staff-card {
  min-height: 78px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  position: relative;
}

.staff-card.owner {
  grid-template-columns: auto 1fr;
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8f5f2;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.staff-avatar.star {
  font-size: 1.35rem;
}

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

.staff-card strong {
  color: #52525b;
  font-size: 1rem;
}

.staff-card small {
  color: var(--try-teal);
  font-weight: 800;
  margin-top: 4px;
}

.staff-patients {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.group-icon::before {
  content: "";
  display: block;
  width: 25px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm700 0v-120q0-44-24.5-84.5T646-434q51 6 96 22.5t84 35.5q36 18 55 47t19 65v104H740ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M40-160v-112q0-34 17.5-62.5T104-378q62-31 126-46.5T360-440q66 0 130 15.5T616-378q29 15 46.5 43.5T680-272v112H40Zm700 0v-120q0-44-24.5-84.5T646-434q51 6 96 22.5t84 35.5q36 18 55 47t19 65v104H740ZM360-480q-66 0-113-47t-47-113q0-66 47-113t113-47q66 0 113 47t47 113q0 66-47 113t-113 47Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.staff-more {
  color: #18181b;
  font-size: 1.55rem;
  line-height: 1;
  padding: 4px;
}

.staff-menu {
  position: absolute;
  right: 26px;
  bottom: 168px;
  z-index: 80;
  width: 184px;
  padding: 12px;
  border-radius: 8px;
  background: #edf7f4;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.staff-menu[hidden] {
  display: none !important;
}

.staff-menu button {
  width: 100%;
  padding: 13px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 750;
}

.staff-menu .danger {
  color: #ef4444;
}

.clinic-page-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  margin-bottom: 24px;
}

.clinic-page-head button {
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
}

.clinic-page-head h2 {
  margin: 0;
  text-align: center;
  font-size: 1.22rem;
}

.schedule-strip {
  margin: 0 -22px;
  padding: 18px 22px;
  background: #eaf4f2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.schedule-strip small,
.schedule-strip strong {
  display: block;
}

.schedule-strip small {
  color: #9ca3af;
  font-weight: 800;
}

.schedule-strip button {
  border: 0;
  color: var(--try-teal);
  background: transparent;
  font: inherit;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  font-weight: 750;
}

.disable-card {
  width: 100%;
  min-height: 98px;
  border: 0;
  padding: 18px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: #fee8ec;
}

.disable-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ef4444;
  background: white;
  font-size: 1.5rem;
}

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

.disable-card strong {
  color: #b91c1c;
  font-size: 0.96rem;
}

.disable-card small {
  margin-top: 4px;
  color: #be123c;
  font-weight: 700;
  line-height: 1.35;
}

.disable-card b {
  color: #ef4444;
  font-size: 1.7rem;
}

.settings-warning {
  margin: 22px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  line-height: 1.45;
  font-weight: 700;
}

.settings-title {
  margin: 26px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
  color: var(--try-teal);
  font-size: 1.2rem;
}

.settings-label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 850;
}

.settings-input {
  min-height: 58px;
  padding: 17px 20px;
  border-radius: 18px;
  background: #f4f4f5;
  border: 1px solid #e5e7eb;
  font-weight: 850;
}

.shift-head {
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shift-head button {
  border: 0;
  color: var(--try-teal);
  background: transparent;
  font: inherit;
  font-weight: 850;
}

.shift-card {
  padding: 14px;
  margin-bottom: 12px;
  background: #f4f4f5;
  position: relative;
}

.shift-card > button {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #ef4444;
  font-size: 1.4rem;
}

.shift-card div {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.shift-card span {
  padding: 12px;
  border-radius: 10px;
  background: white;
  color: #71717a;
  font-weight: 750;
}

.shift-card em {
  font-style: normal;
  color: #71717a;
  text-align: center;
}

.availability-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.availability-chips button {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: white;
  font: inherit;
  font-weight: 750;
}

.availability-chips .active {
  color: white;
  background: var(--try-teal);
  border-color: var(--try-teal);
}

.settings-save {
  margin: 32px 0 20px;
}

.earnings-card {
  padding: 24px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #15998d, #087d72);
}

.earnings-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.earnings-card > strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 20px;
}

.earnings-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.earnings-card span,
.earnings-card b {
  display: block;
}

.earnings-card b {
  margin-top: 8px;
  font-size: 1.1rem;
}

.earnings-note {
  margin: 16px 0;
  padding: 13px 16px;
  color: #92400e;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-weight: 750;
}

.clinic-bottom-tabs {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 60;
  min-height: 74px;
  padding: 8px 10px;
  border: 0;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
}

.clinic-bottom-tabs[hidden] {
  display: none !important;
}

.clinic-bottom-tabs button {
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 56px;
  padding: 6px 22px;
  border-radius: 18px;
}

.clinic-bottom-tabs button.active {
  color: var(--try-teal);
}

.clinic-bottom-tabs button.active .tab-icon {
  width: 56px;
  height: 34px;
  border-radius: 999px;
  background: #e8f5f2;
}

.phone-frame.has-clinic-tabs .app-screen {
  padding-bottom: 132px;
}

@media (max-width: 520px) {
  .clinic-bottom-tabs {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .availability-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Clinic staff menu v20: JS positions this beside the clicked staff card. */
.staff-menu {
  bottom: auto;
  right: auto;
}
