/* ============================================================
   Brussolo · Reservas — css/reservas.css
   Depende das variáveis definidas em css/shared.css
   ============================================================ */

/* ——— Layout geral ——— */
.res-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  color: var(--ink);
}

/* ——— Topo ——— */
.res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--olive);
  color: var(--cream-soft);
}

.res-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.res-header__logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 0.28rem;
  background: var(--cream-soft);
  border: 1px solid rgba(196, 133, 58, 0.35);
  box-shadow: 0 2px 10px rgba(20, 15, 14, 0.28);
}

.res-header__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
  line-height: 1;
}

.res-header__user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 235, 224, 0.75);
}

.res-header__user button {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(243, 235, 224, 0.35);
  background: transparent;
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.res-header__user button:hover {
  background: rgba(243, 235, 224, 0.12);
  border-color: rgba(243, 235, 224, 0.6);
}

/* ——— Container central ——— */
.res-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 4rem;
}

.res-card {
  width: min(100%, 480px);
  background: #fffaf3;
  border: 1px solid rgba(196, 133, 58, 0.28);
  box-shadow: 0 12px 40px rgba(43, 51, 20, 0.08);
  padding: 2.25rem 2rem 2rem;
  animation: res-rise 0.5s var(--ease-out) both;
}

@keyframes res-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ——— Indicador de etapas ——— */
.res-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 1.75rem;
  position: relative;
  padding: 0.15rem 0 0;
}

.res-steps::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 14px;
  height: 1px;
  background: rgba(196, 133, 58, 0.28);
  z-index: 0;
}

.res-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.res-step + .res-step::before {
  display: none;
}

.res-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(196, 133, 58, 0.35);
  background: var(--cream-soft);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.res-step.is-active .res-step__dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.res-step.is-done .res-step__dot {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}

.res-step__label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  word-break: break-word;
}

.res-step.is-active .res-step__label { color: var(--gold); }
.res-step.is-done   .res-step__label { color: var(--olive); }

/* ——— Cabeçalho da seção ——— */
.res-section-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.res-section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  line-height: 1.2;
  color: var(--olive);
}

/* ——— Abas (Cadastrar / Entrar) ——— */
.res-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid rgba(196, 133, 58, 0.2);
}

.res-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.res-tab.is-active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* ——— Formulários ——— */
.res-form {
  display: grid;
  gap: 1rem;
}

.res-field {
  display: grid;
  gap: 0.4rem;
}

.res-field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.res-field input,
.res-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(85, 49, 62, 0.32);
  border-radius: 0;
  background: rgba(250, 246, 239, 0.9);
  color: var(--nero);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.res-field input::placeholder { color: rgba(61, 52, 46, 0.5); }

.res-field input:focus,
.res-field select:focus {
  border-color: var(--burgundy);
  background: #fffaf3;
}

.res-field input.is-error,
.res-field select.is-error {
  border-color: #8a2f3a;
}

/* Select seta customizada */
.res-field--select {
  position: relative;
}

.res-field--select::after {
  content: '▾';
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

/* ——— Botões ——— */
.res-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.35rem;
  border: 0;
  background: var(--olive);
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out);
  width: 100%;
  box-sizing: border-box;
}

.res-btn:hover { background: #3a4520; box-shadow: 0 8px 24px rgba(43, 51, 20, 0.2); }
.res-btn:active { transform: translateY(1px); }
.res-btn:disabled { cursor: wait; opacity: 0.65; box-shadow: none; }

.res-btn--outline {
  background: transparent;
  border: 1px solid rgba(85, 49, 62, 0.4);
  color: var(--burgundy);
}

.res-btn--outline:hover {
  background: rgba(85, 49, 62, 0.06);
  box-shadow: none;
}

.res-btn--sm {
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
}

.res-btn-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.res-btn-row .res-btn { flex: 1; }

/* ——— Mensagem de status ——— */
.res-status {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--olive);
  min-height: 1.5em;
}

