/* public/css/app.css — Mega Trevo Online — Premium Mobile-First Design */

:root {
  --verde: #10b981;
  --verde-dark: #059669;
  --verde-light: #34d399;
  --verde-ultra: #065f46;
  --amarelo: #fbbf24;
  --amarelo-dark: #f59e0b;
  --azul: #3b82f6;
  --azul-light: #60a5fa;
  --laranja: #f97316;
  --vermelho: #ef4444;
  --bg: #020617;
  --bg-grad-1: linear-gradient(180deg, #020617 0%, #0f172a 35%, #020617 100%);
  --bg-card: #111827;
  --bg-card-soft: #0f172a;
  --bg-card2: #1e293b;
  --texto: #f8fafc;
  --texto-muted: #94a3b8;
  --texto-soft: #cbd5e1;
  --borda: rgba(148,163,184,.18);
  --borda-strong: rgba(148,163,184,.28);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-soft: 0 4px 24px -8px rgba(0,0,0,.5);
  --shadow-strong: 0 12px 40px -14px rgba(0,0,0,.7);
  --shadow-glow: 0 0 32px rgba(16,185,129,.22);
  --nav-h: 80px;
}

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

html, body {
  height: 100%;
}

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.6;
  overflow-x: hidden;
}

/* ── TOP BAR (header) ───────────────────────────────────────────── */
.top-bar {
  background: rgba(2,6,23,.85);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(148,163,184,.12);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-mini {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: white;
}
.logo-mini-admin {
  color: var(--verde);
  font-weight: 800;
  font-size: 1.02rem;
  gap: .65rem;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(251,191,36,.12));
  border: 1px solid rgba(16,185,129,.24);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  overflow: hidden;
  flex: 0 0 44px;
}
.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 10px rgba(16,185,129,.4));
}
.logo-text {
  font-weight: 800;
  letter-spacing: -.5px;
}
.logo-text strong { color: var(--verde); }

.top-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.top-btn {
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  padding: .6rem .7rem;
  color: var(--texto-soft);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all .22s ease;
  text-decoration: none;
}
.top-btn:hover {
  background: rgba(148,163,184,.18);
  color: var(--verde-light);
}
.top-btn-admin {
  gap: .4rem;
  padding-inline: .8rem;
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.24);
  color: #d1fae5;
  box-shadow: 0 10px 24px rgba(16,185,129,.14);
}
.top-btn-admin:hover {
  background: rgba(16,185,129,.22);
  color: #ecfdf5;
}
.top-btn-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
}
.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 10px rgba(249,115,22,.6);
  animation: pulse 1.6s infinite;
}

/* ── BOTTOM NAVIGATION ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: calc(100% - 28px);
  max-width: 500px;
  z-index: 999;
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.18);
  padding: .75rem .6rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  gap: .2rem;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  color: var(--texto-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: -.2px;
  padding: .45rem .2rem;
  border-radius: 14px;
  transition: all .2s ease;
}
.nav-item i {
  font-size: 1.3rem;
}
.nav-item:hover {
  color: var(--texto-soft);
}
.nav-item.active {
  color: var(--verde-light);
  background: rgba(16,185,129,.12);
}
.nav-center-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -26px;
}
.nav-center-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #020617;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(16,185,129,.45), 0 0 0 2px rgba(16,185,129,.35);
  transition: all .2s ease;
}
.nav-center-btn:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
  box-shadow: 0 16px 38px rgba(16,185,129,.52);
}
.nav-center-btn:active {
  transform: translateY(0) scale(.97);
}

/* ── MAIN WRAPPER ───────────────────────────────────────────────── */
#app-main {
  padding-bottom: 1.5rem;
}
#app-main.has-bottom-nav {
  padding-bottom: 7.5rem; /* espaço para bottom nav */
}

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

/* ── HERO / GREETING ───────────────────────────────────────────── */
.greeting {
  margin-bottom: 1.7rem;
}
.greeting-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: .3rem;
}
.greeting-hello {
  font-size: .95rem;
  color: var(--texto-muted);
  font-weight: 500;
}
.greeting-date {
  font-size: .8rem;
  color: var(--texto-muted);
}
.greeting-name {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.6px;
  line-height: 1.1;
}

