/* ==========================================================================
   Loterias Caixa Resultados - Custom Stylesheet
   ========================================================================== */

:root {
  --lot-megasena: #209869;
  --lot-lotofacil: #930053;
  --lot-quina: #260085;
  --lot-lotomania: #f26c00;
  --lot-timemania: #00a859;
  --lot-duplasena: #a61a30;
  --lot-federal: #07459f;
  --lot-diadesorte: #cb9c35;
  --lot-supersete: #a0c91d;
  --lot-maismilionaria: #133a8c;
  --lot-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --lot-cyan: #00f0ff;
}

/* ==========================================================================
   THEME SCHEMES
   ========================================================================== */

/* Dark Theme Variables */
.loterias-theme-dark {
  --lot-bg-dark: #0e1326;
  --lot-border-light: rgba(255, 255, 255, 0.08);
  --lot-text-primary: #ffffff;
  --lot-text-secondary: #b2b9d0;
  --lot-text-muted: #64748b;
  --lot-card-bg: rgba(255, 255, 255, 0.02);
  --lot-card-shadow: none;
  --lot-card-hover-border: rgba(255, 255, 255, 0.15);
  --lot-card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --lot-ball-bg: rgba(255, 255, 255, 0.08);
  --lot-card-meta-border: rgba(255, 255, 255, 0.04);
  --lot-extra-bg: rgba(255, 255, 255, 0.02);
  --lot-extra-border: rgba(255, 255, 255, 0.04);
  --lot-payout-bg: rgba(245, 158, 11, 0.05);
  --lot-payout-border: rgba(245, 158, 11, 0.15);
  --lot-payout-text: #ffffff;
  --lot-payout-winner-bg: rgba(32, 152, 105, 0.05);
  --lot-payout-winner-border: rgba(32, 152, 105, 0.15);
  --lot-table-header-bg: rgba(255, 255, 255, 0.04);
  --lot-table-row-hover: rgba(255, 255, 255, 0.02);
  --lot-table-border: rgba(255, 255, 255, 0.04);
  --lot-select-bg: rgba(255, 255, 255, 0.04);
  --lot-select-border: rgba(255, 255, 255, 0.1);
  --lot-select-text: #ffffff;
  --lot-select-option-bg: #0e1326;
  --lot-gen-output-bg: rgba(0, 0, 0, 0.15);
  --lot-gen-output-border: rgba(255, 255, 255, 0.1);
  --lot-generator-card-bg: rgba(255, 255, 255, 0.01);
  --lot-accent: #00f0ff;
  --lot-btn-hover-bg: rgba(0, 240, 255, 0.05);
}

/* Light Theme Variables */
.loterias-theme-light {
  --lot-bg-dark: #ffffff;
  --lot-border-light: rgba(0, 0, 0, 0.08);
  --lot-text-primary: #1f2937;
  --lot-text-secondary: #4b5563;
  --lot-text-muted: #9ca3af;
  --lot-card-bg: #ffffff;
  --lot-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --lot-card-hover-border: rgba(0, 0, 0, 0.15);
  --lot-card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --lot-ball-bg: rgba(0, 0, 0, 0.05);
  --lot-card-meta-border: rgba(0, 0, 0, 0.06);
  --lot-extra-bg: rgba(0, 0, 0, 0.02);
  --lot-extra-border: rgba(0, 0, 0, 0.05);
  --lot-payout-bg: rgba(245, 158, 11, 0.08);
  --lot-payout-border: rgba(245, 158, 11, 0.25);
  --lot-payout-text: #b45309;
  --lot-payout-winner-bg: rgba(32, 152, 105, 0.08);
  --lot-payout-winner-border: rgba(32, 152, 105, 0.25);
  --lot-table-header-bg: #f3f4f6;
  --lot-table-row-hover: #f9fafb;
  --lot-table-border: rgba(0, 0, 0, 0.06);
  --lot-select-bg: #ffffff;
  --lot-select-border: rgba(0, 0, 0, 0.15);
  --lot-select-text: #1f2937;
  --lot-select-option-bg: #ffffff;
  --lot-gen-output-bg: #f3f4f6;
  --lot-gen-output-border: rgba(0, 0, 0, 0.1);
  --lot-generator-card-bg: #ffffff;
  --lot-accent: #2563eb;
  --lot-btn-hover-bg: rgba(37, 99, 235, 0.05);
}

