/* ZER0UM BET — Design System
   Extraído de zeroum.bet | Cores, tipografia, componentes base
   ================================================================ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Primária (vermelho) */
  --color-primary-100: 205 0 53;
  --color-primary-200: 185 0 48;
  --color-primary-300: 164 0 42;
  --color-primary-500: 123 0 32;
  --color-primary-contrast: 255 255 255;

  /* Secundária (cinza escuro) */
  --color-secondary-100: 36 35 35;
  --color-secondary-200: 32 32 32;
  --color-secondary-300: 29 28 28;
  --color-secondary-400: 25 25 25;
  --color-secondary-500: 22 21 21;
  --color-secondary-600: 18 18 18;
  --color-secondary-700: 14 14 14;
  --color-secondary-800: 11 11 11;
  --color-secondary-900: 7 7 7;

  /* Surface / BG */
  --bg-main:        #0e0e0e;
  --bg-card:        #1a1a1a;
  --bg-card-hover:  #222222;
  --bg-header:      #111111;
  --bg-footer:      #0a0a0a;
  --bg-input:       #1e1e1e;
  --bg-modal:       #161616;
  --border-color:   rgba(255,255,255,0.08);

  /* Texto */
  --text-primary:   #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted:     #666666;

  /* Accent */
  --color-red:     rgb(205 0 53);
  --color-red-dark:rgb(164 0 42);
  --color-green:   #22c55e;
  --color-yellow:  #eab308;
  --color-gold:    #f59e0b;

  /* Raio / Espaço */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Sombra */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.5);
  --shadow-modal:0 8px 40px rgba(0,0,0,0.8);

  /* Transição */
  --transition: 0.18s ease;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Roboto', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ── Tipografia ──────────────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem;  }
.text-muted { color: var(--text-secondary); }

/* ── Layout ──────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.flex  { display: flex; }
.grid  { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

/* ── Botões ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover { background: var(--color-red-dark); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover { background: var(--bg-card); }

.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 24px; gap: 12px;
}
.header-logo img { height: 36px; }
.header-nav { display: flex; gap: 4px; margin-left: 36px; }
.header-nav a {
  padding: 8px 16px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
}
.header-nav a:hover,
.header-nav a.active { color: var(--text-primary); background: var(--bg-card); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* Usuário logado no header */
.header-balance {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 6px 14px; font-size: 0.88rem; font-weight: 600;
  color: var(--color-green);
}
.header-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.header-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-red); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.85rem;
}

/* ── Ticker de vencedores ────────────────────────────────────────── */
.winners-ticker {
  background: #161616; border-bottom: 1px solid var(--border-color);
  padding: 10px 0; overflow: hidden; white-space: nowrap;
}
.winners-ticker-inner {
  display: inline-flex; gap: 32px;
  animation: ticker-scroll 30s linear infinite;
}
.winner-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.winner-item img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.winner-item .winner-name { color: var(--text-primary); font-weight: 600; }
.winner-item .winner-amount { color: var(--color-green); font-weight: 700; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Banner Carousel ─────────────────────────────────────────────── */
.banner-carousel { position: relative; overflow: hidden; }
.banner-slides { display: flex; transition: transform 0.5s ease; }
.banner-slide {
  min-width: 100%; position: relative;
  aspect-ratio: 21/7;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); transition: var(--transition); cursor: pointer;
}
.banner-dot.active { background: var(--color-red); width: 20px; border-radius: 4px; }
.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.8); }

/* ── Shortcut Pills ──────────────────────────────────────────────── */
.shortcuts {
  display: flex; gap: 8px; padding: 16px 24px;
  overflow-x: auto; scrollbar-width: none;
}
.shortcuts::-webkit-scrollbar { display: none; }
.shortcut-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border-radius: var(--radius-full);
  padding: 8px 16px; font-size: 0.83rem; font-weight: 600;
  white-space: nowrap; transition: var(--transition); cursor: pointer;
  border: 1px solid var(--border-color);
}
.shortcut-pill:hover { background: var(--bg-card-hover); border-color: var(--color-red); }
.shortcut-pill img { width: 20px; height: 20px; object-fit: contain; }

/* ── Seções de conteúdo ──────────────────────────────────────────── */
.section { padding: 28px 24px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 700;
}
.section-title svg { color: var(--color-red); }
.section-link { font-size: 0.82rem; color: var(--color-red); font-weight: 600; }
.section-link:hover { opacity: 0.8; }

