/* ==========================================================================
   Bloom Women's Health — Components: buttons, cards, forms, tables, modals
   File: assets/css/3-components.css
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out), color var(--dur), border-color var(--dur);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn::after {
  /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--sh-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(236, 92, 141, .42); }

.btn--teal {
  background: linear-gradient(115deg, var(--teal-500), var(--teal-700));
  color: #fff;
  box-shadow: var(--sh-glow-teal);
}
.btn--teal:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(35, 160, 148, .4); }

.btn--ghost {
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .btn--ghost { background: rgba(255, 255, 255, .08); }
.btn--ghost:hover { border-color: var(--rose-300); color: var(--rose-600); transform: translateY(-3px); background: var(--rose-50); }
html[data-theme="dark"] .btn--ghost:hover { background: rgba(236, 92, 141, .16); }

.btn--outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

.btn--dark {
  background: var(--plum-800);
  color: #fff;
}
.btn--dark:hover { background: var(--plum-900); transform: translateY(-3px); box-shadow: var(--sh-3); }

.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
@media (max-width: 480px) {
  .btn--lg {
    padding: .85rem 1.25rem;
    font-size: .95rem;
    white-space: normal;
    text-align: center;
  }
}
.btn--icon { padding: .6rem; width: 40px; height: 40px; }
.btn--block { width: 100%; }

.btn-icon {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease-out);
}
.btn-icon:hover { color: var(--rose-600); border-color: var(--rose-200); background: var(--rose-50); transform: translateY(-2px); }
.btn-icon svg { width: 16px; height: 16px; }
.btn-icon--danger:hover { color: #c02b3f; border-color: #f4c3ca; background: #fff0f2; }
.btn-icon--ok:hover { color: var(--teal-700); border-color: #b6e6e0; background: #eafaf8; }

/* Button press ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transform: scale(0);
  animation: rippleOut .6s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes rippleOut { to { transform: scale(3.2); opacity: 0; } }

/* ---------- Chips / badges / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .8rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--t-tiny);
  font-weight: 650;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.chip svg { width: 13px; height: 13px; }
.chip--rose { background: var(--rose-100); border-color: var(--rose-200); color: var(--rose-700); }
.chip--teal { background: #e3f7f4; border-color: #bce8e2; color: var(--teal-700); }
.chip--gold { background: #fdf3dd; border-color: #f0dfae; color: #8d6512; }
.chip--violet { background: #f0ecff; border-color: #ddd4ff; color: #5741b8; }
.chip--dark { background: var(--plum-800); color: #fff; border-color: transparent; }
html[data-theme="dark"] .chip--rose { background: rgba(236, 92, 141, .2); color: var(--rose-200); border-color: rgba(236, 92, 141, .35); }
html[data-theme="dark"] .chip--teal { background: rgba(35, 160, 148, .2); color: var(--teal-300); border-color: rgba(35, 160, 148, .35); }
html[data-theme="dark"] .chip--violet { background: rgba(132, 103, 227, .22); color: #cdbfff; border-color: rgba(132, 103, 227, .4); }
html[data-theme="dark"] .chip--gold { background: rgba(207, 154, 61, .2); color: var(--gold-300); border-color: rgba(207, 154, 61, .38); }

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  border-radius: var(--r-pill);
  font-size: var(--t-tiny);
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: .03em;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--pending   { background: #fdf3dd; color: #96690f; }
.status--confirmed { background: #e3f7f4; color: var(--teal-700); }
.status--completed { background: #e9f0ff; color: #2f4fa8; }
.status--cancelled { background: #ffeef1; color: #b8283d; }
.status--approved  { background: #e3f7f4; color: var(--teal-700); }
.status--rejected  { background: #ffeef1; color: #b8283d; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
  padding: clamp(1.25rem, 2.4vw, 1.9rem);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.card--hover:hover { transform: translateY(-7px); box-shadow: var(--sh-3); border-color: var(--rose-200); }
.card--glass {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-color: rgba(255, 255, 255, .7);
}
html[data-theme="dark"] .card--glass { background: rgba(34, 26, 40, .55); border-color: rgba(255, 255, 255, .1); }
.card--flat { box-shadow: none; background: var(--surface-2); }
.card--ink { background: var(--grad-ink); color: #fff; border-color: transparent; }
.card--ink h1, .card--ink h2, .card--ink h3, .card--ink h4 { color: #fff; }
.card--ink p { color: rgba(255, 255, 255, .78); }

.card__icon {
  width: 54px; height: 54px;
  border-radius: 17px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--rose-600);
  margin-bottom: var(--s-4);
  transition: transform var(--dur) var(--ease-spring), background var(--dur);
}
.card__icon svg { width: 25px; height: 25px; }
.card--hover:hover .card__icon { transform: rotate(-7deg) scale(1.09); }
.card__icon--teal { background: #e3f7f4; color: var(--teal-600); }
.card__icon--violet { background: #f0ecff; color: var(--violet-500); }
.card__icon--gold { background: #fdf3dd; color: var(--gold-500); }

.card h3 + p, .card h4 + p { margin-top: .6rem; }
.card__meta { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* 3D tilt wrapper */
.tilt { perspective: 1000px; }
.tilt__inner {
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.tilt__layer { transform: translateZ(38px); }

/* Number / stat card */
.stat {
  text-align: center;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label { margin-top: .5rem; font-size: var(--t-small); color: var(--ink-mute); font-weight: 600; letter-spacing: .02em; }

/* Feature list */
.tick-list { display: flex; flex-direction: column; gap: .7rem; }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-soft); }
.tick-list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .28rem; color: var(--teal-500); }
.tick-list--rose svg { color: var(--rose-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--s-4) var(--s-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .42rem; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--t-small);
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.field label .req { color: var(--rose-500); }
.field .hint { font-size: var(--t-tiny); color: var(--ink-mute); }

.input, .select, .textarea {
  width: 100%;
  padding: .82rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background var(--dur), transform var(--dur) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-mute); opacity: .8; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--rose-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 4px rgba(236, 92, 141, .16);
  transform: translateY(-1px);
}
.textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b7a91' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 17px;
  padding-right: 2.6rem;
}
html[data-theme="dark"] .input, html[data-theme="dark"] .select, html[data-theme="dark"] .textarea {
  background: var(--surface-2);
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: #e05268; box-shadow: 0 0 0 4px rgba(224, 82, 104, .14); }
.field__error {
  font-size: var(--t-tiny);
  color: #c02b3f;
  font-weight: 600;
  min-height: 0;
  display: none;
}
.field.has-error .field__error { display: block; animation: shakeIn .4s var(--ease-out); }
@keyframes shakeIn {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 2.7rem; }
.input-group .input-icon {
  position: absolute;
  left: .95rem;
  width: 18px; height: 18px;
  color: var(--ink-mute);
  pointer-events: none;
}
.input-group .input-suffix {
  position: absolute;
  right: .5rem;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: var(--ink-mute);
}
.input-group .input-suffix:hover { color: var(--rose-600); background: var(--accent-soft); }
.input-group .input-suffix svg { width: 17px; height: 17px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: .12rem;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: grid; place-items: center;
  transition: all var(--dur) var(--ease-out);
}
.check__box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.5); transition: all var(--dur) var(--ease-spring); }
.check input:checked + .check__box { background: var(--grad-brand); border-color: transparent; }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.check a { color: var(--rose-600); text-decoration: underline; text-underline-offset: 2px; }

