/* ═══════════════════════════════════════════════
   Portal VF · área do paciente e painel admin
   Mesma paleta e tipografia do site.
   ═══════════════════════════════════════════════ */

:root {
  --wine-deep: #401216;
  --wine: #63333A;
  --caramel: #9C7961;
  --cream: #FFEDDA;
  --blush: #D5BCAD;
  --ink: #2b1013;
  --ink-soft: #5d4a44;
  --paper: #fdf6ec;
  --ok: #3e6b52;
  --ok-soft: #e2efe6;
  --line: rgba(99, 51, 58, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", sans-serif;
  --radius: 18px;
  --shadow-soft: 0 20px 60px rgba(64, 18, 22, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(213, 188, 173, 0.28), transparent 60%),
    var(--paper);
  min-height: 100svh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a, button, .btn, [role="button"] { touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.topbar :focus-visible, .highlight-card :focus-visible, .btn-primary:focus-visible { outline-color: var(--blush); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--wine-deep); line-height: 1.2; }

.container { width: min(1020px, 94vw); margin-inline: auto; }

/* ── Topbar ─────────────────────────────────── */

.topbar {
  background: var(--wine-deep);
  color: var(--cream);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 30px rgba(64, 18, 22, 0.25);
}

.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--cream); }

.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--cream); color: var(--wine-deep);
  font-family: var(--font-display); font-style: italic; font-size: 0.95rem;
  flex-shrink: 0;
}

.brand-text { line-height: 1.2; }
.brand-text strong { font-weight: 500; font-size: 0.95rem; display: block; }
.brand-text small { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

.topbar-actions { display: flex; align-items: center; gap: 0.9rem; }

.top-link {
  color: var(--cream); text-decoration: none; font-size: 0.85rem;
  opacity: 0.85; letter-spacing: 0.04em; border: none; background: none;
  cursor: pointer; font-family: var(--font-body);
}
.top-link:hover { opacity: 1; text-decoration: underline; }

/* ── Botões ─────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.03em; padding: 0.85rem 1.7rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: btn-spin 0.7s linear infinite;
}
.btn-primary.is-loading::after { color: var(--cream); }
.btn-ghost.is-loading::after, .btn-danger.is-loading::after { color: var(--wine-deep); }

@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-primary { background: var(--wine-deep); color: var(--cream); box-shadow: 0 10px 26px rgba(64, 18, 22, 0.28); }
.btn-primary:hover:not(:disabled) { background: var(--wine); }
.btn-ghost { color: var(--wine-deep); border-color: var(--line); background: transparent; }
.btn-ghost:hover:not(:disabled) { border-color: var(--wine); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
.btn-danger { color: var(--wine); border-color: var(--line); background: transparent; }
.btn-danger:hover:not(:disabled) { border-color: var(--wine); background: rgba(99, 51, 58, 0.06); }
.btn-block { width: 100%; }

/* ── Auth ───────────────────────────────────── */

.auth-wrap { display: grid; place-items: center; min-height: calc(100svh - 70px); padding: 2.5rem 0; }

.auth-card {
  width: min(430px, 94vw);
  background: #fff;
  border: 1px solid rgba(156, 121, 97, 0.22);
  border-radius: 999px 999px var(--radius) var(--radius);
  padding: 3.2rem 2.2rem 2.4rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.auth-seal {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: var(--wine-deep); color: var(--cream);
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
}

.auth-card h1 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.auth-card > p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.6rem; }

.tabs { display: flex; gap: 0.4rem; background: var(--cream); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }

.tab {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft); padding: 0.6rem 0.4rem; border-radius: 999px;
  transition: background 0.3s, color 0.3s;
}
.tab.is-active { background: var(--wine-deep); color: var(--cream); }

/* ── Formulários ────────────────────────────── */

.field { text-align: left; margin-bottom: 1rem; }

.field label {
  display: block; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wine); margin-bottom: 0.35rem;
}

.field input, .field textarea {
  width: 100%; padding: 0.85rem 1.05rem;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(156, 121, 97, 0.28);
  border-radius: 13px; transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(99, 51, 58, 0.10);
}

.field-password { position: relative; }
.field-password input { padding-right: 2.9rem; }

.field-password-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}
.field-password-toggle:hover { color: var(--wine); background: rgba(99, 51, 58, 0.06); }
.field-password-toggle svg { width: 20px; height: 20px; }
.field-password-toggle .icon-eye-off { display: none; }
.field-password-toggle.is-visible .icon-eye { display: none; }
.field-password-toggle.is-visible .icon-eye-off { display: block; }

.form-error {
  display: none; background: rgba(99, 51, 58, 0.08); color: var(--wine);
  font-size: 0.85rem; border-radius: 10px; padding: 0.65rem 0.9rem; margin-bottom: 1rem;
}
.form-error.is-visible { display: block; }

.hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1rem; }

/* ── Layout do app ──────────────────────────── */

.app { padding: 2.2rem 0 5.5rem; }

