/* ========================================================
   RIFA HONDA XRE 190 2018 — TEMA CLEAN (BRANCO, PRETO, VERMELHO E CINZAS)
   Design limpo, minimalista, mobile-first e 100% acessível (WCAG AA/AAA).
   Paleta:
     Branco Puro: #ffffff, #fafafa
     Preto / Grafite Escuro: #0f172a, #1e293b, #000000
     Vermelho Destaque (Racing Red): #dc2626, #b91c1c, #991b1b, #fef2f2 (fundo suave)
     Cinzas Estruturais: #f8fafc, #f1f5f9, #e2e8f0, #cbd5e1, #94a3b8, #64748b, #334155
     WhatsApp Seguro: #15803d (Contraste > 5.02:1 sobre branco)
   ======================================================== */

:root {
  --bg-page: #f1f5f9;
  --bg-shell: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;

  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --red-primary: #dc2626;
  --red-hover: #b91c1c;
  --red-dark: #991b1b;
  --red-soft-bg: #fef2f2;
  --red-soft-border: #fecaca;

  --black-solid: #0f172a;
  --black-hover: #1e293b;

  --whatsapp-green: #15803d;
  --whatsapp-hover: #166534;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 -4px 25px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 20px 45px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
  overflow-x: hidden;
  width: 100%;
}

body.public-body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

/* SHELL MOBILE ANTI-PINÇA & VIEWPORT CONTAINMENT */
.mobile-app-shell {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-shell);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  position: relative;
  padding-bottom: 90px; /* espaço para o floating bottom bar */
  overflow-x: hidden;
  box-sizing: border-box;
}

/* HEADER / HERO */
.hero-card {
  background-color: var(--bg-shell);
  border-bottom: 2px solid var(--border-light);
  padding: 24px 20px 20px;
}

.hero-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background-color: var(--red-primary);
  color: var(--text-white);
}

.mini-pill.mini-pill-light {
  background-color: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.hero-content h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.hero-illustration {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-top: 16px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.hero-stats > div {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  text-align: center;
}

.hero-stats span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
  letter-spacing: 0.3px;
}

.hero-stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

#valorNumeroHero {
  color: var(--red-primary);
}

/* CARTOES DE CONTEUDO */
.soft-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px;
  box-shadow: var(--shadow-subtle);
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title-row.title-with-action {
  justify-content: space-between;
}

.title-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--red-soft-bg);
  border: 1px solid var(--red-soft-border);
  color: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.icon-bubble.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.card-title-row h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px;
}

.card-title-row p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.main-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 10px;
}

.support-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.mini-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.mini-info-grid span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.mini-info-grid strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

/* CAIXA DE PIX */
.pix-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
}

.pix-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pix-box strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* BOTOES */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button-main {
  background-color: var(--red-primary);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.button-main:hover {
  background-color: var(--red-hover);
  transform: translateY(-1px);
}

.button-blue {
  background-color: var(--black-solid);
  color: var(--text-white);
}

.button-blue:hover {
  background-color: var(--black-hover);
}

.button-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
}

.button-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.button-full {
  width: 100%;
}

.small-button {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background-color: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.15s ease;
}

.small-button:hover {
  background-color: var(--border-light);
  border-color: var(--border-dark);
}

/* LEGENDA DAS COTAS */
.legend-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin: 12px 0 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.status-dot.free {
  background-color: #ffffff;
  border: 2px solid var(--border-medium);
}

.status-dot.selected {
  background-color: var(--red-primary);
}

.status-dot.reserved {
  background-color: var(--border-medium);
}

.status-dot.paid {
  background-color: var(--black-solid);
}

/* GRID DE NUMEROS */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.number-button {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  min-height: 48px;
}

.number-button:hover:not(:disabled) {
  background-color: var(--bg-muted);
  border-color: var(--text-main);
  transform: scale(1.04);
}

