@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   RESET & VARIÁVEIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde-escuro:  #15803d;
  --verde:         #16a34a;
  --verde-medio:   #22c55e;
  --verde-claro:   #4ade80;
  --verde-pale:    #dcfce7;
  --verde-bg:      #f0fdf4;
  --branco:        #ffffff;
  --cinza-50:      #f9fafb;
  --cinza-100:     #f3f4f6;
  --cinza-200:     #e5e7eb;
  --cinza-300:     #d1d5db;
  --cinza-400:     #9ca3af;
  --cinza-500:     #6b7280;
  --cinza-700:     #374151;
  --cinza-900:     #111827;
  --vermelho:      #ef4444;
  --amarelo:       #f59e0b;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.10);

  --radius:    12px;
  --radius-sm: 8px;

  --header-h:  64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--verde-bg);
  color: var(--cinza-900);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--verde); text-decoration: none; }
a:hover { color: var(--verde-escuro); }


/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--branco);
  border-bottom: 1px solid var(--cinza-200);
  position: sticky;
  top: 0;
  z-index: 9995;
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--verde);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  white-space: nowrap;
}
.logo span { color: var(--cinza-900); }

/* Nav desktop */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--cinza-700);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover  { background: var(--verde-pale); color: var(--verde); }
.nav a.ativo  { color: var(--verde); background: var(--verde-pale); }

.nav-btn {
  background: var(--verde) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  margin-left: 4px;
}
.nav-btn:hover { background: var(--verde-escuro) !important; }

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--cinza-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cinza-700);
  border-radius: 2px;
  transition: transform .25s, opacity .25s, width .25s;
  transform-origin: center;
}

/* Animação X */
.hamburger.aberto span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.aberto span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.aberto span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- DRAWER MOBILE ---- */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100dvh;
  background: var(--branco);
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: var(--header-h);
}
.nav-drawer.aberto { transform: translateX(0); }

.nav-drawer-inner {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--cinza-700);
  transition: background .15s, color .15s;
}
.drawer-link:hover, .drawer-link.ativo {
  background: var(--verde-pale);
  color: var(--verde-escuro);
}
.drawer-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.drawer-divider { height: 1px; background: var(--cinza-200); margin: 8px 4px; }
.drawer-cta {
  background: var(--verde) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  justify-content: center;
  font-weight: 600;
  margin-top: 4px;
}
.drawer-cta:hover { background: var(--verde-escuro) !important; }

/* ---- OVERLAY ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9990;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.nav-overlay.aberto {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cinza-900);
  color: var(--cinza-300);
  padding: 48px 20px 24px;
  margin-top: 64px;
}

.footer-inner  { max-width: 1100px; margin: auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 13px;
  color: var(--cinza-400);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--cinza-400);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: var(--cinza-400); transition: color .15s; }
.footer-col ul a:hover { color: var(--verde-claro); }

.footer-wpp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25d366;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: background .15s;
}
.footer-wpp:hover { background: #1fba59; color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--cinza-500);
}


/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.page-header {
  background: var(--verde);
  padding: 48px 20px;
  color: #fff;
  text-align: center;
}
.page-header h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-header p  { font-size: 15px; opacity: .85; }


/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--cinza-200);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-img    { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #000; }
.card-body   { padding: 18px 20px; }
.card-title  { font-size: 16px; font-weight: 600; color: var(--cinza-900); margin-bottom: 6px; }
.card-text   { font-size: 13px; color: var(--cinza-500); margin-bottom: 14px; line-height: 1.5; }
.card-footer {
  padding: 12px 20px;
  background: var(--verde-bg);
  border-top: 1px solid var(--cinza-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.preco       { font-size: 18px; font-weight: 700; color: var(--verde); }
.preco small { font-size: 11px; font-weight: 400; color: var(--cinza-500); display: block; }

/* Grid de rifas */
.rifas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 32px 0;
}