/* Default Fallbacks for Auto Theme (Dark Mode) */
.loterias-theme-auto {
  --lot-bg-dark: #0e1326;
  --lot-border-light: rgba(255, 255, 255, 0.08);
  --lot-text-primary: #ffffff;
  --lot-text-secondary: #b2b9d0;
  --lot-text-muted: #64748b;
  --lot-card-bg: rgba(255, 255, 255, 0.02);
  --lot-card-shadow: none;
  --lot-card-hover-border: rgba(255, 255, 255, 0.15);
  --lot-card-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  --lot-ball-bg: rgba(255, 255, 255, 0.08);
  --lot-card-meta-border: rgba(255, 255, 255, 0.04);
  --lot-extra-bg: rgba(255, 255, 255, 0.02);
  --lot-extra-border: rgba(255, 255, 255, 0.04);
  --lot-payout-bg: rgba(245, 158, 11, 0.05);
  --lot-payout-border: rgba(245, 158, 11, 0.15);
  --lot-payout-text: #ffffff;
  --lot-payout-winner-bg: rgba(32, 152, 105, 0.05);
  --lot-payout-winner-border: rgba(32, 152, 105, 0.15);
  --lot-table-header-bg: rgba(255, 255, 255, 0.04);
  --lot-table-row-hover: rgba(255, 255, 255, 0.02);
  --lot-table-border: rgba(255, 255, 255, 0.04);
  --lot-select-bg: rgba(255, 255, 255, 0.04);
  --lot-select-border: rgba(255, 255, 255, 0.1);
  --lot-select-text: #ffffff;
  --lot-select-option-bg: #0e1326;
  --lot-gen-output-bg: rgba(0, 0, 0, 0.15);
  --lot-gen-output-border: rgba(255, 255, 255, 0.1);
  --lot-generator-card-bg: rgba(255, 255, 255, 0.01);
  --lot-accent: #00f0ff;
  --lot-btn-hover-bg: rgba(0, 240, 255, 0.05);
}

/* System Overrides for Light Mode (Auto option) */
@media (prefers-color-scheme: light) {
  .loterias-theme-auto {
    --lot-bg-dark: #ffffff;
    --lot-border-light: rgba(0, 0, 0, 0.08);
    --lot-text-primary: #1f2937;
    --lot-text-secondary: #4b5563;
    --lot-text-muted: #9ca3af;
    --lot-card-bg: #ffffff;
    --lot-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --lot-card-hover-border: rgba(0, 0, 0, 0.15);
    --lot-card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --lot-ball-bg: rgba(0, 0, 0, 0.05);
    --lot-card-meta-border: rgba(0, 0, 0, 0.06);
    --lot-extra-bg: rgba(0, 0, 0, 0.02);
    --lot-extra-border: rgba(0, 0, 0, 0.05);
    --lot-payout-bg: rgba(245, 158, 11, 0.08);
    --lot-payout-border: rgba(245, 158, 11, 0.25);
    --lot-payout-text: #b45309;
    --lot-payout-winner-bg: rgba(32, 152, 105, 0.08);
    --lot-payout-winner-border: rgba(32, 152, 105, 0.25);
    --lot-table-header-bg: #f3f4f6;
    --lot-table-row-hover: #f9fafb;
    --lot-table-border: rgba(0, 0, 0, 0.06);
    --lot-select-bg: #ffffff;
    --lot-select-border: rgba(0, 0, 0, 0.15);
    --lot-select-text: #1f2937;
    --lot-select-option-bg: #ffffff;
    --lot-gen-output-bg: #f3f4f6;
    --lot-gen-output-border: rgba(0, 0, 0, 0.1);
    --lot-generator-card-bg: #ffffff;
    --lot-accent: #2563eb;
    --lot-btn-hover-bg: rgba(37, 99, 235, 0.05);
  }
}

