/* ═══════════════════════════════════════════════════════════
   Pousada SaaS — Design System (hospitalidade)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #f6f1e8;
  --bg-soft: #efe8dc;
  --bg-elev: #fffcf7;
  --ink: #1c2b26;
  --ink-soft: #3d4f48;
  --muted: #6b7c74;
  --line: #ddd3c4;
  --line-soft: #ebe3d6;

  --primary: #2F6F63;
  --primary-hover: #255a50;
  --primary-soft: #e4f0ed;
  --accent: #2F6F63;
  --accent-soft: #e4f0ed;
  --accent-hover: #255a50;

  --danger: #9b3d3d;
  --danger-soft: #fceeee;
  --warn: #8a6520;
  --warn-soft: #faf0dc;
  --ok: #2a6b52;
  --ok-soft: #e4f2eb;
  --info: #3a6678;

  --sidebar-bg: linear-gradient(175deg, #0a221d 0%, #1a4a3f 55%, #0f332c 100%);
  --sidebar-text: rgba(255, 255, 255, 0.82);
  --sidebar-muted: rgba(255, 255, 255, 0.45);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(26, 36, 33, 0.06);
  --shadow: 0 8px 32px rgba(26, 36, 33, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 36, 33, 0.12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --sidebar-w: 272px;
  --content-max: 1120px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(184, 149, 106, 0.12) 0%, transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(26, 61, 52, 0.06) 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
h1 { font-size: clamp(1.65rem, 2vw + 1rem, 2.15rem); line-height: 1.2; }
h2 { font-size: clamp(1.15rem, 1vw + 0.85rem, 1.35rem); font-weight: 600; }

.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.5rem;
}
code {
  background: var(--accent-soft);
  color: var(--ink-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, monospace;
}

/* ── Ícones ───────────────────────────────────────────── */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-xs { width: 0.85rem; height: 0.85rem; }

/* ── Flash ────────────────────────────────────────────── */
.flash-stack {
  position: fixed; top: 1rem; right: 1rem; z-index: 100;
  display: grid; gap: 0.5rem; max-width: 380px;
}
.flash {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-weight: 500;
  font-size: 0.92rem;
}
.flash-danger { border-left-color: var(--danger); background: var(--danger-soft); }
.flash-warning, .flash-warn { border-left-color: var(--warn); background: var(--warn-soft); }
.flash-success { border-left-color: var(--ok); background: var(--ok-soft); }
.flash-info { border-left-color: var(--info); }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; background: #fff; border-color: var(--accent); color: var(--ink); }
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26, 61, 52, 0.25);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-secondary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-warn { background: var(--warn-soft); border-color: #e0c48a; color: var(--warn); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }

/* ── Formulários ──────────────────────────────────────── */
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.form input, .form select, .form textarea,
.filters input, .filters select {
  font: inherit;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus,
.filters input:focus, .filters select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.2);
}
.form .check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  width: auto;
  margin: 0.15rem 0 0.35rem;
}
.form .check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.form .check span { line-height: 1.2; }
.form-grid fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1rem;
  background: var(--bg-elev);
}
.form-grid legend { padding: 0 0.5rem; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* Form sheet (cadastros) */
.form-sheet {
  width: 100%;
  max-width: var(--content-max);
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.5rem;
}

.form-section {
  margin-bottom: 0;
  padding: 0;
  overflow: visible;
  border: none;
  box-shadow: none;
  background: transparent;
}
.form-section.panel {
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
}
.section-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.section-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.section-icon .icon { width: 1.25rem; height: 1.25rem; }
.section-head h2 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.section-hint { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--muted); font-weight: 400; }

/* Grid 12 colunas — cada linha soma 12 (margens alinhadas) */
.form-grid-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.form-grid-row,
.form-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 1.15rem;
  width: 100%;
  align-items: start;
}
.form-grid-row .g-1,
.form-grid-12 .g-1 { grid-column: span 1; }
.form-grid-row .g-2,
.form-grid-12 .g-2 { grid-column: span 2; }
.form-grid-row .g-3,
.form-grid-12 .g-3 { grid-column: span 3; }
.form-grid-row .g-4,
.form-grid-12 .g-4 { grid-column: span 4; }
.form-grid-row .g-5,
.form-grid-12 .g-5 { grid-column: span 5; }
.form-grid-row .g-6,
.form-grid-12 .g-6 { grid-column: span 6; }
.form-grid-row .g-7,
.form-grid-12 .g-7 { grid-column: span 7; }
.form-grid-row .g-8,
.form-grid-12 .g-8 { grid-column: span 8; }
.form-grid-row .g-10,
.form-grid-12 .g-10 { grid-column: span 10; }
.form-grid-row .g-12,
.form-grid-12 .g-12 { grid-column: span 12; }

.fld {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  min-width: 0;
}
.fld input,
.fld textarea,
.fld select {
  width: 100%;
  font: inherit;
  padding: 0.68rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.fld input:focus,
.fld textarea:focus,
.fld select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.18);
}
.fld select { cursor: pointer; }

/* Checkboxes dentro do grid */
.form-checks { align-items: center; }
.form-grid-row .check,
.form-grid-12 .check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin: 0;
  min-width: 0;
}
.form-grid-row .check input[type="checkbox"],
.form-grid-12 .check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-checks-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  padding-top: 0.35rem;
  align-items: center;
}
.form-checks-inline .check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}
.form-checks-inline .check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.field-hint {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.camas-editor { display: grid; gap: 0.75rem; }
.camas-list { display: grid; gap: 0.65rem; }
.camas-row .form-grid-row { align-items: end; }
.camas-row-actions {
  display: grid;
  gap: 0.4rem;
  align-content: end;
}
.field-label-spacer {
  display: block;
  height: 1.25rem;
}
.camas-toolbar { padding-top: 0.15rem; }
.camas-resumo { margin: 0; }
.camas-sugestao { margin: 0; color: var(--primary); }

/* ── Nova reserva (inteligente) ───────────────────────── */
.reserva-form { max-width: none; }
.reserva-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.15rem;
  align-items: start;
}
.reserva-main.form-sheet { max-width: none; margin-bottom: 0; }
.reserva-diarias-box {
  display: grid;
  gap: 0.35rem;
  align-content: end;
  padding-bottom: 0.15rem;
}
.field-label, .reserva-diarias-box .field-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.reserva-diarias {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--primary);
  line-height: 1.1;
}
.reserva-preview {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
}
.preview-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.preview-head h2 { margin: 0; font-size: 1.15rem; }
.preview-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.preview-dl > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.5rem;
  align-items: baseline;
}
.preview-dl dt {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.preview-dl dd { margin: 0; font-weight: 600; font-size: 0.9rem; }
.preview-dl .preview-total dd {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--primary);
}
.preview-alert {
  margin: 1rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  line-height: 1.4;
}
.preview-alert[data-kind="ok"] { background: var(--ok-soft); color: var(--ok); }
.preview-alert[data-kind="warn"] { background: var(--warn-soft, #f7e2c4); color: #8a5a00; }
.preview-alert[data-kind="error"] { background: var(--danger-soft, #fde8e8); color: var(--danger); }

.reserva-status-msg {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  min-height: 1.25rem;
}
.reserva-status-msg[data-kind="ok"] { color: var(--ok); }
.reserva-status-msg[data-kind="warn"] { color: #8a5a00; }
.reserva-status-msg[data-kind="error"] { color: var(--danger); }
.reserva-status-msg[data-kind="loading"] { color: var(--muted); }

.tipo-opcoes { display: grid; gap: 0.55rem; }
.tipo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.tipo-card:hover { border-color: var(--accent); }
.tipo-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.12);
  background: var(--primary-soft);
}
.tipo-card-off {
  padding: 0.75rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: grid;
  gap: 0.15rem;
}
.tipo-card-main { display: grid; gap: 0.15rem; }
.tipo-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; font-size: 0.82rem; }

.quarto-picker { margin-top: 0.85rem; }
.quarto-opcoes { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.45rem; }
.quarto-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}
.quarto-chip.is-selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  font-weight: 600;
}

.hospede-sugestoes {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-sm);
  max-height: 220px;
  overflow: auto;
}
.hospede-sugestoes li { border-bottom: 1px solid var(--line-soft); }
.hospede-sugestoes li:last-child { border-bottom: 0; }
.hospede-sugestoes button {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
}
.hospede-sugestoes button:hover { background: var(--primary-soft); }
.hospede-sugestoes span { font-size: 0.8rem; color: var(--muted); }
.hospede-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-top: 0.5rem;
}

