/* public/css/app.css — Mega Trevo Online — Premium App-Like Design System v2 */

:root {
  /* ── Cosmic Rainbow Palette (2026 redesign) ─────────────────── */

  /* Brand — trevo verde vibrante (símbolo central) */
  --verde:         #00c853;
  --verde-dark:    #009624;
  --verde-light:   #69f0ae;
  --verde-ultra:   #003d00;

  /* Gold — dourado premium para destaques */
  --ouro:          #ffd700;
  --ouro-dark:     #daa520;
  --ouro-light:    #fff59d;
  --ouro-brilhante:#ffe44d;

  /* Rainbow accents (20-40% opacity in use) */
  --roxo:          #9c27b0;
  --azul:          #1e90ff;
  --ciano:         #00e5ff;
  --verde-accent:  #00e676;
  --amarelo:       #ffeb3b;
  --laranja:       #ff6d00;
  --vermelho:      #ff1744;
  --rosa:          #e91e8c;

  /* Semantic status — cosmic tones */
  --success:       var(--verde-accent);
  --success-light: #69f0ae;
  --warning:       var(--laranja);
  --error:         var(--vermelho);
  --info:          var(--azul);

  /* Background layers — deep cosmos (multilayer) */
  --bg-deep:       #0a0e2e;   /* navy profundo */
  --bg:            #0d1135;   /* fundo principal */
  --bg-elevated:   #121842;   /* superfície elevada */
  --bg-card:       rgba(15,20,80,.55);   /* glass card base */
  --bg-card-alt:   rgba(25,30,90,.5);   /* glass card secundário */
  --bg-card2:      rgba(35,40,100,.45); /* glass card terciário */
  --bg-card-soft:  rgba(10,14,46,.85);  /* card translúcido */
  --bg-overlay:    rgba(5,5,30,.8);

  --bg-grad-1: radial-gradient(ellipse 140% 80% at 30% 0%, #0d1a6e 0%, #1a0a3e 40%, #0a0e2e 70%, #0d1135 100%);

  /* Ambient glows — cosmic */
  --glow-ouro: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,215,0,.1) 0%, transparent 60%);
  --glow-azul: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,144,255,.08) 0%, transparent 60%);
  --glow-roxo: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(156,39,176,.08) 0%, transparent 60%);
  --glow-verde:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,83,.06) 0%, transparent 60%);
  --glow-magenta:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(233,30,140,.07) 0%, transparent 60%);

  /* Text — white cosmic */
  --texto:        #ffffff;
  --texto-soft:   #d0d5f0;
  --texto-muted:  #8890b8;

  /* Borders — glass cosmic */
  --borda:        rgba(120,80,255,.25);
  --borda-soft:   rgba(120,80,255,.12);
  --borda-strong: rgba(120,80,255,.4);

  /* Glassmorphism tokens */
  --glass-bg:       rgba(15,20,80,.7);
  --glass-border:   1px solid rgba(120,80,255,.3);
  --glass-shadow:   0 8px 32px rgba(80,0,200,.3);
  --glass-blur:     16px;

  /* Radius */
  --radius:     20px;
  --radius-sm:  14px;
  --radius-lg:  28px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Shadows — cosmic depth */
  --shadow-soft:   0 2px 12px rgba(0,0,0,.4), 0 4px 24px -8px rgba(80,0,200,.2);
  --shadow-strong: 0 8px 32px rgba(0,0,0,.5), 0 12px 48px -14px rgba(80,0,200,.35);
  --shadow-glow:   0 0 28px rgba(255,215,0,.2);
  --shadow-card:   0 1px 3px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.4);
  --shadow-inset:  inset 0 1px 0 rgba(255,255,255,.06);
  --shadow-elevated: 0 2px 4px rgba(0,0,0,.25), 0 8px 32px rgba(80,0,200,.25), 0 0 0 1px var(--borda);

  /* Spacing scale */
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: .75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;

  /* Nav */
  --nav-h: 72px;
  --topbar-h: 56px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

/* ── FLOATING CART BUTTON (FAB) ──────────────────────────────── */
.cart-fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: 12px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .7rem .65rem .6rem;
  background: linear-gradient(135deg, rgba(0,200,83,.95), rgba(0,150,36,.95));
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,200,83,.45), 0 2px 8px rgba(0,0,0,.3);
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.8,.2,1);
  animation: cartFabIn .4s cubic-bezier(.2,.8,.2,1) both;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: calc(100% - 24px);
  pointer-events: auto;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.cart-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 40px rgba(0,200,83,.55), 0 2px 8px rgba(0,0,0,.3);
  filter: brightness(1.08);
}

.cart-fab:active {
  transform: translateY(0) scale(.96);
}

.cart-fab-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 40px;
}

.cart-fab-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff1744;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,23,68,.4);
  line-height: 1;
  border: 2px solid rgba(0,200,83,.95);
}

.cart-fab-info {
  display: flex;
  flex-direction: column;
  gap: .05rem;
  min-width: 0;
  flex: 1;
}

.cart-fab-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.cart-fab-total {
  font-size: .82rem;
  font-weight: 900;
  color: rgba(255,255,255,.85);
  line-height: 1.2;
}

.cart-fab-arrow {
  font-size: .85rem;
  opacity: .7;
  flex: 0 0 auto;
}

@keyframes cartFabIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cartFabPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0,200,83,.45), 0 2px 8px rgba(0,0,0,.3);
  }
  50% {
    box-shadow: 0 12px 48px rgba(0,200,83,.65), 0 4px 12px rgba(0,0,0,.35);
  }
}

.cart-fab--visible {
  animation: cartFabIn .4s cubic-bezier(.2,.8,.2,1) both, cartFabPulse 2s ease-in-out 1;
}

/* Ajuste da posição do FAB qdo não tem bottom nav (usuário não-logado) */
#app-main:not(.has-bottom-nav) ~ .cart-fab {
  bottom: 24px;
}

/* ── VIEW TRANSITIONS — suave entre páginas (Chrome 111+) ────── */
@view-transition {
  navigation: auto;
}

/* Animação personalizada: página saindo desliza pra cima, nova desliza de baixo */
::view-transition-old(root) {
  animation: vtExit .25s cubic-bezier(.4,0,.2,1) both;
}

::view-transition-new(root) {
  animation: vtEnter .3s cubic-bezier(.2,0,0,1) both;
}

@keyframes vtExit {
  to { opacity: 0; transform: translateY(-12px) scale(.98); }
}

@keyframes vtEnter {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

/* ── TOAST / SNACKBAR ─────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 400px;
  margin: 0 auto;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,12,8,.98), rgba(12,9,4,.98));
  border: 1px solid rgba(160,152,144,.16);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.2);
  color: var(--texto);
  font-size: .88rem;
  line-height: 1.45;
  animation: toastIn .3s cubic-bezier(.2,.8,.2,1) both;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.toast.toast-out {
  animation: toastOut .25s cubic-bezier(.4,0,.2,1) both;
}

.toast-icon {
  flex: 0 0 22px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 800;
  font-size: .85rem;
}

.toast-msg {
  color: var(--texto-soft);
  font-size: .82rem;
  margin-top: .1rem;
}

.toast-close {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: none;
  background: rgba(160,152,144,.08);
  color: var(--texto-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
}

.toast-close:hover {
  background: rgba(160,152,144,.15);
  color: var(--texto);
}

.toast-success {
  border-color: rgba(212,168,67,.25);
}
.toast-success .toast-icon { color: var(--ouro-light); }

.toast-error {
  border-color: rgba(239,68,68,.25);
}
.toast-error .toast-icon { color: #fca5a5; }

.toast-info {
  border-color: rgba(59,130,246,.25);
}
.toast-info .toast-icon { color: #93c5fd; }

.toast-warning {
  border-color: rgba(251,191,36,.25);
}
.toast-warning .toast-icon { color: #fde68a; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-16px) scale(.93); }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-grad-1);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Cosmic ambient glow layers at top */
  background-image: 
    radial-gradient(ellipse 90% 50% at 30% 0%, rgba(156,39,176,.08) 0%, transparent 50%),
    radial-gradient(ellipse 90% 50% at 70% 0%, rgba(30,144,255,.06) 0%, transparent 50%),
    radial-gradient(ellipse 90% 50% at 50% 0%, rgba(255,215,0,.04) 0%, transparent 50%),
    var(--bg-grad-1);
}

/* ── STAR PARTICLES (cosmic background) ────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 5%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 20% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 35% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 50% 3%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 65% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 78% 6%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90% 18%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 5% 30%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 25% 42%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 45% 25%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 60% 55%, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 80% 35%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 15% 70%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 70% 65%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 85% 90%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 55% 48%, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,.15), transparent),
    radial-gradient(1px 1px at 75% 78%, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 95% 50%, rgba(255,255,255,.2), transparent);
  animation: twinkle 4s ease-in-out infinite alternate;
  animation-delay: -2s;
}

/* ── TOP BAR (header) — mais fino, mais app ────────────────────── */
.top-bar {
  background: rgba(8,10,35,.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(120,80,255,.15);
  padding: .65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.logo-mini {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  color: white;
}
.logo-mini-admin {
  color: var(--verde);
  font-weight: 800;
  font-size: .92rem;
  gap: .55rem;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(251,191,36,.10));
  border: 1px solid rgba(212,168,67,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  overflow: hidden;
  flex: 0 0 36px;
}
.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px rgba(212,168,67,.35));
}
.logo-text {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: -.4px;
}
.logo-text strong { color: var(--verde); }

.top-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.top-btn {
  background: rgba(160,152,144,.08);
  border: 1px solid rgba(160,152,144,.12);
  border-radius: 12px;
  padding: .5rem .6rem;
  color: var(--texto-soft);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
  text-decoration: none;
}
.top-btn:hover {
  background: rgba(160,152,144,.14);
  color: var(--verde-light);
}
.top-btn.is-loading {
  pointer-events: none;
  opacity: .85;
}
.top-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  border-top-color: rgba(52,211,153,.85);
  animation: spin .85s linear infinite;
}
.top-btn.is-active {
  background: rgba(212,168,67,.15);
  border-color: rgba(212,168,67,.25);
  color: #d1fae5;
  box-shadow: 0 0 0 1px rgba(212,168,67,.12), 0 4px 16px rgba(212,168,67,.15);
}
.top-btn.is-prompt {
  color: #fef3c7;
}
.top-btn.is-denied {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.18);
  color: #fecaca;
}
.top-btn.is-disabled {
  opacity: .6;
}
.top-btn-admin {
  gap: .35rem;
  padding-inline: .65rem;
  background: rgba(212,168,67,.12);
  border-color: rgba(212,168,67,.2);
  color: #d1fae5;
  box-shadow: 0 6px 18px rgba(212,168,67,.12);
}
.top-btn-admin:hover {
  background: rgba(212,168,67,.18);
  color: #ecfdf5;
}
.top-btn-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
}
.notif-dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 8px rgba(249,115,22,.55);
  animation: pulse 1.6s infinite;
  opacity: 0;
  transform: scale(.65);
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.top-btn.is-prompt .notif-dot,
.top-btn.is-active .notif-dot,
.top-btn.is-denied .notif-dot {
  opacity: 1;
  transform: scale(1);
}
.top-btn.is-active .notif-dot {
  background: linear-gradient(135deg, var(--ouro-light), var(--ouro));
  box-shadow: 0 0 10px rgba(212,168,67,.55);
  animation: none;
}
.top-btn.is-denied .notif-dot {
  background: linear-gradient(135deg, #fb7185, #ef4444);
  box-shadow: 0 0 8px rgba(239,68,68,.45);
  animation: none;
}

/* ── BOTTOM NAVIGATION — mais refinado ─────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  width: calc(100% - 24px);
  max-width: 500px;
  z-index: 999;
  background: rgba(8,10,35,.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(120,80,255,.15);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(80,0,200,.15);
  padding: .6rem .5rem .75rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  gap: .15rem;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}

.bottom-nav.is-hidden {
  transform: translateX(-50%) translateY(calc(100% + 12px));
  opacity: 0;
  pointer-events: none;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  color: var(--texto-muted);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: -.2px;
  padding: .35rem .15rem;
  border-radius: 12px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.nav-item i {
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.nav-item:hover {
  color: var(--texto-soft);
}
.nav-item:active i {
  transform: scale(.88);
}
.nav-item.active {
  color: var(--verde-light);
}
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--verde), var(--verde-light));
  box-shadow: 0 0 16px rgba(0,200,83,.5);
}

@keyframes navIndicatorPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(212,168,67,.4); }
  50% { opacity: .7; box-shadow: 0 0 20px rgba(212,168,67,.6); }
}
.nav-center-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -22px;
}
.nav-center-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #060b19;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212,168,67,.4), 0 0 0 2px rgba(212,168,67,.3);
  transition: all .2s ease;
}
.nav-center-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 12px 32px rgba(212,168,67,.48);
}
.nav-center-btn:active {
  transform: translateY(0) scale(.94);
}

/* ── MAIN WRAPPER ───────────────────────────────────────────────── */
#app-main {
  padding-bottom: .75rem;
  position: relative;
  z-index: 1;
}
#app-main.has-bottom-nav {
  padding-bottom: 7rem;
}