.res-status.is-error { color: #8a2f3a; }

/* ——— Link secundário ——— */
.res-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  transition: color 0.25s ease;
}

.res-link:hover { color: var(--olive); }

.res-auth-actions {
  margin: -0.25rem 0 0.9rem;
  text-align: right;
}

.res-auth-actions .res-link {
  margin-top: 0;
}

.res-forgot-lead {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

#form-forgot .res-btn--outline,
#form-reset .res-btn--outline {
  margin-top: 0.65rem;
}

/* ——— Seleção de tamanho de grupo ——— */
.res-party-hint {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.res-party-hint strong {
  font-style: normal;
  font-weight: 600;
  color: var(--olive);
}

.res-party-stepper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 1.75rem;
  max-width: 280px;
}

.res-party-stepper__btn {
  flex: 0 0 3.25rem;
  width: 3.25rem;
  border: 1px solid rgba(196, 133, 58, 0.4);
  background: var(--cream-soft);
  color: var(--olive);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.res-party-stepper__btn:hover:not(:disabled) {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream-soft);
}

.res-party-stepper__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.res-party-stepper__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.65rem 0.5rem;
  border: 1px solid rgba(196, 133, 58, 0.45);
  background: rgba(250, 246, 239, 0.95);
}

.res-party-stepper__input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--olive);
  line-height: 1;
  padding: 0;
  margin: 0;
  appearance: textfield;
  -moz-appearance: textfield;
}

.res-party-stepper__input::-webkit-outer-spin-button,
.res-party-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.res-party-stepper__input:focus {
  outline: none;
}

.res-party-stepper__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 133, 58, 0.18);
}

.res-party-stepper__unit {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ——— Lista de horários disponíveis ——— */
.res-slots-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.res-slots-list::-webkit-scrollbar { width: 4px; }
.res-slots-list::-webkit-scrollbar-track { background: transparent; }
.res-slots-list::-webkit-scrollbar-thumb { background: rgba(196, 133, 58, 0.3); border-radius: 2px; }

.res-slot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(196, 133, 58, 0.28);
  background: rgba(250, 246, 239, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  gap: 0.75rem;
}

.res-slot-item:hover {
  background: rgba(196, 133, 58, 0.08);
  border-color: var(--gold);
}

.res-slot-item.is-selected {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream-soft);
}

.res-slot-item__date {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--olive);
}

.res-slot-item.is-selected .res-slot-item__date { color: var(--cream-soft); }

.res-slot-item__time {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.res-slot-item.is-selected .res-slot-item__time { color: rgba(250, 246, 239, 0.75); }

.res-slot-item__free {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  white-space: nowrap;
}

.res-slot-item.is-selected .res-slot-item__free { color: var(--gold-bright); }

/* ——— Resumo de confirmação ——— */
.res-summary {
  border: 1px solid rgba(196, 133, 58, 0.28);
  background: rgba(250, 246, 239, 0.6);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.res-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(196, 133, 58, 0.18);
  padding-bottom: 0.65rem;
}

.res-summary__row:last-child { border-bottom: 0; padding-bottom: 0; }

.res-summary__label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.res-summary__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--olive);
  text-align: right;
}

.res-summary__value--pending {
  color: var(--burgundy);
}

/* ——— Tela de sucesso ——— */
.res-card--success {
  border-color: rgba(43, 51, 20, 0.14);
  background:
    linear-gradient(180deg, rgba(43, 51, 20, 0.04) 0%, transparent 42%),
    linear-gradient(165deg, #fffaf3 0%, var(--cream) 100%);
}

.res-success {
  text-align: center;
  padding: 0.35rem 0 0.15rem;
}

.res-success__mark {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: var(--cream-soft);
  box-shadow: 0 10px 28px rgba(43, 51, 20, 0.22);
}

.res-success__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.res-success__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--olive);
  margin: 0 0 0.45rem;
  line-height: 1.1;
}

.res-success__lead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

