/* ─────────────────────────────────────────────────────────────────────────────
   RETIRO DE CASAIS CRISTO É VIDA 2026 — CONTROLE DE SUÍTES
   Mobile-first Design System
───────────────────────────────────────────────────────────────────────────── */

:root {
  --brand-dark:    #3b0d00;
  --brand-deep:    #5c1e00;
  --brand-primary: #8b3a00;
  --brand-warm:    #c4521a;
  --brand-gold:    #f5c842;
  --brand-cream:   #fdf3e3;

  --green:  #2d6a2d;
  --green-bg: #e8f5e9;
  --red:    #c0392b;
  --red-bg: #fdecea;
  --yellow: #d4891a;
  --yellow-bg: #fff8e1;

  --text-primary:   #1a0a00;
  --text-secondary: #6b4f3a;
  --text-muted:     #a08070;
  --border:         #e8d5c4;
  --surface:        #ffffff;
  --surface-2:      #fdf3e3;
  --bg:             #faf5ef;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 4px rgba(92,30,0,.08);
  --shadow-md:  0 4px 16px rgba(92,30,0,.12);
  --shadow-lg:  0 8px 32px rgba(92,30,0,.18);
  --shadow-xl:  0 16px 48px rgba(92,30,0,.22);

  --topbar-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
input, button, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Splash Screen ──────────────────────────────────────────────────────────── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  transition: opacity .6s ease, transform .6s ease;
}
.splash.fade-out {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}
.splash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.splash-loader {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loader-ring {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(245,200,66,.25);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.splash-loading-text {
  color: var(--brand-gold);
  font-size: .85rem;
  letter-spacing: .08em;
  opacity: .85;
}

/* ── Login Screen ──────────────────────────────────────────────────────────── */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-dark);
  transition: opacity .4s ease, transform .4s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px;
}
.login-screen.fade-out {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.login-bg {
  position: absolute;
  inset: 0;
  background: url('img/retiro2026.jpg') center/cover no-repeat;
  filter: blur(10px) brightness(0.3);
  transform: scale(1.08);
}
.login-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(92,30,0,.65) 0%, rgba(20,6,0,.92) 100%);
}
.login-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Caixa Separada de Consulta de Suíte (Acima do Login) ────────────────── */
.consulta-suite-card {
  background: rgba(30, 10, 4, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 200, 66, 0.42);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: loginCardIn .4s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all .25s ease;
}
.consulta-suite-card:hover {
  border-color: rgba(245, 200, 66, 0.65);
}
.consulta-suite-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.consulta-suite-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245,200,66,.25), rgba(245,200,66,.08));
  border: 1px solid rgba(245,200,66,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  box-shadow: 0 0 16px rgba(245,200,66,.2);
}
.consulta-suite-icon svg {
  width: 22px;
  height: 22px;
}
.consulta-suite-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.consulta-suite-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  color: var(--brand-gold);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.consulta-suite-subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin: 0;
  line-height: 1.25;
}
.consulta-suite-form {
  margin: 0;
}
.consulta-suite-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.consulta-suite-input-icon {
  position: absolute;
  left: 14px;
  color: rgba(245,200,66,.65);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.consulta-suite-input-icon svg {
  width: 18px;
  height: 18px;
}
.consulta-suite-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(245,200,66,.3);
  border-radius: 12px;
  padding: 0 34px 0 40px;
  color: #fff;
  font-size: .92rem;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  outline: none;
}
.consulta-suite-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245,200,66,.2);
  background: rgba(0,0,0,.7);
}
.btn-consulta-clear {
  position: absolute;
  right: 116px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.btn-consulta-clear:hover {
  color: #fff;
}
.btn-consulta-submit {
  height: 46px;
  padding: 0 18px;
  background: linear-gradient(135deg, #d49a1d 0%, #a2720d 100%);
  border: 1px solid rgba(245,200,66,.5);
  border-radius: 12px;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(162,114,13,.35);
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-consulta-submit:hover {
  background: linear-gradient(135deg, #e5a720 0%, #b88210 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(162,114,13,.45);
}
.btn-consulta-submit:active {
  transform: translateY(0);
}

/* Resultados da Consulta de Suíte */
.consulta-suite-resultados {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 4px;
  animation: fadeIn .25s ease;
}
.consulta-suite-resultados::-webkit-scrollbar {
  width: 5px;
}
.consulta-suite-resultados::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
}
.consulta-suite-resultados::-webkit-scrollbar-thumb {
  background: rgba(245,200,66,0.35);
  border-radius: 4px;
}
.consulta-suite-resultados::-webkit-scrollbar-thumb:hover {
  background: rgba(245,200,66,0.55);
}
.consulta-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245,200,66,0.9);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245,200,66,0.2);
}
.btn-consulta-fechar {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}
.btn-consulta-fechar:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.consulta-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consulta-result-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 200, 66, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all .15s ease;
}
.consulta-result-card:hover {
  border-color: rgba(245, 200, 66, 0.45);
  background: rgba(0, 0, 0, 0.6);
}
.consulta-result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.consulta-badge-suite {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.consulta-badge-hotel {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}
.consulta-result-casal {
  font-size: 0.93rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.consulta-casal-nome {
  color: #fff;
  letter-spacing: 0.01em;
}
.consulta-result-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.consulta-meta-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px 8px;
  border-radius: 6px;
}
.consulta-empty {
  text-align: center;
  padding: 14px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.consulta-empty-icon {
  font-size: 1.4rem;
}
.consulta-loading {
  text-align: center;
  padding: 14px 10px;
  color: rgba(245, 200, 66, 0.9);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.consulta-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245, 200, 66, 0.3);
  border-top-color: var(--brand-gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.login-card {
  background: rgba(35, 12, 5, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: loginCardIn .4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.login-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.login-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,200,66,.2), rgba(245,200,66,.05));
  border: 1px solid rgba(245,200,66,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  margin-bottom: 4px;
  box-shadow: 0 0 20px rgba(245,200,66,.2);
}
.login-icon-badge svg {
  width: 26px;
  height: 26px;
}
.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--brand-gold);
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.login-subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  margin: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-input-group label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(245,200,66,.9);
  letter-spacing: .02em;
}
.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.login-input-icon {
  position: absolute;
  left: 14px;
  color: rgba(245,200,66,.65);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.login-input-icon svg {
  width: 20px;
  height: 20px;
}
.login-input {
  width: 100%;
  height: 48px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(245,200,66,.25);
  border-radius: 12px;
  padding: 0 44px 0 44px;
  color: #fff;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  outline: none;
}
.login-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(245,200,66,.2);
  background: rgba(0,0,0,.65);
}
.btn-toggle-pass {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(245,200,66,.65);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color .2s;
}
.btn-toggle-pass:hover {
  color: var(--brand-gold);
}
.btn-toggle-pass svg {
  width: 20px;
  height: 20px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: .85rem;
  font-weight: 500;
  animation: shakeError .35s ease;
}
.login-error svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #ef4444;
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}
.btn-login-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #f5c842 0%, #d4a017 100%);
  color: #3b1000;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(245,200,66,.3);
  transition: all .2s;
  margin-top: 4px;
}
.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245,200,66,.45);
}
.btn-login-submit:active {
  transform: translateY(1px);
}
.btn-login-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(59,16,0,.3);
  border-top-color: #3b1000;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.login-footer {
  text-align: center;
  font-size: .75rem;
  color: rgba(245,200,66,.6);
  letter-spacing: .03em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.login-footer-empresa {
  font-size: .72rem;
  font-weight: 600;
  color: rgba(245,200,66,.85);
  letter-spacing: .05em;
}