/* ── Game Cards ──────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.game-card {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; transition: var(--transition);
  background: var(--bg-card);
}
.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(205,0,53,0.3); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 10px;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.game-card-overlay .btn { width: 100%; font-size: 0.78rem; padding: 8px; }
.game-card-name {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 0.72rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ── Category Tabs ───────────────────────────────────────────────── */
.category-tabs {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding-bottom: 4px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 16px; border-radius: var(--radius-md);
  background: var(--bg-card); cursor: pointer; transition: var(--transition);
  border: 1px solid transparent; white-space: nowrap; min-width: 72px;
  font-size: 0.75rem; color: var(--text-secondary);
}
.cat-tab svg { width: 20px; height: 20px; }
.cat-tab:hover { border-color: var(--border-color); color: var(--text-primary); }
.cat-tab.active {
  background: rgba(205,0,53,0.15); border-color: var(--color-red);
  color: var(--color-red);
}

/* ── Providers ───────────────────────────────────────────────────── */
.providers-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.provider-chip {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: var(--transition); border: 1px solid var(--border-color);
}
.provider-chip:hover { border-color: var(--color-red); }
.provider-chip img { height: 20px; object-fit: contain; filter: brightness(0) invert(1); }

/* ── Top Winners ─────────────────────────────────────────────────── */
.winners-table { display: flex; flex-direction: column; gap: 8px; }
.winner-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border-radius: var(--radius-md); padding: 10px 14px;
}
.winner-rank { font-size: 0.78rem; color: var(--text-muted); width: 20px; }
.winner-avatar {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--bg-card-hover); flex-shrink: 0;
}
.winner-avatar img { width: 100%; height: 100%; object-fit: cover; }
.winner-info { flex: 1; min-width: 0; }
.winner-info .name { font-size: 0.85rem; font-weight: 600; }
.winner-info .game { font-size: 0.75rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner-prize { font-weight: 700; color: var(--color-green); font-size: 0.9rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-footer); border-top: 1px solid var(--border-color);
  padding: 40px 24px 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.footer-logo { height: 32px; margin-bottom: 16px; }
.footer-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; max-width: 300px; }
.footer-col h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col li a:hover { color: var(--color-red); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; border-top: 1px solid var(--border-color);
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--text-secondary);
}
.social-btn:hover { background: var(--color-red); color: #fff; }
.footer-badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.footer-badge { height: 28px; opacity: 0.6; filter: grayscale(1) brightness(1.5); transition: var(--transition); }
.footer-badge:hover { opacity: 1; filter: none; }
.age-badge {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-red); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 0.78rem;
}

/* ── Mobile Bottom Bar ───────────────────────────────────────────── */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--bg-header); border-top: 1px solid var(--border-color);
  padding: 8px 0;
}
.mobile-bar-inner {
  display: flex; justify-content: space-around; align-items: center;
}
.mobile-bar-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 0.68rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-md); transition: var(--transition); cursor: pointer;
}
.mobile-bar-item svg { width: 22px; height: 22px; }
.mobile-bar-item.active { color: var(--color-red); }
.mobile-bar-item:hover { color: var(--text-primary); }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-modal); border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  width: 100%; max-width: 420px; padding: 32px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-logo { height: 36px; margin: 0 auto 24px; display: block; }
.modal-tabs {
  display: flex; background: var(--bg-card); border-radius: var(--radius-md);
  padding: 4px; gap: 4px; margin-bottom: 24px;
}
.modal-tab {
  flex: 1; padding: 10px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; text-align: center; cursor: pointer;
  color: var(--text-secondary); transition: var(--transition);
}
.modal-tab.active { background: var(--color-red); color: #fff; }

/* ── Form ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; }
.form-input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 12px 14px;
  color: var(--text-primary); font-size: 0.9rem; transition: var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--color-red); }
.form-input::placeholder { color: var(--text-muted); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-submit { width: 100%; padding: 14px; font-size: 0.95rem; margin-top: 8px; }
.form-divider {
  text-align: center; font-size: 0.78rem; color: var(--text-muted);
  margin: 16px 0; position: relative;
}
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 20px); height: 1px; background: var(--border-color);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ── Input de valor com R$ ───────────────────────────────────────── */
.input-money { position: relative; }
.input-money::before {
  content: 'R$'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}
.input-money .form-input { padding-left: 38px; }

/* ── Alert / Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 72px; right: 16px; z-index: 3000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 12px 18px; border-left: 3px solid var(--color-green);
  font-size: 0.85rem; box-shadow: var(--shadow-card);
  animation: slideIn 0.2s ease;
}
.toast.error { border-color: var(--color-red); }
@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .games-grid  { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 768px) {
  .header-nav  { display: none; }
  .mobile-bar  { display: block; }
  body         { padding-bottom: 70px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section     { padding: 20px 12px; }
  .shortcuts   { padding: 12px; }
  .banner-slide { aspect-ratio: 16/9; }
  .games-grid  { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
}