.res-success__details {
  margin: 0 auto 1.6rem;
  padding: 0.85rem 1rem;
  max-width: 22rem;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  background: rgba(250, 246, 239, 0.92);
  border: 1px solid rgba(196, 133, 58, 0.28);
  border-top: 3px solid var(--gold);
}

.res-success__row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.res-success__row dt {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.res-success__row dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--olive);
  line-height: 1.25;
}

.res-success__actions {
  display: grid;
  gap: 0.65rem;
}

/* ——— Lista de minhas reservas ——— */
.res-mine-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.res-mine-item {
  padding: 1rem 1.25rem;
  border: 1px solid rgba(196, 133, 58, 0.25);
  background: rgba(250, 246, 239, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.res-mine-item__info {
  display: grid;
  gap: 0.2rem;
}

.res-mine-item__date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--olive);
}

.res-mine-item__detail {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.res-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.res-badge--confirmed { background: rgba(43, 51, 20, 0.1); color: var(--olive); }
.res-badge--pending { background: rgba(196, 133, 58, 0.16); color: #8a5a22; }
.res-badge--cancelled { background: rgba(85, 49, 62, 0.1); color: var(--burgundy); }

/* ——— Estado vazio ——— */
.res-empty {
  text-align: center;
  padding: 2rem 0;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

/* ——— Spinner ——— */
[hidden] {
  display: none !important;
}

.res-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.res-extras {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.res-extras__message {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(196, 133, 58, 0.3);
  background: rgba(250, 246, 239, 0.9);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink-muted);
}

.res-extras__check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}

.res-extras__check input {
  margin-top: 0.2rem;
  accent-color: var(--olive);
}

.res-extras__policy {
  max-height: 11rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(85, 49, 62, 0.16);
  background: rgba(255, 250, 243, 0.9);
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-muted);
  white-space: pre-wrap;
}

.res-extras__policy-link {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.res-extras__policy-link:hover {
  color: var(--olive);
}

.res-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(196, 133, 58, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: res-spin 0.75s linear infinite;
}

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

/* ——— Footer mínimo ——— */
.res-footer {
  padding: 1.2rem 1.25rem 1.5rem;
  text-align: center;
  background: var(--nero);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ——— Divisor ——— */
.res-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: rgba(85, 49, 62, 0.45);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.res-divider::before,
.res-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(196, 133, 58, 0.25);
}

/* ——— Modal sinal / depósito ——— */
.res-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

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

.res-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 14, 0.58);
}

.res-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(90svh, 640px);
  overflow-y: auto;
  padding: 2.1rem 1.5rem 1.6rem;
  background:
    linear-gradient(165deg, #fffaf3 0%, var(--cream) 55%, #ebe0d2 100%);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 15, 14, 0.32);
  animation: res-modal-rise 0.4s var(--ease-out) both;
}

@keyframes res-modal-rise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.res-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.res-modal__close:hover {
  color: var(--burgundy);
}

.res-modal__kicker {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.res-modal__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4.5vw, 1.9rem);
  line-height: 1.15;
  color: var(--olive);
}

.res-modal__amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--burgundy);
}

.res-modal__amount-label {
  margin: 0.45rem 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.res-modal__list {
  margin: 0 0 1.5rem;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.res-modal__list strong {
  color: var(--ink);
  font-weight: 600;
}

.res-modal__actions {
  display: grid;
  gap: 0.65rem;
}

body.res-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .res-modal__panel {
    animation: none !important;
  }
}

/* ——— Responsivo ——— */
@media (max-width: 640px) {
  .res-header {
    padding: max(0.85rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      0.85rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .res-main {
    padding-inline: max(1rem, env(safe-area-inset-left, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px));
  }

  .res-tab {
    min-height: 44px;
  }

  .res-btn {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .res-card { padding: 1.75rem 1.15rem 1.75rem; }
  .res-party-stepper { max-width: 100%; }
  .res-header__name { display: none; }
  .res-step__label {
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.2;
  }
  .res-steps::before {
    top: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .res-card, .res-spinner { animation: none !important; }
}