/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-verde   { background: var(--verde-pale); color: var(--verde-escuro); }
.badge-cinza   { background: var(--cinza-200); color: var(--cinza-700); }
.badge-amarelo { background: #fef3c7; color: #92400e; }
.badge-vermelho { background: #fee2e2; color: #991b1b; }


/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary      { background: var(--verde); color: #fff; }
.btn-primary:hover { background: var(--verde-escuro); color: #fff; }
.btn-outline      { background: transparent; border: 1.5px solid var(--cinza-300); color: var(--cinza-700); }
.btn-outline:hover { border-color: var(--verde); color: var(--verde); }
.btn-danger       { background: var(--vermelho); color: #fff; }
.btn-danger:hover  { background: #dc2626; }
.btn-sm           { font-size: 12px; padding: 7px 14px; }
.btn-block        { display: flex; width: 100%; }
.btn:disabled     { opacity: .5; cursor: not-allowed; }


/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; font-size: 13px; font-weight: 500; color: var(--cinza-700); margin-bottom: 5px; }
.form-control {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1.5px solid var(--cinza-300);
  border-radius: var(--radius-sm);
  background: var(--branco);
  color: var(--cinza-900);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus       { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.form-control::placeholder { color: var(--cinza-300); }
textarea.form-control     { resize: vertical; min-height: 90px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-text  { font-size: 12px; color: var(--cinza-500); margin-top: 4px; }


/* ============================================================
   GRADE DE NÚMEROS
   ============================================================ */
.numeros-filtro {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 5px;
}

.num-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1.5px solid var(--cinza-200);
  background: var(--branco);
  cursor: pointer;
  transition: all .12s;
  color: var(--cinza-700);
  padding: 0;
  line-height: 1;
}
.num-btn:hover:not(:disabled) { border-color: var(--verde); color: var(--verde); background: var(--verde-bg); }
.num-btn.selecionado  { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 600; }
.num-btn.reservado    { background: var(--cinza-100); border-color: var(--cinza-200); color: var(--cinza-400); cursor: not-allowed; }
.num-btn.pago         { background: var(--cinza-200); border-color: var(--cinza-300); color: var(--cinza-500); cursor: not-allowed; }

.legenda {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--cinza-500);
  margin-top: 14px;
  flex-wrap: wrap;
}
.legenda span { display: flex; align-items: center; gap: 5px; }
.legenda i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; display: inline-block; flex-shrink: 0; }
.leg-livre { background: var(--branco); border-color: var(--cinza-300) !important; }
.leg-sel   { background: var(--verde); border-color: var(--verde) !important; }
.leg-ocup  { background: var(--cinza-200); border-color: var(--cinza-300) !important; }


/* ============================================================
   RESUMO DE COMPRA
   ============================================================ */
.resumo-compra {
  background: var(--branco);
  border: 1.5px solid var(--cinza-200);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.resumo-compra h3   { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.resumo-linha       { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.resumo-linha.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--cinza-200); margin-top: 8px; padding-top: 12px; color: var(--verde); }

.numeros-selecionados-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; min-height: 28px; }
.num-tag {
  background: var(--verde-pale);
  color: var(--verde-escuro);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}


/* ============================================================
   ALERTAS
   ============================================================ */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.alert-success { background: var(--verde-pale); color: var(--verde-escuro); border: 1px solid #bbf7d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }


/* ============================================================
   PROGRESSO
   ============================================================ */
.progresso-wrap  { margin: 8px 0; }
.progresso-bar   { height: 8px; background: var(--cinza-200); border-radius: 4px; overflow: hidden; }
.progresso-fill  { height: 100%; background: var(--verde); border-radius: 4px; transition: width .4s; }
.progresso-info  { display: flex; justify-content: space-between; font-size: 11px; color: var(--cinza-500); margin-top: 4px; }


/* ============================================================
   PIX BOX
   ============================================================ */
.pix-box {
  background: var(--verde-bg);
  border: 2px solid var(--verde-claro);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.pix-box h3    { font-size: 18px; font-weight: 700; color: var(--verde-escuro); margin-bottom: 8px; }
.pix-chave {
  background: var(--branco);
  border: 1.5px solid var(--cinza-300);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 13px;
  font-family: monospace;
  word-break: break-all;
  margin: 12px 0;
  cursor: pointer;
  transition: border-color .2s;
  text-align: left;
}
.pix-chave:hover { border-color: var(--verde); }


/* ============================================================
   MINHA CONTA — BILHETES
   ============================================================ */
.bilhetes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.bilhete-card   { border-radius: var(--radius); overflow: hidden; }
.bilhete-header { background: var(--verde); padding: 13px 16px; display: flex; justify-content: space-between; align-items: center; }
.bilhete-header h4 { color: #fff; font-size: 14px; font-weight: 600; }
.bilhete-body   { padding: 14px 16px; }
.bilhete-numeros { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.bilhete-num { background: var(--verde-pale); color: var(--verde-escuro); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }


/* ============================================================
   GANHADORES
   ============================================================ */
.ganhadores-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ganhador-card  { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--verde-claro); }
.ganhador-header {
  background: linear-gradient(135deg, var(--verde), var(--verde-escuro));
  padding: 20px;
  text-align: center;
  color: #fff;
}
.ganhador-header .numero { font-size: 48px; font-weight: 700; line-height: 1; }
.ganhador-header small   { font-size: 12px; opacity: .8; }
.ganhador-body  { padding: 20px; text-align: center; }
.ganhador-nome  { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.trofeu         { font-size: 32px; margin-bottom: 8px; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde) 100%);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}
.hero h1 { font-size: 38px; font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
.hero p  { font-size: 17px; opacity: .9; margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-white   { background: #fff; color: var(--verde-escuro); }
.btn-hero-white:hover   { background: var(--verde-pale); color: var(--verde-escuro); }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,.12); color: #fff; }


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar   { background: var(--branco); padding: 20px; border-bottom: 1px solid var(--cinza-200); }
.stats-inner { max-width: 1100px; margin: auto; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat        { text-align: center; }
.stat-num    { font-size: 26px; font-weight: 700; color: var(--verde); line-height: 1; }
.stat-label  { font-size: 12px; color: var(--cinza-500); margin-top: 3px; }


/* ============================================================
   FOTO DO PRODUTO
   ============================================================ */
.foto-produto-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--cinza-100);
}
.foto-produto-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
  display: block;
}


/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title { font-size: 24px; font-weight: 700; color: var(--cinza-900); margin-bottom: 6px; }
.section-sub   { font-size: 14px; color: var(--cinza-500); }
.section-head  { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 12px; }


/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }  .mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted  { color: var(--cinza-500); font-size: 13px; }
.text-verde  { color: var(--verde); }
.fw-600      { font-weight: 600; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.gap-2       { gap: 16px; }
.divider     { border: none; border-top: 1px solid var(--cinza-200); margin: 20px 0; }

.empty-state       { text-align: center; padding: 56px 20px; color: var(--cinza-500); }
.empty-state .icon { font-size: 48px; margin-bottom: 14px; }
.empty-state h3    { font-size: 18px; font-weight: 600; color: var(--cinza-700); margin-bottom: 8px; }

/* Upload area */
.upload-area {
  border: 2px dashed var(--cinza-300);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-area:hover { border-color: var(--verde); background: var(--verde-bg); }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid var(--cinza-200); margin-bottom: 24px; gap: 4px; overflow-x: auto; }
.tab  { padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--cinza-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; white-space: nowrap; }
.tab.ativo, .tab:hover { color: var(--verde); }
.tab.ativo { border-bottom-color: var(--verde); }


/* ============================================================
   RESPONSIVE — TABLET  (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* Mostrar hamburger, esconder nav desktop */
  .hamburger { display: flex; }
  .nav       { display: none; }

  .hero h1   { font-size: 30px; }
  .hero p    { font-size: 15px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* rifa-layout: layout via CSS no próprio rifa.php */
  .resumo-compra { position: static !important; top: auto !important; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .stats-inner  { gap: 20px; }
}


/* ============================================================
   RESPONSIVE — MOBILE  (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --header-h: 58px; }

  /* Header */
  .header-inner { padding: 0 16px; }
  .logo         { font-size: 16px; }

  /* Hero */
  .hero         { padding: 48px 16px; }
  .hero h1      { font-size: 24px; }
  .hero p       { font-size: 14px; margin-bottom: 22px; }
  .hero-btns    { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Container */
  .container    { padding: 0 16px; }
  .page-header  { padding: 36px 16px; }
  .page-header h1 { font-size: 24px; }

  /* Stats */
  .stats-bar    { padding: 16px; }
  .stats-inner  { gap: 14px; }
  .stat-num     { font-size: 22px; }

  /* Rifas grid */
  .rifas-grid   { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }

  /* Formulários */
  .form-row     { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  .footer       { padding: 36px 16px 20px; margin-top: 40px; }
  .footer-grid  { grid-template-columns: 1fr; gap: 24px; }

  /* Números */
  .numeros-grid {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 4px;
  }
  .num-btn      { font-size: 12px; border-radius: 6px; }

  /* Resumo compra — no mobile fica abaixo dos números */
  .resumo-compra { position: static; margin-top: 0; }

  /* Bilhetes grid */
  .bilhetes-grid  { grid-template-columns: 1fr; }
  .ganhadores-lista { grid-template-columns: 1fr; }

  /* Lote botões */
  .lote-btn { font-size: 13px; padding: 9px 4px; }

  /* Botões */
  .btn      { padding: 10px 18px; font-size: 13px; }
  .btn-sm   { font-size: 11px; padding: 6px 12px; }

  /* Section */
  .section-title { font-size: 20px; }

  /* Pix */
  .pix-box  { padding: 18px 14px; }
  .pix-chave { font-size: 12px; padding: 10px; }

  /* Page sections padding */
  section, [style*="padding: 48px 0"], [style*="padding: 40px 0"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ============================================================
   RESPONSIVE — MUITO PEQUENO  (max 360px)
   ============================================================ */
@media (max-width: 360px) {
  .logo         { font-size: 14px; }
  .logo span    { display: none; }
  .numeros-grid { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
  .num-btn      { font-size: 11px; }
}