/* iSoccer web — espelha cores e navegação do app (home + MainNavigationScreen) */
/* Tokens alinhados com lib/theme/isoccer_theme.dart */
:root {
  --bg: #0e0f0f;
  --bg-elevated: #131516;
  --surface: #1a1c1d;
  --surface-2: #232323;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-nav-top: rgba(255, 255, 255, 0.1);
  /* Bordas sólidas do app player (dão definição aos cards/slots/pills) */
  --border: #3a3a3a;
  --border-2: #4a4a4a;
  --gold: #ffd600;
  --amber: #f0c44d;
  --text: #f5f5f5;
  --text-dim: #c8c8c8;
  --text-dimmer: rgba(255, 255, 255, 0.55);
  --accent: #00ff41;
  --accent-alt: #00ff41;
  --accent-dim: rgba(0, 255, 65, 0.14);
  --accent-glow: rgba(0, 255, 65, 0.32);
  --danger: #ff6b6b;
  --warn: #fcd34d;
  /* Raios canônicos (decisão de produto 22/07): o app é retangular, não pílula.
     card 16, botão 14, input 10, chip de comodidade 8. --radius-pill/999px e
     StadiumBorder só valem para exceções intencionais (avatar circular, badge
     de contagem, grabber de bottom sheet, barra de progresso). */
  --radius-card: 16px;
  --radius-button: 14px;
  --radius-input: 10px;
  --radius-chip: 8px;
  --radius-pill: 999px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --dock-h: 0px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-dim);
  color: var(--text);
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

.app-shell.has-reserve-dock {
  --dock-h: 72px;
}

/* ——— Navbar superior (logo iSoccer) ——— */
.app-top {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px;
  background: rgba(14, 15, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.app-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  padding: 2px 6px;
  border-radius: 8px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.app-brand:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.app-brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.app-logo {
  width: 96px;
  max-width: min(96px, 48vw);
  height: auto;
  object-fit: contain;
  display: block;
}

.icon-btn[hidden] {
  display: none;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.icon-btn .material-symbols-outlined {
  font-size: 24px !important;
}

/* ——— Conteúdo ——— */
.app-main {
  flex: 1;
  padding: 8px 16px 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.global-error {
  margin-bottom: 16px;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.section-lead {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-label {
  font-size: 13px;
  color: var(--text-dim);
}

.field-label small {
  font-weight: 400;
  opacity: 0.85;
}

/* Nota de campo travado (ex.: "confirmado pelo CPF") — some via [hidden]. */
.field-label__note {
  color: var(--accent);
}
.field-label__note[hidden] {
  display: none;
}

.input,
.textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-dimmer);
}

.input:hover,
.textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.textarea {
  resize: vertical;
  min-height: 72px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

/* Botões — Elevated / Outlined como courts.dart */
.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 22px rgba(0, 255, 65, 0.18);
  transition: filter 0.15s ease, transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: scale(0.98);
}

/* Desabilitado precisa PARECER desabilitado (ex.: "Verificar telefone por
   SMS" antes do telefone completo) — senão convida um toque sem efeito. */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn.secondary:hover {
  background: #2c2c2c;
  filter: none;
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
  box-shadow: none;
}

.btn.outline:hover {
  background: var(--accent-dim);
  filter: none;
}

.hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
}

.status {
  min-height: 1.2em;
  font-size: 13px;
  margin: 8px 0 0;
}

.status.ok {
  color: var(--accent);
}

.status.err {
  color: var(--danger);
}

.status.muted {
  color: var(--text-dim);
}

.status.pending-pay {
  color: #fcd34d;
}

.pix-status-strip {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-input);
  background: rgba(252, 211, 77, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.35);
  font-size: 13px;
  line-height: 1.45;
}

.pix-status-strip-title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #fde68a;
}

.pix-status-strip-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

.pix-status-strip--ok {
  background: var(--accent-dim);
  border-color: rgba(0, 255, 65, 0.35);
}

.pix-status-strip--ok .pix-status-strip-title {
  color: var(--accent);
}

.pix-polling-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.banner {
  padding: 12px 14px;
  border-radius: var(--radius-input);
  margin-bottom: 14px;
  background: rgba(252, 211, 77, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.35);
  color: #fde68a;
  font-size: 13px;
}

.banner--soft {
  background: var(--accent-dim);
  border-color: rgba(0, 255, 65, 0.28);
  color: var(--text-dim);
}

.banner a.presentation-link,
.hint a.presentation-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.banner a.presentation-link:hover,
.hint a.presentation-link:hover {
  text-decoration: underline;
}

.pix-confirm-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

.pix-confirm-hint strong {
  color: var(--text);
}

.result-pix {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.pix-qr-wrap {
  margin: 18px 0 8px;
  text-align: center;
}

.pix-qr-label {
  margin-bottom: 10px;
  text-align: center;
}

.pix-qr-host {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.pix-qr-host img,
.pix-qr-host canvas {
  display: block;
  vertical-align: top;
}

.subhead {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

.meta-line {
  margin: 6px 0;
  font-size: 14px;
}

.meta-k {
  color: var(--text-dim);
  margin-right: 8px;
}

.error-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-input);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.error-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--danger);
}

.error-pre {
  margin: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-dim);
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.9em;
}

/* ——— Fluxo Detalhes da Quadra (create_appointment.dart) ——— */
/* display:flex abaixo vence o atributo HTML hidden sem esta regra — o fluxo ficava visível “vazio”. */
.court-flow[hidden] {
  display: none !important;
}

.court-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 -16px;
  width: calc(100% + 32px);
  max-width: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.quick-search[hidden] {
  display: none !important;
}

.quick-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 40px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.quick-search__intro {
  text-align: center;
  padding: 4px 4px 0;
}

.quick-search__intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  font-size: 24px !important;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: var(--radius-pill);
}