/* Ambient glow applied to the main area */
#app-main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212,168,67,.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── WRAPPER ───────────────────────────────────────────────────── */
.wrapper {
  max-width: 540px;
  margin: 0 auto;
  padding: .9rem 1rem 1.5rem;
}

/* ── DISCLAIMER BANNER — compacto ─────────────────────────────── */
.disclaimer-bar {
  background: rgba(251,191,36,.08);
  border-bottom: 1px solid rgba(251,191,36,.15);
  padding: .35rem .75rem;
  text-align: center;
  font-size: .7rem;
  color: var(--texto-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  flex-wrap: wrap;
  line-height: 1.3;
}
.disclaimer-bar strong {
  color: var(--texto-soft);
  font-weight: 700;
}
.disclaimer-bar i {
  color: var(--amarelo);
  font-size: .75rem;
}

/* ── PUBLIC CRO LAYERS ──────────────────────────────────────────── */
.landing-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  background: linear-gradient(135deg, rgba(10,14,46,1), rgba(45,11,110,.4), rgba(10,14,46,1));
  background-size: 400% 400%;
  animation: heroGradient 12s ease-in-out infinite;
  border-radius: var(--radius-lg);
  padding: 1px;
}
.landing-hero-card,
.featured-proof-card,
.detail-hero-card,
.discovery-auth-card {
  background: rgba(12,16,50,.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(120,80,255,.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}
.landing-hero-card {
  padding: 1.35rem 1.2rem;
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp .6s ease-out both;
}
.detail-hero-card {
  position: relative;
  overflow: hidden;
}
.landing-hero-card::after,
.detail-hero-card::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(156,39,176,.2) 0%, rgba(30,144,255,.08) 40%, transparent 68%);
  pointer-events: none;
}
.landing-kicker {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ouro), #ff6b00, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .7rem;
}
.landing-title,
.detail-title {
  font-size: 1.95rem;
  line-height: 1.06;
  letter-spacing: -.06em;
  font-weight: 900;
  color: var(--texto);
}
.landing-subtitle,
.detail-subtitle {
  margin-top: .8rem;
  color: var(--texto-soft);
  font-size: .98rem;
  line-height: 1.65;
  max-width: 44ch;
}
.landing-actions {
  display: grid;
  gap: .75rem;
  margin-top: 1.05rem;
}
.landing-support,
.detail-cta-helper {
  margin-top: .85rem;
  color: var(--texto-muted);
  font-size: .84rem;
  line-height: 1.55;
}
.featured-proof-card,
.detail-hero-card,
.discovery-auth-card {
  padding: 1.15rem;
  animation: fadeSlideUp .6s ease-out both;
}
.detail-hero-card { animation-delay: .1s; }
.featured-proof-card { animation-delay: .15s; }
.discovery-auth-card { animation-delay: .2s; }
.featured-proof-header,
.detail-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
}
.featured-proof-kicker {
  font-size: .76rem;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.featured-proof-title {
  margin-top: .2rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.proof-grid,
.detail-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  margin-top: 1rem;
}
.proof-stat,
.detail-proof-item,
.detail-flow-card,
.value-card,
.step-card,
.summary-metric,
.auth-context-panel {
  background: rgba(15,23,42,.74);
  border: 1px solid rgba(160,152,144,.14);
  border-radius: 18px;
}
.proof-stat,
.detail-proof-item {
  padding: .9rem;
}
.proof-stat-wide,
.detail-proof-highlight {
  grid-column: 1 / -1;
}
.detail-proof-highlight {
  background: linear-gradient(135deg, rgba(212,168,67,.16), rgba(59,130,246,.12));
  border-color: rgba(212,168,67,.22);
}
.proof-label {
  font-size: .73rem;
  color: var(--texto-muted);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.proof-value {
  margin-top: .25rem;
  color: var(--texto);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(212,168,67,.12);
  border: 1px solid rgba(212,168,67,.2);
  color: #d1fae5;
  font-size: .82rem;
  font-weight: 800;
}
.detail-countdown-chip {
  margin-top: 1.1rem;
}
.landing-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.landing-vsl-section {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.landing-vsl-media,
.landing-vsl-copy {
  background: linear-gradient(180deg, rgba(15,23,42,.96) 0%, rgba(2,6,23,.94) 100%);
  border: 1px solid rgba(160,152,144,.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 1.15rem;
}
.landing-vsl-frame {
  min-height: 220px;
  scroll-margin-top: 110px;
  border-radius: 22px;
  border: 1px dashed rgba(120,80,255,.3);
  background:
    radial-gradient(circle at top left, rgba(156,39,176,.2), transparent 45%),
    linear-gradient(180deg, rgba(10,14,46,.95), rgba(2,6,23,.96));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.25rem;
}
.landing-vsl-play {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #04130d;
  font-size: 2rem;
  box-shadow: 0 18px 34px rgba(0,200,83,.28);
  margin-bottom: 1rem;
}
.landing-vsl-placeholder {
  max-width: 24ch;
  color: var(--texto-soft);
  font-weight: 700;
  line-height: 1.55;
}
.landing-vsl-title {
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 900;
}
.landing-vsl-subtitle {
  margin-top: .55rem;
  color: var(--texto-soft);
  font-size: .92rem;
  line-height: 1.55;
  max-width: 28ch;
}
.landing-vsl-points {
  display: grid;
  gap: .6rem;
  margin-top: 1rem;
}
.landing-vsl-point {
  display: flex;
  align-items: center;
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(160,152,144,.14);
  color: var(--texto-soft);
  font-size: .9rem;
  font-weight: 700;
}
.landing-vsl-actions {
  margin-top: 1rem;
}
.landing-vsl-primary {
  animation: bolaoCtaPulse 1.9s ease-in-out infinite;
}
.landing-vsl-primary:hover {
  animation-play-state: paused;
}
.landing-hero-secondary {
  margin-top: .25rem;
}
.landing-hero-secondary .landing-hero-card {
  padding: 1.1rem 1.05rem;
}
.landing-hero-secondary .landing-title {
  font-size: 1.45rem;
  line-height: 1.08;
}
.landing-hero-secondary .landing-subtitle {
  margin-top: .55rem;
  font-size: .9rem;
  max-width: 30ch;
}
.summary-metric {
  padding: .95rem;
}
.summary-label {
  color: var(--texto-muted);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.summary-value {
  margin-top: .3rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--texto);
}
.bolao-card-copy {
  margin-top: .35rem;
  color: var(--texto-muted);
  font-size: .84rem;
  line-height: 1.4;
}
.bolao-list-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .7rem;
  margin-top: .9rem;
}
.bolao-list-item {
  padding: .8rem;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(160,152,144,.12);
  border-radius: 16px;
}
.bolao-list-item-wide {
  grid-column: 1 / -1;
}
.bolao-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-top: .95rem;
}
.bolao-card-footer-cta {
  align-items: center;
}
.bolao-card-helper {
  color: var(--texto-soft);
  font-size: .84rem;
  line-height: 1.45;
}
.bolao-card-button {
  justify-content: center;
  white-space: nowrap;
  pointer-events: none;
}
.bolao-card-button-pulse {
  animation: bolaoCtaPulse 1.9s ease-in-out infinite;
}
.bolao-card-button-pulse:hover {
  animation-play-state: paused;
}
.bolao-card-button-pulse i {
  animation: none;
}
.bolao-card-button-pulse,
.bolao-card-button-pulse:focus-visible {
  transform-origin: center;
}
.bolao-list-item .proof-value {
  font-size: 1.05rem;
}
.bolao-list-item-wide .proof-value {
  font-size: 1rem;
}
.bolao-card-link {
  color: var(--verde-light);
  font-size: .88rem;
  font-weight: 800;
}
@keyframes bolaoCtaPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 28px -8px rgba(212,168,67,.65);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 18px 40px -10px rgba(212,168,67,.78);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 28px -8px rgba(212,168,67,.65);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-5px); }
}
.how-grid,
.value-grid,
.detail-flow-grid {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.step-card,
.detail-flow-card,
.value-card {
  padding: 1rem;
}
.step-card,
.detail-flow-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: flex-start;
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,67,.18);
  color: #d1fae5;
  font-size: .95rem;
  font-weight: 900;
  flex: 0 0 34px;
}
.step-title,
.value-title,
.auth-context-title,
.detail-trust-title {
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--texto);
}
.step-text,
.value-text,
.auth-context-text,
.detail-description,
.detail-trust-text,
.discovery-auth-text {
  margin-top: .35rem;
  color: var(--texto-muted);
  font-size: .88rem;
  line-height: 1.58;
}
.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  background: rgba(212,168,67,.16);
  color: var(--verde-light);
  font-size: 1.18rem;
}
.discovery-auth-card {
  margin-top: 1.2rem;
}
.discovery-auth-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--texto);
}
.discovery-google-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(160,152,144,.12);
}
.detail-description {
  max-width: 56ch;
}
.detail-trust-card {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 18px;
}
.detail-trust-title {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.detail-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}
.detail-trust-points span {
  display: inline-flex;
  align-items: center;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(160,152,144,.12);
  color: var(--texto-soft);
  font-size: .8rem;
  font-weight: 700;
}
.detail-cta-block {
  margin-top: 1rem;
}
.detail-cta-block-early {
  margin-top: 1.05rem;
  margin-bottom: 1rem;
}
.detail-cta-block .btn + .btn,
.detail-cta-block .detail-cta-helper + .btn {
  margin-top: .75rem;
}
.bet-builder-section {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15,23,42,.95) 0%, rgba(2,6,23,.98) 100%);
  border: 1px solid rgba(212,168,67,.16);
  box-shadow: var(--shadow-strong);
}
.bet-builder-section.is-open {
  display: block;
  animation: fadeIn .28s ease;
}
.bet-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
}
.bet-builder-title {
  margin-top: .35rem;
  font-size: 1.28rem;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.bet-builder-close {
  flex: 0 0 auto;
  align-self: flex-start;
}
.bet-builder-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: start;
}
.bet-builder-card {
  margin: 0;
  min-width: 0;
}
.bet-builder-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  flex-wrap: wrap;
  gap: .6rem;
}
.bet-builder-card-title {
  font-weight: 800;
  font-size: 1rem;
}
.bet-builder-helper {
  margin-top: .7rem;
  text-align: center;
  line-height: 1.5;
}
.bet-builder-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  min-height: 58px;
  align-items: flex-start;
}
.bet-builder-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: .22rem .45rem;
  border-radius: 10px;
  background: rgba(212,168,67,.16);
  border: 1px solid rgba(212,168,67,.24);
  color: #d1fae5;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}
