﻿/* ============================================
   SORTEIOS PARK & CIA â€” Estilos Globais
   ============================================ */

:root {
  --bg-dark: #06150a;
  --bg-card: #0d2814;
  --bg-card-hover: #12391c;
  --gold: #30b04a;
  --gold-light: #72d879;
  --gold-dark: #08742b;
  --text-primary: #f7fff8;
  --text-secondary: #b8cfbd;
  --text-muted: #78917d;
  --disponivel: #183f22;
  --disponivel-text: #b8cfbd;
  --vendido: linear-gradient(135deg, #f3262e 0%, #a90e17 100%);
  --vendido-text: #ffffff;
  --cartela-disponivel: linear-gradient(135deg, #7bd88f 0%, #4caf6a 100%);
  --cartela-disponivel-text: #0d2e18;
  --cartela-vendido: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
  --cartela-vendido-text: #fff5f5;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
  --font-serif: "Segoe UI", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- Header ---- */
.header {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7f1 100%);
  border-bottom: 4px solid #ef1823;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 92px;
  box-shadow: 0 3px 18px rgba(0, 65, 22, 0.22);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(0, 65, 22, 0.25);
}

.brand-copy {
  text-align: left;
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #075b22;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.logo span {
  color: #ef1823;
  font-weight: 800;
}

.logo-sub {
  font-size: 0.78rem;
  color: #315b3a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ---- Layout ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ---- Cards de Rifas (index) ---- */
.rifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rifa-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 176, 74, 0.15);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.rifa-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(48, 176, 74, 0.4);
}

.rifa-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-dark);
}