/* Helper to hide elements */
.loterias-hidden {
  display: none !important;
}

/* ==========================================================================
   COMPONENTS RULES
   ========================================================================== */

/* 1. Header Ticker */
.loterias-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--lot-bg-dark);
  border-bottom: 1px solid var(--lot-border-light);
  padding: 10px 0;
  box-sizing: border-box;
}

.loterias-ticker {
  display: flex;
  white-space: nowrap;
  animation: loterias-ticker-anim 35s linear infinite;
  padding-left: 100%;
}

.loterias-ticker:hover {
  animation-play-state: paused;
}

@keyframes loterias-ticker-anim {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 40px;
  font-family: inherit;
  font-size: 13px;
  color: var(--lot-text-secondary);
}

.ticker-name {
  font-weight: 800;
  color: var(--lot-text-primary);
  margin-right: 5px;
}

.ticker-conc {
  color: var(--lot-text-muted);
  font-size: 11px;
  margin-right: 8px;
}

.ticker-numbers {
  display: inline-flex;
  gap: 4px;
}

.ticker-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--lot-ball-bg);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--lot-text-primary);
}

/* Color codes for ticker items based on lottery */
.ticker-item.loteria-megasena .ticker-name { color: var(--lot-megasena); }
.ticker-item.loteria-lotofacil .ticker-name { color: var(--lot-lotofacil); }
.ticker-item.loteria-quina .ticker-name { color: var(--lot-quina); }
.ticker-item.loteria-lotomania .ticker-name { color: var(--lot-lotomania); }
.ticker-item.loteria-timemania .ticker-name { color: var(--lot-timemania); }
.ticker-item.loteria-duplasena .ticker-name { color: var(--lot-duplasena); }
.ticker-item.loteria-federal .ticker-name { color: var(--lot-federal); }
.ticker-item.loteria-diadesorte .ticker-name { color: var(--lot-diadesorte); }
.ticker-item.loteria-supersete .ticker-name { color: var(--lot-supersete); }
.ticker-item.loteria-maismilionaria .ticker-name { color: var(--lot-maismilionaria); }

/* 2. Lottery Cards (Grid Hub & Widgets) */
.loterias-hub-layout {
  margin: 30px auto;
  box-sizing: border-box;
}

.loterias-hub-header {
  margin-bottom: 30px;
  text-align: center;
}

.hub-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--lot-text-primary);
}

.hub-subtitle {
  color: var(--lot-text-secondary);
  font-size: 15px;
}

.loterias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.loteria-card {
  background: var(--lot-card-bg);
  border: 1px solid var(--lot-border-light);
  box-shadow: var(--lot-card-shadow);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loteria-card:hover {
  transform: translateY(-3px);
  border-color: var(--lot-card-hover-border);
  box-shadow: var(--lot-card-hover-shadow);
}

.loteria-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  position: relative;
}

.loteria-color-indicator {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  margin-right: 10px;
}

/* Indicators background */
.indicator-megasena { background: var(--lot-megasena); }
.indicator-lotofacil { background: var(--lot-lotofacil); }
.indicator-quina { background: var(--lot-quina); }
.indicator-lotomania { background: var(--lot-lotomania); }
.indicator-timemania { background: var(--lot-timemania); }
.indicator-duplasena { background: var(--lot-duplasena); }
.indicator-federal { background: var(--lot-federal); }
.indicator-diadesorte { background: var(--lot-diadesorte); }
.indicator-supersete { background: var(--lot-supersete); }
.indicator-maismilionaria { background: var(--lot-maismilionaria); }