.quick-search__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.quick-search__lead {
  margin: 0 auto;
  max-width: 480px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.quick-search__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.quick-search__form[hidden] {
  display: none;
}

.quick-search__form .input,
.quick-search__form .quick-search__input {
  background: var(--bg);
  border-color: rgba(255, 255, 255, 0.1);
}

.quick-search__field {
  position: relative;
  display: flex;
  align-items: center;
}

.quick-search__field-icon {
  position: absolute;
  left: 12px;
  color: var(--text-dimmer);
  font-size: 20px !important;
  pointer-events: none;
}

.quick-search__input {
  width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.quick-search__clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quick-search__clear:hover {
  background: var(--surface-2);
  color: var(--text);
}

.quick-search__clear[hidden] {
  display: none !important;
}

.quick-search__actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-search__actions-row .btn {
  flex: 1 1 140px;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.quick-search__submit .material-symbols-outlined,
.quick-search__geo .material-symbols-outlined {
  font-size: 18px !important;
}

.quick-search__geo-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.quick-search__geo-status.err {
  color: var(--danger);
}

.quick-search__map-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
}

.quick-search__map-card[hidden] {
  display: none !important;
}

.quick-search__map {
  position: absolute;
  inset: 0;
}

.quick-search__status {
  margin: 4px 2px;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.quick-search__status.err {
  color: var(--danger);
}

.quick-search__results[hidden] {
  display: none;
}

.quick-search__results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-search-card {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, transform 0.08s ease, background 0.15s ease;
}

.quick-search-card:hover {
  border-color: rgba(0, 255, 65, 0.45);
  background: #1f2122;
}

.quick-search-card:active {
  transform: scale(0.995);
}

.quick-search-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.quick-search-card__thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: var(--surface-2) center/cover no-repeat;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dimmer);
}

.quick-search-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-search-card__thumb .material-symbols-outlined {
  font-size: 32px !important;
}

.quick-search-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-search-card__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-search-card__addr {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.quick-search-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.quick-search-card__badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
}

.quick-search-card__badge--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(0, 255, 65, 0.3);
}

.quick-search-card__rating {
  font-size: 0.78rem;
  color: var(--warn);
  letter-spacing: 1px;
}

.quick-search-card__rating small {
  margin-left: 4px;
  color: var(--text-dim);
  letter-spacing: 0;
  font-size: 0.85em;
}

.quick-search-card--skeleton {
  pointer-events: none;
}

.quick-search-card--skeleton .quick-search-card__thumb,
.quick-search-card--skeleton .quick-search-card__name,
.quick-search-card--skeleton .quick-search-card__addr {
  background: linear-gradient(90deg, var(--surface-2), #2c2e30, var(--surface-2));
  background-size: 200% 100%;
  animation: qs-skeleton 1.2s ease-in-out infinite;
  color: transparent;
}

.quick-search-card--skeleton .quick-search-card__name {
  display: block;
  height: 14px;
  width: 70%;
  border-radius: 4px;
}

.quick-search-card--skeleton .quick-search-card__addr {
  display: block;
  height: 12px;
  width: 90%;
  border-radius: 4px;
}

@keyframes qs-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.quick-search__load-more {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.quick-search__load-more[hidden] {
  display: none !important;
}

.quick-search__load-more .btn {
  min-width: 220px;
  justify-content: center;
}

.quick-search__footer {
  margin-top: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  text-align: center;
}

.quick-search__footer-lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.quick-search__footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.quick-search__footer-actions .btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 8px 16px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.store-btn:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.store-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.store-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.store-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  text-align: left;
  color: inherit;
}

.store-btn__pre {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82) !important;
  text-transform: none;
}

.store-btn__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff !important;
}

.store-btn--apple .store-btn__icon {
  color: #fff;
}

.store-btn--apple .store-btn__text {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", var(--font);
}

.store-btn--google .store-btn__text {
  font-family: "Roboto", var(--font);
}

.quick-search__footer-hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-input);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: left;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 255, 65, 0.22);
}

.quick-search__footer-hint code {
  font-size: 0.8em;
  word-break: break-word;
}

@media (min-width: 600px) {
  .quick-search__actions-row {
    flex-wrap: nowrap;
  }
  .quick-search__footer-actions {
    flex-direction: column;
  }
  .quick-search__footer-actions .quick-search__footer-presentation {
    width: 100%;
  }
  .store-badges {
    flex-direction: row;
    justify-content: center;
  }
  .store-badges .store-btn {
    flex: 1 1 0;
    max-width: 220px;
  }
}

/* bug #36: .court-gallery-wrap antigo (height:250px) removido — o bloco PORT FIEL
   apendado (~L2382, height:200px) redefine as mesmas 3 props e vence via cascade */

.court-gallery-skeleton {
  height: 100%;
  background: linear-gradient(110deg, var(--surface) 8%, var(--surface-2) 18%, var(--surface) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.court-gallery-viewport {
  height: 100%;
  overflow: hidden;
}

.court-gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.court-gallery-track::-webkit-scrollbar {
  display: none;
}

.court-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.court-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.court-gallery-slide--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d3238;
  color: rgba(255, 255, 255, 0.25);
}

.court-gallery-slide--fallback .material-symbols-outlined {
  font-size: 56px !important;
}

.court-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.court-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.court-gallery-dot.is-active {
  background: #fff;
}

.court-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.court-gallery-nav--prev {
  left: 10px;
}

.court-gallery-nav--next {
  right: 10px;
}

.court-gallery-nav .material-symbols-outlined {
  font-size: 22px !important;
}

.court-info-block {
  padding: 16px;
}

.court-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
}

.court-description {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}

.court-description[hidden] {
  display: none !important;
}

.court-address {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.25;
}

.court-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.court-stars {
  color: #ffd600;
  font-size: 20px;
  letter-spacing: -2px;
}

.court-rating-text {
  font-size: 14px;
  color: var(--text-dim);
}

.amenities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 4px 16px 16px;
  gap: 8px;
}

.amenities-row[hidden] {
  display: none !important;
}

.amenity-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  /* Cânone do app (22/07): chip de comodidade = raio 8, nunca pílula */
  border-radius: 8px;
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.amenity-icon .material-symbols-outlined {
  font-size: 15px !important;
}

.amenity-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.court-map-card {
  position: relative;
  margin: 16px;
  height: 150px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
}

.court-map-leaflet {
  position: absolute;
  inset: 0;
}

.court-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.map-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 255, 65, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.court-map-route-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.court-map-route-btn .material-symbols-outlined {
  font-size: 16px !important;
}