.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.app-head h1 em { font-style: italic; color: var(--caramel); }
.app-head p { color: var(--ink-soft); font-size: 0.92rem; }

.nav-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.8rem;
  overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft); padding: 0.6rem 1.25rem; border-radius: 999px;
  white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-tab.is-active { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--cream); }
.nav-tab:active { transform: scale(0.96); }

.nav-tab .pill {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--caramel);
  color: #fff; font-size: 0.7rem; font-weight: 600;
}

.panel { display: none; }
.panel.is-active { display: block; animation: panel-in 0.4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.p-card {
  background: #fff; border: 1px solid rgba(156, 121, 97, 0.2);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 8px 30px rgba(64, 18, 22, 0.06); margin-bottom: 1.1rem;
}

.p-card h2 { font-size: 1.15rem; margin-bottom: 0.9rem; }

.highlight-card {
  background: linear-gradient(120deg, var(--wine-deep), var(--wine));
  color: var(--cream); border: none;
}
.highlight-card h2, .highlight-card strong { color: var(--cream); }
.highlight-card .muted { color: rgba(255, 237, 218, 0.75); }

.muted { color: var(--ink-soft); font-size: 0.9rem; }

/* ── Chips de escolha ───────────────────────── */

.chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip {
  border: 1.5px solid rgba(156, 121, 97, 0.3); background: var(--paper);
  color: var(--ink); cursor: pointer; font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 400; padding: 0.55rem 1rem;
  border-radius: 999px; transition: all 0.25s var(--ease);
}
.chip:hover { border-color: var(--caramel); transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(0.96); }
.chip.is-selected { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--cream); font-weight: 500; }
.chip.is-day { display: flex; flex-direction: column; align-items: center; min-width: 64px; line-height: 1.25; padding: 0.5rem 0.8rem; }
.chip.is-day small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }

.day-scroll { display: flex; gap: 0.55rem; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.day-scroll .chip.is-day { scroll-snap-align: start; }

/* ── Listas de sessões ──────────────────────── */

.appt { display: flex; align-items: center; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.appt:last-child { border-bottom: none; }

.appt-when { min-width: 130px; }
.appt-when strong { display: block; font-weight: 500; color: var(--wine-deep); }
.appt-when span { font-size: 0.82rem; color: var(--ink-soft); }

.appt-who { flex: 1; min-width: 140px; }
.appt-who strong { font-weight: 500; }
.appt-who span { display: block; font-size: 0.82rem; color: var(--ink-soft); }

.appt-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 999px;
}
.badge-pendente { background: rgba(156, 121, 97, 0.16); color: var(--caramel); }
.badge-confirmada { background: var(--ok-soft); color: var(--ok); }
.badge-cancelada { background: rgba(99, 51, 58, 0.10); color: var(--wine); }

.empty { text-align: center; color: var(--ink-soft); padding: 2.2rem 1rem; font-size: 0.92rem; }
.empty .glyph { display: block; font-size: 1.6rem; color: var(--caramel); margin-bottom: 0.5rem; }

/* ── Chat ───────────────────────────────────── */

.chat-box {
  display: flex; flex-direction: column; gap: 0.55rem;
  max-height: 420px; overflow-y: auto; padding: 0.4rem 0.2rem; margin-bottom: 1rem;
}

.bubble {
  max-width: 78%; padding: 0.7rem 1rem; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.5; word-break: break-word;
}
.bubble time { display: block; font-size: 0.68rem; opacity: 0.65; margin-top: 0.25rem; }
.bubble-me { align-self: flex-end; background: var(--wine-deep); color: var(--cream); border-bottom-right-radius: 5px; }
.bubble-them { align-self: flex-start; background: var(--cream); color: var(--ink); border-bottom-left-radius: 5px; }

.chat-form { display: flex; gap: 0.6rem; }
.chat-form input {
  flex: 1; padding: 0.85rem 1.05rem; font-family: var(--font-body); font-size: 1rem;
  background: var(--paper); border: 1.5px solid rgba(156, 121, 97, 0.28); border-radius: 999px;
}
.chat-form input:focus { outline: none; border-color: var(--wine); }

/* ── Lista de conversas (admin) ─────────────── */

.thread-item {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.85rem 0.4rem; border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
}
.thread-item:hover { background: rgba(213, 188, 173, 0.12); }
.thread-item:active { background: rgba(213, 188, 173, 0.2); }

.avatar {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--blush); color: var(--wine-deep);
  font-family: var(--font-display); font-style: italic; flex-shrink: 0;
}

.thread-info { flex: 1; min-width: 0; }
.thread-info strong { font-weight: 500; display: block; }
.thread-info span { display: block; font-size: 0.82rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Disponibilidade (admin) ────────────────── */

.avail-days { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.avail-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.55rem; margin-bottom: 1.3rem; }

/* ── Tabela simples (admin/pacientes) ───────── */

.list-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }

