/* Pitch showcase personalizer, receptionist handoff preview, and Clinic Admin Portal. */
.pitch-bar {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  font-family: "Inter", system-ui, sans-serif;
}
.pitch-launcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #141524;
  color: #f8f9ff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  box-shadow: 0 14px 36px rgba(15, 18, 45, .28);
  font-size: 12.5px;
}
.pitch-toggle {
  border: 0;
  background: none;
  color: inherit;
  padding: 5px 6px;
  font: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
.pitch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.pitch-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
}
.pitch-admin-link:hover { background: rgba(255, 255, 255, .22); }
.pitch-badge {
  background: var(--accent);
  color: var(--btn-ink, #fff);
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.pitch-badge[hidden] { display: none; }
.pitch-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(344px, calc(100vw - 32px));
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(101, 120, 238, .18);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(20, 26, 70, .24);
}
.pitch-panel[hidden] { display: none; }
.pitch-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.pitch-panel-head h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.pitch-close {
  border: 1px solid rgba(101, 120, 238, .22);
  background: #f5f6ff;
  color: var(--ink);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.pitch-sub {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
  margin-bottom: 14px;
}
.pitch-field {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--ink);
}
.pitch-field input {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(101, 120, 238, .24);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
  font-size: 12.5px;
  background: #f7f8ff;
  color: var(--ink);
}
.pitch-field input:focus {
  outline: 2px solid var(--accent-deep);
  background: #fff;
}
.pitch-palettes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  flex-wrap: wrap;
}
.pitch-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd0e6;
  padding: 0;
  cursor: pointer;
}
.pitch-swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink);
}
.pitch-color-input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(101, 120, 238, .25);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.pitch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pitch-actions .btn {
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  justify-content: center;
  border: 0;
  cursor: pointer;
}
.pitch-actions .btn-dark {
  background: #141524;
  color: #fff;
}
.pitch-actions .btn-dark:hover { background: #262840; }
.pitch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(101, 120, 238, .15);
  font-size: 11.5px;
}
.pitch-reset {
  border: 0;
  background: none;
  color: var(--soft);
  text-decoration: underline;
  padding: 0;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.pitch-foot .text-link {
  font-size: 11.5px;
  padding-bottom: 1px;
}

/* Receptionist & WhatsApp handoff card inside booking confirmation */
.handoff-preview {
  margin: 20px 0 8px;
  padding: 18px;
  border-radius: 18px;
  background: #f3f5ff;
  border: 1px solid rgba(101, 120, 238, .2);
  text-align: left;
}
.handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.handoff-head strong {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.handoff-pill {
  font-size: 10.5px;
  font-weight: 600;
  background: #141524;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}
.handoff-bubble {
  background: #fff;
  border: 1px solid rgba(101, 120, 238, .16);
  border-left: 4px solid #25d366;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
}
.handoff-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12.5px;
}

/* Clinic Admin Portal (practice-portal.html) */
.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.portal-stat {
  background: #fff;
  border: 1px solid rgba(101, 120, 238, .15);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(70, 85, 200, .06);
}
.portal-stat small {
  display: block;
  font-size: 12.5px;
  color: var(--soft);
  margin-bottom: 8px;
}
.portal-stat strong {
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--ink);
}
.portal-shell {
  background: #fff;
  border: 1px solid rgba(101, 120, 238, .16);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 40px rgba(70, 85, 200, .08);
}
.portal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(101, 120, 238, .15);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.portal-tab {
  border: 1px solid rgba(101, 120, 238, .22);
  background: #f5f6ff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.portal-tab[aria-selected="true"] {
  background: #141524;
  color: #fff;
  border-color: #141524;
}
.portal-list {
  display: grid;
  gap: 14px;
}
.portal-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(101, 120, 238, .15);
  border-radius: 18px;
  background: #f9faff;
}
.portal-row.is-live {
  background: #f1f4ff;
  border-color: var(--accent);
}
.portal-row h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}
.portal-row p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.5;
}
.portal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.portal-tag {
  font-size: 11.5px;
  background: #fff;
  border: 1px solid rgba(101, 120, 238, .2);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--ink);
}
.portal-tag.is-live-tag {
  background: var(--accent);
  color: var(--btn-ink, #fff);
  border-color: transparent;
  font-weight: 600;
}
.portal-tag.is-urgent-tag {
  background: #fff1e6;
  color: #b45309;
  border-color: #f4c89c;
  font-weight: 600;
}
.portal-status-btn {
  border: 1px solid rgba(101, 120, 238, .28);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.portal-status-btn[data-confirmed="true"] {
  background: #dff3e6;
  border-color: #8ccca4;
  color: #154d2b;
}
.wa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.wa-card {
  background: #f5f6ff;
  border: 1px solid rgba(101, 120, 238, .16);
  border-radius: 20px;
  padding: 20px;
}
.wa-card h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.wa-card > p {
  font-size: 12.5px;
  color: var(--soft);
  margin-bottom: 12px;
  line-height: 1.5;
}
.portal-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.portal-pillar {
  background: #fff;
  border: 1px solid rgba(101, 120, 238, .14);
  border-radius: 24px;
  padding: 28px;
}
.portal-pillar h2 {
  font-family: "Inter Tight", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.025em;
  margin-bottom: 10px;
}
.portal-pillar p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}
.lucent-banner {
  margin: 0 var(--gutter) clamp(56px, 7vw, 96px);
  padding: clamp(36px, 5vw, 60px);
  border-radius: 32px;
  background: linear-gradient(135deg, #141524 0%, #232747 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.15fr auto;
  gap: 28px;
  align-items: center;
}
.lucent-banner .eyebrow {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  margin-bottom: 14px;
}
.lucent-banner h2 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.06;
  letter-spacing: -.035em;
  max-width: 14em;
}
.lucent-banner p {
  margin-top: 12px;
  max-width: 42em;
  color: rgba(255, 255, 255, .8);
  font-size: 15.5px;
  line-height: 1.55;
}
.lucent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lucent-actions .btn-light {
  background: #fff;
  color: #141524;
  height: 48px;
}
.lucent-actions .btn-light:hover { background: #eef0ff; }
.lucent-actions .btn-ghost-dark {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) inset;
  height: 48px;
}
.lucent-actions .btn-ghost-dark:hover { background: rgba(255, 255, 255, .18); }
.lucent-site-link {
  color: rgba(255, 255, 255, .86);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 960px) {
  .portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-row { grid-template-columns: 1fr; gap: 12px; }
  .wa-grid { grid-template-columns: 1fr; }
  .portal-pillars { grid-template-columns: 1fr; }
  .lucent-banner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .pitch-bar { left: 12px; bottom: 82px; }
  .portal-shell { padding: 18px; }
}
@media print {
  .pitch-bar { display: none; }
}