/* ── App Layout ─────────────────────────────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
}
@media (min-width: 480px) {
  .app { box-shadow: var(--shadow-xl); }
}

/* ── Topbar ─────────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 10px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(245, 200, 66, 0.2);
}
.topbar-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.btn-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: var(--radius-sm);
  transition: background .2s, border-color .2s;
  flex-shrink: 0;
}
.btn-back:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: rgba(245, 200, 66, 0.45);
}
.btn-back:active { background: rgba(255, 255, 255, 0.2); }
.btn-back svg { width: 22px; height: 22px; }

.topbar-title-wrap {
  flex: 1;
  min-width: 0;
}
.topbar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 4.5vw, 1.4rem);
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.badge-role-suporte {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(30, 64, 175, 0.45);
  border: 1px solid rgba(96, 165, 250, 0.6);
  color: #bfdbfe;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar-subtitle {
  font-size: .82rem;
  color: rgba(245, 200, 66, 0.85);
  font-weight: 500;
  letter-spacing: .04em;
  margin-top: 3px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 200, 66, 0.15);
  flex-wrap: wrap;
}
.topbar-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--brand-gold);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.25);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 250px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background .2s, border-color .2s;
}
.topbar-user-badge:hover,
.topbar-user-badge:active {
  background: rgba(245, 200, 66, 0.16);
  border-color: rgba(245, 200, 66, 0.45);
}
.topbar-user-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--brand-gold);
}
.topbar-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82px;
}
@media (min-width: 480px) {
  .topbar-user-name {
    max-width: 125px;
  }
}
.topbar-session-timer {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Inter', monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(245, 200, 66, 0.22);
  border: 1px solid rgba(245, 200, 66, 0.4);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: all .2s;
}
.topbar-timer-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--brand-gold);
}
.topbar-session-timer.warning {
  background: rgba(220, 38, 38, 0.45);
  border-color: rgba(239, 68, 68, 0.8);
  color: #fecaca;
  animation: pulseSessionTimer 1.2s infinite ease-in-out;
}
.topbar-session-timer.warning .topbar-timer-icon {
  color: #fecaca;
}
@keyframes pulseSessionTimer {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}
.topbar-buttons-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-gold);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s, border-color .2s;
  flex-shrink: 0;
}
.btn-icon:hover {
  background: rgba(245, 200, 66, 0.18);
  border-color: rgba(245, 200, 66, 0.45);
  transform: translateY(-1px);
}
.btn-icon:active { background: rgba(255, 255, 255, 0.2); transform: scale(.94); }
.btn-icon svg { width: 19px; height: 19px; }

/* ── Pages ──────────────────────────────────────────────────────────────────── */
.page { display: none; flex: 1; overflow-y: auto; }
.page.active { display: block; }

/* ── Stats Bar ──────────────────────────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.stat-card.accent-green { background: var(--green-bg); border-color: #a5d6a7; }
.stat-card.accent-yellow { background: var(--yellow-bg); border-color: #ffe082; }
.stat-card.accent-red { background: var(--red-bg); border-color: #ef9a9a; }
.stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}
.stat-card.accent-green .stat-num { color: var(--green); }
.stat-card.accent-yellow .stat-num { color: var(--yellow); }
.stat-card.accent-red .stat-num { color: var(--red); }
.stat-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}

/* ── Search & Filters ───────────────────────────────────────────────────────── */
.search-bar {
  padding: 12px 12px 8px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-input-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input-wrap input:focus {
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 3px rgba(139,58,0,.1);
}
.filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  transition: all .2s;
}
.filter-tab.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