.form-fields {
  display: grid;
  gap: 1rem 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-fields .span-2 { grid-column: 1 / -1; }
.form-fields label { margin: 0; min-width: 0; }

.field-cep .field-hint {
  display: block;
  margin-top: 0.25rem;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 0;
}
.field-cep .field-hint[data-kind="ok"] { color: var(--ok); }
.field-cep .field-hint[data-kind="error"] { color: var(--danger); }
.field-cep .field-hint[data-kind="loading"] { color: var(--warn); }

.tiny { font-size: 0.85rem; margin: 0.85rem 0 0; }
.panel-warn { border-color: #e8d4a8; background: var(--warn-soft); }
.alert-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.dup-list { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.form-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-lg);
  width: 100%;
}

/* ── Shell / Sidebar ──────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 1.35rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.25rem 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.brand-mark .icon { width: 1.4rem; height: 1.4rem; stroke-width: 1.5; }
.brand-mark-platform { background: #fff; color: var(--primary); }
.brand-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.brand small { display: block; color: var(--sidebar-muted); font-size: 0.78rem; margin-top: 0.1rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.nav-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 0.5rem 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
  border-radius: 10px;
  color: var(--sidebar-text);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
.nav-link.is-active {
  background: rgba(184, 149, 106, 0.18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-icon { opacity: 0.85; display: flex; }
.nav-link.is-active .nav-icon { color: var(--accent); opacity: 1; }
.nav-label { flex: 1; }
.nav-ext { opacity: 0.5; }

.sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sidebar-user { display: flex; align-items: center; gap: 0.65rem; }
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.user-name { font-size: 0.88rem; color: rgba(255,255,255,0.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sidebar-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
}
.sidebar-logout:hover { color: #fff; }

.support-banner {
  background: rgba(184, 149, 106, 0.2);
  color: #f5e6cc;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.main {
  padding: 1.75rem clamp(1.25rem, 3vw, 2.75rem) 3rem;
  min-width: 0;
  overflow-x: hidden;
}

/* ── Page header ──────────────────────────────────────── */
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.page-header-text { flex: 1; min-width: 200px; }
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.page-back:hover { color: var(--primary); text-decoration: none; }
.actions { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ── Stats ────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat strong {
  font-size: 1.55rem;
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stat-accent {
  border-color: rgba(26, 61, 52, 0.22);
  background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%);
}
.stat-ok strong { color: var(--ok); }
.stat-warn {
  border-color: rgba(138, 101, 32, 0.28);
  background: linear-gradient(135deg, #fff 0%, var(--warn-soft) 100%);
}
.stat-warn strong { color: var(--warn); }

/* ── Dashboard (Início) ───────────────────────────────── */
.dash {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  max-width: 1200px;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.dash-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.35rem);
  letter-spacing: -0.03em;
}

.dash-sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.dash-kpi {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(221, 211, 196, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.dash-kpi:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 111, 99, 0.22);
}

.dash-kpi-featured {
  background: linear-gradient(145deg, #fff 0%, rgba(228, 240, 237, 0.65) 100%);
  border-color: rgba(47, 111, 99, 0.25);
}

.dash-kpi-warn {
  background: linear-gradient(145deg, #fff 0%, rgba(250, 240, 220, 0.75) 100%);
  border-color: rgba(138, 101, 32, 0.25);
}

.dash-kpi-warn .dash-kpi-value { color: var(--warn); }

.dash-kpi-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.dash-kpi-warn .dash-kpi-icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.dash-kpi-body { min-width: 0; }

.dash-kpi-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.dash-kpi-value {
  display: block;
  font-size: clamp(1.25rem, 1.2vw + 0.85rem, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.dash-kpi-dim {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
}

.dash-kpi-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 0.85rem;
}

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

.dash-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 211, 196, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.dash-card-head-inline {
  align-items: center;
  margin-bottom: 0.95rem;
}

.dash-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.dash-card-desc {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.dash-card-stat {
  text-align: right;
  flex-shrink: 0;
}

.dash-card-stat span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-card-stat strong {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.dash-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: end;
  min-height: 180px;
  padding-top: 0.35rem;
}

.dash-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.dash-bar-track {
  width: 100%;
  max-width: 44px;
  height: 132px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(235, 227, 214, 0.35) 0%, rgba(235, 227, 214, 0.15) 100%);
  padding: 0 4px 4px;
}

.dash-bar-fill {
  width: 100%;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(47, 111, 99, 0.55) 0%, var(--primary) 100%);
  min-height: 6px;
  transition: height 0.35s ease;
}

.dash-bar-fill-today {
  background: linear-gradient(180deg, rgba(184, 149, 106, 0.75) 0%, #b8956a 100%);
}

.dash-bar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-bar-value {
  font-size: 0.68rem;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dash-empty-chart,
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 160px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.45);
}

.dash-empty-chart p,
.dash-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.dash-occupancy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.dash-ring {
  --ring-size: 148px;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) calc(var(--pct, 0) * 1%),
    rgba(235, 227, 214, 0.85) 0
  );
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 99, 0.08);
}

.dash-ring-inner {
  width: calc(var(--ring-size) - 34px);
  height: calc(var(--ring-size) - 34px);
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.dash-ring-inner strong {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-ring-inner span {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 0.55rem;
}

.dash-metrics li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(246, 241, 232, 0.55);
  font-size: 0.88rem;
}

.dash-metrics li span { color: var(--muted); }
.dash-metrics li strong { font-size: 0.95rem; }

.dash-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.dash-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.dash-list-timeline .dash-list-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
}

.dash-list-item:hover {
  background: rgba(246, 241, 232, 0.65);
  border-color: var(--line-soft);
}

.dash-list-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.dash-list-main code {
  font-size: 0.82rem;
  width: fit-content;
}

.dash-list-main span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-list-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-list-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.dash-list-link:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-row-lists { grid-template-columns: 1fr; }
  .dash-list-item,
  .dash-list-timeline .dash-list-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .dash-bars { min-height: 150px; }
  .dash-bar-track { height: 110px; }
}

/* ── Perfil do hóspede ────────────────────────────────── */
.hp {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1160px;
}

.hp .page-back { margin-bottom: 0; }

/* Hero */
.hp-hero {
  background: linear-gradient(160deg, #fffdf9 0%, #fdf9f1 100%);
  border: 1px solid rgba(221, 211, 196, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hp-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.4rem 1.5rem 1.25rem;
}

.hp-hero-id {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  min-width: 0;
}

.hp-avatar {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 16px;
  flex-shrink: 0;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #357a6d 0%, #2f6f63 60%, #255a50 100%);
  box-shadow:
    0 2px 6px rgba(26, 61, 52, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hp-hero-name { min-width: 0; }

.hp-hero-name h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 1.8vw + 0.9rem, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(47, 111, 99, 0.07);
  border: 1px solid rgba(47, 111, 99, 0.1);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-chip .icon { color: var(--primary); }

.hp-hero-actions { flex-shrink: 0; }

/* KPI strip dentro do hero */
.hp-hero-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(221, 211, 196, 0.7);
  background: rgba(255, 255, 255, 0.65);
}

.hp-kpi {
  padding: 0.95rem 1.25rem;
  min-width: 0;
}

.hp-kpi + .hp-kpi {
  border-left: 1px solid rgba(221, 211, 196, 0.55);
}

.hp-kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.hp-kpi-value {
  display: block;
  font-size: clamp(1.05rem, 1vw + 0.75rem, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-kpi-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-ok { color: var(--ok) !important; }
.hp-warn { color: var(--warn) !important; }

/* Grid de conteúdo */
.hp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.hp-col-main,
.hp-col-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hp-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(221, 211, 196, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.hp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hp-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hp-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  flex-shrink: 0;
}

/* Lista de reservas */
.hp-res-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hp-res-link {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto 1.25rem;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(255, 253, 249, 0.7);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.hp-res-link:hover {
  border-color: rgba(47, 111, 99, 0.25);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  color: inherit;
}

.hp-res-when { display: grid; gap: 0.1rem; }
.hp-res-when strong {
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.hp-res-when span { font-size: 0.76rem; color: var(--muted); white-space: nowrap; }

.hp-res-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}
.hp-res-info code { font-size: 0.8rem; white-space: nowrap; }

.hp-res-money {
  display: grid;
  gap: 0.1rem;
  text-align: right;
  flex-shrink: 0;
}
.hp-res-money strong { font-size: 0.98rem; letter-spacing: -0.02em; white-space: nowrap; }
.hp-res-saldo { font-size: 0.75rem; font-weight: 600; color: var(--warn); white-space: nowrap; }
.hp-res-quitado { font-size: 0.75rem; font-weight: 500; color: var(--ok); white-space: nowrap; }

.hp-res-go {
  color: var(--muted);
  opacity: 0.5;
  transition: opacity var(--transition), color var(--transition);
}
.hp-res-link:hover .hp-res-go { opacity: 1; color: var(--primary); }

/* Tabela de pagamentos */
.hp-table .ta-r { text-align: right; }
.hp-table td.ta-r { text-align: right; }
.hp-table code { font-size: 0.8rem; }
.hp-table tfoot td {
  border-bottom: 0;
  border-top: 2px solid var(--line);
  padding-top: 0.75rem;
  font-size: 0.92rem;
}
.hp-tfoot-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dados do cadastro */
.hp-dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.55rem 0.85rem;
  margin: 0;
}
.hp-dl dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.1rem;
}
.hp-dl dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.45;
  min-width: 0;
}
.hp-dd-break { overflow-wrap: anywhere; }

.hp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 130px;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.4);
}
.hp-empty p { margin: 0; font-size: 0.9rem; }

.hp-notes p { margin: 0; color: var(--ink-soft); line-height: 1.55; white-space: pre-line; font-size: 0.9rem; }

.badge-pend {
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 650;
}

.link-strong { font-weight: 650; color: var(--ink); }
.link-strong:hover { color: var(--primary); }

@media (max-width: 1180px) {
  .hp-hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-hero-kpis .hp-kpi:nth-child(n+4) {
    border-top: 1px solid rgba(221, 211, 196, 0.55);
  }
  .hp-hero-kpis .hp-kpi:nth-child(4) { border-left: 0; }
}

@media (max-width: 980px) {
  .hp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hp-hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-hero-kpis .hp-kpi:nth-child(n+3) {
    border-top: 1px solid rgba(221, 211, 196, 0.55);
  }
  .hp-hero-kpis .hp-kpi:nth-child(odd) { border-left: 0; }
  .hp-res-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hp-res-money { text-align: left; }
  .hp-res-go { display: none; }
  .hp-dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .hp-dl dt { margin-top: 0.5rem; }
}


/* ── Página pública (config no painel) ────────────────── */
.pp-url {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff 0%, var(--primary-soft) 100%);
  border: 1px solid rgba(47, 111, 99, 0.2);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pp-url .icon { color: var(--primary); }
.pp-url a {
  font-weight: 650;
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  color: var(--primary);
}
.pp-url a:hover { text-decoration: underline; }

.pp-color {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.pp-color input[type="color"] {
  width: 2.35rem;
  height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.pp-color input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.pp-color input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line-soft); border-radius: 6px; }
.pp-color code {
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
}

.pp-upload {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.4);
  transition: border-color var(--transition), background var(--transition);
}
.pp-upload:hover {
  border-color: rgba(47, 111, 99, 0.35);
  background: rgba(246, 241, 232, 0.7);
}
.pp-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.pp-thumb-wide { width: 96px; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pp-thumb-empty { color: var(--muted); }
.pp-upload-body {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}
.pp-upload-body input[type="file"] {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 100%;
}
.pp-upload-body input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  margin-right: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.pp-upload-body input[type="file"]::file-selector-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pp-upload-body small {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
}

.pp-save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.pp-save p { margin: 0; font-size: 0.85rem; }
.pp-save .btn { min-width: 200px; justify-content: center; }

@media (max-width: 720px) {
  .pp-save { flex-direction: column; align-items: stretch; text-align: center; }
  .pp-save .btn { min-width: 0; }
}

/* ── Fotos do tipo (painel) ───────────────────────────── */
.tf-fotos { display: grid; gap: 1rem; }
.tf-fotos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.tf-foto {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.tf-foto a { display: block; width: 100%; height: 100%; }
.tf-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.tf-foto:hover img { transform: scale(1.04); }
.tf-foto-badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(47, 111, 99, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tf-foto-remove {
  position: absolute;
  right: 0.45rem;
  top: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 22, 0.6);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tf-foto-remove:hover {
  background: var(--danger);
  transform: scale(1.08);
}
.tf-fotos-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: rgba(246, 241, 232, 0.5);
  color: var(--muted);
  font-size: 0.88rem;
}
.tf-fotos-upload {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.4);
  transition: border-color var(--transition), background var(--transition);
}
.tf-fotos-upload:hover {
  border-color: rgba(47, 111, 99, 0.35);
  background: rgba(246, 241, 232, 0.7);
}
.tf-fotos-upload input[type="file"] {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.tf-fotos-upload input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  margin-right: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.tf-fotos-upload input[type="file"]::file-selector-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tf-fotos-upload small {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
}

/* ── Panels / Tables ──────────────────────────────────── */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.15rem;
}
.panel-inner { padding: 0; }
.panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }

.table-wrap { overflow-x: auto; margin: 0 -0.25rem; }
.data-table, table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td,
table th, table td {
  text-align: left;
  padding: 0.85rem 0.65rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.data-table th, table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.data-table tbody tr:hover { background: rgba(26, 61, 52, 0.03); }
.td-actions { text-align: right; white-space: nowrap; }
.table-sub {
  display: block;
  font-size: 0.82rem;
  margin-top: 0.1rem;
}
.filter-field {
  display: grid;
  gap: 0.25rem;
  min-width: 200px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.filter-field select {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.table-icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.table-icon-actions form {
  margin: 0;
  display: inline-flex;
}
.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-elev);
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-action-btn:hover {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--primary);
}
.icon-action-btn-ok {
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 25%, transparent);
  background: var(--ok-soft, #e4f2eb);
}
.icon-action-btn-ok:hover {
  background: #d7ebe1;
  border-color: var(--ok);
  color: #1f5c45;
}
.badge-quarto {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.badge-quarto-disponivel { background: var(--ok-soft); color: var(--ok); }
.badge-quarto-ocupado { background: #e8eef8; color: #2a4a7a; }
.badge-quarto-limpeza { background: #eef4fb; color: #3a6288; }
.badge-quarto-manutencao,
.badge-quarto-bloqueado { background: var(--warn-soft, #faf0dc); color: #6b4a00; }
.badge-quarto-inativo { background: var(--danger-soft); color: var(--danger); }

.filters {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 0.85rem 1.1rem;
}
.filter-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.filter-search .filter-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.filter-search input {
  padding-left: 2.35rem;
  min-width: 0;
}

.empty { color: var(--muted); padding: 1.25rem 0; text-align: center; }
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}
.empty-state .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  color: var(--accent);
  opacity: 0.7;
}
.empty-state p { margin: 0 0 1.25rem; }

.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
}
.badge-ativo { background: var(--ok-soft); color: var(--ok); }
.badge-suspenso { background: var(--danger-soft); color: var(--danger); }
.badge-status {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
}
.stat strong .badge-status { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
.badge-status-confirmada,
.badge-status-checkin_realizado,
.badge-status-hospedado,
.badge-status-checkout_realizado,
.badge-status-concluida { background: var(--ok-soft); color: var(--ok); }
.badge-status-aguardando_pagamento,
.badge-status-aguardando_confirmacao,
.badge-status-solicitacao_recebida { background: var(--warn-soft, #f7e2c4); color: #8a5a00; }
.badge-status-cancelada,
.badge-status-expirada,
.badge-status-nao_compareceu { background: var(--danger-soft); color: var(--danger); }

/* ── Detalhe da reserva ───────────────────────────────── */
.reserva-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1.15rem;
}
.reserva-stats .stat {
  min-height: 88px;
  padding: 0.95rem 1.1rem;
}
.reserva-stats .stat strong {
  font-size: 1.25rem;
  font-family: var(--font);
  font-weight: 700;
}
.reserva-stats .stat .badge-status {
  font-size: 0.78rem;
  font-family: var(--font);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  line-height: 1.25;
}
.reserva-stats .stat:first-child strong {
  font-size: 1rem;
}

/* Abas da reserva: Estadia | Consumos | Pagamentos */
.reserva-abas-panel {
  margin-bottom: 1rem;
  padding: 0;
  overflow: hidden;
}
.reserva-abas {
  display: flex;
  gap: 0.15rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-soft, #f8f6f2) 100%);
  padding: 0.35rem 0.65rem 0;
}
.reserva-aba {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  transition: color 0.15s ease, background 0.15s ease;
}
.reserva-aba .icon { opacity: 0.75; }
.reserva-aba:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}
.reserva-aba.is-active {
  color: var(--primary);
  background: var(--bg-elev);
  border-color: var(--line-soft);
  box-shadow: 0 -1px 0 var(--bg-elev);
}
.reserva-aba.is-active .icon { opacity: 1; color: var(--primary); }
.reserva-aba-badge {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
}
.reserva-aba-badge.is-warn {
  background: var(--warn-soft, #faf0dc);
  color: #6b4a00;
}
.reserva-aba-painel {
  display: none;
  padding: 1.35rem 1.4rem 1.5rem;
  background: var(--bg-elev);
}
.reserva-aba-painel.is-active { display: block; }

/* Layout comum das abas */
.reserva-estadia-layout,
.reserva-consumos-panel,
.reserva-pagamento-panel {
  display: grid;
  gap: 1.15rem;
  width: 100%;
}

.reserva-aba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.15rem;
  align-items: start;
  width: 100%;
}
.reserva-aba-layout-single {
  grid-template-columns: 1fr;
}

.reserva-op-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md, var(--radius-sm));
  background: var(--bg);
  padding: 1.1rem 1.15rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}
.reserva-op-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.reserva-op-card-head > .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.reserva-op-card-head > div {
  flex: 1;
  min-width: 0;
}
.reserva-op-card-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.25;
}
.reserva-op-card-head p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.reserva-op-card-total {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
}
.reserva-op-card-total.is-ok {
  background: var(--ok-soft, #e4f2eb);
  color: var(--ok);
}
.reserva-saldo-chip {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--warn-soft, #faf0dc);
  color: #6b4a00;
  white-space: nowrap;
}
.reserva-saldo-chip.is-warn {
  background: var(--warn-soft, #faf0dc);
  color: #6b4a00;
}
.reserva-saldo-chip.is-ok {
  background: var(--ok-soft, #e4f2eb);
  color: var(--ok);
}
.reserva-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}
.reserva-op-card .fld { margin: 0; }
.reserva-op-card .fld select {
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 2.75rem;
}
.reserva-op-card .btn-block { margin-top: 0.15rem; }

.reserva-op-card-historico .pagamento-mini-lista-card {
  border-top: 0;
  padding-top: 0;
}
.reserva-empty-inline {
  margin: 0;
  text-align: left;
}

/* Tríade legada (não usada nas abas) */
.reserva-triade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}
.reserva-card { margin: 0; }
.reserva-card .section-head { margin-bottom: 0.85rem; }
.reserva-empty {
  margin: 0;
  padding: 1rem 0.85rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.consumo-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.consumo-lista li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}
.consumo-lista-info { display: grid; gap: 0.1rem; min-width: 0; }
.consumo-lista-info strong {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.consumo-lista-info span { font-size: 0.78rem; color: var(--muted); }
.consumo-lista-side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.consumo-lista-side strong { font-size: 0.88rem; }
.btn-link-danger {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}
.btn-link-danger:hover { background: var(--danger-soft); }
.consumo-lancar-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: end;
  width: 100%;
}
.consumo-lancar-form .consumo-fld-btn { width: 100%; }
.consumo-lancar-form .fld { margin: 0; }
.consumo-lancar-form .fld select,
.consumo-lancar-form .fld input {
  min-height: 2.75rem;
  font-size: 0.95rem;
}
.consumo-fld-qtd input { text-align: center; font-weight: 600; }
.consumo-fld-btn { min-height: 2.75rem; padding-inline: 1.1rem; white-space: nowrap; }
.consumo-add {
  display: grid;
  grid-template-columns: 1fr 3.5rem auto;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.15rem;
}
.reserva-consumos { display: grid; gap: 0.75rem; }
.reserva-pagamento-compact { gap: 0.75rem; }
.reserva-pagamento-compact .reserva-pagamento-resumo { gap: 0.4rem; }
.reserva-pagamento-compact .reserva-pagamento-stat { padding: 0.55rem 0.6rem; }
.reserva-pagamento-compact .reserva-pagamento-stat strong { font-size: 0.95rem; }
.pg-form-compact { gap: 0.55rem; }
.pagamento-mini-lista {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0 0;
  display: grid;
  gap: 0.45rem;
  border-top: 1px solid var(--line-soft);
}
.pagamento-mini-lista li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.pagamento-mini-lista strong { color: var(--ink); }
.pagamento-mini-lista-card { gap: 0.55rem; }
.pagamento-mini-lista-card li {
  padding: 0.7rem 0.8rem;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.pagamento-mini-info {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.pagamento-mini-info strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ok);
}
.pagamento-mini-info span {
  font-size: 0.8rem;
  color: var(--muted);
}
.pg-saldo-btn { justify-self: start; }
.reserva-valores-panel { margin-bottom: 1rem; }
.reserva-valores-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}
.reserva-valores-grid label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.reserva-valores-grid input {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--ink);
}
.reserva-valores-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
}

