/* ============================================================
   DieselSorteios — Design System
   Diesel Barbearia · Preto & Dourado Premium
   ============================================================ */

/* ── Google Fonts já importado via header.php ── */

/* ── CSS Variables ── */
:root {
  /* Backgrounds — preto puro estilo barbearia */
  --bg-base:       #080808;
  --bg-surface:    #111111;
  --bg-card:       #181818;
  --bg-card-hover: #202020;
  --bg-input:      #1e1e1e;

  /* Dourado da logo Diesel Barbearia */
  --accent:        #F5B800;
  --accent-light:  #FFCA2C;
  --accent-dark:   #D9A200;
  --gold:          #F5B800;
  --gold-light:    #FFCA2C;

  /* Texto */
  --text-primary:  #F5F5F5;
  --text-secondary:#A0A0A0;
  --text-muted:    #555555;

  /* Status */
  --success:       #22c55e;
  --danger:        #ef4444;
  --warning:       #F5B800;
  --info:          #38bdf8;

  /* Bordas */
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(245,184,0,0.4);

  /* Sombras douradas */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.6);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.7);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.8);
  --shadow-glow:   0 0 30px rgba(245,184,0,0.25);

  /* Raios */
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     22px;
  --radius-full:   9999px;

  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: all 0.4s cubic-bezier(0.4,0,0.2,1);

  /* Inter para corpo, Oswald para títulos bold (será aplicado abaixo) */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'Oswald', 'Inter', sans-serif;
  --container:     1200px;
  --header-h:      68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

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

/* ── Selection ── */
::selection { background: rgba(249,115,22,0.3); }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,184,0,0.15);
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(8,8,8,0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.8);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo-icon { font-size: 1.5rem; }
.logo-text  { background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-img   { height: 40px; object-fit: contain; mix-blend-mode: screen; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.07);
}
.btn-nav {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700;
  padding: 8px 18px;
  box-shadow: 0 0 20px rgba(245,184,0,0.35);
  letter-spacing: .02em;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(245,184,0,0.6);
  background: var(--accent-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(245,184,0,0.35);
  letter-spacing: .02em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245,184,0,0.55);
  background: var(--accent-light);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-ghost:hover {
  background: rgba(249,115,22,0.1);
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── Cards ── */
.card {
  background: rgba(19, 19, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: var(--transition-slow);
}
.card:hover {
  border-color: rgba(249,115,22,0.4);
  background: rgba(26, 26, 56, 0.8);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), var(--shadow-glow);
  transform: translateY(-4px);
}
.card-body { padding: 24px; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: 0.82rem; color: var(--danger); }
.form-hint  { font-size: 0.82rem; color: var(--text-muted); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.3);  }
.badge-accent  { background: rgba(249,115,22,0.15); color: var(--accent);  border: 1px solid var(--border-accent); }
.badge-muted   { background: rgba(255,255,255,0.07); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-info    { background: rgba(56,189,248,0.15); color: var(--info);    border: 1px solid rgba(56,189,248,0.3); }

/* ── Progress Bar ── */
.progress-wrap { }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.progress-bar-bg {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  animation: shimmer 1.5s infinite;
}

/* ── Alert ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,0.1);  border-color: rgba(34,197,94,0.25);  color: #4ade80; }
.alert-danger  { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.25);  color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: #fbbf24; }
.alert-info    { background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); color: #38bdf8; }

/* ── Section ── */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { margin-top: 12px; font-size: 1.05rem; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.12);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 20px;
}
.hero-title { margin-bottom: 16px; }
.hero-desc { font-size: 1.1rem; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Sorteio Card (Grid) ── */
.sorteios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.sorteio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.sorteio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.sorteio-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: var(--bg-surface);
}
.sorteio-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.sorteio-card:hover .sorteio-card-img img { transform: scale(1.05); }
.sorteio-card-status {
  position: absolute;
  top: 12px; right: 12px;
}
.sorteio-card-body {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sorteio-card-title { font-size: 1.1rem; font-weight: 700; }
.sorteio-card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-label { font-size: 0.8rem; color: var(--text-muted); }
.price-value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.price-unit  { font-size: 0.8rem; color: var(--text-muted); }
.sorteio-card-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.no-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card-hover));
}