.bet-builder-summary-empty {
  color: var(--texto-muted);
  font-size: .82rem;
}
.bet-number-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: .45rem;
  width: 100%;
}
.bet-number-btn {
  position: relative;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--borda);
  background: var(--bg-card);
  color: var(--texto-muted);
  font-weight: 900;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
  display: grid;
  place-items: center;
}
.bet-number-btn:hover {
  border-color: rgba(212,168,67,.28);
  color: var(--texto);
}
.bet-number-btn.is-selected {
  background: linear-gradient(135deg, var(--ouro-light), var(--ouro));
  color: white;
  border-color: var(--ouro-light);
  box-shadow: 0 10px 24px -12px rgba(212,168,67,.85);
  animation: numSelectPop .25s cubic-bezier(.2,.8,.2,1);
}

.bet-number-btn.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212,168,67,.15), transparent 55%);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes numSelectPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  70% { transform: scale(.96); }
  100% { transform: scale(1); }
}

.bet-number-btn {
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.bet-number-btn:active:not(.is-selected) {
  transform: scale(.92);
  border-color: rgba(212,168,67,.4);
}

.metodo-label {
  display: flex;
  gap: .75rem;
  align-items: center;
  padding: .85rem;
  background: var(--bg-card);
  border: 2px solid var(--borda);
  border-radius: 14px;
  cursor: pointer;
  min-width: 0;
}
.metodo-label input {
  margin: 0;
}
.metodo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.metodo-title {
  font-weight: 800;
  font-size: .95rem;
}
.metodo-desc {
  color: var(--texto-muted);
  font-size: .8rem;
  margin-top: .1rem;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  border-top-color: white;
  animation: spin .6s linear infinite;
  display: inline-block;
}
.auth-context-panel {
  padding: .95rem 1rem;
  margin-bottom: 1rem;
  background: rgba(212,168,67,.08);
  border-color: rgba(212,168,67,.16);
}
.text-muted-fs {
  font-size: .86rem;
}

/* ── HERO / GREETING ───────────────────────────────────────────── */
.greeting {
  margin-bottom: 1.2rem;
}
.greeting-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: .25rem;
}
.greeting-hello {
  font-size: .88rem;
  color: var(--texto-muted);
  font-weight: 500;
}
.greeting-date {
  font-size: .75rem;
  color: var(--texto-muted);
  opacity: .7;
}
.greeting-name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.15;
}

/* ── BALANCE CARD ──────────────────────────────────────────────── */
.balance-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(120,80,255,.3);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.1rem;
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(120,80,255,.15);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.balance-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(156,39,176,.2) 0%, rgba(30,144,255,.1) 40%, transparent 65%);
  pointer-events: none;
}
.balance-label {
  font-size: .75rem;
  color: rgba(203,213,225,.8);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.balance-value {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -.8px;
  margin-top: .15rem;
}
.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .65rem;
  margin-top: 1rem;
}
.balance-stat {
  background: rgba(15,20,80,.55);
  border: 1px solid rgba(120,80,255,.2);
  border-radius: 12px;
  padding: .65rem .7rem;
}
.balance-stat-label {
  font-size: .68rem;
  color: var(--texto-muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.balance-stat-value {
  font-weight: 800;
  font-size: .95rem;
  margin-top: .2rem;
  color: var(--verde-light);
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.3rem 0 .75rem;
}
.section-title {
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.2px;
  color: var(--texto-soft);
}
.section-link {
  font-size: .8rem;
  color: var(--verde-light);
  text-decoration: none;
  font-weight: 700;
}
.section-title i {
  margin-right: .35rem;
}

/* ── BOLÃO CARD v2 — visual premium app-like ────────────────── */
.bolao-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--glass-border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--glass-shadow), var(--shadow-inset);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  color: var(--texto);
  display: block;
  overflow: hidden;
}
.bolao-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156,39,176,.5);
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(156,39,176,.3);
}

/* Top accent bar (color-coded by modalidade) */
.bolao-card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--verde), var(--verde-light));
}
.bolao-card-accent-lotofacil {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bolao-card-body {
  padding: .85rem 1rem .75rem;
}

/* Header row: icon + title + status */
.bolao-card-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .65rem;
}

.bolao-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  flex: 0 0 32px;
}
.bolao-card-icon-mega {
  background: linear-gradient(135deg, rgba(212,168,67,.2), rgba(212,168,67,.08));
  color: var(--ouro-light);
}
.bolao-card-icon-lotofacil {
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(59,130,246,.08));
  color: #93c5fd;
}

.bolao-card-name {
  flex: 1;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: -.2px;
  color: var(--texto);
  line-height: 1.2;
}

.bolao-card-badge {
  font-size: .6rem;
  padding: .16rem .45rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  gap: .2rem;
  align-items: center;
  flex: 0 0 auto;
}
.bolao-card-badge-open {
  background: rgba(212,168,67,.12);
  color: var(--verde-light);
  border: 1px solid rgba(212,168,67,.3);
}
.bolao-card-badge-closed {
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.28);
}

/* Prize row — hero element */
.bolao-card-prize {
  margin-bottom: .6rem;
}
.bolao-card-prize-label {
  font-size: .66rem;
  color: var(--texto-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.bolao-card-prize-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--verde-light);
  line-height: 1.1;
  margin-top: .05rem;
}
.bolao-card-prize-sub {
  font-size: .72rem;
  color: var(--texto-muted);
  margin-top: .1rem;
}

/* Stats row: 3 compact items */
.bolao-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-bottom: .7rem;
}
.bolao-card-stat {
  background: rgba(15,12,8,.45);
  border: 1px solid rgba(160,152,144,.08);
  border-radius: 10px;
  padding: .45rem .5rem;
  text-align: center;
}
.bolao-card-stat-value {
  font-weight: 800;
  font-size: .82rem;
  color: var(--texto);
  line-height: 1.2;
}
.bolao-card-stat-label {
  font-size: .58rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .1rem;
}

/* CTA footer */
.bolao-card-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(160,152,144,.08);
}
.bolao-card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #060b19;
  font-weight: 900;
  font-size: .78rem;
  transition: all .2s ease;
  white-space: nowrap;
}
.bolao-card-cta-btn:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}
.bolao-card-cta-hint {
  font-size: .68rem;
  color: var(--texto-muted);
  font-weight: 600;
}

/* Legacy compat: old badge classes still work */
.badge {
  font-size: .65rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  gap: .25rem;
  align-items: center;
}
.badge-hot {
  background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(233,30,140,.15));
  color: #ffb347;
  border: 1px solid rgba(233,30,140,.35);
}
.badge-pago {
  background: rgba(0,200,83,.15);
  color: #69f0ae;
  border: 1px solid rgba(0,200,83,.3);
}
.badge-pendente {
  background: rgba(255,193,7,.12);
  color: #ffe082;
  border: 1px solid rgba(255,193,7,.25);
}
.badge-cancelado {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.22);
}
.badge-final {
  background: linear-gradient(135deg, rgba(156,39,176,.15), rgba(30,144,255,.1));
  color: #b388ff;
  border: 1px solid rgba(156,39,176,.3);
}
.badge-soon {
  background: rgba(30,144,255,.15);
  color: #82b1ff;
  border: 1px solid rgba(30,144,255,.3);
}

/* ── BOLÕES LIST ───────────────────────────────────────────────── */
.boloes-list {
  display: grid;
  gap: .85rem;
}

/* Progress bar (reusable — used in bet-builder and bolão cards) */
.progress-wrap {
  height: 6px;
  background: rgba(30,41,59,.7);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde), #1e90ff, var(--ouro));
  transition: width .6s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 12px rgba(0,200,83,.35);
}

/* ── APOSTA DETAIL PAGE ────────────────────────────────────── */

.aposta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.aposta-header-left {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.aposta-back-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--texto-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .4rem;
  margin-left: -.4rem;
  border-radius: 8px;
  transition: all .15s ease;
  width: fit-content;
}

.aposta-back-link:hover {
  color: var(--verde-light);
  background: rgba(160,152,144,.06);
}

.aposta-title {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.4px;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.aposta-title i {
  color: var(--verde-light);
  font-size: 1rem;
}

.aposta-code {
  color: var(--amarelo);
}

/* Detail card */
.aposta-detail-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.aposta-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 1rem;
  background: linear-gradient(135deg, rgba(212,168,67,.08), rgba(59,130,246,.05));
  border-bottom: 1px solid rgba(160,152,144,.08);
}

.aposta-detail-head-left {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: .85rem;
}

.aposta-detail-head-left i {
  font-size: .9rem;
  color: var(--verde-light);
}

.aposta-detail-body {
  padding: .65rem 1rem .85rem;
}

.aposta-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(160,152,144,.05);
}

.aposta-detail-row:last-child {
  border-bottom: none;
}

.aposta-detail-label {
  font-size: .72rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.aposta-detail-value {
  font-weight: 800;
  font-size: .88rem;
  text-align: right;
}

.aposta-detail-value-verde {
  color: var(--verde-light);
}

/* Numbers row */
.aposta-numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 70%;
}

.aposta-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: .15rem .35rem;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 800;
  background: rgba(15,12,8,.6);
  border: 1px solid rgba(160,152,144,.1);
  color: var(--texto-soft);
}

.aposta-num-hit {
  background: linear-gradient(135deg, #ffd600, #ff9800);
  border-color: #ffd600;
  color: #060b19;
  font-weight: 900;
}

/* Result card */
.aposta-result-card {
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  margin-bottom: .85rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aposta-result-premiado {
  background: radial-gradient(120% 180% at 50% 0%, rgba(212,168,67,.2) 0%, rgba(15,12,8,.95) 55%, rgba(15,12,8,1) 100%);
  border: 1px solid rgba(212,168,67,.2);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(212,168,67,.12);
}

.aposta-result-premiado::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 60%);
  pointer-events: none;
}

.aposta-result-nao-premiado {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  box-shadow: var(--shadow-soft);
}

.aposta-result-icon {
  font-size: 2.2rem;
  margin-bottom: .4rem;
  display: block;
}

.aposta-result-faixa {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(212,168,67,.14);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.28);
  margin-bottom: .4rem;
}

.aposta-result-premio {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--verde-light);
  letter-spacing: -.6px;
  margin: .3rem 0;
}

.aposta-result-acertos {
  font-size: .82rem;
  color: var(--texto-muted);
  margin-bottom: .65rem;
}