/* Pin verde do mapa (divIcon) — igual ao marcador do app player */
.court-pin__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.22);
  box-shadow: 0 0 16px 5px rgba(0, 255, 65, 0.35);
}

.court-pin__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.court-pin__dot .material-symbols-outlined {
  font-size: 18px !important;
  color: #fff;
}

/* Blocos extras (booking phase — create_appointment.dart) */
.app-block {
  padding: 8px 16px 16px;
}

.app-block--tight {
  padding-top: 0;
}

.recurring-app-banner {
  margin-bottom: 0;
}

.recurring-app-banner__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.recurring-app-banner__title .material-symbols-outlined {
  font-size: 20px;
  color: var(--accent);
}

.recurring-app-banner__text {
  margin: 0;
}

.app-block-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
}

.app-block-title--sub {
  font-size: 15px;
  font-weight: 700;
}

.court-units-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}

.court-unit-card {
  position: relative;
  flex: 0 0 auto;
  width: 74%;
  max-width: 300px;
  min-width: 230px;
  height: 200px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.16s ease;
}

.court-units-row--single .court-unit-card {
  width: 100%;
  max-width: none;
  height: 220px;
}

.court-unit-card.is-selected {
  border-color: var(--accent);
}

.court-unit-card__media {
  position: absolute;
  inset: 0;
  background-color: #0b0c0c;
  background-size: cover;
  background-position: center;
}

.court-unit-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 15, 15, 0.95) 0%, rgba(14, 15, 15, 0.5) 45%, rgba(14, 15, 15, 0) 100%);
}

.court-unit-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(14, 15, 15, 0.78);
  border: 1px solid var(--border);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text);
}

.court-unit-badge .material-symbols-outlined {
  font-size: 12px !important;
  color: var(--accent);
}

.court-unit-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
}

.court-unit-card.is-selected .court-unit-card__check {
  display: inline-flex;
}

.court-unit-card__check .material-symbols-outlined {
  font-size: 16px !important;
  color: #000;
  font-weight: 700;
}

.court-unit-card__body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.court-unit-card__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.court-unit-card__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.court-unit-card__type .material-symbols-outlined {
  font-size: 15px !important;
  color: var(--accent);
}

.court-unit-card__desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-legend-box {
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.price-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.price-legend-row--spaced {
  margin-top: 10px;
}

.price-legend-ico {
  font-size: 16px !important;
  color: var(--accent);
}

.price-legend-ico--dim {
  color: var(--text-dim) !important;
}

.price-legend-val {
  margin: 4px 0 0 24px;
  font-size: 11px;
  color: var(--text-dim);
}

.date-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.date-nav-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.date-nav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.schedule-today-badge {
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.schedule-date-input {
  text-align: center;
  font-weight: 600;
}

.schedule-status {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 10px;
  min-height: 1.2em;
}

.schedule-slots-wrap {
  overflow: hidden;
  margin-bottom: 8px;
}

.schedule-slots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  min-height: 88px;
  align-items: stretch;
}

.schedule-slot {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.schedule-slot:hover:not(.is-selected):not(.is-booked) {
  border-color: var(--border-2);
}

.schedule-slot.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.schedule-slot.is-booked {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.5);
  color: var(--danger);
  cursor: not-allowed;
  text-decoration: line-through;
}

.schedule-slot.is-booked .schedule-slot-bulb {
  color: var(--danger) !important;
}

.schedule-slot-time {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.schedule-slot-price {
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.schedule-slot.is-selected .schedule-slot-bulb {
  color: #000 !important;
}

.schedule-slot-bulb {
  font-size: 12px !important;
  color: var(--accent) !important;
}

.duration-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.duration-chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  /* Cânone do app (22/07): chip de ação/filtro = raio 10, nunca pílula */
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  min-height: 44px;
}

.duration-chip:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: var(--border);
  background: var(--surface);
}

.duration-chip:hover:not(.is-selected) {
  border-color: var(--border-2);
}

.duration-chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 800;
}

.ball-option-card,
.extra-option-card {
  padding: 12px 14px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 0 8px;
}

/* Linha de opção (bola/adicional): ícone + texto + switch — igual ao player */
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-icon .material-symbols-outlined {
  font-size: 18px !important;
  color: var(--accent);
}

.option-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Switch (toggle) a partir de um checkbox */
.switch {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  width: 46px;
  height: 28px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a3a3a;
  transition: background 0.16s ease;
  pointer-events: none;
}

.switch-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::before {
  transform: translateX(18px);
}

.ball-option-title,
.extra-option-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
}