.number-button.selected {
  background-color: var(--red-primary) !important;
  color: var(--text-white) !important;
  border-color: var(--red-hover) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.number-button.reserved {
  background-color: var(--bg-muted) !important;
  color: var(--text-light) !important;
  border-color: var(--border-light) !important;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.85;
}

.number-button.paid {
  background-color: var(--black-solid) !important;
  color: var(--text-white) !important;
  border-color: var(--black-solid) !important;
  cursor: not-allowed;
  opacity: 0.95;
}

/* CARD DE TOTAL */
.total-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--red-soft-bg);
  border: 1px solid var(--red-soft-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 14px;
}

.total-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--red-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

#selectedNumbersText {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 800;
}

#selectedTotalText {
  font-size: 1.35rem;
  color: var(--red-primary);
  font-weight: 800;
}

/* FORMULARIO */
.mobile-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 14px;
}

.mobile-form input,
.mobile-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 16px !important; /* Previne auto-zoom no iOS Safari */
  touch-action: manipulation;
  background-color: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mobile-form input:focus,
.mobile-form textarea:focus {
  border-color: var(--red-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* FOOTER */
.footer-card {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-card blockquote {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-body);
}

/* FLOATING BOTTOM BAR */
.bottom-summary {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-shell);
  border-top: 2px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-float);
  z-index: 90;
}

.bottom-summary span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bottom-summary strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

/* MODAL DE SUCESSO / PAGAMENTO */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[aria-hidden="true"] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-light);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-medium);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.modal-heart {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}

.modal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin: 0 0 6px;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 16px;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.payment-summary span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 2px;
}

.payment-summary strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.qr-area {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.qr-area img {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.qr-area p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.copy-paste-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 12px;
}

.copy-paste-label textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-main);
  resize: none;
}

.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 20px;
}

.modal-actions-grid .button-whatsapp {
  grid-column: span 2;
}

.proof-upload-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.compact-title {
  margin-bottom: 10px;
}

.compact-title h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 2px;
}

.compact-title p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
}