.aposta-result-msg {
  font-weight: 700;
  font-size: .92rem;
  margin: .2rem 0;
}

/* Status timeline */
.aposta-timeline {
  display: flex;
  gap: .35rem;
  margin-bottom: .85rem;
  padding: .65rem .75rem;
  background: rgba(18,14,10,.5);
  border: 1px solid rgba(160,152,144,.08);
  border-radius: 14px;
}

.aposta-timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  text-align: center;
  position: relative;
}

.aposta-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -50%;
  top: 10px;
  width: 100%;
  height: 2px;
  background: rgba(160,152,144,.1);
  z-index: 0;
}

.aposta-timeline-step.done::after {
  background: var(--verde);
}

.aposta-timeline-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  background: rgba(160,152,144,.1);
  color: var(--texto-muted);
  position: relative;
  z-index: 1;
  transition: all .3s ease;
}

.aposta-timeline-step.done .aposta-timeline-dot {
  background: var(--verde);
  color: #060b19;
}

.aposta-timeline-step.active .aposta-timeline-dot {
  background: var(--amarelo);
  color: #060b19;
  box-shadow: 0 0 10px rgba(251,191,36,.4);
}

.aposta-timeline-label {
  font-size: .55rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
}

.aposta-timeline-step.done .aposta-timeline-label {
  color: var(--verde-light);
}

/* ── BOLAO PAGE — detalhe do bolão + bet builder ────────────── */

/* Back link premium */
.bolao-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--texto-muted);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .4rem;
  margin-left: -.4rem;
  margin-bottom: .75rem;
  border-radius: 8px;
  transition: all .15s ease;
  width: fit-content;
}

.bolao-back-link:hover {
  color: var(--verde-light);
  background: rgba(160,152,144,.06);
}

.bolao-back-link i {
  font-size: .85rem;
}

/* Hero card */
.bolao-detail-hero {
  margin-bottom: .75rem;
}

/* Hero top row: icon + status + title */
.bolao-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .5rem;
}

.bolao-detail-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

.bolao-detail-title {
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.03em;
}

/* Prize block — gradient card */
.bolao-prize-explain {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  font-size: .78rem;
  color: var(--texto-muted);
  margin-top: .6rem;
  line-height: 1.4;
  padding: .6rem .75rem;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
}
.bolao-prize-explain i {
  flex-shrink: 0;
  margin-top: .15rem;
  font-size: .85rem;
}
.bolao-prize-explain strong {
  color: var(--verde-light);
}

.bolao-prize-block {
  background: linear-gradient(135deg, rgba(212,168,67,.12), rgba(59,130,246,.08));
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 16px;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
}

.bolao-prize-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
}

.bolao-prize-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--texto-muted);
}

.bolao-prize-value {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--verde-light);
}

.bolao-prize-countdown {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid rgba(160,152,144,.1);
}

.bolao-prize-actions {
  display: flex;
  gap: .5rem;
}

.bolao-prize-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: .9rem;
}

/* Bet builder card */
.bolao-bet-card {
  margin-bottom: .75rem;
}

.bolao-bet-card .bet-builder-card-top {
  margin-bottom: .75rem;
}

/* Value input + metodo row */
.bolao-valor-section {
  margin-bottom: .75rem;
}

.bolao-valor-section .form-label {
  margin-bottom: .4rem;
}

/* Resumo rows */
.bolao-resumo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  border-top: 1px solid var(--borda);
  margin-bottom: .75rem;
}

.bolao-resumo-row:last-of-type {
  margin-bottom: 0;
}

.bolao-resumo-nums {
  text-align: right;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bolao-resumo-total {
  font-weight: 900;
  color: var(--verde-light);
  font-size: 1.1rem;
}

/* Bet action buttons row */
.bolao-bet-actions {
  display: flex;
  gap: .5rem;
}

.bolao-bet-actions .btn {
  flex: 1;
  justify-content: center;
}

/* Trust note */
.bolao-trust-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .6rem .75rem;
  background: rgba(251,191,36,.06);
  border: 1px solid rgba(251,191,36,.15);
  border-radius: 14px;
  margin-bottom: .75rem;
}

.bolao-trust-note i {
  font-size: .9rem;
  color: var(--amarelo);
  flex: 0 0 auto;
  margin-top: .05rem;
}

.bolao-trust-note-text {
  font-size: .78rem;
  color: var(--texto-soft);
  line-height: 1.45;
}

/* Sorteio result ball row */
.bolao-sorteados-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .6rem;
}

.bolao-sorteio-ball {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amarelo), #f59e0b);
  color: #000;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 3px 8px rgba(245, 158, 11, .35);
}

.bolao-sorteio-data {
  font-size: .78rem;
  color: var(--texto-muted);
}

/* Winner/faixa card */
.bolao-faixa-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  margin-bottom: .75rem;
}

.bolao-faixa-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bolao-faixa-left {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.bolao-faixa-premio {
  font-weight: 900;
  color: var(--verde-light);
}

.bolao-faixa-ganhadores {
  margin-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bolao-ganhador-item {
  margin: 0;
  padding: .65rem .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bolao-ganhador-nome {
  font-weight: 800;
}

.bolao-ganhador-info {
  font-size: .72rem;
  color: var(--texto-muted);
  margin-top: .05rem;
}

.bolao-ganhador-premio {
  font-weight: 900;
  color: var(--verde-light);
}

/* Participant cards */
.bolao-part-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1rem;
}

.bolao-part-card {
  padding: .85rem .9rem;
}

.bolao-part-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}

.bolao-part-nome {
  font-weight: 800;
  font-size: .9rem;
}

.bolao-part-codigo {
  font-size: .72rem;
  color: var(--texto-muted);
}

.bolao-part-codigo i {
  font-size: .7rem;
  margin-right: .2rem;
}

.bolao-part-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bolao-part-num {
  border-radius: 6px;
  padding: .15rem .4rem;
  font-size: .72rem;
  min-width: 24px;
  text-align: center;
}

.bolao-part-num-default {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  color: var(--texto-muted);
}

.bolao-part-num-hit {
  background: linear-gradient(135deg, var(--amarelo), #f59e0b);
  border: 1px solid var(--amarelo);
  color: #000;
  font-weight: 900;
}

.bolao-part-acertos {
  display: inline-flex;
  align-items: center;
}

/* Non-logged-in notLoggedIn alert */
.bolao-login-hint {
  font-size: .78rem;
  color: var(--texto-muted);
  margin-top: .6rem;
  text-align: center;
}

/* ── BET CARD — card visual de aposta (meus-boloes) ──────────── */

.bet-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--texto);
  display: block;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}

.bet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120,80,255,.3);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(120,80,255,.15);
}

.bet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .8rem 1rem .6rem;
}

.bet-card-info {
  flex: 1;
  min-width: 0;
}

.bet-card-title {
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: -.2px;
  color: var(--texto);
  line-height: 1.2;
}

.bet-card-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: .15rem;
}

.bet-card-code {
  font-size: .68rem;
  color: var(--texto-muted);
  font-weight: 600;
}

.bet-card-code i {
  font-size: .7rem;
  margin-right: .2rem;
}

/* Status dot badge */
.bet-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.bet-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 6px;
}

.bet-status-confirmado {
  background: rgba(0,200,83,.12);
  color: var(--verde-light);
  border: 1px solid rgba(0,200,83,.25);
}

.bet-status-confirmado .status-dot { background: var(--verde); }

.bet-status-pendente {
  background: rgba(255,193,7,.12);
  color: #ffe082;
  border: 1px solid rgba(255,193,7,.22);
  animation: statusPulse 2s ease-in-out infinite;
}

.bet-status-pendente .status-dot { background: #ffc107; }

.bet-status-cancelado {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.22);
}

.bet-status-cancelado .status-dot { background: #ef4444; }

/* Numbers row */
.bet-numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: .35rem 1rem .55rem;
}

.bet-num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: .22rem .4rem;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
}

.bet-num-pill-default {
  background: rgba(18,14,10,.7);
  border: 1px solid var(--borda);
  color: var(--texto-muted);
}

.bet-num-pill-hit {
  background: linear-gradient(135deg, var(--amarelo), #f59e0b);
  border: 1px solid var(--amarelo);
  color: #060b19;
  box-shadow: 0 2px 8px rgba(245,158,11,.3);
}

/* Prize/Result row */
.bet-result-row {
  margin: .2rem 1rem .6rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.bet-result-row i {
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.bet-result-body {
  flex: 1;
  min-width: 0;
}

.bet-result-label {
  font-size: .7rem;
  color: var(--texto-muted);
  line-height: 1.2;
}

.bet-result-value {
  font-weight: 900;
  font-size: .92rem;
  color: var(--texto);
  line-height: 1.2;
  margin-top: .05rem;
}

.bet-result-premiado {
  background: rgba(212,168,67,.08);
  border: 1px solid rgba(212,168,67,.18);
}

.bet-result-premiado i { color: var(--verde-light); }
.bet-result-premiado .bet-result-value { color: var(--verde-light); }

.bet-result-nao-premiado {
  background: rgba(107,114,128,.06);
  border: 1px solid rgba(160,152,144,.12);
}

.bet-result-nao-premiado i { color: var(--texto-muted); }

.bet-result-aguardando {
  background: rgba(59,130,246,.06);
  border: 1px solid rgba(59,130,246,.14);
}

.bet-result-aguardando i { color: #93c5fd; }

.bet-result-valor {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--verde-light);
  flex: 0 0 auto;
}

/* Actions row */
.bet-actions-row {
  display: flex;
  gap: .5rem;
  padding: .5rem 1rem .75rem;
  border-top: 1px solid rgba(160,152,144,.06);
  justify-content: flex-end;
}

.bet-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .7rem;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .15s ease;
}

.bet-action-btn:active {
  transform: scale(.94);
}

.bet-action-pagar {
  background: var(--bg-card2);
  border: 1px solid rgba(212,168,67,.28);
  color: var(--verde-light);
}

.bet-action-pagar:hover {
  background: rgba(212,168,67,.14);
}

.bet-action-sacar {
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #060b19;
}

.bet-action-sacar:hover {
  filter: brightness(1.06);
}

.bet-action-ver {
  background: rgba(160,152,144,.08);
  border: 1px solid rgba(160,152,144,.14);
  color: var(--texto-soft);
}

.bet-action-ver:hover {
  background: rgba(160,152,144,.14);
}

/* Bet empty state */
.bet-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.bet-empty-icon {
  font-size: 3rem;
  margin-bottom: .6rem;
  display: block;
}

.bet-empty-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: .2rem;
}

.bet-empty-sub {
  color: var(--texto-muted);
  font-size: .84rem;
  margin-bottom: 1rem;
}

/* ── CTA CARD ───────────────────────────────────────────────────── */
.cta-card {
  background: rgba(20,25,85,.65);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(120,80,255,.25);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  color: var(--texto);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cta-card:hover {
  transform: translateY(-3px);
  border-color: rgba(156,39,176,.45);
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(156,39,176,.25);
}
.cta-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(156,39,176,.2), rgba(30,144,255,.15));
  border: 1px solid rgba(120,80,255,.2);
  box-shadow: var(--shadow-inset);
}
.cta-title {
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: -.02em;
  color: var(--texto);
}
.cta-sub {
  margin-top: .15rem;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--texto-muted);
}
.cta-card .bi-chevron-right {
  color: var(--verde-light);
  font-size: .95rem;
  flex: 0 0 auto;
}
.cta-content-title {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .2rem;
}
.cta-content-text {
  font-size: .82rem;
  color: var(--texto-muted);
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  border: none;
  border-radius: 14px;
  padding: .72rem 1rem;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-decoration: none;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  letter-spacing: -.2px;
}
.btn-primary {
  background: linear-gradient(135deg, #ff6b00 0%, #e91e8c 100%);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(233,30,140,.5);
  animation: btnGlowPulse 2s ease-in-out infinite;
}
.btn-primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(233,30,140,.65);
}
.btn-primary:active {
  transform: translateY(0) scale(.97);
}
.btn-ghost {
  background: rgba(124,58,237,.15);
  color: var(--texto);
  border: 1px solid rgba(156,39,176,.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(124,58,237,.25);
  color: var(--ouro-light);
  border-color: rgba(156,39,176,.5);
}
.btn-secondary {
  background: rgba(15,20,80,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--texto-soft);
  border: 1px solid rgba(120,80,255,.25);
}
.btn-secondary:hover {
  background: rgba(25,30,90,.6);
  border-color: rgba(156,39,176,.45);
  color: var(--verde-light);
}
.btn-sm {
  padding: .5rem .7rem;
  font-size: .82rem;
  border-radius: 12px;
}
.btn-lg {
  padding: .85rem 1.1rem;
  font-size: .95rem;
  border-radius: 16px;
}

/* ── HERO CTA BUTTON (não-logado) ───────────────────────────── */
.btn-cta-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .9rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.3px;
  border: none;
  border-radius: 16px;
  margin-top: 1rem;
  background: linear-gradient(135deg, #ff6b00 0%, #e91e8c 100%);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 24px -6px rgba(233,30,140,.5);
  transition: all .18s cubic-bezier(.4,0,.2,1);
  animation: btnGlowPulse 2s ease-in-out infinite;
}

.btn-cta-hero:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(233,30,140,.65);
}