.reserva-detalhe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}
.reserva-inline-action { display: grid; gap: 0.4rem; align-content: end; }
.reserva-fluxo {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.85rem;
}
.reserva-fluxo-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.reserva-fluxo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.reserva-fluxo-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md, var(--radius-sm));
  padding: 1rem 1.05rem;
  background: var(--bg);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 148px;
}
.reserva-fluxo-card.is-done {
  background: #e4f2eb;
  border-color: #2a6b52;
  box-shadow: inset 0 0 0 1px rgba(42, 107, 82, 0.12);
}
.reserva-fluxo-card.is-done .reserva-fluxo-head .icon,
.reserva-fluxo-card.is-done .reserva-fluxo-head strong {
  color: #2a6b52;
}
.reserva-fluxo-card.is-blocked {
  background: #fbf3e4;
  border-color: #e0c48a;
}
.reserva-fluxo-head {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.reserva-fluxo-head .icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.reserva-fluxo-head strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 650;
}
.reserva-fluxo-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.reserva-fluxo-head .field-hint { margin: 0; }
.reserva-fluxo-msg {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
}
.reserva-fluxo-msg-ok {
  color: #1f5c45;
  background: #d7ebe1;
  border-style: solid;
  border-color: #2a6b52;
  font-weight: 600;
}
.reserva-fluxo-alerta {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--warn-soft, #f7e2c4);
  font-size: 0.84rem;
  color: #6b4a00;
  line-height: 1.45;
}
.reserva-fluxo-alerta strong { font-weight: 650; }
.reserva-fluxo-alerta p { margin: 0; }

.reserva-pagamento {
  display: grid;
  gap: 1.15rem;
}
.reserva-pagamento-resumo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.reserva-pagamento-stat {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: grid;
  gap: 0.2rem;
}
.reserva-pagamento-stat span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.reserva-pagamento-stat strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.reserva-pagamento-stat-ok strong { color: var(--ok); }
.reserva-pagamento-stat-warn {
  border-color: #e8d4a8;
  background: var(--warn-soft, #faf0dc);
}
.reserva-pagamento-stat-warn strong { color: var(--warn); }
.reserva-pagamento-novo,
.reserva-pagamento-historico {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.85rem;
}
.reserva-pagamento-novo-head {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.reserva-pagamento-novo-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--ink);
}
.reserva-pagamento-novo-head .section-hint { margin: 0; }

.pg-form {
  display: grid;
  gap: 0.85rem;
}
.pg-saldo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--warn-soft, #faf0dc);
  border: 1px solid #e8d4a8;
}
.pg-saldo-bar-text {
  display: grid;
  gap: 0.1rem;
}
.pg-saldo-bar-text span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--warn);
}
.pg-saldo-bar-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.pg-field {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  min-width: 0;
}
.pg-field > span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pg-optional {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}
.pg-valor-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pg-valor-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.pg-valor-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.pg-valor-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.72rem 0.85rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}
.pg-valor-input input:focus { outline: none; }
.pg-field-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.65rem;
}
.pg-field input,
.pg-field select {
  width: 100%;
  font: inherit;
  padding: 0.68rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pg-field input:focus,
.pg-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.pg-field select { cursor: pointer; }
.pg-form-footer {
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--line-soft);
}
.reserva-pagamento-empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}
.reserva-pagamentos-table td strong { font-weight: 650; }

.caixa-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1.15rem; }
.caixa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}
.caixa-filtro {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
.caixa-filtro label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.caixa-filtro input { font: inherit; padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.caixa-table td strong { font-weight: 650; }

.caixa-fechamento {
  display: grid;
  gap: 0.85rem;
}
.caixa-fechamento-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}
.caixa-fechamento-dia label {
  display: grid;
  gap: 0.25rem;
  min-width: 180px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.caixa-fechamento-dia input {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.caixa-fechar-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}
.caixa-fechar-obs {
  display: grid;
  gap: 0.25rem;
  flex: 1;
  min-width: 140px;
  max-width: 260px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}
.caixa-fechar-obs input {
  font: inherit;
  font-weight: 400;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  width: 100%;
}
.caixa-fechar-inline .btn {
  white-space: nowrap;
  height: 2.55rem;
}
.caixa-reabrir-inline .btn {
  white-space: nowrap;
  height: 2.55rem;
}
.caixa-fechamento-ok-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0.85rem;
  margin: 0;
}
.caixa-fechamento-ok-inline strong { margin: 0; }
.caixa-fechamento-ok-inline span {
  font-size: 0.88rem;
  font-weight: 500;
}
.caixa-fechamento-resumo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.caixa-fechamento-resumo article {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: grid;
  gap: 0.15rem;
}
.caixa-fechamento-resumo span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.caixa-fechamento-resumo strong {
  font-size: 1rem;
  font-weight: 700;
}
.caixa-fechamento-ok {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--ok-soft);
  border: 1px solid #b8dcc8;
  color: var(--ok);
}
.caixa-fechamento-ok strong { display: block; margin-bottom: 0.15rem; }
.caixa-fechamento-ok p { margin: 0; font-size: 0.88rem; line-height: 1.45; }
.caixa-fechamentos-table { margin-top: 0.85rem; }
.caixa-formas-table tfoot td {
  border-top: 2px solid var(--line);
  padding-top: 0.75rem;
  background: var(--bg);
}
.caixa-val-entrada { color: var(--ok); }
.caixa-val-saida { color: var(--danger); }
.caixa-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
}
.caixa-status-aberto {
  background: var(--ok-soft);
  color: var(--ok);
}
.caixa-status-fechado {
  background: var(--warn-soft);
  color: var(--warn);
}
.caixa-aviso {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid #e8d4a8;
  color: #6b4a00;
  font-size: 0.88rem;
}
.caixa-sugestao-fundo {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.caixa-sugestao-fundo strong { color: var(--primary); }
.caixa-sugestao-fundo p { margin: 0.25rem 0 0; }
.caixa-sugestao-fundo .field-hint { margin-top: 0.35rem; }
.caixa-fechamento-resumo {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.reserva-checkout-form { display: grid; gap: 0.65rem; }
.btn-block {
  width: 100%;
  justify-content: center;
}
.recibo-actions-inline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  max-width: 100%;
}
.reserva-recibo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}
.reserva-recibo-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}
.reserva-fluxo-danger {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}
.reserva-pagamentos { margin-top: 0; }
.reserva-timeline li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.reserva-timeline time { color: var(--muted); font-size: 0.82rem; }

.dl { display: grid; grid-template-columns: 140px 1fr; gap: 0.45rem 0.85rem; }
.dl dt { color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.dl dd { margin: 0; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }

/* ── Auth (login premium) ─────────────────────────────── */
html:has(body.layout-auth) {
  height: 100%;
  overflow: hidden;
}

.layout-auth {
  background: #f6f7f6;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.auth-page {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

/* Showcase — lado institucional */
.auth-showcase {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.8vh, 2rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(920px 520px at -5% -10%, rgba(47, 111, 99, 0.07) 0%, transparent 58%),
    radial-gradient(640px 420px at 105% 110%, rgba(184, 149, 106, 0.05) 0%, transparent 52%),
    linear-gradient(180deg, #f8f9f8 0%, #f3f5f4 100%);
}

.auth-showcase-inner {
  width: min(620px, 100%);
  height: 100%;
  max-height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: center;
  gap: clamp(1rem, 2.8vh, 1.85rem);
  padding: clamp(0.35rem, 1.5vh, 1rem) 0;
  overflow: hidden;
}

.auth-showcase-head {
  display: grid;
  gap: clamp(0.55rem, 1.4vh, 0.95rem);
  flex-shrink: 0;
}

.auth-brand {
  display: grid;
  gap: clamp(0.45rem, 0.9vh, 0.65rem);
}

.auth-showcase-logo {
  display: block;
  width: clamp(160px, 18.75vh, 210px);
  height: auto;
}

.auth-showcase-tagline {
  margin: 0;
  font-size: clamp(0.85rem, 1.44vh, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #66726c;
}

.auth-showcase-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.44rem, 6vh, 3.56rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.042em;
  color: #0f1513;
  max-width: none;
}

.auth-showcase-accent {
  color: #2f6f63;
  font-weight: 700;
}

.auth-showcase-lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.94vh, 1.23rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: #5c6762;
  max-width: 42ch;
}

.auth-cap-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.1vh, 0.75rem);
  align-content: center;
}