.file-label {
  display: block;
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  background-color: #ffffff;
  margin: 12px 0;
  color: var(--text-body);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.file-label:hover {
  border-color: var(--red-primary);
  background-color: var(--red-soft-bg);
}

.file-label input[type="file"] {
  display: none;
}

.tiny-warning {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 0;
}

.message-box {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 10px;
}

.message-box:not([hidden]) {
  display: block;
}

.message-box.success {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message-box.error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========================================================
   NAVEGAÇÃO DE 100 PAINÉIS E BUSCA DE 4 DÍGITOS (0000 A 9999)
   ======================================================== */
.panel-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.panel-nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.panel-step-btn {
  min-height: 40px;
  padding: 0 12px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-select {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 16px !important; /* Previne auto-zoom no iOS Safari */
  font-weight: 700;
  touch-action: manipulation;
}

.panel-select:focus,
.search-number-input:focus {
  outline: 2px solid var(--red-primary);
  outline-offset: 1px;
  border-color: var(--red-primary);
}

.panel-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.search-number-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 16px !important; /* Previne auto-zoom no iOS Safari */
  font-weight: 600;
  touch-action: manipulation;
  letter-spacing: 0.04em;
}

.search-number-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel-meta-row {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.number-chip {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding: 6px 2px;
  border: 1px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, transform 0.1s ease, box-shadow 0.12s ease;
  user-select: none;
  min-height: 44px;
}

.number-chip:hover:not(:disabled) {
  background-color: var(--bg-muted);
  border-color: var(--text-main);
  transform: translateY(-1px);
}

.number-chip:focus-visible,
.button:focus-visible,
.small-button:focus-visible {
  outline: 2px solid var(--red-primary);
  outline-offset: 2px;
}

.number-chip.selected {
  background-color: var(--red-primary) !important;
  color: var(--text-white) !important;
  border-color: var(--red-hover) !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.number-chip.reserved {
  background-color: var(--bg-muted) !important;
  color: var(--text-light) !important;
  border-color: var(--border-light) !important;
  border-style: dashed;
  cursor: not-allowed;
  opacity: 0.85;
}

.number-chip.paid {
  background-color: var(--black-solid) !important;
  color: var(--text-white) !important;
  border-color: var(--black-solid) !important;
  cursor: not-allowed;
  opacity: 0.95;
}

.number-chip.search-highlight {
  outline: 2px solid var(--red-primary);
  outline-offset: 1px;
}

/* SELEÇÃO RÁPIDA (SURPRESINHA) & METADADOS TABULARES */
.hero-stats strong,
.total-card strong,
.payment-summary strong,
.bottom-summary strong,
.pix-box strong {
  font-variant-numeric: tabular-nums;
}

.quick-pick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

.quick-pick-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quick-pick-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-pick-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background-color: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.12s ease;
}

.quick-pick-btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
  background-color: var(--red-soft-bg);
}

.quick-pick-btn.clear-btn {
  color: var(--text-muted);
  background-color: transparent;
}




/* --- COTA BUTTON & PRIVACY / SELECTION ENHANCEMENT --- */
.number-chip,
.number-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 4px 1px !important;
  border-radius: var(--radius-sm, 8px) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--border-medium, #e5e7eb) !important;
  background-color: #ffffff !important;
  color: var(--text-main, #111827) !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  user-select: none !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  font-variant-numeric: tabular-nums !important;
  gap: 2px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.number-chip:hover:not(:disabled),
.number-button:hover:not(:disabled) {
  background-color: var(--bg-muted, #f3f4f6) !important;
  border-color: var(--text-main, #111827) !important;
  transform: scale(1.04) !important;
}

.number-chip.selected,
.number-button.selected,
button.number-chip.selected,
button.number-button.selected {
  background-color: var(--red-primary, #dc2626) !important;
  color: #ffffff !important;
  border-color: var(--red-hover, #b91c1c) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45) !important;
  transform: translateY(-2px) scale(1.03) !important;
  z-index: 2 !important;
}

.cota-num {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.cota-badge {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 1px 2px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  text-align: center;
  box-sizing: border-box;
}

.cota-num {
  display: block;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.1;
  text-align: center;
}

.number-chip.selected .cota-badge,
.number-button.selected .cota-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.number-chip.my-cota,
.number-button.my-cota {
  background-color: #ecfdf5 !important;
  border-color: #16a34a !important;
  color: #15803d !important;
}

.number-chip.my-cota .cota-badge,
.number-button.my-cota .cota-badge {
  background: #16a34a;
  color: #ffffff;
}

.number-chip.reserved,
.number-button.reserved {
  background-color: var(--bg-muted, #f3f4f6) !important;
  color: var(--text-light, #6b7280) !important;
  border-color: var(--border-light, #e5e7eb) !important;
  border-style: dashed !important;
  cursor: not-allowed !important;
  opacity: 0.85 !important;
}

.number-chip.reserved .cota-badge,
.number-button.reserved .cota-badge {
  font-size: 0.58rem;
  color: var(--text-light, #6b7280);
  background: transparent;
  opacity: 0.85;
}

.number-chip.paid,
.number-button.paid {
  background-color: var(--black-solid, #111827) !important;
  color: var(--text-white, #ffffff) !important;
  border-color: var(--black-solid, #111827) !important;
  cursor: not-allowed !important;
  opacity: 0.95 !important;
}

.number-chip.paid .cota-badge,
.number-button.paid .cota-badge {
  font-size: 0.58rem;
  color: #d1d5db;
  background: transparent;
  opacity: 0.85;
}


/* ========================================================
   MOBILE SAFETY — remove overflow e autozoom sem bloquear zoom acessivel
   ======================================================== */
html,
body.public-body {
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

.mobile-app-shell {
  max-width: min(480px, 100%);
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

.hero-topline,
.legend-mobile {
  flex-wrap: wrap;
}

.hero-topline > *,
.card-title-row > *,
.title-left,
.hero-stats > div,
.mini-info-grid > div,
.payment-summary > div,
.numbers-grid > * {
  min-width: 0;
}

.hero-stats strong,
.mini-info-grid strong,
.payment-summary strong,
.pix-box strong,
.panel-meta-row,
#selectedNumbersText,
#bottomSelectedText {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
.panel-select,
.search-number-input,
.mobile-form input,
.mobile-form textarea,
.copy-paste-label textarea {
  font-size: 16px !important;
}

button,
.button,
a.button,
input,
select,
textarea,
.number-button,
.number-chip,
.quick-pick-btn,
.panel-step-btn {
  touch-action: manipulation;
}

.modal-close {
  width: 44px;
  height: 44px;
}

.steps-card h3 {
  text-wrap: balance;
}

.steps-card > div > div,
.card-title-row.title-with-action {
  min-width: 0;
}

.card-title-row.title-with-action {
  flex-wrap: wrap;
}

.title-left {
  flex: 1 1 240px;
}

#refreshBtn {
  min-height: 44px;
  margin-left: auto;
}

.quick-pick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.quick-pick-btn {
  min-height: 44px;
  white-space: normal;
  line-height: 1.25;
}

.bottom-summary {
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

/* `hidden` must win over the component display:flex rule. */
.bottom-summary[hidden] {
  display: none !important;
}

.promo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red-primary, #dc2626);
  border-radius: 10px;
  background: #fff7ed;
  color: #7f1d1d;
  font-size: 0.82rem;
  font-weight: 700;
}

.promo-strip strong { color: #991b1b; }

/* Keep five desktop columns inside the card instead of letting intrinsic
   ticket content force a sixth-width overflow. */
.numbers-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.number-chip,
.number-button {
  min-width: 0 !important;
  aspect-ratio: auto !important;
}

@media (hover: none), (pointer: coarse) {
  .button-main:hover,
  .button-whatsapp:hover,
  .number-button:hover:not(:disabled),
  .number-chip:hover:not(:disabled),
  .number-chip.selected,
  .number-button.selected,
  button.number-chip.selected,
  button.number-button.selected {
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .hero-card {
    padding: 20px 16px 18px;
  }

  .soft-card {
    margin: 12px;
    padding: 16px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stats > div:last-child {
    grid-column: 1 / -1;
  }

  .numbers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .number-chip,
  .number-button {
    min-width: 0 !important;
  }

  .panel-nav-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-select {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #prevPanelBtn {
    grid-column: 1;
    grid-row: 2;
  }

  #nextPanelBtn {
    grid-column: 2;
    grid-row: 2;
  }

  .panel-step-btn,
  .search-number-btn {
    min-height: 44px;
  }

  .quick-pick-bar {
    align-items: stretch;
  }

  .quick-pick-label {
    width: 100%;
  }

  .payment-summary {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 20px 16px;
  }
}

@media (max-width: 340px) {
  .hero-card {
    padding-inline: 14px;
  }

  .soft-card {
    margin: 10px;
    padding: 14px;
  }

  .panel-search-row,
  .modal-actions-grid {
    grid-template-columns: 1fr;
  }

  .modal-actions-grid .button-whatsapp {
    grid-column: auto;
  }

  .total-card,
  .bottom-summary {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ========================================================
   CONTAINMENT INFALÍVEL DA GRID DE NÚMEROS (ALMIR #622)
   Garante que as 5 colunas NUNCA transbordem da borda do cartão.
   ======================================================== */
.numbers-card {
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.numbers-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.numbers-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 420px) {
  .soft-card {
    margin: 10px 8px !important;
    padding: 12px 10px !important;
  }
  .numbers-grid {
    gap: 4px !important;
  }
  .number-chip,
  .number-button {
    min-height: 44px !important;
    font-size: 0.82rem !important;
    padding: 2px 1px !important;
  }
  .cota-badge {
    font-size: 0.50rem !important;
    padding: 0 1px !important;
  }
}


/* ========================================================
   ACABAMENTO FINO COMERCIAL & ÁUDIO (ALMIR #738)
   ======================================================== */
.sound-toggle-btn {
  transition: all 0.15s ease;
  font-weight: 700;
  font-size: 0.75rem;
  user-select: none;
}
.sound-toggle-btn:hover {
  background: #f1f5f9 !important;
  border-color: #0f172a !important;
}
.sound-toggle-btn:active {
  transform: scale(0.96);
}
.prize-showcase-card {
  background: #ffffff;
  border-radius: 16px;
}
.prize-item {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .prize-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  }
}


/* ========================================================
   SUPER REFINO VISUAL, DESIGN & MARKETING DE VENDAS HONESTO (ALMIR #1489)
   - Identidade Motociclismo Trail / Honda Red & Carbon
   - Barra de Confiança e Transparência (4 pilares)
   - Vitrine dos Prêmios Duplo (Moto + Capacete) com badges de valor
   - Stepper do Fluxo em 4 Passos
   - Combos Promocionais de Alto Desempenho (Ergonômicos, min 52px)
   - Grade de Cartelas com alto contraste e botões de toque 48px
   - Modal Pix com destaque para QR Code e Copia-e-Cola
   - 100% Acessível (WCAG AA/AAA, prefers-reduced-motion, :focus-visible)
   ======================================================== */

/* Barra de Confiança & Transparência (Trust Strip) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 16px 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trust-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
}

.trust-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.trust-desc {
  display: block;
  font-size: 0.70rem;
  color: #64748b;
  line-height: 1.25;
}

/* Vitrine de Prêmios Aprimorada */
.prize-showcase-card {
  border: 2px solid #e2e8f0;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.dual-prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.prize-item {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.prize-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.prize-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #0f172a;
  color: #ffffff;
}

.prize-badge.badge-free {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}

.prize-item img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #ffffff;
}

.prize-item strong {
  display: block;
  font-size: 0.90rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px;
}

.prize-item span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 1px;
}

.prize-value-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
}

/* Stepper 4 Passos */
.steps-card {
  background: #ffffff;
  border: 2px solid #fecaca;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.07);
}

.step-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.step-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fef2f2;
  padding: 10px 14px;
  border-radius: 12px;
  border-left: 4px solid #dc2626;
}

.step-badge-num {
  background: #dc2626;
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-text-title {
  display: block;
  font-size: 0.90rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.step-text-desc {
  font-size: 0.80rem;
  color: #475569;
  line-height: 1.35;
  display: block;
}

/* Combos Promocionais de Cotas (High-Converting Cards) */
.quick-pick-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  width: 100%;
}

.quick-pick-label {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  min-height: 38px;
  transition: all 0.12s ease;
}

.clear-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.quick-pick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.qp-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.qp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qp-card:active {
  transform: scale(0.97);
}

.qp-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  margin-bottom: 4px;
}

.qp-title {
  font-size: 0.94rem;
  font-weight: 800;
  display: block;
}

.qp-price {
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qp-orig {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-decoration: line-through;
  margin-left: 4px;
}

/* Modificadores de Combos */
.qp-single {
  border-color: #cbd5e1;
  background: #ffffff;
}
.qp-single .qp-tag { color: #64748b; }
.qp-single .qp-title { color: #0f172a; }
.qp-single .qp-price { color: #0f172a; }

.qp-popular {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}
.qp-popular .qp-tag { color: #b45309; }
.qp-popular .qp-title { color: #92400e; }
.qp-popular .qp-price { color: #92400e; }

.qp-bestseller {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.15);
}
.qp-bestseller .qp-tag { color: #dc2626; }
.qp-bestseller .qp-title { color: #991b1b; }
.qp-bestseller .qp-price { color: #991b1b; }

.qp-super {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.15);
}
.qp-super .qp-tag { color: #1d4ed8; }
.qp-super .qp-title { color: #1e40af; }
.qp-super .qp-price { color: #1e40af; }

/* Grid de Cotas e Controles */
.numbers-card {
  border: 1px solid var(--border-light, #e2e8f0);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.panel-controls {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.panel-step-btn {
  min-height: 44px;
  min-width: 44px;
  font-weight: 800;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  cursor: pointer;
}

.panel-select {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
}

.search-number-input {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 16px !important;
  font-weight: 700;
  padding: 8px 12px;
}

.search-number-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  background: #0f172a;
  color: #ffffff;
}

/* Modal de Sucesso / Pix */
.modal-card {
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

#copyPixPayloadBtn {
  grid-column: 1 / -1;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#copyPixPayloadBtn:active {
  transform: scale(0.98);
}

#btnDownloadReceipt {
  grid-column: 1 / -1;
  min-height: 48px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Floating Bottom Bar */
.bottom-summary {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 2px solid #e2e8f0;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
}

.bottom-summary strong {
  font-size: 1.15rem;
  color: #dc2626;
  font-variant-numeric: tabular-nums;
}

#goToFormBtn {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}

/* Indicadores de foco acessíveis */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dc2626 !important;
  outline-offset: 2px !important;
}

/* Responsividade e Acessibilidade */
@media (max-width: 360px) {
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .quick-pick-actions {
    grid-template-columns: 1fr;
  }
}

/* Suporte à redução de movimento per a11y-debugging guidelines */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}



/* ==========================================================================
   PAINEL ADMINISTRATIVO PRIVADO (DEC-020 / Delib #74)
   ========================================================================== */

.admin-body {
  background-color: #0b1120;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 1.5rem;
}

.admin-title-area h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.25rem 0;
}

.admin-title-area p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.admin-btn:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.admin-btn-secondary {
  background-color: #1e293b;
  color: #f1f5f9;
  border-color: #334155;
}

.admin-btn-secondary:hover {
  background-color: #334155;
}

.admin-btn-primary {
  background-color: #dc2626;
  color: #ffffff;
}

.admin-btn-primary:hover {
  background-color: #b91c1c;
}

.admin-btn-success {
  background-color: #16a34a;
  color: #ffffff;
}

.admin-btn-success:hover {
  background-color: #15803d;
}

.admin-btn-outline-danger {
  background-color: transparent;
  color: #f87171;
  border-color: #7f1d1d;
}

.admin-btn-outline-danger:hover {
  background-color: #7f1d1d;
  color: #ffffff;
}

.admin-banner-test {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background-color: rgba(30, 41, 59, 0.7);
  border: 1px solid #38bdf8;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-banner-test.active {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.1);
}

.admin-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9999px;
  background-color: #f59e0b;
  color: #0f172a;
  white-space: nowrap;
}

.admin-badge-protected {
  background-color: #10b981;
  color: #ffffff;
}

.admin-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.admin-card-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-metric-card {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-metric-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
}

.admin-metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
}

.admin-metric-value.text-green { color: #4ade80; }
.admin-metric-value.text-amber { color: #fbbf24; }
.admin-metric-value.text-blue { color: #38bdf8; }

.admin-token-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-input-group {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.admin-input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0.625rem 1rem;
  padding-right: 3rem;
  font-size: 0.9375rem;
  color: #f1f5f9;
  background-color: #0f172a;
  border: 1px solid #475569;
  border-radius: 0.5rem;
}

.admin-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.admin-input-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  min-height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-table-container {
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid #334155;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.admin-table th {
  background-color: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #334155;
  white-space: nowrap;
}

.admin-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: rgba(51, 65, 85, 0.3);
}

.admin-badge-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.375rem;
  text-transform: uppercase;
}

.admin-badge-status.pago { background-color: rgba(22, 163, 74, 0.2); color: #4ade80; border: 1px solid #16a34a; }
.admin-badge-status.reservado { background-color: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #d97706; }
.admin-badge-status.livre { background-color: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid #475569; }

.admin-actions-cell {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.admin-action-btn {
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Modal de Comprovante */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.admin-modal-content {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.admin-modal-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background-color: #0f172a;
  border-radius: 0.5rem;
  border: 1px solid #334155;
  margin: 1rem 0;
}