/* ── Sorteio Detail ── */
.sorteio-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sorteio-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.sorteio-info { display: flex; flex-direction: column; gap: 24px; }
.sorteio-status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sorteio-title-row h1 { font-size: clamp(1.5rem,3vw,2.2rem); }
.sorteio-price-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.price-per-cota .label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.price-per-cota .value { font-size: 2rem; font-weight: 900; color: var(--accent); }

/* ── Quantity Selector ── */
.qty-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qty-btn {
  position: relative;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  color: var(--text-primary);
}
.qty-btn:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}
.qty-btn.selected {
  border-color: var(--accent);
  background: rgba(249,115,22,0.12);
  box-shadow: 0 0 0 1px var(--accent);
}
.qty-btn .qty-num { display: block; font-size: 1.2rem; font-weight: 700; }
.qty-btn .qty-price { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.qty-popular {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.qty-custom-wrap { margin-top: 8px; display: flex; gap: 10px; align-items: center; }

/* ── Top Buyers ── */
.top-buyers { display: flex; flex-direction: column; gap: 10px; }
.top-buyer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}
.top-buyer-rank { font-size: 1.4rem; min-width: 30px; text-align: center; }
.top-buyer-name { font-weight: 600; flex: 1; font-size: 0.9rem; }
.top-buyer-qty  { font-size: 0.85rem; display:flex; align-items:baseline; gap:2px; }
.top-buyer-leader {
  border-color: rgba(249,115,22,0.35);
  background: rgba(249,115,22,0.06);
}

/* ── Bonus Slots (Cotas Premiadas) ── */
.bonus-slots { display: flex; flex-direction: column; gap: 8px; }
.bonus-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition);
}
.bonus-slot.taken { border-color: rgba(34,197,94,0.3); }
.bonus-slot-num {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  min-width: 60px;
  text-align: center;
}
.bonus-slot-prize { flex: 1; font-size: 0.9rem; }
.bonus-slot-status { font-size: 0.75rem; }
.dot-available { color: var(--accent); }
.dot-taken     { color: var(--success); }