.ball-option-sub,
.extra-option-sub {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.extra-option-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.extra-option-list:empty {
  display: none;
}

/* Avaliações */
.reviews-section[hidden] {
  display: none !important;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.reviews-header .app-block-title {
  margin: 0;
}

.reviews-load-more-link {
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.reviews-load-more-link[disabled] {
  color: rgba(255, 255, 255, 0.38);
  cursor: progress;
}

.reviews-load-more-link[hidden] {
  display: none !important;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-list:empty {
  display: none;
}

.review-card {
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
}

.review-card__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.review-card__name {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: anywhere;
}

.review-card__stars {
  color: #ffd600;
  font-size: 16px;
  letter-spacing: -1px;
  flex-shrink: 0;
  white-space: nowrap;
}

.review-card__date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  white-space: nowrap;
}

.review-card__comment {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reviews-status {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-size: 13px;
  color: var(--text-dim);
}

.reviews-status.err {
  color: var(--danger);
}

.section-dados {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.booking-total-card {
  border: 1px solid rgba(0, 255, 65, 0.3);
  background: var(--accent-dim);
  border-radius: var(--radius-card);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.booking-total-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.booking-total-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-heading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-lead--tight {
  margin-top: -8px;
  margin-bottom: 12px;
}

/* Barra Reservar Agora */
/* Modal informativo antes da reserva */
.booking-info-modal {
  position: fixed;
  inset: 0;
  /* Acima de Leaflet (.leaflet-control ~800, panes ~400–700) e da dock (90) */
  z-index: 200000;
  isolation: isolate;
  transform: translateZ(0);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
}

.booking-info-modal[hidden] {
  display: none !important;
}

.booking-info-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.booking-info-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(92vh, 720px);
  overflow: auto;
  margin: auto;
  padding: 26px 24px 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-dim);
}

.booking-info-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
  z-index: 2;
}

.booking-info-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.booking-info-modal__close:active {
  transform: scale(0.96);
}

.booking-info-modal__close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.booking-info-modal__close .material-symbols-outlined {
  font-size: 20px !important;
}

.booking-info-modal__title {
  margin: 0 36px 16px 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.booking-info-modal__list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.booking-info-modal__list li {
  margin-bottom: 8px;
}

.booking-info-modal__list li:last-child {
  margin-bottom: 0;
}

.booking-info-modal__check[hidden],
.booking-info-modal__actions[hidden] {
  display: none !important;
}

.booking-info-modal__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
  cursor: pointer;
}

.booking-info-modal__check input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.booking-info-modal__err {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.booking-info-modal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: stretch;
}

.booking-info-modal__actions .btn {
  width: 100%;
  justify-content: center;
}

.booking-flow-status {
  margin: 10px 0;
  min-height: 1.2em;
}

.btn--compact {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.booking-info-modal__fields-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.booking-info-modal__fields-stack .field {
  width: 100%;
  margin: 0;
}

/* Passo 2 do fluxo: CPF + nome + e-mail, revelados após a verificação por SMS. */
.booking-info-modal__identity {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Sem isto, o display:flex acima venceria o atributo nativo [hidden]. */
.booking-info-modal__identity[hidden] {
  display: none !important;
}

/* Link discreto para pular a verificação por SMS e preencher manualmente. */
.cpf-autofill__manual-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
}
.cpf-autofill__manual-link:hover {
  color: var(--text);
}
.cpf-autofill__manual-link[hidden] {
  display: none !important;
}

.booking-info-modal .booking-info-modal__form-status {
  margin: 8px 0 0;
}

.booking-info-modal .banner {
  margin-top: 10px;
  margin-bottom: 0;
}

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

/* Leaflet pode vencer o compositor e pintar por cima do modal; escondemos o mapa enquanto o modal está aberto */
body.booking-modal-open .court-map-card {
  visibility: hidden;
  pointer-events: none;
}

.banner .banner-dismiss-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(251, 191, 36, 0.25);
}

.banner .btn-banner-dismiss {
  width: 100%;
  justify-content: center;
}

.reserve-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(14, 15, 15, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--border-nav-top);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.reserve-dock-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reserve-dock-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.reserve-dock-price-label {
  font-size: 12px;
  color: var(--text-dim);
}

.reserve-dock-price-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.reserve-dock-price-sub {
  font-size: 11px;
  color: var(--text-dimmer);
}

.reserve-dock-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 14px 26px;
  font-size: 16px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 10px 26px rgba(0, 255, 65, 0.22);
}

.reserve-dock-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: none;
}

.reserve-dock-btn:not(:disabled):hover {
  filter: brightness(1.06);
}


/* ============================================================
   PORT FIEL DO PLAYER (workflow rr-player-port) — regras finais
   (anexado; sobrescreve as versões antigas por ordem de cascata)
   ============================================================ */
/* =============================================================================
   iSoccer — Reserva Rápida (web) — GUIA DE APLICAÇÃO ÚNICO
   Port fiel 1:1 do player Flutter:
     lib/theme/isoccer_theme.dart
     lib/screens/courts/create_appointment.dart
   Ordem: 1) Tokens :root  2) Base/container  3) Cabeçalho "Detalhes da Quadra"
   4) Galeria  5) Identificação da quadra  6) Comodidades  7) Blocos/títulos de
   seção  8) Card do mapa + pin  9) Cards de quadra (carrossel)  10) Data e
   horário (barra + slots)  11) Duração  12) Bola/adicionais + switch
   13) Resumo "Detalhes da reserva"  14) Resultado PIX  15) Botões
   16) Rodapé fixo (dock)  17) Responsivo.
   Cores exatas: accent #00FF41 · surface #1A1C1D · inputFill #232323 ·
   border(outlineVariant) #3A3A3A · outline #4A4A4A · text(onSurface) #F5F5F5 ·
   text-dim(onSurfaceVariant) #C8C8C8 · gold #FFD600 · danger #FF6B6B.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1) TOKENS (:root) — valores EXATOS do IsoSoccerTheme (dedup — bloco único)
   Substitui o :root existente no topo do styles.css.
   ----------------------------------------------------------------------------- */
:root {
  /* Base palette (Color(0xFF...)) */
  --bg: #0e0f0f;            /* scaffoldDark */
  --bg-elevated: #131516;   /* elevação intermediária web-only */
  --surface: #1a1c1d;       /* surfaceCard */
  --surface-2: #232323;     /* inputFill */

  /* onSurface / onSurfaceVariant do colorScheme */
  --text: #f5f5f5;          /* onSurface */
  --text-dim: #c8c8c8;      /* onSurfaceVariant */
  --text-dimmer: rgba(255, 255, 255, 0.55);

  /* Bordas sólidas (outline / outlineVariant) */
  --border: #3a3a3a;        /* outlineVariant — cards/slots/pills */
  --border-2: #4a4a4a;      /* outline */
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-nav-top: rgba(255, 255, 255, 0.1);

  /* Accent verde + halos derivados (accentGreen 0xFF00FF41) */
  --accent: #00ff41;
  --accent-alt: #00ff41;
  --accent-soft: rgba(0, 255, 65, 0.20);   /* walletAccentSoft 0x3300FF41 */
  --accent-dim: rgba(0, 255, 65, 0.14);
  --accent-glow: rgba(0, 255, 65, 0.40);   /* walletAccentGlow 0x6600FF41 */

  /* Semânticas */
  --gold: #ffd600;          /* estrelas de rating */
  --amber: #f0c44d;         /* amberWaiting */
  --warn: #ffb547;          /* walletPending */
  --danger: #ff6b6b;        /* walletDanger — slot ocupado */
  --danger-soft: rgba(255, 107, 107, 0.16);

  /* Raios canônicos (decisão de produto 22/07): o app é retangular, não pílula.
     card 16, botão 14, input 10, chip de comodidade 8. --radius-pill/999px só
     para exceções intencionais (avatar circular, badge de contagem, grabber,
     barra de progresso) — nunca chip de filtro/ação ou botão. */
  --radius-input: 10px;
  --radius-button: 14px;
  --radius-chip: 8px;
  --radius-card: 16px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Sistema de espaçamento (padding tela 16, gaps de seção 12–16) */
  --gap-screen: 16px;   /* padding horizontal da tela */
  --gap-section: 16px;  /* respiro vertical entre seções */
  --gap-block: 12px;    /* respiro título → conteúdo */
  --gap-inline: 8px;    /* micro espaçamento */

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
  --header-h: 56px;     /* kToolbarHeight do PageHeader */
  --dock-h: 0px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* -----------------------------------------------------------------------------
   2) BASE / CONTAINER MOBILE
   ----------------------------------------------------------------------------- */
html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--text); }

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