.rifa-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rifa-card-nome {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.rifa-card-preco {
  color: var(--gold);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ---- Barra de Progresso ---- */
.progress-wrapper {
  margin: 0.25rem 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.progress-bar {
  height: 8px;
  background: var(--disponivel);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ---- Status Badge ---- */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-ativa {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-encerrada {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-revelada {
  background: rgba(48, 176, 74, 0.15);
  color: var(--gold);
  border: 1px solid rgba(48, 176, 74, 0.3);
}

/* ---- Ganhador ---- */
.ganhador-box {
  background: linear-gradient(135deg, rgba(48, 176, 74, 0.15), rgba(48, 176, 74, 0.05));
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  text-align: center;
}

.ganhador-box .trophy {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.ganhador-box .ganhador-nome {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 700;
}

/* ---- BotÃµes ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-gold {
  background: linear-gradient(135deg, #0f9b38, #066923);
  color: #fff;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #27bd4e, #0a8430);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(48, 176, 74, 0.3);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee676 0%, #25d366 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  color: #fff;
}

.btn-whatsapp-icon {
  font-size: 1.1em;
}

.cta-whatsapp-box {
  background: var(--bg-card);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.cta-whatsapp-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(48, 176, 74, 0.1);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---- PÃ¡gina da Rifa ---- */
.rifa-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.rifa-hero-img {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid rgba(48, 176, 74, 0.3);
  object-fit: cover;
  max-height: 400px;
}

.rifa-hero-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.rifa-descricao {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.rifa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-item {
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(48, 176, 74, 0.15);
}

.meta-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.meta-item .value.meta-concurso {
  font-size: 0.85rem;
  line-height: 1.3;
  word-break: break-word;
}

.contagem-tempo-real {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 176, 74, 0.2);
  margin-bottom: 1.5rem;
}

.contagem-tempo-real span {
  color: var(--gold);
}

/* ---- Cartela Digital ---- */
.cartela-titulo {
  font-family: var(--font-serif);
  text-align: center;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.cartela-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cartela-quadrado {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-align: center;
  padding: 4px 2px;
  line-height: 1.15;
  overflow: hidden;
  word-break: break-word;
  transition: all 0.3s ease;
  min-height: 52px;
}

.cartela-quadrado .numero-grande {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.35rem);
  line-height: 1;
}

.cartela-quadrado .comprador-pub {
  font-size: clamp(0.5rem, 1.8vw, 0.65rem);
  margin-top: 3px;
  opacity: 0.9;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cartela-quadrado.disponivel .numero-grande {
  color: var(--cartela-disponivel-text);
}

.cartela-quadrado.vendido .numero-grande,
.cartela-quadrado.ganhador .numero-grande {
  font-size: clamp(0.9rem, 3vw, 1.15rem);
}

.cartela-quadrado.disponivel {
  background: var(--cartela-disponivel);
  color: var(--cartela-disponivel-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cartela-quadrado.vendido {
  background: var(--cartela-vendido);
  color: var(--cartela-vendido-text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.cartela-quadrado.ganhador {
  background: linear-gradient(135deg, #ffffff, #d7ffdc);
  color: #073c17;
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(48, 176, 74, 0.6);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 16px rgba(48, 176, 74, 0.5); }
  50% { box-shadow: 0 0 28px rgba(48, 176, 74, 0.9); }
}

.sorteio-info {
  background: linear-gradient(135deg, rgba(48, 176, 74, 0.12), rgba(48, 176, 74, 0.04));
  border: 1px solid rgba(48, 176, 74, 0.35);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sorteio-info .sorteio-titulo {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.sorteio-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.modelo-info {
  background: var(--bg-dark);
  border: 1px solid rgba(48, 176, 74, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modelo-info strong {
  color: var(--gold);
}

.aviso-importante {
  background: linear-gradient(135deg, rgba(15, 155, 56, 0.2), rgba(7, 91, 34, 0.08));
  border: 2px solid #30b04a !important;
  border-left-color: #30b04a !important;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.aviso-importante-titulo {
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.aviso-importante p {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.aviso-importante strong {
  color: var(--gold-light);
}

.cartela-legenda {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.legenda-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legenda-cor {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

.legenda-cor.disponivel { background: var(--cartela-disponivel); }
.legenda-cor.vendido { background: var(--cartela-vendido); }

/* ---- Admin ---- */
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 176, 74, 0.2);
}

.admin-login h2 {
  font-family: var(--font-serif);
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid rgba(48, 176, 74, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(48, 176, 74, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(48, 176, 74, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(48, 176, 74, 0.15);
  color: var(--gold);
  border-color: var(--gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 176, 74, 0.15);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-panel h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 1rem;
}

.preview-img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  border: 1px solid rgba(48, 176, 74, 0.2);
}

/* ---- Campos da Cartela (admin conferÃªncia) ---- */
.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
}

.position-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.position-field .pos-num {
  font-weight: 700;
  color: var(--gold);
  min-width: 28px;
  font-size: 0.85rem;
}

.position-field input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid rgba(48, 176, 74, 0.15);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
}

/* ---- Cartela Admin (clicÃ¡vel) ---- */
.cartela-quadrado.admin-clickable {
  cursor: pointer;
}

.cartela-quadrado.admin-clickable.disponivel:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

.cartela-quadrado.admin-clickable.vendido:hover {
  opacity: 0.85;
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(48, 176, 74, 0.3);
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal h3 {
  font-family: var(--font-serif);
  color: var(--gold);
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.modal-actions .btn {
  flex: 1;
}

/* ---- Lista Admin ---- */
.admin-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-lista-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(48, 176, 74, 0.1);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-lista-item .info {
  flex: 1;
  min-width: 200px;
}

.admin-lista-item .info h4 {
  color: var(--text-primary);
  font-family: var(--font-serif);
}

.admin-lista-item .info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Loading ---- */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid rgba(48, 176, 74, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 350px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-info { background: #3b82f6; }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }

/* ---- OCR Loading ---- */
.ocr-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(48, 176, 74, 0.1);
  border-radius: var(--radius-sm);
  color: var(--gold);
  margin: 1rem 0;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(48, 176, 74, 0.1);
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.footer-whatsapp:hover {
  background: rgba(37, 211, 102, 0.22);
  transform: translateY(-2px);
  color: #2ee676;
}

.footer-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
  .header {
    min-height: 76px;
    padding: 0.55rem 0.75rem;
    gap: 0.7rem;
  }

  .brand-link {
    gap: 0.7rem;
  }

  .brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 9px;
  }

  .logo-sub {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .rifa-hero {
    grid-template-columns: 1fr;
  }

  .cartela-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }

  .cartela-quadrado {
    font-size: clamp(0.45rem, 2.2vw, 0.65rem);
  }

  .cartela-legenda {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .admin-lista-item {
    flex-direction: column;
    align-items: stretch;
  }

  .positions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .rifas-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Link compartilhar ---- */
.share-box {
  background: var(--bg-card);
  border: 1px solid rgba(48, 176, 74, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-box input {
  flex: 1;
  background: var(--bg-dark);
  border: 1px solid rgba(48, 176, 74, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.premio-card {
  background: var(--bg-dark);
  border: 1px solid rgba(48, 176, 74, 0.25);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.premio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.premio-card-header h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.premio-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.premio-progresso {
  margin: 0.75rem 0 1rem;
}

.lavagens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}

.lavagem-btn {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--cartela-disponivel);
  color: var(--cartela-disponivel-text);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  transition: transform 0.15s, opacity 0.15s;
}

.lavagem-btn:hover {
  transform: scale(1.04);
}

.lavagem-btn.usada {
  background: var(--cartela-vendido);
  color: var(--cartela-vendido-text);
}

.lavagem-btn .lav-num {
  font-size: 1rem;
}

.lavagem-btn .lav-status {
  font-size: 0.65rem;
  opacity: 0.9;
  font-weight: 500;
}