/* ── Suite Grid ─────────────────────────────────────────────────────────────── */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}
.suite-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.suite-card:active { transform: scale(.97); box-shadow: none; }
.suite-card.complete {
  border-color: #a5d6a7;
  background: linear-gradient(135deg, #f1f9f1 0%, var(--surface) 100%);
}
.suite-card.partial {
  border-color: #ffe082;
  background: linear-gradient(135deg, #fffde7 0%, var(--surface) 100%);
}

.suite-card-header {
  padding: 10px 10px 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.suite-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
}
.suite-card.complete .suite-number { color: var(--green); }
.suite-status-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
}
.suite-status-icon.ok { background: var(--green-bg); color: var(--green); }
.suite-status-icon.partial-icon { background: var(--yellow-bg); color: var(--yellow); }
.suite-status-icon.empty { background: var(--red-bg); color: var(--red); }

.suite-card-body { padding: 0 10px 10px; }
.suite-casal {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.suite-no-casal {
  font-size: .78rem;
  color: var(--text-muted);
  font-style: italic;
}
.progress-bar-wrap {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-warm);
  transition: width .4s ease;
}
.suite-card.complete .progress-bar-fill { background: var(--green); }
.progress-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-align: right;
}

/* ── Suite Detail Page ──────────────────────────────────────────────────────── */
.suite-detail-wrap {
  padding: 0 0 calc(80px + var(--safe-bottom)) 0;
}

.detail-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
  padding: 20px 16px 24px;
  position: relative;
  overflow: hidden;
}
.detail-hero::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(245,200,66,.08);
  border-radius: 50%;
}
.detail-suite-num-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-suite-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-gold);
  line-height: 1;
}
.detail-chale-badge,
.detail-bloco-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid var(--brand-gold);
  color: var(--brand-gold);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  animation: fadeInBadge .25s ease;
}
.detail-andar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  animation: fadeInBadge .25s ease;
}
.suite-location-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(139, 58, 0, 0.05);
  border: 1.5px solid rgba(139, 58, 0, 0.16);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.suite-location-banner .banner-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.suite-location-banner .banner-item strong {
  color: var(--brand-warm);
  font-weight: 700;
}
.suite-location-banner .banner-sep {
  color: rgba(0, 0, 0, 0.2);
}
@keyframes fadeInBadge {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
.detail-suite-label {
  color: rgba(245,200,66,.75);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* ── Navegação Entre Suítes (Hero e Casal) ─────────────────────────────────── */
.detail-suite-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 16px;
  gap: 12px;
}

.detail-suite-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-nav-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 200, 66, 0.9);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.btn-suite-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(245, 200, 66, 0.5);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-suite-arrow svg {
  width: 26px;
  height: 26px;
}