.auth-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(0.65rem, 1.2vw, 0.85rem);
  padding: clamp(0.78rem, 1.55vh, 1.05rem) clamp(0.85rem, 1.4vw, 1.1rem);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 22, 0.035);
  box-shadow:
    0 1px 1px rgba(17, 24, 22, 0.02),
    0 6px 20px rgba(17, 24, 22, 0.035);
  backdrop-filter: blur(14px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

.auth-cap:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(47, 111, 99, 0.1);
  box-shadow:
    0 2px 4px rgba(17, 24, 22, 0.03),
    0 14px 36px rgba(17, 24, 22, 0.07);
}

.auth-cap-icon {
  width: clamp(2.5rem, 4.5vh, 2.94rem);
  height: clamp(2.5rem, 4.5vh, 2.94rem);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(47, 111, 99, 0.1) 0%, rgba(47, 111, 99, 0.05) 100%);
  color: #2a6b5e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease;
}

.auth-cap:hover .auth-cap-icon {
  transform: scale(1.04);
  background: linear-gradient(145deg, rgba(47, 111, 99, 0.14) 0%, rgba(47, 111, 99, 0.07) 100%);
}

.auth-cap-icon .icon {
  width: 1.31rem;
  height: 1.31rem;
  stroke-width: 1.85;
}

.auth-cap-body { min-width: 0; }

.auth-cap-body h2 {
  margin: 0 0 0.15rem;
  font-size: clamp(1.03rem, 1.81vh, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #111816;
  line-height: 1.25;
}

.auth-cap-body p {
  margin: 0;
  font-size: clamp(0.9rem, 1.56vh, 1rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: #66726c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.auth-trust {
  list-style: none;
  padding: clamp(0.55rem, 1.1vh, 0.75rem) 0 0;
  margin: 0;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  border-top: 1px solid rgba(17, 24, 22, 0.06);
}

.auth-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.9rem, 1.5vh, 0.98rem);
  font-weight: 500;
  letter-spacing: -0.008em;
  color: #727d78;
}

.auth-trust .icon {
  color: #3d8a7a;
  stroke-width: 2.1;
}

/* Sign-in — lado verde */
.auth-signin {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.4vh, 1.65rem);
  background:
    radial-gradient(ellipse 85% 55% at 15% 8%, rgba(90, 180, 160, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 92% 88%, rgba(255, 255, 255, 0.07) 0%, transparent 52%),
    linear-gradient(168deg, #071a16 0%, #0e2a24 36%, #154238 72%, #184840 100%);
}

.auth-signin-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-signin-texture {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.auth-signin-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 15%, transparent 72%);
  opacity: 0.55;
}

.auth-signin-line {
  position: absolute;
  width: 160%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.05) 65%, transparent 100%);
  pointer-events: none;
}

.auth-signin-line-a {
  top: 28%;
  left: -30%;
  transform: rotate(-10deg);
}

.auth-signin-line-b {
  top: 62%;
  left: -25%;
  transform: rotate(-8deg);
  opacity: 0.6;
}

.auth-signin-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.auth-signin-blob-a {
  width: 320px;
  height: 320px;
  top: -90px;
  right: -70px;
  background: rgba(90, 180, 160, 0.32);
  opacity: 0.55;
}

.auth-signin-blob-b {
  width: 260px;
  height: 260px;
  bottom: -40px;
  left: -50px;
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.7;
}

.auth-signin-blob-c {
  width: 180px;
  height: 180px;
  top: 42%;
  left: 55%;
  background: rgba(47, 111, 99, 0.22);
  opacity: 0.45;
}

.auth-signin-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-signin-ring-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -140px;
  opacity: 0.5;
}

.auth-signin-ring-b {
  width: 280px;
  height: 280px;
  bottom: -80px;
  left: -60px;
  opacity: 0.35;
}

.auth-signin-inner {
  position: relative;
  z-index: 1;
  width: min(408px, 100%);
  max-height: calc(100dvh - 2rem);
}

.auth-signin-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: clamp(1.3rem, 2.5vh, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(17, 24, 22, 0.04),
    0 28px 72px rgba(0, 0, 0, 0.24),
    0 10px 28px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

.auth-signin-head {
  margin-bottom: clamp(0.85rem, 1.6vh, 1.15rem);
  text-align: center;
}

.auth-signin-mark {
  display: block;
  width: clamp(38px, 5vh, 44px);
  height: clamp(38px, 5vh, 44px);
  margin: 0 auto 0.65rem;
  border-radius: 11px;
  box-shadow:
    0 1px 2px rgba(17, 24, 22, 0.06),
    0 6px 16px rgba(17, 24, 22, 0.1);
}

.auth-signin-head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.2rem, 2.4vh, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.2;
  color: #0f1513;
}

.auth-signin-head p {
  margin: 0;
  font-size: clamp(0.8rem, 1.4vh, 0.9rem);
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: #66726c;
}

.auth-signin-head strong {
  color: #0f1513;
  font-weight: 600;
}

.auth-signin-form {
  display: grid;
  gap: clamp(0.65rem, 1.15vh, 0.85rem);
}

.auth-input {
  display: grid;
  gap: 0.38rem;
}

.auth-input > span:first-child {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3a4541;
  letter-spacing: -0.008em;
}

.auth-input input {
  width: 100%;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  padding: 0.72rem 0.95rem;
  min-height: 2.75rem;
  border-radius: 11px;
  border: 1px solid rgba(17, 24, 22, 0.08);
  background: rgba(250, 251, 251, 0.85);
  color: #0f1513;
  box-shadow: inset 0 1px 2px rgba(17, 24, 22, 0.025);
  transition:
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.22s ease,
    transform 0.22s ease;
}

.auth-input input::placeholder {
  color: #9aa5a0;
  font-weight: 400;
}

.auth-input input:hover {
  border-color: rgba(17, 24, 22, 0.14);
  background: #fff;
}

.auth-input input:focus {
  outline: none;
  border-color: rgba(47, 111, 99, 0.5);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(47, 111, 99, 0.35),
    0 0 0 4px rgba(47, 111, 99, 0.09),
    inset 0 1px 2px rgba(17, 24, 22, 0.02);
  transform: translateY(-0.5px);
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-input-wrap input {
  padding-right: 2.65rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.3rem;
  transform: translateY(-50%);
  width: 2.15rem;
  height: 2.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a8580;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.auth-password-toggle:hover {
  color: #2f6f63;
  background: rgba(47, 111, 99, 0.07);
  transform: translateY(-50%) scale(1.03);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgba(47, 111, 99, 0.35);
  outline-offset: 2px;
}

.auth-signin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.05rem 0 0;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: #5c6762;
  cursor: pointer;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #2f6f63;
  cursor: pointer;
}

.auth-signin-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: #2f6f63;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-signin-link:hover {
  color: #255a50;
}

.auth-signin-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(2.65rem, 4.8vh, 2.85rem);
  margin-top: 0.25rem;
  padding: 0.68rem 1.1rem;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: #fff;
  background: linear-gradient(180deg, #3a8577 0%, #2f6f63 52%, #2a6559 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 1px 2px rgba(17, 24, 22, 0.08),
    0 10px 24px rgba(47, 111, 99, 0.26);
  cursor: pointer;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.24s ease,
    opacity 0.24s ease;
}

.auth-signin-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 2px 4px rgba(17, 24, 22, 0.06),
    0 16px 36px rgba(47, 111, 99, 0.34);
  background: linear-gradient(180deg, #357a6d 0%, #2f6f63 48%, #255a50 100%);
}

.auth-signin-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 12px rgba(47, 111, 99, 0.22);
}

.auth-signin-btn:focus-visible {
  outline: 2px solid rgba(47, 111, 99, 0.45);
  outline-offset: 3px;
}

.auth-signin-btn:disabled {
  opacity: 0.88;
  cursor: wait;
}

.auth-signin-btn-spinner {
  display: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.65s linear infinite;
}