/* bug #22: dock real (padding 16+16 + botão ~48px) mede ~80px; 72px cobria ~8px do conteúdo */
.app-shell.has-reserve-dock { --dock-h: 80px; }

/* Largura de "telefone" centralizada (480px casa com o layout de coluna do player) */
.app-main {
  flex: 1;
  padding: 0 var(--gap-screen) 24px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.app-main--reserve { padding-top: 0; }

/* O courtFlow é full-bleed dentro do container mobile; cada seção recompõe seu
   próprio padding de 16px. */
.court-flow[hidden] { display: none !important; }
.court-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 calc(-1 * var(--gap-screen));
  width: calc(100% + calc(2 * var(--gap-screen)));
  max-width: none;
}

/* -----------------------------------------------------------------------------
   3) CABEÇALHO "Detalhes da Quadra" (PageHeader)
   Barra: {voltar} / {título centralizado} / {atualizar + loja}.
   ----------------------------------------------------------------------------- */
.court-header {
  position: sticky;
  top: 0;
  z-index: 1000; /* acima do Leaflet (~800) ao rolar */
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 4px; /* bug #35: sem safe-area no topo (.app-top acima já compensa o notch) — evita faixa vazia */
  background: var(--bg);
  border-bottom: 1px solid var(--border-nav-top);
}

.court-header[hidden] { display: none !important; }

.court-header__title {
  grid-column: 2;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.court-header__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.court-header .icon-btn { color: #fff; }
.court-header .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* -----------------------------------------------------------------------------
   4) GALERIA (full-bleed, altura 200px — Flutter SizedBox(height:200))
   ----------------------------------------------------------------------------- */
.court-gallery-wrap {
  position: relative;
  height: 200px;
  background: #1a1a1a;
}

.court-gallery-skeleton {
  height: 100%;
  background: linear-gradient(110deg, var(--surface) 8%, var(--surface-2) 18%, var(--surface) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.court-gallery-viewport {
  height: 100%;
  overflow: hidden;
}

.court-gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.court-gallery-track::-webkit-scrollbar { display: none; }

.court-gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

.court-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Flutter: BoxFit.cover */
  display: block;
}

/* Fallback (Flutter: Container grey.shade800 + icon white30 50px) */
.court-gallery-slide--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #424242;
  color: rgba(255, 255, 255, 0.30);
}
.court-gallery-slide--fallback .material-symbols-outlined {
  font-size: 50px !important;
}

/* Dots: ativo VERDE e LARGO (22px), inativos brancos 40% */
.court-gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}
.court-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.court-gallery-dot.is-active {
  width: 22px;
  background: var(--accent);
}

/* Setas prev/next (web/desktop; não existem no PageView do Flutter) */
.court-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.court-gallery-nav--prev { left: 10px; }
.court-gallery-nav--next { right: 10px; }
.court-gallery-nav .material-symbols-outlined { font-size: 22px !important; }

/* -----------------------------------------------------------------------------
   5) IDENTIFICAÇÃO DA QUADRA (cabeçalho da quadra)
   Flutter: Padding(16,16,16,8). Ordem: NOME -> RATING(6) -> ENDEREÇO(8) ->
   DESCRIÇÃO(10) -> (14) amenities. `order` garante a ordem mesmo sem editar HTML.
   ----------------------------------------------------------------------------- */
.court-info-block {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
}

.court-name {
  order: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.15;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* Flutter: maxLines 2 + ellipsis */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.court-rating-row {
  order: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  flex-wrap: wrap;
  -webkit-tap-highlight-color: transparent;
}

.court-stars {
  color: var(--gold);         /* #FFD600 */
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.court-rating-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;    /* Flutter: maxLines 1 + ellipsis */
}

.court-rating-chevron {
  flex: 0 0 auto;
  font-size: 18px !important;
  color: var(--text-dim);
}

/* Endereço: pin 14px + texto 13px cinza. JS seta via textContent -> pin no ::before */
.court-address {
  order: 3;
  margin: 8px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--text-dim);
}
.court-address::before {
  content: "location_on";
  font-family: "Material Symbols Outlined";
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-dim);
  flex: 0 0 auto;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.court-description {
  order: 4;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}
.court-description[hidden] { display: none !important; }

/* -----------------------------------------------------------------------------
   6) COMODIDADES (pills) — Flutter Wrap spacing/runSpacing 8; SizedBox(14) acima
   Chip: padding 10h/7v, bg surface, radius 999, borda #3A3A3A, icone accent 14,
   label 12/500 onSurface.
   ----------------------------------------------------------------------------- */
.amenities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 16px;
}
.amenities-row[hidden] { display: none !important; }

.amenity-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  /* Cânone do app (22/07): chip de comodidade = raio 8, nunca pílula */
  border-radius: 8px;
  line-height: 1;
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.amenity-icon .material-symbols-outlined {
  font-size: 14px !important;
  line-height: 1;
}

.amenity-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

/* Pill "+N ver mais" (verde) — pronto caso o JS passe a emitir overflow */
.amenity-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid rgba(0, 255, 65, 0.5);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.amenity-more .material-symbols-outlined {
  font-size: 14px !important;
  color: var(--accent);
  line-height: 1;
}