/* ── Ganhadores ── */
.ganhadores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.ganhador-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-slow);
}
.ganhador-card:hover { border-color: rgba(251,191,36,0.3); transform: translateY(-3px); }
.ganhador-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.ganhador-info {}
.ganhador-name { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.ganhador-sorteio { font-size: 0.85rem; color: var(--text-secondary); }
.ganhador-numero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.numero-tag {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

/* ── Checkout / Pagamento ── */
.checkout-wrap {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.order-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.order-line  {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.order-line:last-child { border-bottom: none; }
.order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border-accent);
  font-size: 1.2rem;
  font-weight: 700;
}
.order-total .value { color: var(--accent); }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover { border-color: var(--border-accent); }
.payment-method.selected { border-color: var(--accent); background: rgba(249,115,22,0.08); }
.payment-method input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.payment-method-icon { font-size: 1.5rem; }
.payment-method-info h4 { font-size: 0.95rem; font-weight: 600; }
.payment-method-info p  { font-size: 0.8rem; color: var(--text-muted); }

/* ── Meus Números ── */
.my-numbers-table { width: 100%; border-collapse: collapse; }
.my-numbers-table th,
.my-numbers-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.my-numbers-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.my-numbers-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Footer ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  padding: 60px 20px 40px;
  align-items: start;
}
.footer-brand { max-width: 300px; }
.footer-tagline { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }
.footer-links  { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.footer-col a  { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  color: #fff;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── Skeleton / Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text   { height: 16px; }
.skeleton-title  { height: 24px; }
.skeleton-img    { height: 200px; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3   { color: var(--text-secondary); margin-bottom: 8px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; background: var(--bg-surface); padding: 4px; border-radius: var(--radius-full); width: fit-content; margin-bottom: 32px; border: 1px solid var(--border); }
.tab-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 90px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s ease;
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.info    { border-color: rgba(56,189,248,0.3); }
.toast.hide    { animation: slideOutRight 0.3s ease forwards; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s ease;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.07); }

/* ── Animations ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(249,115,22,0.3); }
  50%      { box-shadow: 0 0 40px rgba(249,115,22,0.6); }
}


/* ── Grade de Números Estilo Cinema ─────────────────────────────────────── */
.numeros-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.numeros-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.numeros-header h4 { font-size: 1rem; }

.numeros-legenda {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.legenda-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.legenda-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legenda-dot.disponivel  { background: var(--bg-card-hover); border: 1px solid var(--border); }
.legenda-dot.reservado   { background: rgba(245,158,11,0.5); }
.legenda-dot.pago        { background: rgba(239,68,68,0.5); }
.legenda-dot.selecionado { background: var(--accent); }

/* Grade */
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  min-height: 120px;
  position: relative;
}

/* Loading state */
.numeros-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Spinner dots */
.spinner-dots {
  display: flex;
  gap: 6px;
}
.spinner-dots span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: dot-bounce 1.2s infinite ease-in-out both;
}
.spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinner-dots span:nth-child(2) { animation-delay: -0.16s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Número Box */
.numero-box {
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: default;
  transition: all 0.15s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid transparent;
  padding: 4px 2px;
  overflow: hidden;
  position: relative;
  line-height: 1.2;
}

.numero-box-num {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 800;
  display: block;
}

.numero-box-nome {
  font-size: 0.6rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* Estado: Disponível */
.numero-disponivel {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-secondary);
  cursor: pointer;
}
.numero-disponivel:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.4);
  color: var(--accent-light);
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}
.numero-disponivel:active { transform: scale(0.97); }

/* Estado: Selecionado */
.numero-selecionado {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  border-color: var(--accent);
  color: #fff;
  cursor: pointer;
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(249,115,22,0.45);
  z-index: 2;
}
.numero-selecionado:hover { transform: scale(1.1); }
.numero-selecionado::after {
  content: '✓';
  position: absolute;
  top: 1px;
  right: 3px;
  font-size: 0.55rem;
  opacity: 0.85;
}

/* Estado: Reservado */
.numero-reservado {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: var(--warning);
  opacity: 0.7;
  cursor: not-allowed;
}

/* Estado: Pago */
.numero-pago {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
  color: rgba(255,255,255,0.4);
  cursor: not-allowed;
}
.numero-pago .numero-box-nome {
  color: rgba(239,68,68,0.7);
  font-size: 0.58rem;
}

/* Contador de seleção */
.numeros-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.counter-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.counter-total {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Prêmios do sorteio */
.premios-sorteio {
  background: var(--bg-surface);
  border: 1px solid rgba(251,191,36,0.15);
  border-radius: var(--radius-md);
  padding: 16px;
}
.premios-lista { display: flex; flex-direction: column; gap: 8px; }
.premio-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
}
.premio-medalha { font-size: 1.2rem; min-width: 28px; }
.premio-desc { flex: 1; line-height: 1.4; }
.premio-top { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }

/* Promoção badge */
.promocoes-aviso { display: flex; gap: 6px; flex-wrap: wrap; }
.promo-badge {
  font-size: 0.78rem;
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.3);
  color: var(--accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Números escolhidos no resumo do pedido */
.order-numbers-chosen {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.chosen-numbers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sorteio-detail   { grid-template-columns: 1fr; }
  .sorteio-gallery  { position: static; }
  .checkout-wrap    { grid-template-columns: 1fr; }
  .order-summary    { position: static; }
  .footer-inner     { grid-template-columns: 1fr; gap: 40px; }
  .footer-links     { gap: 40px; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .section { padding: 40px 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(7,7,15,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-md); }
  .btn-nav  { text-align: center; }

  .sorteios-grid   { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .ganhadores-grid { grid-template-columns: 1fr; }
  .qty-options     { grid-template-columns: repeat(2, 1fr); }
  .footer-links    { flex-direction: column; gap: 24px; }
  .footer-inner    { padding: 40px 20px 30px; }

  /* Grade: 8 colunas no tablet */
  .numeros-grid { grid-template-columns: repeat(8, 1fr); gap: 5px; }
}
@media (max-width: 480px) {
  .hero { padding: 50px 0 40px; }
  .sorteios-grid { grid-template-columns: 1fr; }
  .qty-options   { grid-template-columns: repeat(3, 1fr); }
  .hero-actions  { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; }

  /* Grade: 5 colunas no mobile pequeno */
  .numeros-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .numero-box-num { font-size: 0.75rem; }
  .numeros-header { flex-direction: column; }
}
/* -- Estilos da Galeria: Setas e Legenda -- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.gallery-nav:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-legenda {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  padding: 24px 12px 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.82rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  transition: opacity 0.3s;
  line-height: 1.3;
}
.gallery-legenda.hidden {
  display: none;
}