.auth-signin-btn.is-loading .auth-signin-btn-label {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.auth-signin-btn.is-loading .auth-signin-btn-spinner {
  display: block;
  position: absolute;
}

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

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .auth-showcase-head {
    animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .auth-cap {
    animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .auth-cap:nth-child(1) { animation-delay: 0.06s; }
  .auth-cap:nth-child(2) { animation-delay: 0.1s; }
  .auth-cap:nth-child(3) { animation-delay: 0.14s; }
  .auth-cap:nth-child(4) { animation-delay: 0.18s; }

  .auth-trust {
    animation: auth-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
  }

  .auth-signin-card {
    animation: auth-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
  }
}

/* Recuperar senha (solo) */
.auth-panel-solo {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(162deg, #0a221d 0%, #123830 42%, #1a5248 100%);
}

.auth-panel-inner-solo {
  width: min(420px, 100%);
}

.auth-panel-solo .auth-signin-card {
  width: 100%;
}

.auth-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2f6f63;
}

/* Legado landing */
.brand-tagline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  text-align: center;
  margin: 0 0 2rem;
}

/* ── Página pública ───────────────────────────────────── */
.layout-public { background: #faf7f1; }

/* Botões do site público seguem a cor da pousada */
.layout-public .btn-primary {
  background: var(--pub-primary, var(--primary));
  border-color: var(--pub-primary, var(--primary));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--pub-primary, var(--primary)) 28%, transparent);
}
.layout-public .btn-primary:hover {
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 86%, #000);
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 86%, #000);
  color: #fff;
}
.layout-public .btn-secondary {
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 10%, #fff);
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 30%, transparent);
  color: var(--pub-primary, var(--primary));
}
.layout-public .btn-secondary:hover {
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 16%, #fff);
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 45%, transparent);
  color: var(--pub-primary, var(--primary));
}

.pub-top {
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(221, 211, 196, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.pub-inner { width: min(1040px, 100%); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.pub-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  flex-wrap: wrap;
}
.pub-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--pub-primary, var(--primary));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.pub-logo { height: 42px; width: auto; max-width: 180px; object-fit: contain; }
.pub-nav { display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; }
.pub-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.pub-nav a:hover { color: var(--pub-primary, var(--primary)); }
.pub-nav .btn { margin-left: 0.25rem; }

/* Hero */
.pub-hero {
  position: relative;
  color: #fff;
  padding: clamp(3.25rem, 8vh, 5rem) 0 clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, color-mix(in srgb, var(--pub-secondary, #b8956a) 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 55%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 80%, #000) 0%,
      var(--pub-primary, #1a3d34) 48%,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 82%, #fff) 100%);
}
.pub-hero-photo { background-size: cover !important; background-position: center !important; }

.pub-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pub-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
}
.pub-hero-blob-a {
  width: 380px; height: 380px;
  top: -120px; right: 8%;
  background: rgba(255, 255, 255, 0.09);
}
.pub-hero-blob-b {
  width: 300px; height: 300px;
  bottom: -110px; left: -60px;
  background: color-mix(in srgb, var(--pub-secondary, #b8956a) 35%, transparent);
  opacity: 0.5;
}
.pub-hero-ring {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: -140px; right: -100px;
}
.pub-hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, black 10%, transparent 70%);
}

.pub-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.pub-hero-copy { min-width: 0; }

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.pub-eyebrow-dark {
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 8%, transparent);
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 18%, transparent);
  color: var(--pub-primary, var(--primary));
}

.pub-hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.pub-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  max-width: 44ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0 0 1.35rem;
}

.pub-hero-facts {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.pub-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}
.pub-hero-facts .icon { color: color-mix(in srgb, var(--pub-secondary, #b8956a) 85%, #fff); }

.pub-btn-light {
  background: #fff;
  color: var(--pub-primary, var(--primary));
  border: 0;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.pub-btn-light:hover {
  background: #f4f1ea;
  color: var(--pub-primary, var(--primary));
  transform: translateY(-1px);
}
.pub-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.pub-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

/* Card de reserva do hero */
.pub-booking {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(17, 24, 22, 0.04),
    0 28px 68px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.pub-booking-head { margin-bottom: 1.1rem; }
.pub-booking-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.pub-booking-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.pub-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pub-field {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}
.pub-field > span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.pub-field input {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.62rem 0.75rem;
  min-height: 2.6rem;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 22, 0.1);
  background: #fafbfa;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pub-field input:hover { border-color: rgba(17, 24, 22, 0.18); background: #fff; }
.pub-field input:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 55%, transparent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pub-primary, var(--primary)) 12%, transparent);
}

.pub-booking-btn {
  width: 100%;
  justify-content: center;
  min-height: 2.8rem;
  font-weight: 650;
  gap: 0.5rem;
}

/* Seções */
.pub-section { padding: clamp(3rem, 7vh, 4.5rem) 0; }
.pub-section-tight { padding-top: 1rem; }

.pub-section-head { margin-bottom: 2rem; max-width: 60ch; }
.pub-section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}
.pub-section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.15rem;
}

/* Card de acomodação */
.pub-room {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(221, 211, 196, 0.7);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(26, 36, 33, 0.03), 0 8px 28px rgba(26, 36, 33, 0.05);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}
.pub-room:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 22%, transparent);
  box-shadow: 0 2px 4px rgba(26, 36, 33, 0.03), 0 18px 44px rgba(26, 36, 33, 0.1);
}

.pub-room-top { flex: 1; }

.pub-room-has-media { padding-top: 0; }
.pub-room-media {
  position: relative;
  display: block;
  margin: 0 -1.5rem 1.15rem;
  height: 190px;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
}
.pub-room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pub-room:hover .pub-room-media img { transform: scale(1.045); }
.pub-room-media-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(10, 20, 17, 0.6);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* Galeria (página reservar) */
.pub-gallery {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
}
.pub-gallery-main {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  box-shadow: 0 8px 28px rgba(26, 36, 33, 0.08);
}
.pub-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pub-gallery-main:hover img { transform: scale(1.02); }
.pub-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}
.pub-gallery-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 10px rgba(26, 36, 33, 0.06);
}
.pub-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.pub-gallery-thumb:hover img { transform: scale(1.06); }
.pub-gallery-more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 20, 17, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.pub-room-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 9%, transparent);
  color: var(--pub-primary, var(--primary));
}
.pub-room h3 {
  margin: 0 0 0.4rem;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}
.pub-room-top > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pub-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
}
.pub-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--pub-primary, var(--primary)) 10%, transparent);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.pub-chips .icon { color: var(--pub-primary, var(--primary)); }

.pub-room-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.pub-price {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--pub-primary, var(--primary));
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pub-price small {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font);
  letter-spacing: 0;
}

/* Faixa de informações */
.pub-band {
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, color-mix(in srgb, var(--pub-primary, var(--primary)) 5%, transparent) 0%, transparent 60%),
    color-mix(in srgb, var(--pub-primary, var(--primary)) 4%, #fbf8f2);
  border-top: 1px solid rgba(221, 211, 196, 0.5);
  border-bottom: 1px solid rgba(221, 211, 196, 0.5);
}

.pub-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  padding-top: clamp(2.5rem, 6vh, 3.75rem);
  padding-bottom: clamp(2.5rem, 6vh, 3.75rem);
}

.pub-info-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(221, 211, 196, 0.7);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 1px 2px rgba(26, 36, 33, 0.03), 0 6px 20px rgba(26, 36, 33, 0.04);
}
.pub-info-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 9%, transparent);
  color: var(--pub-primary, var(--primary));
}
.pub-info-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.pub-info-card p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pub-info-card .btn { margin-top: 0.75rem; }
.pub-info-note { color: var(--muted) !important; font-size: 0.85rem !important; }
.pub-info-mail { overflow-wrap: anywhere; }

/* Solicitar reserva */
.pub-reserve-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 6vh, 3.5rem) 0 clamp(4.6rem, 9vh, 5.8rem);
  color: #fff;
  background:
    radial-gradient(ellipse 75% 60% at 12% 0%, color-mix(in srgb, var(--pub-secondary, #b8956a) 20%, transparent) 0%, transparent 55%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 80%, #000) 0%,
      var(--pub-primary, #1a3d34) 55%,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 84%, #fff) 100%);
}

.pub-reserve-head { position: relative; z-index: 1; }
.pub-reserve-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
}
.pub-reserve-back:hover { color: #fff; }
.pub-reserve-head h1 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.pub-reserve-head > p:last-child {
  margin: 0;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.pub-reserve-body { padding-bottom: clamp(3rem, 7vh, 4.5rem); }
.pub-reserve-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: -3rem;
}
.pub-reserve-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.pub-reserve-card {
  padding: 1.3rem 1.4rem 1.4rem;
  border: 1px solid rgba(221, 211, 196, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 4px rgba(26, 36, 33, 0.025), 0 12px 36px rgba(26, 36, 33, 0.055);
}
.pub-reserve-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.pub-reserve-step {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--pub-primary, var(--primary));
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--pub-primary, var(--primary)) 22%, transparent);
}
.pub-reserve-card-head h2 {
  margin: 0 0 0.12rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.pub-reserve-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.pub-reserve-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.pub-reserve-fields-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pub-field-full { grid-column: 1 / -1; }
.pub-field span em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 400;
}
.pub-field textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(17, 24, 22, 0.1);
  border-radius: 10px;
  color: var(--ink);
  background: #fafbfa;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pub-field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--pub-primary, var(--primary)) 55%, transparent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pub-primary, var(--primary)) 12%, transparent);
}
.pub-field small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
}

.pub-capacity-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(191, 121, 36, 0.35);
  border-radius: 10px;
  background: #fdf6ea;
  color: #8a5a14;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
}
.pub-capacity-alert .icon { flex-shrink: 0; margin-top: 0.1rem; }
.pub-capacity-alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.pub-capacity-alert[hidden] { display: none; }