.btn-cta-hero:active {
  transform: translateY(0) scale(.97);
}

.btn-cta-hero i {
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.hero-actions {
  margin-top: 1rem;
}

.btn-full {
  width: 100%;
}

/* ── SHARE CARD ─────────────────────────────────────────────────── */
.share-card {
  background: linear-gradient(135deg, rgba(212,168,67,.10), rgba(59,130,246,.08));
  border: 1px solid rgba(160,152,144,.14);
  border-radius: var(--radius);
  padding: 1rem 1rem;
}
.share-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}
.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(15,12,8,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amarelo);
  font-size: 1.15rem;
  border: 1px solid rgba(160,152,144,.14);
}
.share-title {
  font-weight: 800;
  font-size: .92rem;
}
.share-text {
  font-size: .82rem;
  color: var(--texto-muted);
  margin-bottom: .8rem;
}
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.btn-share-wa {
  background: linear-gradient(135deg, #12b76a, #059669);
  color: white;
  font-weight: 900;
}
.btn-share-wa i {
  font-size: .95rem;
}

/* ── FORM ELEMENTS ─────────────────────────────────────────────── */
.form-control {
  background: rgba(18,14,10,.7);
  border: 2px solid rgba(160,152,144,.18);
  color: var(--texto);
  border-radius: 14px;
  padding: .8rem .9rem;
  font-size: .92rem;
  width: 100%;
  transition: all .2s ease;
  font-family: inherit;
  outline: none;
}
.form-control:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(212,168,67,.12);
  background: rgba(22,32,51,.8);
}
.form-label {
  font-size: .75rem;
  color: var(--texto-muted);
  font-weight: 700;
  margin-bottom: .4rem;
  display: block;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── ALERTS ─────────────────────────────────────────────────────── */
.alert {
  border-radius: 14px;
  padding: .75rem .85rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .85rem;
  line-height: 1.45;
}
.alert i { font-size: .95rem; margin-top: .05rem; }
.alert-success {
  background: rgba(212,168,67,.10);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.2);
}
.alert-error {
  background: rgba(239,68,68,.10);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.2);
}
.alert-info {
  background: rgba(59,130,246,.10);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.2);
}
.alert-warning {
  background: rgba(251,191,36,.10);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,.2);
}

/* ── FOOTER (não-logado) ─────────────────────────────────────── */
.footer-simple {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(120,80,255,.1);
}
.footer-simple .footer-branding {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
.footer-simple .footer-brand-image {
  max-width: 100px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.footer-simple .text-xs {
  font-size: .7rem;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

/* ── UTILS ─────────────────────────────────────────────────────── */
.text-muted { color: var(--texto-muted); }
.text-soft { color: var(--texto-soft); }
.text-xs { font-size: .78rem; }
.text-sm { font-size: .86rem; }
.text-gradient {
  background: linear-gradient(135deg, #ffd700, #ff6b00, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-ouro { color: var(--ouro-light) !important; }
.text-ouro-strong { color: var(--ouro) !important; }
.text-verde { color: var(--verde-light) !important; }
.text-amarelo { color: var(--amarelo) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }
.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-none { display: none; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.lh-tight { line-height: 1.15; }
.lh-normal { line-height: 1.5; }
.pos-relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── LOGIN / CADASTRO ───────────────────────────────────────────── */
.auth-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-strong), var(--shadow-inset);
}
.auth-logo {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: .15rem;
}
.auth-logo-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
}
.auth-logo-image {
  max-width: 160px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.auth-brand-link {
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.auth-brand-image {
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.auth-brand-fallback {
  font-size: 1.8rem;
  line-height: 1;
}
.auth-title {
  text-align: center;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -.4px;
}
.auth-sub {
  text-align: center;
  color: var(--texto-muted);
  font-size: .84rem;
  margin-top: .2rem;
  margin-bottom: 1.2rem;
}
.auth-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: .84rem;
  color: var(--texto-muted);
}
.auth-footer a {
  color: var(--verde-light);
  font-weight: 800;
  text-decoration: none;
}
.public-entry-intro {
  padding: .35rem 0 .7rem;
}
.public-entry-subtitle {
  color: var(--texto-muted);
  margin: 0 auto;
  font-size: .9rem;
  max-width: 300px;
}
.public-entry-card {
  max-width: 380px;
  margin: 0 auto;
  padding: 1.2rem 1rem 1.1rem;
}
.public-entry-card .auth-logo-brand {
  min-height: 52px;
}
.public-entry-card .auth-logo-image {
  max-width: 120px;
  max-height: 48px;
}
.public-entry-card .auth-title {
  font-size: 1.15rem;
}
.public-entry-card .auth-sub {
  margin-bottom: 1rem;
}

/* ── AUTH APP-LIKE ✦ Inputs com ícone, divisor, security badge ── */

.auth-top-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.35rem;
  text-align: center;
}

.auth-top-brand .auth-brand-image {
  max-width: 130px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.auth-top-brand .auth-brand-fallback {
  font-size: 1.6rem;
  line-height: 1;
}

/* Input com ícone interno — padrão app */
.auth-input-group {
  position: relative;
  margin-bottom: .85rem;
}

.auth-input-group .auth-input-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-muted);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 2;
  transition: color .2s ease;
}

.auth-input-group:focus-within .auth-input-icon {
  color: var(--verde-light);
}

.auth-input-group .form-control {
  padding-left: 2.6rem;
  padding-right: .9rem;
  height: 50px;
  font-size: .92rem;
  border-radius: 14px;
  background: rgba(18,14,10,.6);
  border: 2px solid rgba(160,152,144,.14);
  color: var(--texto);
  width: 100%;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}

.auth-input-group .form-control:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(212,168,67,.1);
  background: rgba(22,32,51,.7);
}

.auth-input-group .form-control::placeholder {
  color: rgba(160,152,144,.4);
  font-weight: 500;
}

.auth-pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--texto-muted);
  cursor: pointer;
  padding: .35rem;
  border-radius: 8px;
  transition: all .15s ease;
  z-index: 2;
  font-size: 1.1rem;
  line-height: 1;
}

.auth-pw-toggle:hover {
  color: var(--texto-soft);
  background: rgba(160,152,144,.08);
}

/* Divisor "ou" — elegante */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .85rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,152,144,.2), transparent);
}

.auth-divider span {
  font-size: .72rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Security badge */
.auth-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .85rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(160,152,144,.05);
  border: 1px solid rgba(160,152,144,.08);
  color: var(--texto-muted);
  font-size: .7rem;
  font-weight: 700;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.auth-security-badge i {
  font-size: .78rem;
  color: var(--verde-light);
}

/* Password strength visual */
.auth-pw-strength {
  margin-top: .45rem;
  display: flex;
  gap: 4px;
}

.auth-pw-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(160,152,144,.1);
  transition: all .3s ease;
}

.auth-pw-strength-bar.weak { background: #ef4444; }
.auth-pw-strength-bar.medium { background: #f59e0b; }
.auth-pw-strength-bar.strong { background: var(--verde); }

.auth-pw-strength-label {
  font-size: .65rem;
  color: var(--texto-muted);
  margin-top: .2rem;
  font-weight: 700;
}

/* ── FINANCE CARDS ─────────────────────────────────────────────── */
.fin-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition: box-shadow .25s ease, border-color .25s ease;
}

.fin-card:hover {
  border-color: rgba(160,152,144,.18);
  box-shadow: var(--shadow-strong), var(--shadow-inset);
}

.fin-card:active {
  transform: scale(.992);
  border-color: rgba(212,168,67,.14);
}
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-bottom: 1rem;
}

.admin-shortcuts-card {
  padding: 1rem;
}

.admin-home-shortcuts {
  background:
    linear-gradient(180deg, rgba(15,23,42,.96) 0%, rgba(2,6,23,.92) 100%);
  border-color: rgba(212,168,67,.18);
}

/* ── ADMIN-SPECIFIC COMPONENTS ─────────────────────────────────── */

/* Stat card grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem .9rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.15;
  color: var(--texto);
}

.stat-card .stat-label {
  font-size: .72rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}

/* Admin table */
.table-bolao {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.table-bolao thead th {
  text-align: left;
  padding: .65rem .75rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--texto-muted);
  border-bottom: 1px solid var(--borda);
  white-space: nowrap;
}

.table-bolao tbody td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--borda-soft);
  vertical-align: middle;
}

.table-bolao tbody tr:last-child td {
  border-bottom: none;
}

.table-bolao tbody tr:hover {
  background: rgba(160,152,144,.03);
}

.table-bolao code {
  font-family: 'Inter', monospace;
  font-weight: 800;
  letter-spacing: .5px;
}

/* Yellow button variant (admin actions) */
.btn-amarelo {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #060b19;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: .65rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .18s ease;
}

.btn-amarelo:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-amarelo:active {
  transform: scale(.97);
}

/* Faixa badge (resultado faixas) */
.faixa-badge {
  display: inline-flex;
  align-items: center;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.faixa-sena {
  background: rgba(251,191,36,.14);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,.25);
}

.faixa-quina {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.25);
}

.faixa-quadra {
  background: rgba(212,168,67,.14);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.25);
}

.faixa-lotofacil_15 {
  background: rgba(22,163,74,.14);
  color: #86efac;
  border: 1px solid rgba(22,163,74,.25);
}

.faixa-default {
  background: rgba(160,152,144,.12);
  color: var(--texto-soft);
  border: 1px solid var(--borda);
}