/* -----------------------------------------------------------------------------
   7) BLOCOS + TÍTULOS DE SEÇÃO (_SectionHeader do player: 15/700/-0.1)
   Vale p/ Localização, Quadras, Data e horário, Duração, etc.
   ----------------------------------------------------------------------------- */
.app-block {
  padding: var(--gap-inline) var(--gap-screen) var(--gap-section); /* 8 / 16 / 16 */
}
.app-block--tight { padding-top: 0; }

.app-block-title,
.app-block-title--sub {
  margin: 0 0 var(--gap-block);   /* 12 */
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.25;
  color: var(--text);
}

/* -----------------------------------------------------------------------------
   8) LOCALIZAÇÃO — CARD DO MAPA + PIN VERDE
   Container: height 140, radius 12, border outlineVariant (#3A3A3A)
   ----------------------------------------------------------------------------- */
.court-map-card {
  position: relative;
  margin: 12px 16px 8px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.court-map-leaflet { position: absolute; inset: 0; }

.court-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.map-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 255, 65, 0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Botão "Abrir rota" — pílula accent/preto sobre o mapa
   (player: right/bottom 10, padding H12/V8, icon 14 preto, texto 13/700 -0.1) */
.court-map-route-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--accent);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-pill);
}
.court-map-route-btn .material-symbols-outlined {
  font-size: 14px !important;
  color: #000;
}
.court-map-route-btn:hover { filter: brightness(1.06); }

/* PIN VERDE (divIcon Leaflet) — player _MapPin
   halo 44 accent@0.20 | dot 32 accent borda branca ~0.95 | icone location_on preto 16 */
.court-pin__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 255, 65, 0.20);
}
.court-pin__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 14px -1px rgba(0, 255, 65, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.35);
}
.court-pin__dot .material-symbols-outlined {
  font-size: 16px !important;
  color: #000;
}

/* -----------------------------------------------------------------------------
   9) QUADRAS DISPONÍVEIS — carrossel horizontal com peek
   player: cardWidth = maxWidth*0.72 clamp(230,360), height 220, gap 12
   single: width 100%, height 240
   ----------------------------------------------------------------------------- */
.court-units-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.court-units-row::-webkit-scrollbar { display: none; }

/* Arrasto com o mouse (ver `setupUnitsDragScroll` no app.js). O snap sai
   enquanto o ponteiro está segurando: mandatório, ele briga com o arrasto e
   puxa a régua de volta a cada quadro. Volta ao soltar, e aí encaixa. */
.court-units-row.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.court-units-row.is-dragging .court-unit-card { cursor: grabbing; }

.court-unit-card {
  position: relative;
  flex: 0 0 auto;
  width: 72%;
  max-width: 360px;
  min-width: 230px;
  height: 220px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);      /* 16 */
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
  transition: border-color 0.16s ease;
}

.court-units-row--single .court-unit-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 240px;
}

.court-unit-card.is-selected {
  border-color: var(--accent);
  border-width: 1.5px;
}

.court-unit-card__media {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  border-radius: 15px;                  /* ClipRRect(15) interno */
}

/* Gradiente bottom->top — stops [0,0.55,1] / opacidades 0.95/0.33/0 */
.court-unit-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: linear-gradient(
    to top,
    rgba(14, 15, 15, 0.95) 0%,
    rgba(14, 15, 15, 0.33) 55%,
    rgba(14, 15, 15, 0) 100%
  );
}

/* Badge "Iluminação" */
.court-unit-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(14, 15, 15, 0.78);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.court-unit-badge .material-symbols-outlined {
  font-size: 11px !important;
  color: var(--accent);
}

/* Check verde (selecionado) */
.court-unit-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
  align-items: center;
  justify-content: center;
}
.court-unit-card.is-selected .court-unit-card__check { display: inline-flex; }
.court-unit-card__check .material-symbols-outlined {
  font-size: 14px !important;
  color: #000;
  font-weight: 700;
}

/* Corpo (nome/tipo/desc sobre a foto) */
.court-unit-card__body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.court-unit-card__name {
  max-width: 100%;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.87);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.court-unit-card__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.87);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.court-unit-card__type .material-symbols-outlined {
  font-size: 14px !important;
  color: var(--accent);
  flex: 0 0 auto;
}

.court-unit-card__desc {
  margin-top: 6px;
  max-width: 100%;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.87);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dots do carrossel (inertes até o JS renderizar) */
.court-unit-card__dots {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}
.court-unit-card__dot {
  width: 6px;
  height: 6px;
  margin: 0 2.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}
.court-unit-card__dot.is-active {
  width: 16px;
  background: var(--accent);
}

/* Botão "Fotos" (inerte até o JS renderizar) */
.court-unit-card__photos {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.court-unit-card__photos .material-symbols-outlined {
  font-size: 14px !important;
  color: #fff;
}

/* -----------------------------------------------------------------------------
   10) DATA E HORÁRIO — legenda + barra de data (pílula) + slots
   ----------------------------------------------------------------------------- */
/* Legenda de preços (card surface/border) */
.price-legend-box {
  padding: 14px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.price-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.price-legend-row--spaced { margin-top: 10px; }
.price-legend-ico { font-size: 16px !important; color: var(--accent); }
.price-legend-ico--dim { color: var(--text-dim) !important; }
.price-legend-val {
  margin: 4px 0 0 24px;
  font-size: 11px;
  color: var(--text-dim);
}

/* Barra de data: uma ÚNICA pílula escura com as setas DENTRO (Container Row) */
.date-nav-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0;
  overflow: hidden;
}

/* Setas (chevron 20px). Sobrescreve .icon-btn no contexto da barra. */
.date-nav-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}
.date-nav-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); }
.date-nav-btn .material-symbols-outlined {
  font-size: 20px !important;
  color: inherit;
}
.date-nav-btn:disabled {
  color: rgba(200, 200, 200, 0.35);   /* onSurfaceVariant.withOpacity(0.35) */
  cursor: default;
  pointer-events: none;
  background: transparent;
}

/* Centro: [calendário verde 16] + badge "Hoje" + data centralizada */
.date-nav-center {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 6px;
  position: relative;
}
.date-nav-center::before {
  content: "calendar_month";
  font-family: "Material Symbols Outlined";
  font-size: 16px;
  line-height: 1;
  color: var(--accent);
  font-weight: normal;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  flex: 0 0 auto;
}

