/* =================================================================
   GB ROLETA - Componentes Específicos
   ================================================================= */

/* =================================================================
   1. HERO SECTION
   ================================================================= */
.hero-section {
  text-align: center;
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  position: relative;
}

.hero-section h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
  animation: goldShift 3s ease infinite;
}

@keyframes goldShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-section p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-lg);
}

/* =================================================================
   2. MODAIS
   ================================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* =================================================================
   3. SIDEBAR DASHBOARD
   ================================================================= */
.dash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  position: sticky;
  top: 90px;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  color: var(--bg-dark);
}

.balance-box {
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  margin-bottom: var(--space-md);
}

.balance-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-box .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.nav-tabs a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.nav-tabs a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.nav-tabs a.active {
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold);
}

.nav-tabs a.active-pb {
  background: rgba(var(--pb-rgb), 0.15);
  color: var(--pb-light);
}

.nav-tabs a.affiliate-link {
  background: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

/* =================================================================
   4. ITENS GRID (INVENTÁRIO)
   ================================================================= */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.item-card-body {
  padding: var(--space-md);
}

.item-card-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.item-card-body .reveal-btn {
  background: rgba(var(--gold-rgb), 0.1);
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  color: var(--gold);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  font-size: 0.8rem;
  text-align: center;
  transition: all var(--transition-base);
}

.item-card-body .reveal-btn:hover {
  background: rgba(var(--gold-rgb), 0.2);
}

.item-card-body .reveal-btn.revealed {
  background: rgba(var(--success-rgb), 0.1);
  border-color: rgba(var(--success-rgb), 0.3);
  color: var(--success);
}

/* =================================================================
   5. TABELAS
   ================================================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* =================================================================
   6. ROULETTE CONTAINER
   ================================================================= */
.case-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) 0;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.case-viewport {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.case-rail {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--space-md);
  width: max-content;
  transition: transform 6s cubic-bezier(0.15, 0.85, 0.15, 1);
  transform: translateX(0);
}

.case-item {
  width: 200px;
  height: 150px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  position: relative;
  border-bottom: 4px solid var(--border);
  overflow: hidden;
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* =================================================================
   7. SPIN SELECTOR (MULTI-SPIN)
   ================================================================= */
.spin-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.spin-btn-amount {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-btn-amount:hover,
.spin-btn-amount.active {
  border-color: var(--gold);
  color: var(--text-main);
  background: rgba(var(--gold-rgb), 0.15);
  box-shadow: var(--shadow-gold);
}

/* =================================================================
   8. WINNER TICKER
   ================================================================= */
.winner-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.winner-ticker-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
}

.winner-ticker-rail {
  display: flex;
  gap: var(--space-md);
  animation: tickerScroll 30s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.winner-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
}

.winner-item .username {
  color: var(--gold);
  font-weight: 600;
}

.winner-item .game {
  color: var(--text-muted);
}

/* =================================================================
   9. LUCK BAR
   ================================================================= */
.luck-bar-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
}

.luck-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.luck-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.luck-bar-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}

.luck-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.luck-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* =================================================================
   10. RECHARGE / PIX
   ================================================================= */
.recharge-container {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.amount-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.amount-btn:hover {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.1);
  transform: translateY(-2px);
}

.amount-btn.selected {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.15);
  box-shadow: var(--shadow-gold);
}

.amount-btn small {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pix-modal {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  max-width: 480px;
  width: 95%;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
}

.qr-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: inline-block;
  margin: var(--space-lg) 0;
}

.qr-wrapper img {
  display: block;
  width: 220px;
  height: 220px;
}

.copy-code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem var(--space-md);
  font-family: monospace;
  font-size: 0.7rem;
  word-break: break-all;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-base);
  margin-top: var(--space-sm);
}

.copy-code:hover {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.timer-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: var(--space-lg);
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--gold));
  border-radius: 2px;
  transition: width 1s linear;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.status-approved {
  background: rgba(var(--success-rgb), 0.15);
  color: var(--success);
  border: 1px solid rgba(var(--success-rgb), 0.3);
}

.status-pending {
  background: rgba(var(--warning-rgb), 0.15);
  color: var(--warning);
  border: 1px solid rgba(var(--warning-rgb), 0.3);
}

.status-cancelled {
  background: rgba(var(--error-rgb), 0.15);
  color: var(--error);
  border: 1px solid rgba(var(--error-rgb), 0.3);
}

/* =================================================================
   11. ADMIN SIDEBAR
   ================================================================= */
.admin-layout {
  display: flex;
  gap: var(--space-xl);
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.admin-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
  }
}

.admin-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.admin-menu-item.active {
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold);
}

.admin-menu-item.menu-steam {
  border-left: 2px solid var(--steam-accent);
}

.admin-menu-item.menu-pb {
  border-left: 2px solid var(--pb-accent);
}