/* Radio cards (time slots, service picker) */
.radio-cards { display: grid; gap: var(--s-3); }
.radio-cards--auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card__body {
  height: 100%;
  padding: .95rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: all var(--dur) var(--ease-out);
}
.radio-card__body strong { font-size: .95rem; }
.radio-card__body span { font-size: var(--t-tiny); color: var(--ink-mute); }
.radio-card:hover .radio-card__body { border-color: var(--rose-300); transform: translateY(-3px); box-shadow: var(--sh-2); }
.radio-card input:checked + .radio-card__body {
  border-color: var(--rose-500);
  background: var(--rose-50);
  box-shadow: 0 0 0 4px rgba(236, 92, 141, .14);
}
html[data-theme="dark"] .radio-card input:checked + .radio-card__body { background: rgba(236, 92, 141, .14); }
.radio-card input:focus-visible + .radio-card__body { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.radio-card input:disabled + .radio-card__body { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Strength meter */
.meter { height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; margin-top: .45rem; }
.meter__bar { height: 100%; width: 0; border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out), background var(--dur); }

/* Step wizard */
.steps { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: var(--s-6); }
.step {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem .5rem .5rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-mute);
  transition: all var(--dur) var(--ease-out);
}
.step__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: var(--t-tiny);
  font-weight: 700;
}
.step.is-active { border-color: var(--rose-300); color: var(--rose-700); box-shadow: var(--sh-2); }
.step.is-active .step__dot { background: var(--grad-brand); color: #fff; border-color: transparent; }
.step.is-done { color: var(--teal-700); border-color: #bce8e2; }
.step.is-done .step__dot { background: var(--teal-500); color: #fff; border-color: transparent; }
.step__line { width: 22px; height: 1.5px; background: var(--line-strong); border-radius: 2px; }
@media (max-width: 700px) {
  .step span.step__label { display: none; }
  .step { padding: .4rem; }
  .step__line { width: 12px; }
}
@media (max-width: 480px) {
  .steps { gap: .25rem; margin-bottom: var(--s-5); }
  .step { padding: .32rem; }
  .step__dot { width: 26px; height: 26px; font-size: .7rem; }
  .step__line { width: 8px; }
}

/* ---------- Tables ---------- */
.table-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-shadow: var(--sh-1);
}
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
table.data { min-width: 640px; font-size: .9rem; }
table.data thead th {
  text-align: left;
  padding: .95rem 1.1rem;
  background: var(--surface-2);
  font-family: var(--font-sans);
  font-size: var(--t-tiny);
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: middle;
}
table.data tbody tr { transition: background var(--dur); animation: rowIn .45s var(--ease-out) backwards; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--ink); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

.empty-state {
  padding: var(--s-8) var(--s-5);
  text-align: center;
  color: var(--ink-mute);
}
.empty-state svg { width: 54px; height: 54px; margin: 0 auto var(--s-4); color: var(--rose-300); }
.empty-state h4 { color: var(--ink); margin-bottom: .4rem; }

/* ---------- Tabs & accordion ---------- */
.tabs { display: flex; gap: .3rem; padding: .3rem; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.tab {
  padding: .55rem 1.05rem;
  border-radius: var(--r-pill);
  font-size: .88rem;
  font-weight: 620;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all var(--dur) var(--ease-out);
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--rose-600); box-shadow: var(--sh-1); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }

.accordion { display: flex; flex-direction: column; gap: .7rem; }
.acc {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.acc.is-open { border-color: var(--rose-200); box-shadow: var(--sh-2); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.05rem 1.2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: .98rem;
  color: var(--ink);
}
.acc__head:hover { color: var(--rose-600); }
.acc__icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--rose-600);
  transition: transform var(--dur) var(--ease-spring), background var(--dur);
}
.acc__icon svg { width: 15px; height: 15px; }
.acc.is-open .acc__icon { transform: rotate(135deg); background: var(--grad-brand); color: #fff; }
.acc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out);
}
.acc__body-inner { padding: 0 1.2rem 1.2rem; color: var(--ink-soft); font-size: .94rem; }

