/* ============================================
   NovaBet Theme - Cosmic Purple/Cyan
   ============================================ */

:root {
  /* NovaBet Brand Colors */
  --nb-primary: #7c3aed;
  --nb-primary-light: #a78bfa;
  --nb-primary-dark: #5b21b6;
  --nb-accent: #00d4ff;
  --nb-accent-glow: rgba(0, 212, 255, 0.3);

  /* Backgrounds */
  --nb-bg-deep: #070b1a;
  --nb-bg-dark: #0a0e27;
  --nb-bg-card: #111835;
  --nb-bg-elevated: #1a2040;

  /* Text */
  --nb-text-primary: #ffffff;
  --nb-text-secondary: #94a3b8;
  --nb-text-muted: #64748b;

  /* Gradients */
  --nb-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
  --nb-gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(0, 212, 255, 0.1) 100%);
  --nb-gradient-dark: linear-gradient(180deg, #0a0e27 0%, #070b1a 100%);
}

/* Body & App Background */
body {
  background: var(--nb-gradient-dark);
  color: var(--nb-text-primary);
}

.app {
  background: transparent;
}

/* Sidebar */
.sidebar {
  background: var(--nb-bg-dark);
  border-right: 1px solid rgba(124, 58, 237, 0.1);
}

.sidebar-header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(0, 212, 255, 0.05));
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

/* Navigation Links */
.navigation-link {
  color: var(--nb-text-secondary);
  transition: all 0.2s ease;
}

.navigation-link:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--nb-text-primary);
}

.navigation-link.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 212, 255, 0.08));
  color: var(--nb-accent);
  border-left: 3px solid var(--nb-accent);
}

/* Topbar */
.topbar {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

/* Game Tiles */
.game-tile {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.25), 0 0 60px rgba(0, 212, 255, 0.1);
}

.game-tile__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 39, 0.9) 100%);
  pointer-events: none;
}

/* Provider Tabs */
.provider-tab {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.12);
  color: var(--nb-text-secondary);
  transition: all 0.2s ease;
}

.provider-tab:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--nb-text-primary);
}

.provider-tab.active {
  background: var(--nb-gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* Buttons */
.btn-register,
.btn-primary {
  background: var(--nb-gradient-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transition: all 0.2s ease;
}

.btn-register:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Chat FAB */
.chat-fab {
  background: var(--nb-gradient-primary);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(0, 212, 255, 0.1);
  animation: novaPulse 3s infinite;
}

@keyframes novaPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(124, 58, 237, 0.5), 0 0 0 4px rgba(0, 212, 255, 0.1); }
  50% { box-shadow: 0 4px 30px rgba(124, 58, 237, 0.7), 0 0 0 8px rgba(0, 212, 255, 0.05); }
}

/* Support Chat Panel */
.support-chat__panel {
  background: var(--nb-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.1);
}

.support-chat__header {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(0, 212, 255, 0.08));
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

/* Hero Banner Glow */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--nb-gradient-primary);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(8px);
}

/* Live Badge */
.live-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.live-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Big Win Cards */
.big-win-card {
  background: var(--nb-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.big-win-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--nb-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--nb-primary), var(--nb-accent));
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.4);
  color: #fff;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
}

/* Auth Modals */
.auth-modal__panel {
  background: var(--nb-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* Deposit Modal */
.deposit-modal__panel {
  background: var(--nb-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Search */
.search-modal__panel {
  background: var(--nb-bg-card);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Dropdown */
.navigation-dropdown {
  border-left: 2px solid rgba(124, 58, 237, 0.3);
}

.navigation-dropdown__link:hover {
  background: rgba(124, 58, 237, 0.08);
}

/* Empty States */
.games-library__empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--nb-text-secondary);
}

.games-library__empty p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Animations */
@keyframes novaGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.games-grid__card {
  animation: slideUp 0.4s ease backwards;
}

.games-grid__card:nth-child(1) { animation-delay: 0.05s; }
.games-grid__card:nth-child(2) { animation-delay: 0.1s; }
.games-grid__card:nth-child(3) { animation-delay: 0.15s; }
.games-grid__card:nth-child(4) { animation-delay: 0.2s; }
.games-grid__card:nth-child(5) { animation-delay: 0.25s; }
.games-grid__card:nth-child(6) { animation-delay: 0.3s; }