/* ── Visão geral (admin) ────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  background: #fff;
  border: 1px solid rgba(156, 121, 97, 0.2);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  box-shadow: 0 8px 30px rgba(64, 18, 22, 0.06);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stat:hover { transform: translateY(-3px); border-color: var(--caramel); }
.stat:active { transform: translateY(-1px) scale(0.98); }

.stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--wine-deep);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.stat.stat-attention { border-color: rgba(156, 121, 97, 0.55); background: var(--cream); }
.stat.stat-attention strong { color: var(--caramel); }

.card-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.card-head-row h2 { margin-bottom: 0; }

/* ocupação: uma coluna-medidor por dia (série única, tom da marca) */
.week-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
  align-items: end;
  padding-top: 0.4rem;
}

.wday {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.wval {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.wtrack {
  width: min(100%, 34px);
  height: 96px;
  border-radius: 8px;
  background: rgba(213, 188, 173, 0.32);
  overflow: hidden;
}

.wfill {
  width: 100%;
  height: 100%;
  background: var(--wine);
  border-radius: 6px 6px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}

.wday.is-today .wfill { background: var(--wine-deep); }
.wday.is-today .wlab { color: var(--wine-deep); font-weight: 600; }
.wday.is-off .wtrack { background: repeating-linear-gradient(45deg, rgba(213,188,173,0.22), rgba(213,188,173,0.22) 4px, transparent 4px, transparent 8px); }

.wlab {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Filtros e busca ────────────────────────── */

.filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.search-input {
  padding: 0.6rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(156, 121, 97, 0.28);
  border-radius: 999px;
  min-width: 200px;
}

.search-input:focus { outline: none; border-color: var(--wine); }

.date-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 1.2rem 0 0.2rem;
}

.date-head:first-child { margin-top: 0; }

.quick-replies {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.quick-replies .chip { font-size: 0.8rem; padding: 0.45rem 0.9rem; }

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wtrack { height: 72px; }
}

/* ── Fluxo de agendamento ───────────────────── */

.bsteps {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.bstep {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.bstep i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  font-style: normal;
  font-size: 0.78rem;
  transition: all 0.3s;
}

.bstep.is-active { opacity: 1; color: var(--wine-deep); }
.bstep.is-active i { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--cream); }
.bstep.is-done { opacity: 0.9; color: var(--ok); }
.bstep.is-done i { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

.month-sep {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--caramel);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.3rem 0;
}

.chip-slot { min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }

.slot-group { margin-bottom: 1.1rem; }

.slot-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 0.6rem;
}

.slot-group-title span { font-size: 0.95rem; }

.chip-skeleton {
  width: 76px;
  height: 38px;
  border-color: transparent;
  background: linear-gradient(90deg, rgba(213, 188, 173, 0.25), rgba(213, 188, 173, 0.5), rgba(213, 188, 173, 0.25));
  background-size: 200% 100%;
  animation: skeleton 1.2s linear infinite;
  pointer-events: none;
}

@keyframes skeleton { to { background-position: -200% 0; } }

.text-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--wine);
  text-decoration: underline;
}

.book-bar {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  width: min(660px, 94vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--wine-deep);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.75rem 0.8rem 0.75rem 1.6rem;
  box-shadow: 0 18px 50px rgba(64, 18, 22, 0.45);
  animation: bar-in 0.45s var(--ease);
}

@keyframes bar-in { from { opacity: 0; transform: translateX(-50%) translateY(24px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.book-bar-info { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.book-bar-info strong { font-weight: 500; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-bar-info span { font-size: 0.75rem; color: var(--blush); }

.book-bar .btn-primary { background: var(--cream); color: var(--wine-deep); box-shadow: none; flex-shrink: 0; }
.book-bar .btn-primary:hover:not(:disabled) { background: #fff7eb; }

.booking-success { text-align: center; padding: 2.6rem 1.8rem; }

.success-check {
  display: inline-block;
  color: var(--ok);
  margin-bottom: 1rem;
}

.success-check path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: check-draw 0.6s 0.2s var(--ease) forwards;
}

@keyframes check-draw { to { stroke-dashoffset: 0; } }

.booking-success h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.booking-success .muted { max-width: 42ch; margin-inline: auto; }
.booking-success .muted + .muted { margin-top: 0.4rem; }

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

@media (max-width: 640px) {
  .book-bar { padding-left: 1.1rem; }
  .book-bar .btn { padding: 0.75rem 1.2rem; font-size: 0.85rem; }
}

/* ── Toast ──────────────────────────────────── */

.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
  background: var(--wine-deep); color: var(--cream); font-size: 0.9rem;
  padding: 0.8rem 1.5rem; border-radius: 999px; box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: 90; max-width: 92vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsivo ─────────────────────────────── */

@media (max-width: 640px) {
  .app { padding-top: 1.5rem; }
  .p-card { padding: 1.2rem; }
  .appt-when { min-width: 105px; }
  .appt-actions { width: 100%; justify-content: flex-end; }
  .bubble { max-width: 88%; }
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