.loteria-name {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: var(--lot-text-primary);
  flex-grow: 1;
}

.loteria-concurso {
  font-size: 12px;
  color: var(--lot-text-muted);
}

.loteria-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lot-text-secondary);
  border-bottom: 1px solid var(--lot-card-meta-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.loteria-card-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.loteria-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ball colors */
.ball-megasena { background: var(--lot-megasena); box-shadow: 0 0 10px rgba(32, 152, 105, 0.3); }
.ball-lotofacil { background: var(--lot-lotofacil); box-shadow: 0 0 10px rgba(147, 0, 83, 0.3); }
.ball-quina { background: var(--lot-quina); box-shadow: 0 0 10px rgba(38, 0, 133, 0.3); }
.ball-lotomania { background: var(--lot-lotomania); box-shadow: 0 0 10px rgba(242, 108, 0, 0.3); }
.ball-timemania { background: var(--lot-timemania); box-shadow: 0 0 10px rgba(0, 168, 89, 0.3); }
.ball-duplasena { background: var(--lot-duplasena); box-shadow: 0 0 10px rgba(166, 26, 48, 0.3); }
.ball-federal { background: var(--lot-federal); box-shadow: 0 0 10px rgba(7, 69, 159, 0.3); }
.ball-diadesorte { background: var(--lot-diadesorte); box-shadow: 0 0 10px rgba(203, 156, 53, 0.3); }
.ball-supersete { background: var(--lot-supersete); box-shadow: 0 0 10px rgba(160, 201, 29, 0.3); }
.ball-maismilionaria { background: var(--lot-maismilionaria); box-shadow: 0 0 10px rgba(19, 58, 140, 0.3); }

.loteria-ball.ball-large {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

/* Extra balls (trevos/timemania/dia de sorte) */
.loteria-card-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--lot-extra-bg);
  border: 1px solid var(--lot-extra-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 15px;
}

.extra-lbl {
  font-size: 11px;
  color: var(--lot-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.extra-balls {
  display: flex;
  gap: 6px;
}

.loteria-trevo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--lot-gradient-gold);
  color: #070913;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.loteria-trevo.trevo-large {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.loteria-card-text {
  font-size: 13px;
  color: var(--lot-text-secondary);
  margin-bottom: 12px;
}

/* Payout & Jackpot estimation */
.loteria-card-payout {
  margin: 10px 0 20px 0;
  flex-grow: 1;
}

.payout-accumulated {
  background: var(--lot-payout-bg);
  border: 1px solid var(--lot-payout-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.payout-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.payout-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--lot-payout-text);
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.payout-winner {
  background: var(--lot-payout-winner-bg);
  border: 1px solid var(--lot-payout-winner-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.payout-winner-text {
  font-size: 13px;
  font-weight: 800;
  color: #209869;
}

.loteria-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--lot-card-meta-border);
  padding-top: 15px;
  font-size: 12px;
  color: var(--lot-text-secondary);
}

.loteria-btn-detail {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--lot-text-primary);
  border: 1px solid var(--lot-border-light);
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.loteria-btn-detail:hover {
  background: var(--lot-ball-bg);
}

/* Button colors matching brand */
.loteria-btn-detail.btn-megasena:hover { border-color: var(--lot-megasena); color: var(--lot-megasena); box-shadow: 0 0 10px rgba(32, 152, 105, 0.2); }
.loteria-btn-detail.btn-lotofacil:hover { border-color: var(--lot-lotofacil); color: var(--lot-lotofacil); box-shadow: 0 0 10px rgba(147, 0, 83, 0.2); }
.loteria-btn-detail.btn-quina:hover { border-color: var(--lot-quina); color: var(--lot-quina); box-shadow: 0 0 10px rgba(38, 0, 133, 0.2); }
.loteria-btn-detail.btn-lotomania:hover { border-color: var(--lot-lotomania); color: var(--lot-lotomania); box-shadow: 0 0 10px rgba(242, 108, 0, 0.2); }
.loteria-btn-detail.btn-timemania:hover { border-color: var(--lot-timemania); color: var(--lot-timemania); box-shadow: 0 0 10px rgba(0, 168, 89, 0.2); }
.loteria-btn-detail.btn-duplasena:hover { border-color: var(--lot-duplasena); color: var(--lot-duplasena); box-shadow: 0 0 10px rgba(166, 26, 48, 0.2); }
.loteria-btn-detail.btn-federal:hover { border-color: var(--lot-federal); color: var(--lot-federal); box-shadow: 0 0 10px rgba(7, 69, 159, 0.2); }
.loteria-btn-detail.btn-diadesorte:hover { border-color: var(--lot-diadesorte); color: var(--lot-diadesorte); box-shadow: 0 0 10px rgba(203, 156, 53, 0.2); }
.loteria-btn-detail.btn-supersete:hover { border-color: var(--lot-supersete); color: var(--lot-supersete); box-shadow: 0 0 10px rgba(160, 201, 29, 0.2); }
.loteria-btn-detail.btn-maismilionaria:hover { border-color: var(--lot-maismilionaria); color: var(--lot-maismilionaria); box-shadow: 0 0 10px rgba(19, 58, 140, 0.2); }

/* 3. Detailed View layout */
.loteria-details-wrap {
  margin: 30px auto;
}

.details-back-nav {
  margin-bottom: 20px;
}

.btn-back-hub {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--lot-text-secondary);
}

.btn-back-hub:hover {
  color: var(--lot-accent);
}

.details-hero {
  margin-bottom: 40px;
}

.details-payout-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 25px 0;
}