/* Result number balls */
.bola-resultado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amarelo), #f59e0b);
  color: #060b19;
  font-weight: 900;
  font-size: .85rem;
  box-shadow: 0 3px 8px rgba(245,158,11,.35);
}

/* Responsive grid helper for admin edit pages */
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 768px) {
  .admin-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Admin sidebar refinements */
.sidebar .texto-muted {
  color: var(--texto-muted);
}

/* Admin error/confirm buttons */
.btn-admin-danger {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: .65rem;
  width: 100%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .18s ease;
}

.btn-admin-danger:hover {
  filter: brightness(1.1);
}

.btn-admin-danger:active {
  transform: scale(.97);
}

/* Admin compact pagamentos grid */
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 540px) {
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin inline form buttons */
.admin-btn-sm {
  font-size: .75rem;
  padding: .25rem .5rem;
}

/* Admin filter pills row */
.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.admin-filter-row .btn-sm {
  font-size: .85rem;
  padding: .35rem .8rem;
}

/* Separator for admin filters */
.admin-filter-divider {
  width: 1px;
  height: 28px;
  background: rgba(160,152,144,.18);
  align-self: center;
}

.admin-shortcuts-header {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.admin-shortcuts-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,67,.14);
  color: var(--verde-light);
  flex: 0 0 40px;
}

.admin-shortcuts-title {
  font-weight: 900;
  letter-spacing: -.02em;
}

.admin-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.admin-shortcut-link {
  min-height: 74px;
  border-radius: 16px;
  border: 1px solid rgba(160,152,144,.18);
  background: rgba(15,23,42,.68);
  color: rgba(226,232,240,.95);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-weight: 800;
  transition: all .2s ease;
}

.admin-shortcut-link i {
  color: var(--verde-light);
  font-size: 1.15rem;
}

.admin-shortcut-link:hover {
  background: rgba(212,168,67,.12);
  border-color: rgba(212,168,67,.28);
  transform: translateY(-1px);
}

/* Admin card header — refinado, substitui card-header-verde */
.card-header {
  padding: .85rem 1rem;
  font-weight: 900;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.06));
  border-bottom: 1px solid rgba(212,168,67,.18);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.status-chip-cancelado {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.22);
}

.status-chip-pago {
  background: rgba(0,200,83,.15);
  color: #69f0ae;
  border: 1px solid rgba(0,200,83,.3);
}

/* ── SIMPLE OLD CLASSES (para compatibilidade) ──────────────────── */
.container-max {
  max-width: 540px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}
.card-bolao {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.btn-verde {
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #020617;
  font-weight: 800;
  border-radius: 14px;
  padding: .8rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.btn-outline-verde {
  border: 2px solid rgba(212,168,67,.45);
  color: var(--verde-light);
  background: rgba(212,168,67,.1);
  border-radius: 14px;
  padding: .75rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* ── FILTRO POR MODALIDADE ──────────────────────────────────────── */
.modalidade-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  position: relative;
}

.modalidade-filter::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,152,144,.12), transparent);
}

.filter-btn {
  background: rgba(160,152,144,.06);
  border: 1.5px solid rgba(160,152,144,.14);
  border-radius: 12px;
  padding: .55rem 1rem .55rem .85rem;
  color: var(--texto-muted);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  letter-spacing: -.01em;
  position: relative;
}

.filter-btn i {
  font-size: 1.05rem;
  opacity: .7;
  transition: opacity .2s ease;
}

.filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(160,152,144,.1);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: all .2s ease;
}

.filter-btn:hover {
  background: rgba(160,152,144,.12);
  color: var(--texto-soft);
  border-color: rgba(160,152,144,.28);
  transform: translateY(-1px);
}

.filter-btn:hover i {
  opacity: 1;
}

.filter-btn-active {
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.08));
  border-color: rgba(212,168,67,.4);
  color: #d1fae5;
  box-shadow: 0 0 0 1px rgba(212,168,67,.15), 0 4px 14px rgba(212,168,67,.12);
}

.filter-btn-active:hover {
  background: linear-gradient(135deg, rgba(212,168,67,.22), rgba(212,168,67,.12));
  color: #ecfdf5;
  border-color: rgba(212,168,67,.5);
}

.filter-btn-active i {
  opacity: 1;
  color: var(--verde-light);
}

.filter-btn-active .filter-count {
  background: rgba(212,168,67,.25);
  color: #d1fae5;
}

/* Variante visual para Lotofácil quando ativo */
.filter-btn[data-filter="lotofacil"].filter-btn-active {
  background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(59,130,246,.08));
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 4px 14px rgba(59,130,246,.12);
  color: #bfdbfe;
}

.filter-btn[data-filter="lotofacil"].filter-btn-active i {
  color: #93c5fd;
}

.filter-btn[data-filter="lotofacil"].filter-btn-active:hover {
  background: linear-gradient(135deg, rgba(59,130,246,.24), rgba(59,130,246,.12));
  border-color: rgba(59,130,246,.5);
  color: #dbeafe;
}

.filter-btn[data-filter="lotofacil"].filter-btn-active .filter-count {
  background: rgba(59,130,246,.25);
  color: #bfdbfe;
}

/* ── APP-LIKE COMPONENTS ───────────────────────────────────────── */

/* Bottom CTA fixo (mobile) */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  padding: .65rem 1rem max(.65rem, env(safe-area-inset-bottom)) 1rem;
  background: linear-gradient(180deg, rgba(15,12,8,0) 0%, rgba(15,12,8,.96) 20%, rgba(15,12,8,1) 100%);
  pointer-events: none;
}

.bottom-cta > * {
  pointer-events: auto;
}

.has-bottom-cta {
  padding-bottom: 4.5rem !important;
}

/* Prize bar (arrecadação visual) */
.prize-bar {
  height: 5px;
  background: rgba(160,152,144,.08);
  border-radius: 999px;
  overflow: hidden;
}

.prize-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ouro), var(--ouro-light));
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}

.prize-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  color: var(--texto-muted);
  margin-top: .2rem;
}

.prize-bar-highlight {
  font-weight: 800;
  color: var(--verde-light);
}

/* Status chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}

.status-chip-open {
  background: rgba(0,200,83,.12);
  color: #69f0ae;
  border: 1px solid rgba(0,200,83,.25);
}

.status-chip-closed {
  background: rgba(120,80,255,.12);
  color: #b388ff;
  border: 1px solid rgba(120,80,255,.25);
}

.status-chip-pending {
  background: rgba(255,193,7,.12);
  color: #ffe082;
  border: 1px solid rgba(255,193,7,.22);
}

.status-chip-won {
  background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(255,107,0,.12));
  color: #ffd740;
  border: 1px solid rgba(255,215,0,.35);
  animation: statusPulse 2s ease-in-out infinite;
}

/* Mini stat row */
.mini-stats {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .67rem;
  color: var(--texto-muted);
  font-weight: 700;
}

.mini-stat i {
  font-size: .7rem;
}

.mini-stat strong {
  color: var(--texto);
}

/* Value tag */
.value-tag {
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--verde-light);
}

/* Bolão card compact */
.bolao-card-compact {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  text-decoration: none;
  color: var(--texto);
  display: block;
  transition: all .22s ease;
}

.bolao-card-compact:hover {
  transform: translateY(-2px);
  border-color: rgba(212,168,67,.25);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(212,168,67,.12);
}

.bolao-card-compact .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
}

.bolao-card-compact .card-title {
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.25;
}

.bolao-card-compact .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}

.bolao-card-compact .card-cta {
  flex: 0 0 auto;
}

/* CTA no card */
.bolao-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .7rem;
  padding-top: .65rem;
  border-top: 1px solid rgba(160,152,144,.08);
}

/* Big CTA no card */
.cta-enter {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #060b19;
  font-weight: 900;
  font-size: .78rem;
  transition: all .2s ease;
  white-space: nowrap;
}

.cta-enter:hover {
  filter: brightness(1.06);
  transform: scale(1.02);
}

.cta-enter-sm {
  padding: .35rem .6rem;
  font-size: .72rem;
}

/* Modalidade icon rounded */
.modalidade-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex: 0 0 30px;
}

.modalidade-icon-mega {
  background: rgba(212,168,67,.14);
  color: var(--verde-light);
}

.modalidade-icon-lotofacil {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
}

/* Quick actions row */
.quick-actions {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: .2rem;
  margin-bottom: .85rem;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  color: var(--texto-soft);
  font-weight: 800;
  font-size: .76rem;
  text-decoration: none;
  transition: all .2s ease;
}

.quick-action:hover {
  border-color: rgba(212,168,67,.25);
  color: var(--verde-light);
}

.quick-action i {
  font-size: .85rem;
  color: var(--verde-light);
}

/* ── WITHDRAW / SAQUE APP-LIKE ─────────────────────────────── */

/* Back link premium */
.saque-back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--texto-muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem .5rem;
  margin-bottom: .75rem;
  border-radius: 10px;
  transition: all .15s ease;
}

.saque-back-link:hover {
  color: var(--verde-light);
  background: rgba(160,152,144,.06);
}

.saque-back-link i {
  font-size: .85rem;
}

/* Prize hero card */
.saque-prize-hero {
  background: radial-gradient(120% 180% at 0% 0%, rgba(212,168,67,.2) 0%, rgba(15,12,8,.95) 50%, rgba(15,12,8,1) 100%);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem;
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(212,168,67,.12);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.saque-prize-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(212,168,67,.15) 0%, transparent 60%);
  pointer-events: none;
}

.saque-prize-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .75rem;
}

.saque-prize-label {
  font-size: .72rem;
  color: var(--texto-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.saque-prize-value {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -.6px;
  color: var(--verde-light);
  line-height: 1.1;
  margin-top: .15rem;
}

.saque-prize-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(212,168,67,.14);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.28);
  flex: 0 0 auto;
}

.saque-prize-info {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  background: rgba(15,12,8,.5);
  border: 1px solid rgba(160,152,144,.1);
  border-radius: 12px;
}

.saque-prize-info i {
  color: var(--texto-muted);
  font-size: .9rem;
}

.saque-prize-info-text {
  font-weight: 700;
  font-size: .82rem;
  color: var(--texto-soft);
}

.saque-prize-info-sub {
  font-size: .7rem;
  color: var(--texto-muted);
}

/* PIX type grid — visual cards instead of dropdown */
.pix-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .85rem;
}

.pix-type-option {
  position: relative;
}

.pix-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pix-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .7rem .35rem;
  border-radius: 14px;
  background: rgba(18,14,10,.6);
  border: 2px solid rgba(160,152,144,.14);
  color: var(--texto-muted);
  cursor: pointer;
  transition: all .18s ease;
  text-align: center;
}

.pix-type-card i {
  font-size: 1.15rem;
  color: var(--texto-muted);
  transition: color .18s ease;
}

.pix-type-card span {
  font-size: .65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.pix-type-card:hover {
  border-color: rgba(212,168,67,.3);
  background: rgba(18,14,10,.8);
  color: var(--texto-soft);
}

.pix-type-option input[type="radio"]:checked + .pix-type-card {
  border-color: var(--verde);
  background: linear-gradient(135deg, rgba(212,168,67,.15), rgba(212,168,67,.06));
  color: #d1fae5;
  box-shadow: 0 0 0 1px rgba(212,168,67,.2);
}

.pix-type-option input[type="radio"]:checked + .pix-type-card i {
  color: var(--verde-light);
}

/* Saque form card */
.saque-form-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.saque-form-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  background: linear-gradient(135deg, rgba(212,168,67,.08), rgba(59,130,246,.05));
  border-bottom: 1px solid rgba(160,152,144,.08);
  font-weight: 800;
  font-size: .88rem;
}