/* ── BALANCE CARD ──────────────────────────────────────────────── */
.balance-card {
  background: radial-gradient(120% 200% at 0% 0%, rgba(16,185,129,.22) 0%, rgba(2,6,23,.95) 45%, rgba(2,6,23,1) 100%);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 20px 45px -18px rgba(0,0,0,.7), 0 0 0 1px rgba(16,185,129,.18);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.balance-card::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(16,185,129,.22) 0%, transparent 60%);
  pointer-events: none;
}
.balance-label {
  font-size: .82rem;
  color: rgba(203,213,225,.85);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.balance-value {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: .2rem;
}
.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
  margin-top: 1.2rem;
}
.balance-stat {
  background: rgba(15,23,42,.7);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 14px;
  padding: .75rem .8rem;
}
.balance-stat-label {
  font-size: .72rem;
  color: var(--texto-muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.balance-stat-value {
  font-weight: 800;
  font-size: 1.02rem;
  margin-top: .25rem;
  color: var(--verde-light);
}

/* ── SECTIONS ──────────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.6rem 0 .9rem;
}
.section-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.3px;
}
.section-link {
  font-size: .86rem;
  color: var(--verde-light);
  text-decoration: none;
  font-weight: 700;
}

/* ── BOLÃO CARD ────────────────────────────────────────────────── */
.bolao-card {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-soft);
  transition: all .23s ease;
  text-decoration: none;
  color: rgba(226,232,240,.92);
  display: block;
}
.bolao-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16,185,129,.3);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(16,185,129,.2);
}
.bolao-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .85rem;
}
.bolao-name {
  font-weight: 800;
  font-size: 1.03rem;
  letter-spacing: -.3px;
  color: rgba(226,232,240,.96);
}
.badge {
  font-size: .7rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  gap: .3rem;
  align-items: center;
}
.badge-hot {
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(239,68,68,.12));
  color: #fdba74;
  border: 1px solid rgba(249,115,22,.35);
}
.badge-pago {
  background: rgba(16,185,129,.16);
  color: #86efac;
  border: 1px solid rgba(16,185,129,.32);
}
.badge-pendente {
  background: rgba(251,191,36,.14);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,.26);
}
.badge-cancelado {
  background: rgba(239,68,68,.14);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.26);
}
.badge-final {
  background: rgba(16,185,129,.15);
  color: var(--verde-light);
  border: 1px solid rgba(16,185,129,.35);
}
.badge-soon {
  background: rgba(59,130,246,.14);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.32);
}
.bolao-meta {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .9rem;
}
.meta-item {
  flex: 1;
}
.meta-label {
  font-size: .75rem;
  color: var(--texto-muted);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.meta-value {
  font-weight: 800;
  margin-top: .2rem;
  color: rgba(226,232,240,.92);
}
.bolao-progress {
  margin-top: .75rem;
}
.bolao-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem;
  font-size: .78rem;
}
.bolao-progress-top strong {
  font-weight: 800;
  color: var(--verde-light);
}
.progress-wrap {
  height: 8px;
  background: rgba(30,41,59,.9);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399, #60a5fa);
  transition: width .7s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 16px rgba(16,185,129,.45);
}

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

/* ── CTA CARD ───────────────────────────────────────────────────── */
.cta-card {
  background: radial-gradient(130% 200% at 100% 0%, rgba(59,130,246,.2) 0%, rgba(16,185,129,.16) 35%, rgba(2,6,23,.98) 100%);
  border: 1px solid rgba(148,163,184,.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(226,232,240,.94);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.cta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,.32);
  box-shadow: var(--shadow-strong), 0 0 0 1px rgba(16,185,129,.16);
}
.cta-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: linear-gradient(135deg, rgba(16,185,129,.2), rgba(59,130,246,.18));
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.cta-title {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: var(--texto);
}
.cta-sub {
  margin-top: .18rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--texto-muted);
}
.cta-card .bi-chevron-right {
  color: var(--verde-light);
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.cta-content-title {
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: .25rem;
}
.cta-content-text {
  font-size: .86rem;
  color: var(--texto-muted);
}

/* ── BUTTONS ───────────────────────────────────────────────────── */
.btn {
  border: none;
  border-radius: 14px;
  padding: .8rem 1.1rem;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  text-decoration: none;
  transition: all .18s ease;
  letter-spacing: -.2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--verde), var(--verde-dark));
  color: #020617;
  box-shadow: 0 10px 28px -8px rgba(16,185,129,.65);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(16,185,129,.7);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-ghost {
  background: rgba(148,163,184,.12);
  color: var(--texto-soft);
  border: 1px solid rgba(148,163,184,.18);
}
.btn-ghost:hover {
  background: rgba(148,163,184,.18);
  color: var(--verde-light);
  border-color: rgba(16,185,129,.25);
}
.btn-secondary {
  background: var(--bg-card2);
  color: var(--texto-soft);
  border: 1px solid rgba(148,163,184,.22);
}
.btn-secondary:hover {
  background: rgba(30,41,59,.9);
  border-color: rgba(16,185,129,.28);
  color: var(--verde-light);
}
.btn-sm {
  padding: .55rem .8rem;
  font-size: .86rem;
  border-radius: 12px;
}
.btn-lg {
  padding: 1rem 1.2rem;
  font-size: 1.02rem;
  border-radius: 16px;
}
.btn-full {
  width: 100%;
}