@media (min-width: 768px) {
  .details-payout-box {
    grid-template-columns: 5.5fr 6.5fr;
  }
}

.details-jackpot {
  background: var(--lot-card-bg);
  border: 1px solid var(--lot-border-light);
  box-shadow: var(--lot-card-shadow);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.accumulated-badge {
  background: #f59e0b;
  color: #000000;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.winner-badge {
  background: #209869;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.details-payout-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--lot-payout-text);
  margin-bottom: 6px;
}

.details-rateio h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--lot-text-primary);
}

.rateio-table {
  width: 100%;
  border-collapse: collapse;
}

.rateio-table th, .rateio-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--lot-table-border);
  font-size: 13px;
}

.rateio-table th {
  color: var(--lot-text-muted);
  font-weight: 700;
}

.rateio-table td {
  color: var(--lot-text-secondary);
}

.details-history-section, .details-generator-section {
  margin-top: 40px;
  border-top: 1px solid var(--lot-border-light);
  padding-top: 30px;
}

.details-history-section h3, .details-generator-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--lot-text-primary);
}

/* 4. History Table style */
.loterias-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--lot-border-light);
  border-radius: 8px;
  background: var(--lot-card-bg);
  box-shadow: var(--lot-card-shadow);
}

.loterias-history-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.loterias-history-table th, .loterias-history-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--lot-table-border);
  font-size: 13px;
}

.loterias-history-table th {
  color: var(--lot-text-muted);
  background: var(--lot-table-header-bg);
  font-weight: 700;
}

.loterias-history-table td {
  color: var(--lot-text-secondary);
}

.loterias-history-table tr:hover {
  background: var(--lot-table-row-hover);
}

.table-balls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