.btn-suite-arrow:hover:not(:disabled) {
  background: rgba(245, 200, 66, 0.25);
  border-color: var(--brand-gold);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn-suite-arrow:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-suite-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

/* Casal Card Header com Setas */
.casal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.casal-card-header .casal-card-title {
  margin-bottom: 0;
}

.casal-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-casal-nav-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(139, 58, 0, 0.08);
  border: 1px solid rgba(139, 58, 0, 0.22);
  border-radius: 999px;
  color: var(--brand-warm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-casal-nav-arrow svg {
  width: 14px;
  height: 14px;
}

.btn-casal-nav-arrow:hover:not(:disabled) {
  background: var(--brand-warm);
  color: #fff;
  border-color: var(--brand-warm);
}

.btn-casal-nav-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

.btn-casal-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.casal-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-save-next {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--brand-warm), #b34a00);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(139, 58, 0, 0.25);
}

.btn-save-next:hover:not(:disabled) {
  background: linear-gradient(135deg, #a03c00, #8b3a00);
  box-shadow: 0 4px 12px rgba(139, 58, 0, 0.35);
  transform: translateY(-1px);
}

.btn-save-next:active:not(:disabled) {
  transform: translateY(0);
}

.btn-save-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress ring */
.detail-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.progress-ring-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}
.progress-ring {
  transform: rotate(-90deg);
  width: 62px;
  height: 62px;
}
.progress-ring-bg { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 5; }
.progress-ring-fill { fill: none; stroke: var(--brand-gold); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.progress-ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-gold);
}
.detail-progress-info { flex: 1; }
.detail-progress-text {
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.detail-progress-sub {
  color: rgba(255,255,255,.55);
  font-size: .75rem;
}

/* Casal Card */
.casal-card {
  margin: 14px 12px 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.casal-card-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.casal-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 8px;
}
.casal-input:focus {
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 3px rgba(139,58,0,.1);
}
.obs-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: .85rem;
  color: var(--text-secondary);
  outline: none;
  resize: none;
  height: 68px;
  transition: border-color .2s;
  margin-bottom: 10px;
}
.obs-input:focus { border-color: var(--brand-warm); }
.btn-save-casal {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
  color: var(--brand-gold);
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: opacity .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn-save-casal:active { opacity: .85; transform: scale(.98); }
.btn-save-casal.saved { background: linear-gradient(135deg, #1b4d1b, var(--green)); color: #fff; }

.casal-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.casal-input-with-action {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.casal-input-with-action .casal-input {
  margin-bottom: 0;
  flex: 1;
}
.btn-clear-inline {
  padding: 10px 12px;
  background: var(--red-bg, #fff1f0);
  color: var(--red, #cf1322);
  border: 1.5px solid #ffa39e;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-clear-inline:hover {
  background: #ffccc7;
}
.btn-clear-inline:active {
  transform: scale(0.97);
}
.casal-card-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn-clear-suite-data {
  padding: 10px 18px;
  background: var(--surface);
  color: var(--red, #cf1322);
  border: 1.5px solid #ffa39e;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-clear-suite-data:hover {
  color: #a8071a;
  background: var(--red-bg, #fff1f0);
  border-color: #f5222d;
}
.btn-clear-suite-data:active {
  transform: scale(0.97);
}
.btn-clear-casal-obs {
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-clear-casal-obs:hover {
  color: var(--red, #cf1322);
  border-color: #ffa39e;
  background: var(--red-bg, #fff1f0);
}
.btn-clear-casal-obs:active {
  transform: scale(0.97);
}
.casal-card-actions .btn-save-casal {
  width: auto;
  min-width: 120px;
  padding: 10px 22px;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Checklist Section */
.checklist-section {
  margin: 14px 12px 0;
}
.checklist-section-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 0 2px;
}
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checklist-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.checklist-item.checked {
  border-color: #a5d6a7;
  background: linear-gradient(135deg, #f1f9f1 0%, var(--surface) 100%);
}
.checklist-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.checklist-item-main:active { opacity: .75; }
.checkbox-custom {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
  background: var(--bg);
}
.checklist-item.checked .checkbox-custom {
  background: var(--green);
  border-color: var(--green);
}
.checkbox-check {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity .15s, transform .15s;
  transform: scale(.5);
}
.checklist-item.checked .checkbox-check {
  opacity: 1;
  transform: scale(1);
}
.checklist-item-name {
  flex: 1;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color .2s;
}
.checklist-item.checked .checklist-item-name { color: var(--green); }
.checklist-item-order {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Obs toggle for each item */
.obs-toggle-btn {
  color: var(--text-muted);
  font-size: .72rem;
  padding: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.obs-toggle-btn svg { width: 13px; height: 13px; }
.obs-input-wrap {
  margin: 0 14px 10px;
}
.obs-input-wrap.hidden {
  display: none;
}
.obs-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.obs-input-row .item-obs-input {
  width: 100%;
  margin: 0;
  flex: 1;
}
.btn-item-obs-save {
  padding: 8px 12px;
  background: var(--brand-warm, #d97706);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-item-obs-save:hover { opacity: 0.9; }
.btn-item-obs-clear {
  padding: 8px 10px;
  background: var(--red-bg, #fff1f0);
  color: var(--red, #cf1322);
  border: 1px solid #ffa39e;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-item-obs-clear:hover { background: #ffccc7; }
.item-obs-input {
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-secondary);
  outline: none;
}
.item-obs-input:focus { border-color: var(--brand-warm); }

/* Reset button */
.btn-reset-suite {
  display: block;
  margin: 16px 12px;
  width: calc(100% - 24px);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: .83rem;
  font-weight: 600;
  color: var(--red);
  border: 1.5px solid #ef9a9a;
  background: var(--red-bg);
  transition: opacity .2s;
}
.btn-reset-suite:active { opacity: .7; }

/* ── Loading & Empty States ─────────────────────────────────────────────────── */
.loading-placeholder {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: .9rem;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-warm);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state p { margin-top: 8px; font-size: .9rem; }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brand-dark);
  color: var(--brand-gold);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9000;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── PDF Overlay ────────────────────────────────────────────────────────────── */
.pdf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.pdf-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xl);
  min-width: 220px;
}
.pdf-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid var(--border);
  border-top-color: var(--brand-warm);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.pdf-modal p { font-weight: 600; color: var(--text-primary); }
.pdf-sub { font-size: .78rem; color: var(--text-muted); font-weight: 400; }

/* ── PDF Options Modal ─────────────────────────────────────────────────────── */
.pdf-option-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--surface-1, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pdf-option-choice:hover {
  border-color: var(--brand-warm, #5c1e00);
  background: rgba(92, 30, 0, 0.03);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.pdf-option-choice:active {
  transform: translateY(0);
}

.pdf-option-choice-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.pdf-option-choice-text {
  flex: 1;
  min-width: 0;
}

.pdf-option-choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #111827);
  margin-bottom: 3px;
}

.pdf-option-choice-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.35;
}

.pdf-option-choice-arrow {
  font-size: 1.1rem;
  color: var(--text-muted, #9ca3af);
  transition: transform 0.2s ease, color 0.2s ease;
  padding-left: 6px;
}

.pdf-option-choice:hover .pdf-option-choice-arrow {
  color: var(--brand-warm, #5c1e00);
  transform: translateX(3px);
}

/* ── iOS PDF Modal ──────────────────────────────────────────────────────────── */
.ios-pdf-container {
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ios-pdf-container {
    height: 92vh;
    border-radius: 16px;
    margin: 4vh auto;
  }
}

.ios-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 10px) + 6px) 14px 10px 14px;
  background: #ffffff;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.08);
  gap: 10px;
  z-index: 10;
}

.btn-ios-pdf-close {
  background: rgba(0, 0, 0, 0.06);
  color: #333333;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-ios-pdf-close:hover {
  background: #e9ecef;
  color: #000;
}

.ios-pdf-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  flex: 1;
}

.btn-ios-pdf-save {
  background: #1a5cba;
  color: #ffffff;
  border: 1px solid #1a5cba;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-ios-pdf-save:hover {
  background: #144996;
}

.ios-pdf-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f1f3f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-ios-action {
  background: #1a5cba;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-ios-action-secondary {
  background: #fff;
  color: #495057;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ios-pdf-frame-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #525659;
}

.ios-pdf-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  display: block;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.suite-card { animation: fadeInUp .35s ease both; }

/* Stagger cards */
.suite-card:nth-child(1)  { animation-delay: .03s; }
.suite-card:nth-child(2)  { animation-delay: .06s; }
.suite-card:nth-child(3)  { animation-delay: .09s; }
.suite-card:nth-child(4)  { animation-delay: .12s; }
.suite-card:nth-child(5)  { animation-delay: .15s; }
.suite-card:nth-child(6)  { animation-delay: .18s; }
.suite-card:nth-child(7)  { animation-delay: .21s; }
.suite-card:nth-child(8)  { animation-delay: .24s; }

/* ── Responsive — larger screens ────────────────────────────────────────────── */
@media (min-width: 600px) {
  .suite-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-bar  { grid-template-columns: repeat(4, 1fr); }
}

/* ── Modal: Gerenciar Checklist ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,10,0,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInOverlay .25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: scaleUpModal .25s ease;
}

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.modal-subtitle {
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  margin-top: 2px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.12);
  transition: all .2s ease;
}

.modal-close-btn:hover, .modal-close-btn:active {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.add-item-form {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.add-item-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .9rem;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s ease;
}

.add-item-form input:focus {
  border-color: var(--brand-warm);
}

.btn-add-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  border-radius: var(--radius-sm);
  transition: background .2s ease, transform .1s ease;
  white-space: nowrap;
}

.btn-add-item svg {
  width: 16px;
  height: 16px;
}

.btn-add-item:hover {
  background: var(--brand-warm);
}

.btn-add-item:active {
  transform: scale(.97);
}

.checklist-manage-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.manage-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .15s ease, border-color .15s ease;
}

.manage-item-card:hover {
  border-color: var(--brand-warm);
  background: #fffbf7;
}

.manage-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.manage-item-order {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

.manage-item-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.manage-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.btn-item-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all .2s ease;
}

.btn-item-action svg {
  width: 16px;
  height: 16px;
}

.btn-item-action.edit:hover {
  background: var(--yellow-bg);
  color: var(--yellow);
}

.btn-item-action.delete:hover {
  background: var(--red-bg);
  color: var(--red);
}

.btn-item-action.delete-suites {
  color: #d32f2f;
}

.btn-item-action.delete-suites:hover {
  background: #ffebee;
  color: #b71c1c;
}

.btn-import-excel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, #1e7e34, #28a745);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
  transition: all 0.2s ease;
}

.btn-import-excel:hover {
  background: linear-gradient(135deg, #19692c, #218838);
  box-shadow: 0 4px 10px rgba(40, 167, 69, 0.35);
  transform: translateY(-1px);
}

.btn-import-excel:active {
  transform: translateY(0);
}

.btn-import-excel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-export-excel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: #ffffff;
  color: #1e7e34;
  border: 1.5px solid #28a745;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(40, 167, 69, 0.15);
  transition: all 0.2s ease;
}

.btn-export-excel:hover {
  background: #f0fdf4;
  border-color: #1e7e34;
  color: #155724;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25);
  transform: translateY(-1px);
}

.btn-export-excel:active {
  transform: translateY(0);
}

.btn-export-excel:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.edit-item-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.edit-item-inline input {
  flex: 1;
  padding: 6px 10px;
  border: 1.5px solid var(--brand-warm);
  border-radius: 6px;
  font-size: .88rem;
  outline: none;
}

.btn-save-inline {
  padding: 6px 10px;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}

.btn-cancel-inline {
  padding: 6px 10px;
  background: #eee;
  color: #555;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}

.modal-footer {
  padding: 12px 18px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.btn-modal-done {
  padding: 8px 22px;
  background: var(--brand-deep);
  color: var(--brand-gold);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .88rem;
  transition: all .2s ease;
}

.btn-modal-done:hover {
  background: var(--brand-dark);
}

/* ── Botão Sorteio ─────────────────────────────────────────────────────────── */
.sorteio-bar {
  padding: 10px 12px 2px;
  background: var(--surface);
  display: flex;
}

.btn-sorteio {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-warm), var(--brand-deep));
  color: #ffffff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 3px 12px rgba(139, 58, 0, .22);
  border: 1.5px solid var(--brand-gold);
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 48px;
  cursor: pointer;
}

.btn-sorteio:active {
  transform: scale(.98);
}

.btn-sorteio:hover {
  box-shadow: 0 4px 16px rgba(139, 58, 0, .32);
}

.btn-sorteio .sorteio-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform .3s ease;
}

.btn-sorteio.sorteado {
  background: linear-gradient(135deg, #1b4d1b, #2d6a2d);
  border-color: #81c784;
  box-shadow: 0 4px 14px rgba(45, 106, 45, .32);
  animation: pulseSuccess .45s ease;
}

.btn-sorteio.sorteado .sorteio-icon {
  transform: rotate(20deg) scale(1.15);
}

.btn-sorteio.animando {
  opacity: .9;
  pointer-events: none;
  background: linear-gradient(135deg, #8b3a00, #c4521a);
}

@keyframes pulseSuccess {
  0%   { transform: scale(.95); }
  50%  { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ── Hotel Tabs Bar ────────────────────────────────────────────────────────── */
.hotel-tabs-container {
  background: var(--surface);
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--border);
}

.hotel-tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}
.hotel-tabs-bar::-webkit-scrollbar { display: none; }

.hotel-tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .2s ease;
}

.hotel-tab:hover {
  background: var(--surface-2);
  border-color: var(--brand-warm);
}

.hotel-tab.active {
  background: var(--brand-deep);
  color: #ffffff;
  border-color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(92, 30, 0, .25);
}

.hotel-tab-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.6);
}

.hotel-tab-count {
  font-size: .72rem;
  opacity: .85;
  background: rgba(0, 0, 0, .08);
  padding: 1px 6px;
  border-radius: 999px;
}
.hotel-tab.active .hotel-tab-count {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* ── Suite Card Hotel Tag ─────────────────────────────────────────────────── */
.suite-number-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.suite-hotel-tag {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.suite-card-chale-badge,
.suite-card-bloco-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #ffffff;
  background: #3a1c0d;
  border: 1px solid var(--brand-gold);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.suite-card-andar-badge {
  display: inline-block;
  font-size: .60rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #4a1500;
  background: rgba(255, 235, 205, 0.9);
  border: 1px solid rgba(139, 58, 0, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1.2;
}

/* ── Detail Hero Hotel Pill ────────────────────────────────────────────────── */
.detail-hotel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.3);
}

/* ── Modal Gerenciar Hotéis ─────────────────────────────────────────────────── */
.modal-section-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand-primary);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.add-hotel-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.add-hotel-form input[type="text"] {
  flex: 1;
  min-width: 140px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  outline: none;
  background: var(--bg);
}
.add-hotel-form input[type="text"]:focus {
  border-color: var(--brand-warm);
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}

.color-picker-wrap input[type="color"] {
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  background: none;
}

.hoteis-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.hotel-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 8px;
}

.hotel-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
}

.hotel-item-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.hotel-item-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-item-count {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hotel-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Gerar Suítes em Lote */
.gerar-suites-form {
  background: var(--surface-2);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-end;
}
.form-row:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.form-group.flex-1 { flex: 1; }

.form-group label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-group input, .form-group select {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  background: var(--surface);
  outline: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--brand-warm);
}

.form-group.btn-col {
  flex: 1.2;
}

.btn-gerar-lote {
  padding: 9px 12px;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
}
.btn-gerar-lote:hover {
  background: var(--brand-dark);
}

/* ── Quick Actions Bar (Nova Suíte & Limpar Dados) ─────────────────────────── */
.quick-actions-bar {
  display: flex;
  gap: 8px;
  padding: 4px 12px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.btn-action-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: .82rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-action-pill:active { transform: scale(.98); }

.btn-action-pill.primary {
  background: var(--surface-2);
  border-color: var(--brand-warm);
  color: var(--brand-primary);
}
.btn-action-pill.primary:hover {
  background: #fbeee0;
}

.btn-action-pill.danger {
  background: var(--red-bg);
  border-color: #ef9a9a;
  color: var(--red);
}
.btn-action-pill.danger:hover {
  background: #fadbd8;
}

/* ── Suite Detail Header Top (Edit Suite) ─────────────────────────────────── */
.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.btn-edit-suite-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  color: var(--brand-gold);
  border: 1.5px solid rgba(245, 200, 66, .45);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.btn-edit-suite-header:hover {
  background: rgba(255, 255, 255, .25);
  border-color: var(--brand-gold);
}
.btn-edit-suite-header svg {
  width: 14px;
  height: 14px;
}

/* ── Suite Actions Footer (Limpar / Excluir) ─────────────────────────────────── */
.suite-actions-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 12px 0;
}

.suite-actions-footer .btn-reset-suite {
  margin: 0;
  width: 100%;
}

.btn-delete-suite {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: .83rem;
  font-weight: 700;
  color: #ffffff;
  border: 1.5px solid #a93226;
  background: linear-gradient(135deg, #c0392b, #922b21);
  transition: opacity .2s, transform .15s;
  cursor: pointer;
  text-align: center;
}
.btn-delete-suite:active {
  opacity: .85;
  transform: scale(.99);
}

/* ── Gerenciar Usuários Modal Styles ───────────────────────────────────────── */
.add-user-form {
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.add-user-form .form-row {
  display: flex;
  gap: 10px;
}
.add-user-form label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.add-user-form input,
.add-user-form select {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  background: #fff;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}
.add-user-form input:focus,
.add-user-form select:focus {
  border-color: var(--brand-warm);
}
.user-list-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.user-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.user-search-wrap svg {
  position: absolute;
  left: 8px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.user-search-wrap input {
  padding: 5px 8px 5px 28px;
  font-size: 0.78rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  width: 175px;
  transition: all 0.2s ease;
}
.user-search-wrap input:focus {
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 2px rgba(196, 82, 26, 0.12);
  width: 200px;
}
.usuarios-manage-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  scroll-behavior: smooth;
}
@keyframes userCardPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 82, 26, 0.6);
    border-color: var(--brand-warm);
    background: #fff8f3;
  }
  40% {
    box-shadow: 0 0 0 5px rgba(196, 82, 26, 0.25);
    border-color: var(--brand-warm);
    background: #fff0e6;
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 82, 26, 0);
    border-color: var(--border);
    background: var(--surface-2);
  }
}
.user-card-item.highlight-pulse {
  animation: userCardPulse 2.2s ease forwards;
}
.user-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.user-card-item:hover {
  border-color: var(--brand-warm);
}
.user-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-card-nome {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.user-card-username {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.badge-role-admin {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(196, 82, 26, 0.12);
  color: var(--brand-warm);
  border: 1px solid rgba(196, 82, 26, 0.3);
}
.badge-role-superadmin {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(123, 31, 162, 0.15);
  color: #7b1fa2;
  border: 1px solid rgba(123, 31, 162, 0.4);
}
.badge-role-user-suporte {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  color: #dc2626;
  border: 1.5px solid rgba(220, 38, 38, 0.4);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-danger-outline:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: #dc2626;
  color: #b91c1c;
}

/* ── Modal Audit & Backup ───────────────────────────────────────────────────── */
.modal-card.modal-lg {
  max-width: 760px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.audit-filter-bar {
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-filter-input {
  flex: 1;
  min-width: 180px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-primary);
}

.audit-filter-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--text-primary);
}

.btn-audit-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-audit-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px;
  overflow-y: auto;
  max-height: calc(88vh - 170px);
}

.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color .2s;
}

.audit-card:hover {
  border-color: var(--brand-gold);
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.audit-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.audit-user {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: rgba(196, 82, 26, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(196, 82, 26, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-action-badge {
  font-size: 0.70rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(43, 24, 16, 0.08);
  color: var(--brand-dark);
  border: 1px solid rgba(43, 24, 16, 0.18);
}

.audit-target {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.audit-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.audit-diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .audit-diff-grid {
    grid-template-columns: 1fr;
  }
}

.audit-diff-col {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.45;
}

.audit-diff-col.before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #7f1d1d;
}

.audit-diff-col.after {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #14532d;
}

.audit-diff-title {
  font-weight: 700;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.audit-diff-col.before .audit-diff-title { color: #dc2626; }
.audit-diff-col.after .audit-diff-title { color: #16a34a; }

.audit-diff-row {
  margin-bottom: 3px;
  word-break: break-word;
}

.audit-diff-key {
  font-weight: 600;
}

/* Modal de Backup */
.backup-modal-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.backup-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.backup-box-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-box-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.backup-box-warning {
  font-size: 0.75rem;
  color: #9a3412;
  background: rgba(234, 88, 12, 0.08);
  border: 1px solid rgba(234, 88, 12, 0.28);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.35;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADAPTAÇÃO PARA COMPUTADOR (DESKTOP / NOTEBOOK / TELAS >= 1024px)
   Dispositivos móveis (celular e tablet) mantêm 100% da proporção original.
   Em computadores, o tamanho e proporções expandem fluidamente com alta ergonomia.
═══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  /* ── 1. Container Geral da Aplicação ───────────────────────────────────────── */
  .app {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(59, 13, 0, 0.12);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  /* ── 2. Topbar Desktop (Linha Única Espaçosa e Moderna) ─────────────────────── */
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    gap: 20px;
  }

  .topbar-header-row {
    width: auto;
    flex: 0 1 auto;
    gap: 14px;
  }

  .topbar-title {
    font-size: 1.45rem;
  }

  .topbar-subtitle {
    font-size: 0.84rem;
    margin-top: 2px;
  }

  .topbar-actions {
    width: auto;
    flex: 1 1 auto;
    border-top: none;
    padding-top: 0;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .topbar-user-badge {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .topbar-user-name {
    max-width: 220px;
  }

  .topbar-buttons-group {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
  }

  .btn-icon svg {
    width: 20px;
    height: 20px;
  }

  /* ── 3. Abas de Hotéis ──────────────────────────────────────────────────────── */
  .hotel-tabs-container {
    padding: 14px 28px 10px;
  }

  .hotel-tabs-bar {
    gap: 10px;
    flex-wrap: wrap;
  }

  .hotel-tab {
    padding: 8px 18px;
    font-size: 0.86rem;
  }

  /* ── 4. Barra de Estatísticas ────────────────────────────────────────────────── */
  .stats-bar {
    padding: 16px 28px;
    gap: 16px;
  }

  .stat-card {
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    gap: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .stat-num {
    font-size: 1.85rem;
  }

  .stat-label {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  /* ── 5. Barra de Sorteio e Ações Rápidas ─────────────────────────────────────── */
  .sorteio-bar {
    padding: 12px 28px 6px;
  }

  .btn-sorteio {
    max-width: 420px;
    margin: 0 auto;
    padding: 13px 24px;
    font-size: 1rem;
  }

  .quick-actions-bar {
    padding: 8px 28px 14px;
    justify-content: flex-end;
    gap: 12px;
  }

  .btn-action-pill {
    flex: 0 1 auto;
    min-width: 170px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  /* ── 6. Barra de Busca e Filtros ────────────────────────────────────────────── */
  .search-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    gap: 20px;
  }

  .search-input-wrap {
    flex: 1;
    max-width: 460px;
  }

  .search-input-wrap input {
    padding: 11px 16px 11px 42px;
    font-size: 0.92rem;
  }

  .filter-tabs {
    flex-shrink: 0;
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  /* ── 7. Grade de Suítes Desktop (Múltiplas Colunas Proporcionais) ─────────────── */
  .suite-grid {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 16px;
    padding: 20px 28px 48px;
  }

  .suite-card {
    border-radius: var(--radius-lg);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease;
  }

  .suite-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(92, 30, 0, 0.1);
    border-color: var(--brand-warm);
  }

  .suite-card:active {
    transform: scale(0.98);
  }

  .suite-card-header {
    padding: 12px 14px 8px;
  }

  .suite-number {
    font-size: 1.4rem;
  }

  .suite-card-body {
    padding: 0 14px 14px;
  }

  .suite-casal {
    font-size: 0.86rem;
  }

  /* ── 8. Tela de Detalhes da Suíte (Layout em 2 Colunas no Computador) ────────── */
  .suite-detail-wrap {
    display: grid;
    grid-template-columns: 440px 1fr;
    grid-gap: 24px;
    padding: 24px 28px 60px;
    max-width: 1440px;
    margin: 0 auto;
    align-items: start;
  }

  .detail-hero {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .casal-card {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .suite-actions-footer {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }

  .checklist-section {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
  }

  .checklist-section-title {
    font-size: 0.82rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }

  .checklist-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
  }

  .checklist-item {
    transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .checklist-item:hover {
    border-color: var(--brand-warm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* ── 9. Modais no Computador (Larguras Confortáveis e Diffs Lado a Lado) ──────── */
  .modal-card {
    max-width: 600px;
    border-radius: var(--radius-xl);
  }

  .modal-card.modal-lg {
    max-width: 1060px;
  }

  #modalUsuarios .modal-card {
    max-width: 760px;
  }

  #modalHoteis .modal-card {
    max-width: 760px;
  }

  #modalBackup .modal-card {
    max-width: 740px;
  }

  .modal-card-swap {
    max-width: 640px;
  }

  .backup-modal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* ── 10. Toasts no Computador (Canto Inferior Direito) ────────────────────────── */
  .toast {
    left: auto;
    right: 28px;
    bottom: 28px;
    transform: translateY(20px);
    max-width: 440px;
    border-radius: var(--radius-md);
  }

  .toast.show {
    transform: translateY(0);
  }

  /* ── 11. Tela de Login no Computador ────────────────────────────────────────── */
  .login-wrap {
    max-width: 440px;
  }

  .login-card {
    padding: 38px 30px;
  }
}

/* ── Bloqueio de Rolagem da Tela de Trás (Modais Abertos) ─────────────────────── */
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body.modal-open #app {
  pointer-events: none;
  user-select: none;
}

body.modal-open .modal-overlay {
  pointer-events: auto;
}

/* ── Botão e Modal de Troca de Suítes ─────────────────────────────────────────── */
.btn-swap-suite-data {
  transition: all 0.2s ease;
}
.btn-swap-suite-data:hover {
  background: rgba(26, 92, 186, 0.16) !important;
  border-color: #1a5cba !important;
  transform: translateY(-1px);
}
.btn-swap-suite-data:active {
  transform: translateY(0);
}

#modalTrocarSuite.modal-overlay {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
}

@media (max-width: 600px) {
  #modalTrocarSuite.modal-overlay {
    padding: 6px;
    align-items: center;
  }
}

.modal-card-swap {
  width: 96%;
  max-width: 600px;
  max-height: 94dvh;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
}

@media (max-width: 600px) {
  .modal-card-swap {
    width: 100%;
    max-height: 96dvh;
    max-height: 96vh;
    border-radius: var(--radius-md);
  }
}

.modal-body-swap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 18px;
  touch-action: pan-y;
}

@media (max-width: 600px) {
  .modal-body-swap {
    padding: 10px 12px;
  }
}

.modal-body-swap::-webkit-scrollbar,
.swap-target-list::-webkit-scrollbar {
  width: 6px;
}
.modal-body-swap::-webkit-scrollbar-track,
.swap-target-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
}
.modal-body-swap::-webkit-scrollbar-thumb,
.swap-target-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.modal-body-swap::-webkit-scrollbar-thumb:hover,
.swap-target-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

.swap-origin-box {
  background: rgba(139, 58, 0, 0.06);
  border: 1.5px solid rgba(139, 58, 0, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.swap-origin-badge-top {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b3a00;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.swap-origin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.swap-origin-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.swap-origin-badges {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8b3a00;
}

.swap-origin-casal {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.swap-form-group {
  margin-bottom: 10px;
}

.swap-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.swap-filter-label {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.swap-count-badge {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.swap-select-wrap {
  margin-bottom: 6px;
}

.swap-hotel-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
}

.swap-input-wrap {
  position: relative;
  margin-bottom: 6px;
}

.swap-filter-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  font-size: 0.86rem;
  box-sizing: border-box;
}

.swap-target-list {
  max-height: clamp(140px, 26vh, 220px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  touch-action: pan-y;
}

.swap-target-card:hover {
  border-color: rgba(26, 92, 186, 0.4) !important;
  background: rgba(26, 92, 186, 0.04) !important;
}
.swap-target-card.selected {
  border-color: #1a5cba !important;
  background: rgba(26, 92, 186, 0.1) !important;
  box-shadow: 0 0 0 1px #1a5cba;
}

.swap-preview-box {
  margin-top: 10px;
  background: rgba(26, 92, 186, 0.07);
  border: 1.5px dashed rgba(26, 92, 186, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.83rem;
  color: #1a5cba;
  line-height: 1.45;
}

.modal-swap-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .modal-swap-footer {
    padding: 10px 14px;
    gap: 8px;
  }
}

.btn-swap-cancel {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn-swap-confirm {
  padding: 9px 24px;
  background: #1a5cba !important;
  border-color: #1a5cba !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(26, 92, 186, 0.25);
}

.btn-swap-confirm:hover:not(:disabled) {
  background: #154a96 !important;
  border-color: #154a96 !important;
  box-shadow: 0 4px 10px rgba(26, 92, 186, 0.35);
  transform: translateY(-1px);
}

.btn-swap-confirm:active:not(:disabled) {
  transform: translateY(0);
}

.btn-swap-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