.saque-form-header i {
  color: var(--verde-light);
  font-size: 1rem;
}

.saque-form-body {
  padding: 1rem;
}

/* PIX key input with icon */
.pix-input-group {
  position: relative;
  margin-bottom: .85rem;
}

.pix-input-group .form-control {
  padding-left: 2.6rem;
  padding-right: .9rem;
  height: 50px;
  font-size: .92rem;
  border-radius: 14px;
  background: rgba(18,14,10,.6);
  border: 2px solid rgba(160,152,144,.14);
  color: var(--texto);
  width: 100%;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
}

.pix-input-group .form-control:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(212,168,67,.1);
  background: rgba(22,32,51,.7);
}

.pix-input-group .pix-input-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--texto-muted);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
  transition: color .2s ease;
}

.pix-input-group:focus-within .pix-input-icon {
  color: var(--verde-light);
}

/* Saque success */
.saque-success-wrap {
  text-align: center;
  padding: 1rem 0;
}

/* ── PAYMENT APP-LIKE ────────────────────────────────────────── */

/* Order card */
.payment-order-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.payment-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 1rem;
  background: linear-gradient(135deg, rgba(212,168,67,.08), rgba(59,130,246,.05));
  border-bottom: 1px solid rgba(160,152,144,.08);
}

.payment-order-body {
  padding: .65rem 1rem .85rem;
}

.payment-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(160,152,144,.05);
}

.payment-order-row:last-child {
  border-bottom: none;
}

/* ── FINANCIAL DASHBOARD - saque list / prizes ──────────────── */
.fin-saque-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fin-saque-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: .7rem .85rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}
.fin-saque-item-link {
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease;
  cursor: pointer;
}
.fin-saque-item-link:hover {
  border-color: rgba(212,168,67,.35);
}
.fin-saque-left {
  min-width: 0;
}
.fin-saque-bolao {
  font-size: .82rem;
  font-weight: 700;
  color: var(--texto);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: .15rem;
}
.fin-saque-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  color: var(--texto-muted);
}
.fin-saque-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--texto-muted);
  flex: 0 0 auto;
}
.fin-saque-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  flex: 0 0 auto;
}
.fin-saque-valor {
  font-size: 1rem;
  font-weight: 900;
  color: var(--verde-light);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.fin-saque-sacar-btn {
  font-size: .7rem;
  font-weight: 800;
  color: var(--ouro);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .15rem;
}

/* Numbers small */
.payment-nums-small {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
  max-width: 70%;
}

.payment-nums-small span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: .1rem .25rem;
  border-radius: 6px;
  background: rgba(15,12,8,.6);
  border: 1px solid rgba(160,152,144,.1);
  font-size: .65rem;
  font-weight: 800;
  color: var(--texto-soft);
}

/* QR Card */
.payment-qr-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 1rem 1rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.payment-qr-header {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .85rem;
}

.payment-qr-header i {
  font-size: 1.1rem;
  color: var(--verde-light);
}

.payment-qr-img-wrap {
  background: white;
  border-radius: 18px;
  padding: 1rem;
  max-width: 240px;
  margin: 0 auto .85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.payment-qr-img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.payment-qr-hint {
  text-align: center;
  font-size: .78rem;
  color: var(--texto-muted);
  margin-bottom: .85rem;
  font-weight: 700;
}

/* PIX copy area */
.pix-copy-area {
  background: rgba(15,12,8,.6);
  border: 1px solid rgba(160,152,144,.1);
  border-radius: 14px;
  padding: .7rem;
}

.pix-copy-label {
  font-size: .68rem;
  color: var(--texto-muted);
  font-weight: 700;
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.pix-copy-input {
  background: rgba(12,9,4,.6);
  border: 1px solid rgba(160,152,144,.1);
  border-radius: 10px;
  padding: .5rem .65rem;
  font-size: .68rem;
  font-family: monospace;
  word-break: break-all;
  color: var(--texto-soft);
  margin-bottom: .5rem;
  line-height: 1.5;
  max-height: 72px;
  overflow-y: auto;
}

/* Polling status */
.payment-poll-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .5rem;
  font-size: .68rem;
  color: var(--texto-muted);
  font-weight: 700;
}

.payment-poll-status i {
  font-size: .75rem;
}

/* Pulse dot for pending status */
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Success screen */
.payment-success-screen {
  text-align: center;
  padding-top: .25rem;
}

.payment-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde-light), var(--verde));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.7rem;
  color: #060b19;
  box-shadow: 0 10px 28px rgba(212,168,67,.3);
  animation: scaleIn .35s cubic-bezier(.2,.8,.2,1);
}

.payment-success-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .2rem;
}

.payment-success-sub {
  font-size: .85rem;
  color: var(--texto-soft);
}

.payment-nums-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .7rem;
}

.payment-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(15,12,8,.6);
  border: 1px solid var(--borda);
  font-size: .72rem;
  font-weight: 900;
  color: var(--texto-soft);
}

/* Success button variant */
.btn-success {
  background: rgba(212,168,67,.15);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.28);
}

/* Scale in animation */
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── MODALIDADE BADGE ───────────────────────────────────────────── */
.modalidade-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .5rem .15rem .4rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.modalidade-badge-mega {
  background: rgba(212,168,67,.14);
  color: var(--ouro-light);
  border: 1px solid rgba(212,168,67,.25);
}

.modalidade-badge-lotofacil {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.25);
}

.modalidade-badge i {
  font-size: .7rem;
}

/* ── FILTER ANIMATION & EMPTY STATE ─────────────────────────────── */
.bolao-card {
  transition: opacity .3s ease, transform .3s ease, max-height .3s ease, margin .3s ease, padding .3s ease, border-color .3s ease;
}

.bolao-card.filter-hidden {
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border: 0;
}

.filter-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--texto-muted);
}

.filter-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: .6rem;
  opacity: .4;
}

.filter-empty div {
  font-size: .9rem;
  line-height: 1.55;
}

.filter-empty-sub {
  font-size: .8rem;
  margin-top: .25rem;
  opacity: .7;
}

/* ── SKELETON LOADING ───────────────────────────────────────────── */
.skeleton-wrapper {
  position: relative;
}

.skeleton-layer {
  display: contents;
}

.skeleton-layer--hide {
  /* animation is applied by JS to avoid auto-start flash */
}

.skeleton-layer--show {
  animation: skeletonFadeIn .55s cubic-bezier(.2,.8,.2,1) both;
}

/* Fallback: se o JS falhar, o conteúdo aparece após 3s */
.skeleton-layer--show {
  animation: skeletonFallbackShow 0s 3s forwards;
}

@keyframes skeletonFallbackShow {
  to { opacity: 1 !important; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(160,152,144,.05) 25%,
    rgba(160,152,144,.14) 50%,
    rgba(160,152,144,.05) 75%
  );
  background-size: 200% 100%;
  border-radius: 12px;
  animation: skeletonShimmer 1.6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

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

@keyframes skeletonFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes skeletonFadeOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-6px) scale(.98); }
}

/* Skeleton shapes */
.skel-greeting {
  height: 48px;
  width: 55%;
  margin-bottom: 1.2rem;
}

.skel-balance {
  height: 140px;
  margin-bottom: 1.2rem;
}

.skel-filter-row {
  height: 38px;
  margin-bottom: 1rem;
}

.skel-card {
  height: 128px;
  margin-bottom: .9rem;
}

.skel-card-sm {
  height: 96px;
  margin-bottom: .9rem;
}

.skel-hero {
  height: 260px;
  margin-bottom: 1.25rem;
}

.skel-text-lg {
  height: 24px;
  width: 65%;
  margin-bottom: .5rem;
}

.skel-text-sm {
  height: 14px;
  width: 80%;
  margin-bottom: .6rem;
}

.skel-btn {
  height: 48px;
  width: 100%;
  margin-bottom: .75rem;
}

.skel-badge {
  height: 22px;
  width: 80px;
  display: inline-block;
  margin-bottom: .5rem;
}

/* ── SCROLL-FADE-IN (Intersection Observer) ────────────────────── */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transition: opacity .5s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1);
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delays */
.scroll-fade-in.delay-1 { transition-delay: .05s; }
.scroll-fade-in.delay-2 { transition-delay: .1s; }
.scroll-fade-in.delay-3 { transition-delay: .15s; }
.scroll-fade-in.delay-4 { transition-delay: .2s; }
.scroll-fade-in.delay-5 { transition-delay: .25s; }
.scroll-fade-in.delay-6 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── PAGE ENTRANCE ANIMATION ───────────────────────────────────── */
.page-enter {
  animation: fadeInUp .4s cubic-bezier(.2,.8,.2,1) both;
}

.page-enter > * {
  animation: fadeInUp .35s cubic-bezier(.2,.8,.2,1) both;
}

.page-enter > *:nth-child(1) { animation-delay: 0s; }
.page-enter > *:nth-child(2) { animation-delay: .06s; }
.page-enter > *:nth-child(3) { animation-delay: .12s; }
.page-enter > *:nth-child(4) { animation-delay: .18s; }
.page-enter > *:nth-child(5) { animation-delay: .24s; }
.page-enter > *:nth-child(6) { animation-delay: .30s; }
.page-enter > *:nth-child(7) { animation-delay: .36s; }
.page-enter > *:nth-child(8) { animation-delay: .42s; }

/* ── MICRO-INTERACTIONS ────────────────────────────────────────── */

/* Button press feedback */
.btn:active {
  transform: scale(.97);
}

.btn-primary:active,
.btn-ghost:active,
.btn-secondary:active {
  transform: scale(.97);
}

/* Card press feedback (for clickable cards) */
.bolao-card:active,
.bolao-card-compact:active,
.cta-card:active {
  transform: scale(.985);
}

/* Ripple effect on primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* Bottom nav press feedback */
.nav-item:active i {
  transform: scale(.82);
}

/* ── COSMIC ANIMATIONS ────────────────────────────────────────── */

/* Primary button glow pulse (orange → magenta) */
@keyframes btnGlowPulse {
  0%, 100% { box-shadow: 0 8px 24px -6px rgba(233,30,140,.5), 0 0 40px -10px rgba(255,107,0,.3); }
  50% { box-shadow: 0 8px 32px -4px rgba(233,30,140,.7), 0 0 60px -6px rgba(255,107,0,.45); }
}

/* Hero gradient slow animation (cosmic cycle) */
@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Fade-in with slide-up for cards */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Soft pulse for "disponível" badges */
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,230,118,.4); }
  50% { opacity: .8; box-shadow: 0 0 18px rgba(0,230,118,.7); }
}

/* Twinkle for background stars/particles */
@keyframes twinkle {
  0%, 100% { opacity: .15; }
  50% { opacity: .5; }
}

/* Center button subtle pulse to draw attention */
@keyframes navPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(233,30,140,.4), 0 0 0 2px rgba(156,39,176,.3); }
  50% { box-shadow: 0 8px 32px rgba(233,30,140,.55), 0 0 0 3px rgba(156,39,176,.25); }
}

.nav-center-btn {
  animation: navPulse 2.8s ease-in-out infinite;
}