.schedule-today-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
}

/* Data por extenso (único texto visível): "quarta-feira, 1 de julho" */
.schedule-date-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text);
  line-height: 1.2;
  /* abrevia em telas estreitas em vez de quebrar/estourar */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.schedule-date-label:first-letter { text-transform: uppercase; }
/* O <input type=date> vira o GATILHO INVISÍVEL do calendário, cobrindo toda a
   área central (tap/click abre o picker). Não mostra mais "01/07/2026" — o texto
   visível é o rótulo por extenso acima. Evita a "data dupla". */
.schedule-date-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
}
.schedule-date-input:focus { outline: none; }

/* Status de carregamento dos horários */
.schedule-status {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 12px;
  min-height: 1.2em;
}
.schedule-status:empty { display: none; margin: 0; min-height: 0; }

/* Grade de horários (Flutter SizedBox(height:64), slot width 78, radius 12) */
.schedule-slots-wrap {
  overflow: hidden;
  margin-bottom: 0;
}
.schedule-slots {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}
.schedule-slots::-webkit-scrollbar { height: 6px; }
.schedule-slots::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }
.schedule-slots::-webkit-scrollbar-track { background: transparent; }

.schedule-slot {
  flex: 0 0 auto;
  width: 78px;
  min-width: 78px;
  height: 56px;
  padding: 8px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.schedule-slot:hover:not(.is-selected):not(.is-booked) { border-color: var(--border-2); }

.schedule-slot.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  border-width: 1.5px;
  color: #000;
}

.schedule-slot.is-booked {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.55);
  color: var(--danger);
  cursor: not-allowed;
}
.schedule-slot.is-booked .schedule-slot-time { text-decoration: line-through; }
.schedule-slot.is-booked .schedule-slot-bulb { color: var(--danger) !important; }

.schedule-slot-time {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.1;
  white-space: nowrap;
}
.schedule-slot-price {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.1;
  white-space: nowrap;
}
.schedule-slot.is-selected .schedule-slot-price { color: rgba(0, 0, 0, 0.75); }
.schedule-slot.is-selected .schedule-slot-bulb { color: rgba(0, 0, 0, 0.75) !important; }
.schedule-slot-bulb {
  font-size: 12px !important;
  color: var(--accent) !important;
  line-height: 1;
}

/* Selo "horário do dia seguinte" (quadra que vira o dia): a cauda de
   madrugada no fim da grade de D já é D+1 — sinaliza no canto do slot. */
.schedule-slot {
  position: relative;
}
.schedule-slot-nextday {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}
.schedule-slot.is-selected .schedule-slot-nextday {
  background: #000;
  color: var(--accent);
}
.schedule-slot.is-booked .schedule-slot-nextday {
  background: var(--danger);
  color: #fff;
}

/* -----------------------------------------------------------------------------
   11) DURAÇÃO (pills 999, scroll horizontal)
   ----------------------------------------------------------------------------- */
.duration-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  -webkit-overflow-scrolling: touch;
  align-items: center;
}
.duration-row::-webkit-scrollbar { height: 6px; }
.duration-row::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }
.duration-row::-webkit-scrollbar-track { background: transparent; }

.duration-chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  /* Cânone do app (22/07): chip de ação/filtro = raio 10, nunca pílula */
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1.15;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  min-height: 44px;
}
.duration-chip:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: var(--border);
  background: var(--surface);
}
.duration-chip:hover:not(.is-selected) { border-color: var(--border-2); }
.duration-chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 800;
}

/* -----------------------------------------------------------------------------
   12) BOLA / ADICIONAIS (option-row + switch) — _OptionTile
   ----------------------------------------------------------------------------- */
.ball-option-card,
.extra-option-card {
  padding: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 0 12px;
  box-shadow: none;
}
.extra-option-card:last-child { margin-bottom: 0; }

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 12px 14px;   /* LTRB(14,12,8,12) do player */
}

.option-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);         /* scaffoldDark #0E0F0F */
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-icon .material-symbols-outlined {
  font-size: 18px !important;
  line-height: 1;
  color: var(--accent);
}

.option-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ball-option-title,
.extra-option-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1.2;
  color: var(--text);
}
.ball-option-sub,
.extra-option-sub {
  display: block;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--text-dim);
}

.extra-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.extra-option-list:empty { display: none; }

.addon-qty {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.addon-qty__button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.addon-qty__button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.addon-qty__count {
  min-width: 22px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 420px) {
  .option-row { gap: 8px; }
  .option-icon { width: 36px; height: 36px; }
  .addon-qty { gap: 4px; }
}

/* Switch (~ Switch.adaptive material dark) */
.switch {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;      /* centraliza o trilho dentro da área de toque maior */
  width: 46px;
  height: 28px;
  min-height: 44px;         /* alvo de toque >= 44px (a11y) */
  cursor: pointer;
}
/* hit-area invisível de 44px de altura cobrindo todo o label do switch */
.switch::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 44px;
  min-height: 44px;
}
.switch input {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 44px;             /* input cobre a área de toque de 44px */
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.switch-track {
  position: absolute;
  /* mantém o trilho visual em 46x28 centralizado, mesmo com a área de toque de 44px */
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  border-radius: 999px;
  background: var(--border);
  transition: background 0.16s ease;
  pointer-events: none;
}
.switch-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s ease, background 0.16s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::before { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--accent-glow); }

/* -----------------------------------------------------------------------------
   13) RESUMO — "Detalhes da reserva" (dados-reserva)
   Card surfaceCard r16 p16; linha Total = _buildPriceRow('Total', isTotal)
   ----------------------------------------------------------------------------- */