/* Mini ball brand colors */
.table-ball.ball-mini-megasena { background: var(--lot-megasena); }
.table-ball.ball-mini-lotofacil { background: var(--lot-lotofacil); }
.table-ball.ball-mini-quina { background: var(--lot-quina); }
.table-ball.ball-mini-lotomania { background: var(--lot-lotomania); }
.table-ball.ball-mini-timemania { background: var(--lot-timemania); }
.table-ball.ball-mini-duplasena { background: var(--lot-duplasena); }
.table-ball.ball-mini-federal { background: var(--lot-federal); }
.table-ball.ball-mini-diadesorte { background: var(--lot-diadesorte); }
.table-ball.ball-mini-supersete { background: var(--lot-supersete); }
.table-ball.ball-mini-maismilionaria { background: var(--lot-maismilionaria); }

.table-divider {
  color: var(--lot-border-light);
  margin: 0 5px;
}

.table-trevo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--lot-gradient-gold);
  color: #000;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.badge-acumulado {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.badge-ganhador {
  background: rgba(32, 152, 105, 0.15);
  color: #209869;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

/* 5. Generator styles */
.loterias-generator-card {
  background: var(--lot-generator-card-bg);
  border: 1px solid var(--lot-border-light);
  box-shadow: var(--lot-card-shadow);
  border-radius: 12px;
  padding: 30px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .loterias-generator-card {
    display: grid;
    grid-template-columns: 4.5fr 7.5fr;
    gap: 30px;
  }
}

.generator-controls {
  background: var(--lot-card-bg);
  border: 1px solid var(--lot-border-light);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.gen-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gen-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--lot-text-secondary);
}

.loterias-generator-card .select-wrapper {
  background: var(--lot-select-bg);
  border: 1px solid var(--lot-select-border);
  border-radius: 6px;
  padding: 10px;
}

.loterias-generator-card select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--lot-select-text);
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
}

.loterias-generator-card select option {
  background: var(--lot-select-option-bg);
  color: var(--lot-select-text);
}

.loterias-btn-primary {
  background: var(--lot-gradient-gold);
  color: #070913;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.loterias-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.generator-output-box {
  background: var(--lot-gen-output-bg);
  border: 1px dashed var(--lot-gen-output-border);
  border-radius: 10px;
  min-height: 200px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .generator-output-box {
    margin-top: 0;
  }
}

.gen-placeholder {
  text-align: center;
  color: var(--lot-text-muted);
}

.dice-icon-huge {
  font-size: 40px !important;
  height: 40px !important;
  width: 40px !important;
  opacity: 0.25;
  margin-bottom: 10px;
}

.gen-display {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.display-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--lot-table-border);
  padding-bottom: 8px;
}

.game-badge {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.display-meta .tip {
  font-size: 11px;
  color: var(--lot-text-muted);
}

.display-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.generated-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: ball-pop-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes ball-pop-in {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.display-extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--lot-extra-bg);
  border: 1px solid var(--lot-extra-border);
  border-radius: 6px;
  padding: 10px;
}

.display-extra-balls {
  display: flex;
  gap: 6px;
}

.copy-box {
  display: flex;
  justify-content: center;
}

.loterias-btn-secondary {
  background: transparent;
  border: 1px solid var(--lot-select-border);
  color: var(--lot-text-secondary);
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.loterias-btn-secondary:hover {
  color: var(--lot-accent);
  border-color: var(--lot-accent);
  background: var(--lot-btn-hover-bg);
}

/* 6. Sidebar Widget Card */
.loterias-widget-card {
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--lot-border-light);
  background: var(--lot-card-bg);
  box-shadow: var(--lot-card-shadow);
  box-sizing: border-box;
}

.widget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--lot-text-muted);
  margin-bottom: 10px;
}

.widget-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.widget-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.widget-extra {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
}

.trevo-mini {
  width: 20px;
  height: 20px;
  font-size: 9px;
  border-radius: 4px;
}

.widget-jackpot {
  border-top: 1px solid var(--lot-card-meta-border);
  padding-top: 8px;
  font-size: 12px;
  text-align: center;
}

.jackpot-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 2px;
}

.jackpot-value {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--lot-text-primary);
}

.jackpot-winner {
  font-weight: 700;
  color: #209869;
}