.pub-policy { display: grid; gap: 0.65rem; }
.pub-policy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 11px;
  background: rgba(246, 241, 232, 0.55);
}
.pub-policy-item > .icon {
  margin-top: 0.1rem;
  color: var(--pub-primary, var(--primary));
}
.pub-policy-item strong { display: block; margin-bottom: 0.15rem; font-size: 0.84rem; }
.pub-policy-item p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.pub-policy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--pub-primary, var(--primary)) 16%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 5%, #fff);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.4;
}
.pub-policy-check input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  accent-color: var(--pub-primary, var(--primary));
}

.pub-reserve-submit {
  width: 100%;
  min-height: 3.05rem;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  font-size: 0.94rem;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--pub-primary, var(--primary)) 24%, transparent);
}
.pub-reserve-submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.pub-reserve-summary { position: sticky; top: 5.5rem; }
.pub-summary-card {
  overflow: hidden;
  border: 1px solid rgba(221, 211, 196, 0.75);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(26, 36, 33, 0.03), 0 18px 48px rgba(26, 36, 33, 0.1);
}
.pub-summary-media {
  position: relative;
  display: block;
  height: 185px;
  overflow: hidden;
  color: var(--pub-primary, var(--primary));
}
.pub-summary-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.pub-summary-media:hover img { transform: scale(1.035); }
.pub-summary-media > span {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 20, 17, 0.62);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
}
.pub-summary-media-empty {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 8%, #f8f5ef);
}
.pub-summary-media-empty .icon { width: 2.2rem; height: 2.2rem; }
.pub-summary-body { padding: 1.25rem 1.35rem 1.35rem; }
.pub-summary-label {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pub-summary-body h2 { margin: 0 0 0.35rem; font-size: 1.25rem; letter-spacing: -0.025em; }
.pub-summary-desc { margin: 0 0 1rem; color: var(--muted); font-size: 0.84rem; line-height: 1.45; }
.pub-summary-details { display: grid; gap: 0; margin: 0; }
.pub-summary-details > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
}
.pub-summary-details dt { color: var(--muted); font-size: 0.8rem; }
.pub-summary-details dd { margin: 0; text-align: right; font-size: 0.84rem; font-weight: 600; }
.pub-summary-details dd small { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.68rem; font-weight: 400; }
.pub-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.2rem;
  padding: 0.9rem 0 0.4rem;
  border-top: 2px solid var(--line);
}
.pub-summary-total span { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.pub-summary-total strong {
  color: var(--pub-primary, var(--primary));
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.pub-summary-hint { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.4; }

@media (max-width: 900px) {
  .pub-reserve-layout { grid-template-columns: 1fr; }
  .pub-reserve-summary { position: static; order: -1; }
  .pub-summary-card { display: grid; grid-template-columns: minmax(180px, 0.7fr) 1fr; }
  .pub-summary-media { height: 100%; min-height: 260px; }
}
@media (max-width: 620px) {
  .pub-reserve-fields,
  .pub-reserve-fields-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-summary-card { display: block; }
  .pub-summary-media { height: 180px; min-height: 0; }
}

/* Lightbox de fotos (site público) */
[data-gallery] { cursor: zoom-in; }
.pub-room-media-count,
.pub-summary-media > span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.pub-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.pub-lightbox[hidden] { display: none; }
.pub-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 11, 0.88);
  backdrop-filter: blur(6px);
}
.pub-lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1080px, 100%);
  animation: lbIn 0.22s ease;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.975); }
  to { opacity: 1; transform: none; }
}
.pub-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 760px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  background: #111;
}
.pub-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}
.pub-lightbox-title { font-weight: 650; letter-spacing: -0.01em; }
.pub-lightbox-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}
.pub-lightbox-btn {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.pub-lightbox-btn:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.05); }
.pub-lightbox-close { top: 1.1rem; right: 1.1rem; font-size: 1rem; }
.pub-lightbox-prev { left: 1.1rem; top: 50%; margin-top: -1.4rem; }
.pub-lightbox-next { right: 1.1rem; top: 50%; margin-top: -1.4rem; }
.pub-lightbox-btn[hidden] { display: none; }
@media (max-width: 620px) {
  .pub-lightbox { padding: 0.75rem; }
  .pub-lightbox-img { max-height: 70vh; border-radius: 10px; }
  .pub-lightbox-prev { left: 0.5rem; }
  .pub-lightbox-next { right: 0.5rem; }
  .pub-lightbox-close { top: 0.6rem; right: 0.6rem; }
}