/* ---------- Modal / drawer dialog ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--s-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(27, 18, 32, .58); backdrop-filter: blur(6px); }
.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(27, 18, 32, .4);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transform: translateY(24px) scale(.96);
  transition: transform .45s var(--ease-spring);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close { position: absolute; top: .9rem; right: .9rem; }
.modal__head { margin-bottom: var(--s-5); padding-right: 2.4rem; }
.modal--wide .modal__panel { width: min(900px, 100%); }

/* ---------- Toast ---------- */
#toast-host {
  position: fixed;
  top: calc(var(--nav-h) + 18px);
  right: clamp(1rem, 3vw, 2rem);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  pointer-events: none;
  max-width: min(380px, calc(100vw - 2rem));
}
@media (max-width: 480px) {
  #toast-host {
    left: 1rem;
    right: 1rem;
    max-width: none;
    top: calc(var(--nav-h) + 8px);
  }
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.05rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-3);
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink);
  animation: toastIn .45s var(--ease-spring);
  border-left: 4px solid var(--rose-500);
}
.toast.is-out { animation: toastOut .35s var(--ease-out) forwards; }
.toast--ok { border-left-color: var(--teal-500); }
.toast--warn { border-left-color: var(--gold-400); }
.toast--err { border-left-color: #e05268; }
.toast svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: .12rem; color: var(--rose-500); }
.toast--ok svg { color: var(--teal-500); }
.toast--warn svg { color: var(--gold-500); }
.toast--err svg { color: #e05268; }
.toast__body strong { display: block; font-size: .92rem; }
.toast__body span { color: var(--ink-mute); font-size: .82rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px) scale(.94); } }