.section-dados {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  border-radius: var(--radius-xl);   /* 16 */
  padding: 16px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.booking-total-card {
  border: none;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.24);  /* Divider white24 */
  border-radius: 0;
  padding: 16px 0 0;
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.booking-total-label {
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}
.booking-total-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.booking-flow-status {
  margin: 10px 0;
  min-height: 1.2em;
}

/* -----------------------------------------------------------------------------
   14) RESULTADO PIX — _buildPaymentPhase
   QR card branco r16 p16; valor accent 28/bold; copiar = OutlinedButton verde
   ----------------------------------------------------------------------------- */
.result-pix {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

.subhead {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.pix-confirm-hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  text-align: center;
}
.pix-confirm-hint strong { color: var(--text); }

.pix-qr-wrap {
  margin: 18px 0 8px;
  text-align: center;
}
.pix-qr-label {
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-dim);
}
.pix-qr-host {
  display: inline-block;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.pix-qr-host img,
.pix-qr-host canvas {
  display: block;
  vertical-align: top;
}

.meta-line {
  margin: 6px 0;
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}
.meta-k {
  color: var(--text-dim);
  margin-right: 8px;
}
#outAmount {
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#btnCopyPix.btn.secondary {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 65, 0.6);
  border-radius: var(--radius-input);
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: none;
}
#btnCopyPix.btn.secondary:hover { background: var(--accent-dim); }

#outPix.input.textarea {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px;      /* >=16px evita zoom automático do iOS ao focar */
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all; /* código PIX longo quebra sem estourar */
}

.pix-polling-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* -----------------------------------------------------------------------------
   15) BOTÕES — ElevatedButton (accent/preto/w700), pílula
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  /* Cânone do app (22/07): botão = raio 14, nunca pílula. Esta regra vem
     depois da de cima na cascata, então é ela que manda no visual. */
  border-radius: var(--radius-button);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.1px;
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 22px rgba(0, 255, 65, 0.18);
  transition: filter 0.15s ease, transform 0.08s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; filter: none; }
.btn .material-symbols-outlined { font-size: 18px !important; }

.btn.primary { background: var(--accent); color: #000; }

.btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
  border-color: var(--border);
}
.btn.secondary:hover { background: #2c2c2c; filter: none; }

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
  box-shadow: none;
}
.btn.outline:hover { background: var(--accent-dim); filter: none; }

.btn--compact { padding: 8px 14px; font-size: 13px; }

/* Botões-ícone (voltar/atualizar/loja/setas) */
.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: var(--text);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  transition: background 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--accent); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent-glow); }
.icon-btn .material-symbols-outlined { font-size: 24px !important; }

/* -----------------------------------------------------------------------------
   16) RODAPÉ FIXO (dock) — Total + botão Reservar/Gerar PIX
   Footer PLANO (bg scaffoldDark + border-top outlineVariant, sem blur/sombra)
   ----------------------------------------------------------------------------- */
.reserve-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100; /* acima do Leaflet (controles ~800, panes 400-700) */
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-top: 1px solid var(--border);
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
}
.reserve-dock[hidden] { display: none !important; }

.reserve-dock-inner {
  max-width: 480px; /* bug #23: casa com .app-main (480px) p/ alinhar dock ao conteúdo em tela larga */
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reserve-dock-price {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;                             /* Expanded do lado do total */
}
.reserve-dock-price-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
.reserve-dock-price-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reserve-dock-price-sub {
  font-size: 11px;
  color: var(--text-dimmer);
}

.reserve-dock-btn {
  margin-left: 0;
  flex: 1;                             /* Expanded flex:1 ao lado do total */
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.1px;
  border-radius: var(--radius-card);   /* 12 */
  background: var(--accent);
  color: #000;
  box-shadow: none;
}
.reserve-dock-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: none;
}
.reserve-dock-btn:not(:disabled):hover { filter: brightness(1.06); }

/* -----------------------------------------------------------------------------
   17) RESPONSIVO
   ----------------------------------------------------------------------------- */
@media (max-width: 340px) {
  .court-header__title { font-size: 16px; }
}

/* =============================================================================
   OVERRIDES DE UX/UI (bloco final — vence via cascade)
   ============================================================================= */

/* 3) Teclado virtual cobria o modal: card cola no topo e rola por dentro.
   100dvh já considera o viewport dinâmico (barra do navegador/teclado). */
.booking-info-modal {
  align-items: flex-start;
}
.booking-info-modal__card {
  margin-top: 16px;
  margin-bottom: 16px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

/* 4) Estado de loading dos botões (a classe .is-loading é adicionada pelo JS).
   Esconde o texto e mostra um spinner girando; reusa @keyframes spin. */
.btn.is-loading,
.reserve-dock-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading::after,
.reserve-dock-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  /* contraste sobre o botão verde: aro preto translúcido + topo preto sólido */
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-top-color: #000;
  animation: spin 0.7s linear infinite;
}

/* 7) Foco visível do input de data (o <input> é opacity:0 sem outline). */
.date-nav-center:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.5);
  border-radius: 12px;
}

/* 10) Foco/toque do botão limpar busca. */
.quick-search__clear {
  min-width: 40px;
  min-height: 40px;
}
.quick-search__clear:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.5);
  outline: none;
}

/* Autofill do nome por CPF via SMS/OTP (dentro do modal, opt-in) */
.cpf-autofill {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 2px 0 4px;
}
.cpf-autofill__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cpf-autofill__btn .material-symbols-outlined {
  font-size: 18px;
}
.cpf-otp {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cpf-otp__code {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  letter-spacing: 6px;
  font-weight: 700;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}
.cpf-otp .btn {
  flex: 0 0 auto;
}
/* Campo travado (ex.: nome confirmado pelo CPF — não editável). */
.input--locked {
  opacity: 0.72;
  border-style: dashed;
  cursor: default;
}
.input--locked:focus {
  outline: none;
  box-shadow: none;
}
/* "Não recebeu o código? Reenviar código / Reenviar em 59s" */
.cpf-resend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.cpf-resend__btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cpf-resend__btn:disabled {
  color: var(--text-dim);
  cursor: default;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.cpf-autofill__status:empty {
  display: none;
}
/* display:flex acima venceria o atributo nativo [hidden]; sem isto o botão de
   autofill e a linha do OTP ficam sempre visíveis (app.js alterna .hidden). */
.cpf-autofill[hidden],
.cpf-autofill__btn[hidden],
.cpf-otp[hidden],
.cpf-resend[hidden] {
  display: none !important;
}

/* 8) Respeita prefers-reduced-motion (deve ser a última regra). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