/* ── SHARE CARD ─────────────────────────────────────────────────── */
.share-card {
  background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(59,130,246,.12));
  border: 1px solid rgba(148,163,184,.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
}
.share-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .7rem;
}
.share-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(2,6,23,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amarelo);
  font-size: 1.3rem;
  border: 1px solid rgba(148,163,184,.18);
}
.share-title {
  font-weight: 800;
  font-size: 1.02rem;
}
.share-text {
  font-size: .86rem;
  color: var(--texto-muted);
  margin-bottom: .95rem;
}
.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}
.btn-share-wa {
  background: linear-gradient(135deg, #12b76a, #059669);
  color: #022c22;
  font-weight: 900;
}
.btn-share-wa i {
  font-size: 1.05rem;
}

/* ── FORM ELEMENTS ─────────────────────────────────────────────── */
.form-control {
  background: var(--bg-card2);
  border: 2px solid rgba(148,163,184,.24);
  color: var(--texto);
  border-radius: 14px;
  padding: .9rem 1rem;
  font-size: .98rem;
  width: 100%;
  transition: all .2s ease;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(16,185,129,.15);
  background: rgba(30,41,59,.95);
}
.form-label {
  font-size: .82rem;
  color: var(--texto-muted);
  font-weight: 700;
  margin-bottom: .45rem;
  display: block;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── ALERTS ─────────────────────────────────────────────────────── */
.alert {
  border-radius: 14px;
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert-success {
  background: rgba(16,185,129,.12);
  color: #86efac;
  border: 1px solid rgba(16,185,129,.25);
}
.alert-error {
  background: rgba(239,68,68,.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,.25);
}
.alert-info {
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.25);
}
.alert-warning {
  background: rgba(251,191,36,.12);
  color: #fde68a;
  border: 1px solid rgba(251,191,36,.25);
}

/* ── UTILS ─────────────────────────────────────────────────────── */
.text-muted { color: var(--texto-muted); }
.text-xs { font-size: .78rem; }
.text-sm { font-size: .86rem; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.w-100 { width: 100%; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* ── LOGIN / CADASTRO ───────────────────────────────────────────── */
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-strong);
}
.auth-logo {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: .2rem;
}
.auth-logo-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72px;
}
.auth-logo-image {
  max-width: 180px;
  max-height: 72px;
  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: 180px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.auth-brand-fallback {
  font-size: 2.2rem;
  line-height: 1;
}
.auth-title {
  text-align: center;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.5px;
}
.auth-sub {
  text-align: center;
  color: var(--texto-muted);
  font-size: .9rem;
  margin-top: .25rem;
  margin-bottom: 1.4rem;
}
.auth-footer {
  margin-top: 1.1rem;
  text-align: center;
  font-size: .88rem;
  color: var(--texto-muted);
}
.auth-footer a {
  color: var(--verde-light);
  font-weight: 800;
  text-decoration: none;
}
.public-entry-intro {
  padding: .45rem 0 .85rem;
}
.public-entry-subtitle {
  color: var(--texto-muted);
  margin: 0 auto;
  font-size: .98rem;
  max-width: 320px;
}
.public-entry-card {
  max-width: 390px;
  margin: 0 auto;
  padding: 1.35rem 1.1rem 1.2rem;
}
.public-entry-card .auth-logo-brand {
  min-height: 58px;
}
.public-entry-card .auth-logo-image {
  max-width: 130px;
  max-height: 54px;
}
.public-entry-card .auth-title {
  font-size: 1.25rem;
}
.public-entry-card .auth-sub {
  margin-bottom: 1.1rem;
}

/* ── FINANCE CARDS ─────────────────────────────────────────────── */
.fin-card {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 1rem;
}
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
  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(16,185,129,.18);
}

.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(16,185,129,.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(148,163,184,.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(16,185,129,.12);
  border-color: rgba(16,185,129,.28);
  transform: translateY(-1px);
}

/* ── 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(16,185,129,.45);
  color: var(--verde-light);
  background: rgba(16,185,129,.1);
  border-radius: 14px;
  padding: .75rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

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

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (min-width: 540px) {
  .wrapper { padding: 1.5rem 1.25rem; }
}

.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(148,163,184,.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(16,185,129,.10);
  border-color: rgba(16,185,129,.18);
}

.sidebar-link.active {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.22);
  color: #e2e8f0;
}

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

.form-control-bolao {
  width: 100%;
  background: rgba(30,41,59,.75);
  border: 1px solid rgba(148,163,184,.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(16,185,129,.55);
  box-shadow: 0 0 0 4px rgba(16,185,129,.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(148,163,184,.22);
  color: rgba(226,232,240,.92);
}

.status-pago {
  background: rgba(16,185,129,.14);
  border-color: rgba(16,185,129,.25);
  color: #86efac;
}

.status-pendente {
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.22);
  color: #fde68a;
}

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

.alert-bolao.alert-success {
  background: rgba(16,185,129,.12);
  color: #86efac;
  border-color: rgba(16,185,129,.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(148,163,184,.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(16,185,129,.18), rgba(251,191,36,.12));
  border: 1px solid rgba(16,185,129,.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;
}

.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);
}
.pwa-install-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.pwa-install-text {
  color: var(--texto-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.pwa-ios-hint {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  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;
}

.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);
}

@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) {
  .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;
  }
}