/* ---------- Avatar ---------- */
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  flex-shrink: 0;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
img.avatar { object-fit: cover; }
.avatar--lg { width: 68px; height: 68px; font-size: 1.4rem; }
.avatar--sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar--teal { background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); }
.avatar--violet { background: linear-gradient(135deg, var(--violet-400), var(--violet-500)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Star rating ---------- */
.stars { display: inline-flex; gap: .15rem; color: var(--gold-400); }
.stars svg { width: 16px; height: 16px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label {
  cursor: pointer;
  color: var(--line-strong);
  transition: transform var(--dur) var(--ease-spring), color var(--dur);
}
.rating-input label svg { width: 30px; height: 30px; }
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--gold-400); }
.rating-input label:hover { transform: scale(1.16); }

/* ---------- Progress ring / bars ---------- */
.bar-row { display: flex; flex-direction: column; gap: .4rem; }
.bar-row__top { display: flex; justify-content: space-between; font-size: var(--t-small); font-weight: 600; color: var(--ink-soft); }
.bar { height: 9px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--grad-brand); width: 0; transition: width 1.2s var(--ease-out); }

/* Sparkline / chart canvas */
.chart-box { position: relative; width: 100%; height: 220px; }
.chart-box canvas { width: 100%; height: 100%; }

/* ---------- Misc ---------- */
.kbd {
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: .12rem .4rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-soft);
}
.note {
  display: flex;
  gap: .7rem;
  padding: .95rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-400);
  font-size: .9rem;
  color: var(--ink-soft);
}
.note svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--teal-500); margin-top: .15rem; }
.note--warn { border-left-color: var(--gold-400); }
.note--warn svg { color: var(--gold-500); }
.note--rose { border-left-color: var(--rose-400); }
.note--rose svg { color: var(--rose-500); }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- Google Maps & Clinic Location Showcase ---------- */
.location-showcase-card {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  position: relative;
  overflow: hidden;
}

.location-showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: stretch;
}

@media (max-width: 960px) {
  .location-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.location-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  color: var(--ink);
  line-height: 1.25;
}

.location-doctor-meta {
  font-size: .92rem;
  color: var(--teal-700);
}
html[data-theme="dark"] .location-doctor-meta {
  color: #5eead4;
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.location-info-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.location-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--rose-600);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: .15rem;
}
.location-info-icon svg {
  width: 18px;
  height: 18px;
}

.location-info-heading {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}

.location-info-text {
  font-size: .86rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
.location-info-text a {
  color: inherit;
  font-weight: 600;
}
.location-info-text a:hover {
  color: var(--rose-600);
  text-decoration: underline;
}

.landmark-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .4rem;
  padding: .2rem .65rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  background: #fdf3dd;
  color: #8c5b05;
  border: 1px solid rgba(220, 150, 20, .25);
}
html[data-theme="dark"] .landmark-pill {
  background: rgba(245, 158, 11, .15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .25);
}
.landmark-pill svg {
  width: 13px;
  height: 13px;
}

/* Map Embed Container */
.location-map-wrap {
  position: relative;
  width: 100%;
  min-height: 380px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: var(--surface-3);
}

.location-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

/* Link helpers */
.link-inline {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rose-300);
  text-underline-offset: 3px;
  transition: color var(--dur), text-decoration-color var(--dur);
}
.link-inline:hover {
  color: var(--rose-600);
  text-decoration-color: var(--rose-600);
}

.badge-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .65rem;
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
  transition: all var(--dur) var(--ease-out);
}
.badge-link:hover {
  background: var(--accent-soft);
  color: var(--rose-600);
  border-color: var(--rose-300);
  transform: translateY(-1px);
}
.badge-link--sm {
  font-size: .74rem;
  padding: .15rem .55rem;
}

.footer__map-link {
  color: inherit;
  font-weight: 500;
  transition: color var(--dur);
}
.footer__map-link:hover {
  color: var(--rose-500);
  text-decoration: underline;
}