.nav-center-btn:hover {
  animation-play-state: paused;
}

/* Balance card stat hover */
.balance-stat:hover {
  background: rgba(20,25,85,.6);
  border-color: rgba(156,39,176,.3);
}

/* Input focus enhancement */
.form-control:focus {
  transform: translateY(-1px);
}

/* ── HERO COMPACT (não-logado) ────────────────────────────────── */
.hero-compact {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-compact h1 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero-compact .hero-sub {
  color: var(--texto-soft);
  font-size: .92rem;
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.55;
}

.hero-compact .hero-actions {
  max-width: 320px;
  margin: .9rem auto 0;
}

.hero-compact .hero-login-hint {
  margin-top: .7rem;
}

/* Trust chip row */
.trust-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .85rem;
  justify-content: center;
}

.trust-chip-row .status-chip {
  font-size: .7rem;
  gap: .35rem;
}

/* Mini step row */
.step-row-compact {
  margin-bottom: 1.2rem;
  justify-content: center;
}

.step-row-compact .quick-action {
  cursor: default;
}

.step-row-compact .quick-action .step-number {
  width: 26px;
  height: 26px;
  font-size: .7rem;
  flex: 0 0 26px;
}

/* Auth wrapper padding */
.auth-wrapper {
  padding-top: 1.5rem;
}

/* ── CART ITEM ANIMATION ───────────────────────────────────────── */
@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(20px) scale(.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.cart-item {
  animation: cartItemIn .35s cubic-bezier(.2,.8,.2,1) both;
}

.cart-item:nth-child(1) { animation-delay: 0s; }
.cart-item:nth-child(2) { animation-delay: .06s; }
.cart-item:nth-child(3) { animation-delay: .12s; }
.cart-item:nth-child(4) { animation-delay: .18s; }

.cart-item-removing {
  animation: cartItemOut .25s cubic-bezier(.4,0,.2,1) both;
}

@keyframes cartItemOut {
  to { opacity: 0; transform: translateX(30px) scale(.9); }
}

/* ── CART / CARRINHO ──────────────────────────────────────────── */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 .35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #060b19;
  font-size: .6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(212,168,67,.45);
  line-height: 1;
  pointer-events: none;
}

.cart-item {
  position: relative;
}

.cart-item-remove {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.2);
  background: rgba(239,68,68,.1);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s ease;
  z-index: 2;
}

.cart-item-remove:hover {
  background: rgba(239,68,68,.2);
  border-color: rgba(239,68,68,.35);
  color: #fecaca;
}

.cart-item-remove:active {
  transform: scale(.92);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 539px) {
  .step-row-compact {
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
  }
  .step-row-compact .quick-action {
    flex: 0 0 calc(50% - .2rem);
    justify-content: center;
    font-size: .72rem;
    padding: .4rem .6rem;
  }
}

@media (min-width: 540px) {
  .wrapper { padding: 1.5rem 1.25rem; }
  .landing-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .how-grid,
  .value-grid,
  .detail-flow-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-compact h1 { font-size: 1.85rem; }
}

@media (min-width: 720px) {
  .wrapper {
    max-width: 920px;
  }

  .hero-compact h1 { font-size: 2.2rem; }
  .hero-compact .hero-sub { font-size: 1rem; max-width: 40ch; }
  .hero-compact .hero-actions { max-width: 400px; }

  .landing-hero-secondary .landing-title { font-size: 1.85rem; }
  .landing-hero-secondary .landing-subtitle { font-size: 1rem; max-width: 38ch; }
}

@media (min-width: 860px) {
  .wrapper {
    max-width: 1120px;
    padding-inline: 1.35rem;
  }

  .hero-compact h1 { font-size: 2.6rem; }
  .hero-compact .hero-sub { font-size: 1.05rem; max-width: 48ch; }
  .hero-compact .hero-actions { max-width: 440px; }

  .landing-hero-secondary .landing-title { font-size: 2.2rem; max-width: 16ch; margin-inline: auto; }
  .landing-hero-secondary .landing-subtitle { font-size: 1.05rem; max-width: 44ch; margin-inline: auto; }

  .landing-vsl-section {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: stretch;
  }
}

@media (min-width: 980px) {
  .bet-builder-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (max-width: 979px) {
  .bet-builder-head {
    flex-direction: column;
    align-items: stretch;
  }

  .bet-builder-close {
    width: 100%;
    justify-content: center;
  }
}

.admin-content {
  min-height: 100dvh;
  margin-left: 280px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: rgba(2, 6, 23, .9);
  border-right: 1px solid var(--borda);
  backdrop-filter: blur(12px);
  z-index: 900;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-top {
  flex: 0 0 auto;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow: auto;
  padding: .45rem 0 1rem;
}

.sidebar-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(160,152,144,.12);
  background: rgba(2, 6, 23, .92);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem 1rem;
  margin: .25rem .75rem;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(226, 232, 240, .92);
  font-weight: 800;
  letter-spacing: -.2px;
  border: 1px solid transparent;
}

.sidebar-link i {
  color: var(--verde-light);
  font-size: 1.05rem;
}

.sidebar-link:hover {
  background: rgba(212,168,67,.10);
  border-color: rgba(212,168,67,.18);
}

.sidebar-link.active {
  background: rgba(212,168,67,.14);
  border-color: rgba(212,168,67,.22);
  color: #e2e8f0;
}

.card-header-verde {
  padding: .85rem 1rem;
  font-weight: 900;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.06));
  border-bottom: 1px solid rgba(212,168,67,.18);
  display: flex;
  align-items: center;
  gap: .6rem;
}

/* Alias for consistency — same as card-header-verde, cleaner name */
.card-header {
  padding: .85rem 1rem;
  font-weight: 900;
  color: #e2e8f0;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(212,168,67,.06));
  border-bottom: 1px solid rgba(212,168,67,.18);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.form-control-bolao {
  width: 100%;
  background: rgba(30,41,59,.75);
  border: 1px solid rgba(160,152,144,.22);
  color: rgba(226,232,240,.92);
  border-radius: 14px;
  padding: .75rem .95rem;
  font-weight: 700;
  outline: none;
}

.form-control-bolao:focus {
  border-color: rgba(212,168,67,.55);
  box-shadow: 0 0 0 4px rgba(212,168,67,.15);
  background: rgba(30,41,59,.9);
}

.form-label-bolao {
  font-size: .82rem;
  color: var(--texto-muted);
  font-weight: 800;
  margin-bottom: .45rem;
  display: block;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-status {
  font-size: .72rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(120,80,255,.25);
  color: var(--texto);
  background: rgba(12,16,50,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-pago {
  background: rgba(0,200,83,.15);
  border-color: rgba(0,200,83,.3);
  color: #69f0ae;
}

.status-pendente {
  background: rgba(255,193,7,.12);
  border-color: rgba(255,193,7,.25);
  color: #ffe082;
}

.alert-bolao {
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  border: 1px solid rgba(160,152,144,.18);
  background: rgba(2,6,23,.5);
  color: rgba(226,232,240,.92);
}

.alert-bolao.alert-success {
  background: rgba(212,168,67,.12);
  color: var(--ouro-light);
  border-color: rgba(212,168,67,.25);
}

.alert-bolao.alert-error {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border-color: rgba(239,68,68,.25);
}

.alert-bolao.alert-info {
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border-color: rgba(59,130,246,.25);
}

.alert-bolao.alert-warning {
  background: rgba(251,191,36,.12);
  color: #fde68a;
  border-color: rgba(251,191,36,.25);
}

.p-1 { padding: .25rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.fs-sm { font-size: .86rem; }
.footer-branding {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
}
.footer-brand-image {
  max-width: 132px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hero-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.hero-brand-image {
  max-width: min(280px, 70vw);
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.35));
}
.branding-upload-panel {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 1rem;
  align-items: center;
}
.branding-upload-preview {
  background: rgba(15,23,42,.82);
  border: 1px solid rgba(160,152,144,.18);
  border-radius: 18px;
  min-height: 116px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.branding-preview-image {
  max-width: 100%;
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.branding-preview-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,168,67,.18), rgba(251,191,36,.12));
  border: 1px solid rgba(212,168,67,.24);
}
.branding-upload-fields {
  display: grid;
  gap: .65rem;
}
.branding-remove-check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--texto-soft);
  font-size: .92rem;
  font-weight: 700;
}
.branding-remove-check input {
  accent-color: var(--verde);
}

@media (max-width: 980px) {
  .admin-content { margin-left: 0; }
  .sidebar {
    transform: translateX(-110%);
    transition: transform .25s ease;
  }
  .sidebar.open { transform: translateX(0); }
}

.pwa-install-modal {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1201;
  width: min(320px, calc(100vw - 24px));
  pointer-events: none;
}

.pwa-install-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 6, 23, 0.98) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  padding: .9rem .9rem .85rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
  position: relative;
  animation: pwaSlideUp .45s cubic-bezier(.2,.8,.2,1) both;
}

.pwa-install-badge {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: .65rem;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(251, 191, 36, 0.16));
  border: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
}

.pwa-install-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(212,168,67,.12), transparent 60%);
  z-index: -1;
}

.pwa-install-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pwa-install-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin-bottom: .75rem;
}

.pwa-install-title {
  font-size: .96rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  padding-right: 2rem;
}

.pwa-install-sub {
  color: var(--texto-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.pwa-install-text {
  color: var(--texto-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: .1rem;
}

.pwa-install-text i {
  font-size: .85rem;
  color: var(--verde-light);
}

.pwa-ios-hint {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  font-size: 0.82rem;
  line-height: 1.5;
  animation: pwaSlideUp .3s .2s cubic-bezier(.2,.8,.2,1) both;
}

.pwa-ios-hint span {
  color: var(--texto);
  font-weight: 800;
}

.pwa-install-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: .75rem;
}

.pwa-install-actions .btn {
  flex: 1 1 auto;
  min-height: 40px;
  font-size: .88rem;
  border-radius: 12px;
}

.pwa-install-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.08);
  color: var(--texto-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.pwa-install-close:hover {
  background: rgba(148, 163, 184, 0.14);
  color: var(--texto);
}

@keyframes pwaSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (display-mode: standalone) {
  .top-bar {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .bottom-nav {
    bottom: max(10px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  .bet-builder-head,
  .bet-builder-card-top {
    align-items: stretch;
  }

  .bet-builder-grid {
    grid-template-columns: 1fr;
  }

  .bet-number-grid {
    grid-template-columns: repeat(5, minmax(0,1fr));
  }

  .bolao-list-row {
    grid-template-columns: 1fr;
  }

  .bolao-list-item-wide {
    grid-column: auto;
  }

  .bolao-card-footer-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .bolao-card-button {
    white-space: normal;
  }

  .admin-shortcuts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .top-actions {
    gap: .5rem;
  }

  .top-btn {
    padding: .58rem .65rem;
  }

  .top-btn-admin {
    padding-inline: .72rem;
  }

  .top-btn-label {
    font-size: .74rem;
  }

  .branding-upload-panel {
    grid-template-columns: 1fr;
  }

  .branding-upload-preview {
    min-height: 100px;
  }

  .pwa-install-modal {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .pwa-install-card {
    border-radius: 18px;
  }

  .pwa-install-actions {
    flex-direction: row;
  }

  .pwa-install-text {
    font-size: .75rem;
  }
}

/* filter-hidden - elimina race conditions com CSS puro */
.filter-hidden { display: none !important; }