/* Confirmação da reserva */
.pub-confirm-page {
  min-height: calc(100vh - 70px);
  padding: clamp(3rem, 7vh, 4.5rem) 0;
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, color-mix(in srgb, var(--pub-primary, var(--primary)) 8%, transparent) 0%, transparent 70%),
    #faf7f1;
}
.pub-confirm-wrap { max-width: 700px; text-align: center; }
.pub-confirm-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #3c8b76, var(--pub-primary, var(--primary)));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--pub-primary, var(--primary)) 25%, transparent);
}
.pub-confirm-icon .icon { width: 1.8rem; height: 1.8rem; stroke-width: 2.2; }
.pub-confirm-wrap > h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -0.04em;
}
.pub-confirm-lead { margin: 0 auto 0.9rem; max-width: 48ch; color: var(--muted); line-height: 1.55; }
.pub-confirm-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--pub-primary, var(--primary)) 14%, transparent);
  border-radius: 999px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 5%, #fff);
  font-size: 0.8rem;
}
.pub-confirm-card {
  overflow: hidden;
  margin-top: 0.5rem;
  border: 1px solid rgba(221, 211, 196, 0.8);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(26, 36, 33, 0.03), 0 18px 48px rgba(26, 36, 33, 0.08);
  text-align: left;
}
.pub-confirm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(246, 241, 232, 0.45);
}
.pub-confirm-card-head > div { display: grid; gap: 0.1rem; }
.pub-confirm-card-head > div span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pub-confirm-card-head > div strong { font-family: ui-monospace, monospace; font-size: 1rem; }
.pub-confirm-status {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--pub-primary, var(--primary));
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 9%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
}
.pub-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0.4rem 1.3rem;
}
.pub-confirm-grid > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.pub-confirm-grid > div:nth-child(odd) { padding-right: 1rem; }
.pub-confirm-grid > div:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid var(--line-soft);
}
.pub-confirm-grid span { color: var(--muted); font-size: 0.74rem; }
.pub-confirm-grid strong { font-size: 0.88rem; }
.pub-confirm-grid small { color: var(--muted); font-size: 0.68rem; }
.pub-confirm-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem 1.2rem;
}
.pub-confirm-total span { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.pub-confirm-total strong {
  color: var(--pub-primary, var(--primary));
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}
.pub-confirm-pix {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--pub-primary, var(--primary)) 15%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--pub-primary, var(--primary)) 5%, #fff);
  text-align: left;
}
.pub-confirm-pix-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--pub-primary, var(--primary));
}
.pub-confirm-pix span { color: var(--muted); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.pub-confirm-pix h2 { margin: 0.1rem 0; font-size: 1rem; overflow-wrap: anywhere; }
.pub-confirm-pix p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.pub-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Disponibilidade */
.pub-avail-hero {
  position: relative;
  color: #fff;
  padding: clamp(2.5rem, 6vh, 3.75rem) 0 clamp(4.25rem, 9vh, 5.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 0%, color-mix(in srgb, var(--pub-secondary, #b8956a) 22%, transparent) 0%, transparent 55%),
    linear-gradient(160deg,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 80%, #000) 0%,
      var(--pub-primary, #1a3d34) 55%,
      color-mix(in srgb, var(--pub-primary, #1a3d34) 84%, #fff) 100%);
}
.pub-avail-head { position: relative; z-index: 1; }
.pub-avail-head h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.pub-avail-sub {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

.pub-avail-body {
  padding-bottom: clamp(3rem, 7vh, 4.5rem);
}

.pub-booking-bar {
  margin-top: calc(-1 * clamp(2.5rem, 6vh, 3.5rem));
  position: relative;
  z-index: 2;
  margin-bottom: 1.75rem;
}
.pub-booking-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}
.pub-booking-bar .pub-booking-btn {
  width: auto;
  min-width: 140px;
  min-height: 2.6rem;
}

.pub-avail-meta {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.pub-avail-meta strong { color: var(--ink); }

.pub-room-title {
  margin: 0 0 0.4rem;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.pub-avail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
}
.pub-avail-empty .icon { width: 2rem; height: 2rem; color: var(--pub-primary, var(--primary)); }
.pub-avail-empty h2 { margin: 0.25rem 0 0; font-size: 1.2rem; letter-spacing: -0.02em; }
.pub-avail-empty p { margin: 0 0 0.75rem; font-size: 0.92rem; }

@media (max-width: 860px) {
  .pub-booking-bar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-booking-bar .pub-booking-btn { grid-column: 1 / -1; width: 100%; }
}

/* Cards genéricos (disponibilidade / confirmação) */
.pub-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pub-search label { display: grid; gap: 0.35rem; font-weight: 600; margin-bottom: 0.65rem; color: var(--ink-soft); }
.pub-search input { font: inherit; padding: 0.72rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; }

.pub-map { border-radius: 18px; overflow: hidden; border: 1px solid rgba(221, 211, 196, 0.7); aspect-ratio: 16/7; box-shadow: 0 8px 28px rgba(26, 36, 33, 0.06); }
.pub-map iframe { width: 100%; height: 100%; border: 0; }

/* Rodapé */
.pub-footer {
  padding: clamp(2.25rem, 5vh, 3rem) 0 clamp(2.5rem, 5vh, 3.25rem);
  margin-top: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(170deg,
    color-mix(in srgb, var(--pub-primary, #1a3d34) 88%, #000) 0%,
    color-mix(in srgb, var(--pub-primary, #1a3d34) 70%, #000) 100%);
}
.pub-footer strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.35rem;
}
.pub-footer p { margin: 0.15rem 0; font-size: 0.88rem; }
.pub-footer .muted { color: rgba(255, 255, 255, 0.55); }

.pub-confirm .dl { margin: 1.25rem 0; }
.pub-pix { background: var(--accent-soft); padding: 1.15rem; border-radius: var(--radius); margin: 1rem 0; }

@media (max-width: 960px) {
  .pub-hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .pub-booking { max-width: 480px; }
  .pub-hero h1 { max-width: none; }
}

@media (max-width: 560px) {
  .pub-booking-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .pub-room-foot { flex-direction: column; align-items: stretch; }
  .pub-room-foot .btn { justify-content: center; }
  .pub-nav { gap: 0.85rem; }
}


/* ── Calendário ───────────────────────────────────────── */
.cal-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
.cal-table { border-collapse: separate; border-spacing: 2px; min-width: 100%; font-size: 0.78rem; }
.cal-table th, .cal-table td { border: 0; padding: 0.35rem; text-align: center; min-width: 52px; vertical-align: middle; }
.cal-room { position: sticky; left: 0; background: var(--bg-elev); z-index: 2; text-align: left !important; min-width: 120px; }
.cal-room small { display: block; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.cal-livre { background: var(--ok-soft); }
.cal-limpeza { background: repeating-linear-gradient(45deg, #f3e8c8, #f3e8c8 4px, #efe0b0 4px, #efe0b0 8px); }
.cal-bloqueio, .cal-manutencao, .cal-bloqueado, .cal-inativo { background: #e8e4dc; color: #666; }
.cal-status-confirmada { background: #cfe3da; }
.cal-status-hospedado, .cal-status-checkin_realizado { background: var(--primary); color: #fff; }
.cal-status-aguardando_pagamento, .cal-status-aguardando_confirmacao, .cal-status-solicitacao_recebida {
  background: repeating-linear-gradient(-45deg, #f7e2c4, #f7e2c4 5px, #f0d3a5 5px, #f0d3a5 10px);
}
.cal-table td a { display: block; color: inherit; text-decoration: none; font-weight: 600; }
.cal-text { display: block; line-height: 1.1; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; font-size: 0.8rem; }
.cal-legend span { padding: 0.25rem 0.55rem; border-radius: 6px; }
.cal-mobile-only { display: none; }
.timeline { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.timeline li { margin-bottom: 0.35rem; }

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .reserva-triade { grid-template-columns: 1fr; }
  .reserva-valores-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reserva-aba-layout { grid-template-columns: 1fr; }
}

@media (max-height: 820px) and (min-width: 1025px) {
  .auth-showcase-inner {
    gap: clamp(0.75rem, 2vh, 1.25rem);
  }

  .auth-showcase-logo {
    width: clamp(140px, 16.25vh, 173px);
  }

  .auth-showcase-title {
    font-size: clamp(2.06rem, 5vh, 2.69rem);
  }

  .auth-showcase-lead {
    font-size: 1.05rem;
  }

  .auth-cap {
    padding: 0.65rem 0.8rem;
  }

  .auth-cap-body h2 {
    font-size: 1.03rem;
  }

  .auth-cap-body p {
    font-size: 0.9rem;
  }

  .auth-signin-card {
    padding: 1.15rem;
  }
}

@media (max-height: 720px) and (min-width: 1025px) {
  .auth-showcase {
    padding: 0.85rem 1.75rem;
  }

  .auth-showcase-inner {
    gap: 0.75rem;
    padding: 0;
  }

  .auth-showcase-head {
    gap: 0.45rem;
  }

  .auth-showcase-logo {
    width: 130px;
  }

  .auth-showcase-tagline {
    font-size: 0.83rem;
    letter-spacing: 0.16em;
  }

  .auth-showcase-title {
    font-size: 1.94rem;
    line-height: 1.08;
  }

  .auth-showcase-lead {
    font-size: 0.98rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .auth-cap-grid {
    gap: 0.45rem;
  }

  .auth-cap {
    padding: 0.55rem 0.65rem;
    gap: 0.55rem;
  }

  .auth-cap-icon {
    width: 2.31rem;
    height: 2.31rem;
  }

  .auth-trust {
    padding-top: 0.45rem;
    gap: 0.35rem 1rem;
  }

  .auth-trust li {
    font-size: 0.85rem;
  }

  .auth-signin-card {
    padding: 1rem;
  }

  .auth-signin-head {
    margin-bottom: 0.7rem;
  }

  .auth-signin-form {
    gap: 0.55rem;
  }

  .auth-input input {
    min-height: 2.55rem;
    padding: 0.62rem 0.85rem;
  }

  .auth-signin-btn {
    min-height: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .layout-auth {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  .auth-page {
    height: auto;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
  }

  .auth-signin {
    order: 1;
    height: auto;
    min-height: min(100dvh, 520px);
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .auth-showcase {
    order: 2;
    height: auto;
    overflow: visible;
    padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  }

  .auth-showcase-inner {
    height: auto;
    max-height: none;
    overflow: visible;
    gap: 1.25rem;
  }

  .auth-showcase-title {
    max-width: none;
  }

  .auth-showcase-lead {
    display: block;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 640px) {
  .auth-cap-grid {
    grid-template-columns: 1fr;
  }

  .auth-signin-card {
    border-radius: 16px;
    padding: 1.25rem;
  }

  .auth-signin-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-trust {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: relative;
    height: auto;
    min-height: auto;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .nav-link { padding: 0.5rem 0.65rem; font-size: 0.85rem; }
  .nav-label { display: none; }
  .nav-divider { display: none; }
  .sidebar-foot { flex-direction: row; justify-content: space-between; align-items: center; }
  .user-name { display: none; }

  .form-grid fieldset, .grid-2, .form-fields { grid-template-columns: 1fr; }
  .form-grid-row,
  .form-grid-12 { grid-template-columns: 1fr; gap: 1rem; }
  .form-grid-row [class*="g-"],
  .form-grid-12 [class*="g-"] { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; }
  .cal-mobile-only { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .reserva-stats { grid-template-columns: repeat(2, 1fr); }
  .reserva-layout { grid-template-columns: 1fr; }
  .reserva-preview { position: static; order: -1; }
  .reserva-detalhe-grid { grid-template-columns: 1fr; }
  .reserva-triade { grid-template-columns: 1fr; }
  .reserva-meta-grid { grid-template-columns: 1fr; }
  .reserva-fluxo-grid { grid-template-columns: 1fr; }
  .consumo-lancar-form { grid-template-columns: 1fr; }
  .consumo-fld-btn { width: 100%; }
  .reserva-valores-grid { grid-template-columns: 1fr 1fr; }
  .reserva-pagamento-resumo { grid-template-columns: 1fr; }
  .reserva-aba-layout { grid-template-columns: 1fr; }
  .pg-field-row { grid-template-columns: 1fr; }
  .reserva-abas { overflow-x: auto; flex-wrap: nowrap; }
  .reserva-aba { flex-shrink: 0; }
  .caixa-grid { grid-template-columns: 1fr; }
  .caixa-fechamento-resumo { grid-template-columns: repeat(2, 1fr); }
  .reserva-timeline li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ── Modal de confirmação ─────────────────────────────── */
body.modal-open { overflow: hidden; }

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.app-modal[hidden] { display: none; }

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 24, 0.52);
  backdrop-filter: blur(4px);
  animation: modal-fade-in 0.2s ease;
}

.app-modal-dialog {
  position: relative;
  width: min(100%, 420px);
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
  animation: modal-slide-in 0.22s ease;
}

.app-modal-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}

.app-modal-icon svg { width: 1.5rem; height: 1.5rem; }

.app-modal[data-variant="warn"] .app-modal-icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.app-modal[data-variant="danger"] .app-modal-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.app-modal-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.app-modal-message {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34ch;
  margin-inline: auto;
}

.app-modal-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
}

.app-modal-actions .btn {
  min-width: 7.5rem;
  justify-content: center;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-modal-dialog-form {
  width: min(100%, 520px);
  text-align: left;
  padding: 0;
  overflow: hidden;
}
.app-modal-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.35rem 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.app-modal-form-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}
.app-modal-form-head .section-hint { margin: 0.2rem 0 0; }
.app-modal-dialog-form .pg-form {
  padding: 1.1rem 1.35rem 1.25rem;
}
.app-modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.85rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--line-soft);
}

/* ── Landing NexHotel ─────────────────────────────────── */
.layout-landing { background: #0d2a24; min-height: 100vh; }
.landing-hero-nex {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(circle at 30% 70%, rgba(63, 168, 146, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.07) 0%, transparent 40%),
    linear-gradient(165deg, #0a221d 0%, #1f5c4e 50%, #12362e 100%);
}
.landing-inner {
  width: min(480px, 100%);
  text-align: center;
}
.landing-logo-badge {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.1rem;
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.3);
}
.landing-logo-card {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 1.1rem;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}
.landing-logo {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto 1rem;
}
.landing-copy {
  color: rgba(255,255,255,0.72) !important;
  margin: 0 auto 1.75rem;
  max-width: 36ch;
  line-height: 1.55;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
