/* Página de reservas e painel */
.page-head { padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 10px; }
.page-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.demo-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(243, 116, 33, .08); border: 1px dashed rgba(243, 116, 33, .5); color: #f5c9ad; font-size: .94rem;
}
.demo-banner strong { color: var(--orange); }

.book { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 96px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); padding: clamp(20px, 3vw, 30px); margin-bottom: 18px; transition: opacity .3s, border-color .3s; }
.panel.locked { opacity: .45; pointer-events: none; }
.panel.done { border-color: #2f2a26; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.panel-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
}
.panel.active .panel-num { background: var(--orange); border-color: var(--orange); color: #120700; }
.panel.done .panel-num { background: transparent; border-color: var(--orange); color: var(--orange); }
.panel-head h2 { font-size: 1.25rem; }
.panel-head .hint { margin-left: auto; color: var(--dim); font-size: .88rem; text-align: right; }

/* Escolha da sala */
.room-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.room-opt { position: relative; display: flex; gap: 14px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; text-align: left; }
.room-opt:hover { border-color: var(--line-2); }
.room-opt[aria-checked="true"] { border-color: var(--orange); background: rgba(243, 116, 33, .06); }
.room-opt img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; flex: none; }
.room-opt h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.room-opt .tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--room, var(--orange)); font-weight: 600; }
.room-opt .sub { color: var(--muted); font-size: .88rem; display: block; }
.room-opt .tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.room-opt[aria-checked="true"] .tick { background: var(--orange); border-color: var(--orange); color: #120700; }
.room-opt .tick svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.room-opt[aria-checked="true"] .tick svg { opacity: 1; }

/* Calendário */
.when { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; text-transform: capitalize; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.icon-btn:hover:not([disabled]) { border-color: var(--orange); color: var(--orange); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .72rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; }
.day {
  position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: none;
  font-weight: 500; font-size: .98rem; display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.day:not([disabled]):hover { border-color: var(--line-2); background: var(--surface-2); }
.day[disabled] { color: #4b4743; cursor: default; }
.day.avail::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.day.full { color: #6a5a50; text-decoration: line-through; }
.day.today { border-color: var(--line-2); }
.day.sel { background: var(--orange) !important; border-color: var(--orange) !important; color: #120700; }
.day.sel::after { background: #120700; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; color: var(--dim); font-size: .82rem; }
.cal-legend span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: middle; }

.times h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.times h3::first-letter { text-transform: uppercase; }
.times .note { color: var(--dim); font-size: .86rem; margin-bottom: 14px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  min-height: 52px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg-2);
  font-weight: 600; font-size: 1.02rem; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
  transition: border-color .15s, background .15s;
}
.slot small { font-weight: 400; font-size: .7rem; color: var(--dim); letter-spacing: .05em; }
.slot:not([disabled]):hover { border-color: var(--orange); }
.slot[disabled] { border-style: dashed; border-color: var(--line); color: #57524d; cursor: default; }
.slot[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #120700; }
.slot[aria-pressed="true"] small { color: #3a1c08; }
.empty { color: var(--dim); font-size: .95rem; padding: 18px; border: 1px dashed var(--line-2); border-radius: 10px; text-align: center; }

/* Jogadores */
.players { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stepper { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; transition: background .15s; }
.stepper button:hover:not([disabled]) { background: var(--orange); color: #120700; }
.stepper button[disabled] { opacity: .3; cursor: default; }
.stepper button svg { width: 18px; height: 18px; stroke-width: 2.4; }
.stepper output { min-width: 64px; text-align: center; font-family: var(--font-display); font-size: 1.6rem; }
.players-info strong { display: block; font-size: 1.05rem; }
.players-info span { color: var(--muted); font-size: .94rem; }
.players-note { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: rgba(243, 116, 33, .08); border: 1px solid rgba(243, 116, 33, .35); color: #f5c9ad; font-size: .94rem; }
.chips-sm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips-sm button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: .9rem; color: var(--muted); }
.chips-sm button:hover { border-color: var(--orange); color: var(--text); }
.chips-sm button[aria-pressed="true"] { border-color: var(--orange); background: rgba(243, 116, 33, .1); color: var(--text); }

/* Formulário */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; color: #d8d2ca; }
.field label .opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 1rem; transition: border-color .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .84rem; min-height: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin-top: 2px; flex: none; }
.link-btn { padding: 0; border: 0; background: none; color: var(--orange); font: inherit; text-decoration: underline; cursor: pointer; }
.policy { width: min(480px, calc(100% - 32px)); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.policy::backdrop { background: rgba(0, 0, 0, .7); }
.policy h2 { margin: 0 0 16px; font-size: 1.3rem; }
.policy p { margin: 0 0 12px; color: var(--muted); font-size: .96rem; }
.policy .btn { margin-top: 10px; }

/* Resumo */
.summary { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); overflow: hidden; }
.summary-media { height: 130px; position: relative; background: var(--bg-2) center 30% / cover; }
.summary-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), rgba(21, 21, 21, .2)); }
.summary-body { padding: 4px 24px 24px; }
.summary h2 { font-size: 1.15rem; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.sum-row span { color: var(--muted); }
.sum-row strong { font-weight: 600; text-align: right; }
.sum-row strong.pending { color: #57524d; font-weight: 400; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.sum-total span { color: var(--muted); }
.sum-total strong { font-weight: 600; font-size: 2rem; color: var(--orange); }
.sum-note { color: var(--dim); font-size: .84rem; margin: 6px 0 18px; }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--dim); font-size: .8rem; margin-top: 14px; }
.secure svg { width: 14px; height: 14px; }
.form-error { color: var(--danger); font-size: .9rem; margin: 0 0 12px; }

.mobile-bar { display: none; }

/* Confirmação */
.success { max-width: 640px; margin: 0 auto; padding: 56px 0 96px; text-align: center; }
.success-ico { width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(243, 116, 33, .12); border: 1.5px solid var(--orange); color: var(--orange); box-shadow: 0 0 60px -10px var(--orange-glow); }
.success-ico svg { width: 40px; height: 40px; stroke-width: 2.4; }
.success h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 12px; }
.success > p { color: var(--muted); font-size: 1.08rem; }
.ticket { margin: 32px 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); overflow: hidden; }
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px dashed var(--line-2); }
.ticket-top small { display: block; color: var(--dim); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.ticket-top .code { font-family: var(--font-display); font-size: 1.5rem; color: var(--orange); letter-spacing: .1em; }
.ticket-body { padding: 8px 24px 20px; }
.ticket-notes { padding: 16px 24px; background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.ticket-notes p { margin: 4px 0; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; max-width: calc(100% - 32px);
  background: #2a1208; border: 1px solid var(--orange); color: var(--text); padding: 14px 20px; border-radius: 12px; font-size: .95rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6); transition: transform .3s ease, visibility .3s;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

.simple-nav { display: flex; align-items: center; gap: 8px; }
.simple-nav a:not(.btn) { color: var(--muted); padding: 8px 12px; font-weight: 500; }
.simple-nav a:not(.btn):hover { color: var(--text); }

@media (max-width: 1020px) {
  .book { grid-template-columns: 1fr; }
  .summary { display: none; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(12, 12, 12, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mobile-bar .mb-info { flex: 1; min-width: 0; }
  .mobile-bar .mb-info small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar .mb-info strong { font-weight: 600; font-size: 1.35rem; color: var(--orange); }
  .mobile-bar .btn { flex: none; }
  .wa-float { bottom: 92px; }
  .mobile-only { display: block !important; }
}
@media (max-width: 760px) {
  .when { grid-template-columns: 1fr; }
  .room-pick { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-head .hint { display: none; }
  .simple-nav a:not(.btn) { display: none; }
}
@media (max-width: 380px) {
  .slots { grid-template-columns: repeat(2, 1fr); }
}
