/* GetStreamed - Custom Styles */

/* ========================================
   CSS Variables & Root
   ======================================== */
:root {
  --color-bg: #0a0a0f;
  --color-bg-elevated: #12121a;
  --color-bg-card: #1a1a24;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e4e4e7;
  --color-text-muted: #71717a;
  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-accent: #06b6d4;
  --color-danger: #ef4444;
  --color-success: #22c55e;
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  --gradient-bg: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 50%);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);
}

/* ========================================
   Base Styles
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

a {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text) !important;
  letter-spacing: -0.5px;
}

.navbar-brand i {
  color: var(--color-primary);
}

.nav-link {
  color: var(--color-text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text) !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.btn-primary {
  color: white !important;
}

.navbar .input-group {
  max-width: 250px;
}

.navbar .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.navbar .form-control::placeholder {
  color: var(--color-text-muted);
}

.navbar .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
  color: var(--color-text);
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: var(--gradient-primary);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-light {
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  padding: 4rem 0;
}

.hero-section h1 {
  font-weight: 700;
  letter-spacing: -1px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Demo Video */
.demo-video-wrapper {
  position: relative;
  padding: 1rem;
}

.demo-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.demo-video-container iframe,
.demo-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.demo-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-video-placeholder:hover {
  background: linear-gradient(135deg, #1f1f35 0%, #1a1a30 100%);
}

.demo-video-placeholder i {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.demo-video-placeholder:hover i {
  transform: scale(1.1);
  color: var(--color-accent);
}

.demo-video-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 991.98px) {
  .demo-video-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ========================================
   Stats Section
   ======================================== */
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   Game Cards
   ======================================== */
.game-card {
  display: block;
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-4px);
}

.game-card-inner {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
}

.game-card:hover .game-card-inner {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.game-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.game-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Game Boxart */
.game-boxart {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
  background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3a 100%);
}

.game-boxart-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-boxart-img {
  transform: scale(1.05);
}

.game-info {
  background: var(--color-bg-card);
}

.game-card-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-card-inner .game-info {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Fallback icon placeholder - same height as boxart */
.game-icon-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3a 100%);
  border-radius: 0.5rem 0.5rem 0 0;
}

.game-icon-placeholder .game-icon {
  margin: 0;
}

.game-card-inner:has(.game-icon) .game-info {
  text-align: center;
}

.game-name {
  color: var(--color-text);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}

/* ========================================
   YouTuber Cards
   ======================================== */
.youtuber-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.youtuber-card:hover {
  border-color: var(--color-danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.youtuber-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.youtuber-avatar i {
  font-size: 2rem;
  color: white;
}

.youtuber-name a {
  color: var(--color-text);
  font-weight: 600;
}

.youtuber-name a:hover {
  color: var(--color-danger);
}

.youtuber-description {
  line-height: 1.5;
}

/* ========================================
   Game Header (Show Page)
   ======================================== */
.game-icon-large {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-large i {
  font-size: 3rem;
  color: white;
}

.game-boxart-large {
  width: 120px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.game-boxart-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.page-title {
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

/* ========================================
   Step Cards (How it Works)
   ======================================== */
.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* ========================================
   Auth Cards
   ======================================== */
.auth-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.auth-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-icon i {
  font-size: 2.5rem;
  color: white;
}

.auth-title {
  font-weight: 700;
  font-size: 1.75rem;
}

.auth-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.75rem 1rem;
}

.auth-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  color: var(--color-text);
}

.auth-card .form-control::placeholder {
  color: var(--color-text-muted);
}

.auth-card .form-label {
  font-weight: 500;
  color: var(--color-text-muted);
}

.auth-card hr {
  border-color: var(--color-border);
}

/* ========================================
   Admin Dashboard
   ======================================== */
.admin-stat {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.admin-stat .stat-icon i {
  font-size: 1.75rem;
}

.admin-stat .stat-number {
  font-size: 1.75rem;
}

.admin-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.panel-title {
  font-weight: 600;
  color: var(--color-text);
}

.table-dark {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--color-border);
}

.table-dark thead {
  border-bottom: 2px solid var(--color-border);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state .empty-icon {
  width: 100px;
  height: 100px;
  background: var(--color-bg-card);
  border: 2px dashed var(--color-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-state .empty-icon i {
  font-size: 3rem;
  color: var(--color-text-muted);
}

/* ========================================
   Alerts
   ======================================== */
.alert {
  border: none;
  border-radius: 0.75rem;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-danger);
}

.alert-info {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent);
}

.alert-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  --bs-pagination-bg: var(--color-bg-card);
  --bs-pagination-border-color: var(--color-border);
  --bs-pagination-color: var(--color-text);
  --bs-pagination-hover-bg: rgba(255, 255, 255, 0.1);
  --bs-pagination-hover-border-color: var(--color-border);
  --bs-pagination-hover-color: var(--color-text);
  --bs-pagination-active-bg: var(--color-primary);
  --bs-pagination-active-border-color: var(--color-primary);
  --bs-pagination-disabled-bg: var(--color-bg-card);
  --bs-pagination-disabled-border-color: var(--color-border);
  --bs-pagination-disabled-color: var(--color-text-muted);
}

.page-link {
  border-radius: 0.5rem;
  margin: 0 2px;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1.5rem;
}

.breadcrumb-item a {
  color: var(--color-text-muted);
}

.breadcrumb-item.active {
  color: var(--color-text);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--color-text-muted);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--color-primary) !important;
}

/* ========================================
   Search Form
   ======================================== */
.search-form .form-control {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.6rem 1rem;
}

.search-form .form-control:focus {
  background: var(--color-bg-card);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  color: var(--color-text);
}

.search-form .form-control::placeholder {
  color: var(--color-text-muted);
}

/* ========================================
   Badges
   ======================================== */
.badge.bg-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--color-text-muted);
  font-weight: 500;
}

.badge.bg-danger {
  background: var(--color-danger) !important;
}

/* ========================================
   Dropdown
   ======================================== */
.dropdown-menu {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.dropdown-item {
  color: var(--color-text);
  padding: 0.6rem 1rem;
}

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

.dropdown-item-text {
  color: var(--color-text-muted) !important;
}

.dropdown-divider {
  border-color: var(--color-border);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  .game-title {
    font-size: 1.75rem;
  }
  
  .game-icon-large {
    width: 70px;
    height: 70px;
  }
  
  .game-icon-large i {
    font-size: 2rem;
  }
  
  .game-boxart-large {
    width: 80px;
    height: 120px;
  }
}

/* ========================================
   YouTuber Detail Page
   ======================================== */
.youtuber-avatar-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtuber-avatar-large i {
  font-size: 3.5rem;
  color: white;
}

.youtuber-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.youtuber-description {
  max-width: 800px;
  line-height: 1.6;
}

.game-context-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.game-context-card .game-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-context-card .game-icon i {
  font-size: 1.5rem;
  color: white;
}

/* ========================================
   Video Cards
   ======================================== */
.video-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 100%;
}

.video-card:hover {
  border-color: var(--color-danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.video-thumbnail-placeholder {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3a 100%);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumbnail-placeholder i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--color-danger);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.video-card:hover .video-thumbnail-placeholder i {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f1f2e 0%, #2a2a3a 100%);
}

.video-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-play-overlay i {
  font-size: 3.5rem;
  color: white;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail-img {
  transform: scale(1.05);
}

.video-card:hover .video-play-overlay {
  opacity: 1;
}

.video-card:hover .video-play-overlay i {
  transform: scale(1.1);
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.video-title a {
  color: var(--color-text);
}

.video-title a:hover {
  color: var(--color-danger);
}

/* ========================================
   YouTuber Card Link (clickable cards)
   ======================================== */
.youtuber-card-link {
  display: block;
}

.youtuber-card-link .youtuber-card {
  cursor: pointer;
}

.youtuber-card-link:hover .youtuber-card {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.youtuber-card-link .youtuber-name {
  color: var(--color-text);
  transition: color 0.2s ease;
}

.youtuber-card-link:hover .youtuber-name {
  color: var(--color-primary);
}

/* ========================================
   Responsive - YouTuber Detail
   ======================================== */
@media (max-width: 768px) {
  .youtuber-avatar-large {
    width: 70px;
    height: 70px;
  }
  
  .youtuber-avatar-large i {
    font-size: 2.5rem;
  }
  
  .youtuber-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   Worker Status Indicator
   ======================================== */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-indicator.bg-success {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.status-indicator.bg-info {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.status-indicator.bg-warning {
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-indicator.stopping {
  animation: pulse 0.5s infinite;
}

.current-game {
  border-left: 3px solid var(--color-primary);
}

.worker-controls .btn {
  min-width: 120px;
}

/* ========================================
   Admin Controls
   ======================================== */
.admin-controls {
  background: var(--color-bg-card);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
}

.admin-controls .form-check-input {
  cursor: pointer;
}

.admin-controls .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.admin-controls .form-check-label {
  color: var(--color-text-muted);
  cursor: pointer;
}

/* ========================================
   Video Admin Controls
   ======================================== */
.video-admin-controls {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.video-admin-controls .form-check-input {
  cursor: pointer;
}

.video-admin-controls .form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.video-card.video-hidden {
  opacity: 0.5;
  border: 2px dashed var(--color-warning, #ffc107);
}

.video-card.video-hidden .video-thumbnail-img {
  filter: grayscale(50%);
}

.video-visibility-toggle {
  cursor: pointer;
}

/* Hidden YouTuber Cards (admin only visibility) */
.youtuber-card.youtuber-hidden {
  opacity: 0.5;
  border: 2px dashed var(--color-warning, #ffc107);
}

.youtuber-card.youtuber-hidden .youtuber-avatar i {
  filter: grayscale(50%);
}

.admin-only-badge {
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

/* ========================================
   Social Media Button Colors
   ======================================== */
.btn-outline-purple {
  --bs-btn-color: #9146ff;
  --bs-btn-border-color: #9146ff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #9146ff;
  --bs-btn-hover-border-color: #9146ff;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #772ce8;
  --bs-btn-active-border-color: #772ce8;
}

.btn-outline-pink {
  --bs-btn-color: #e4405f;
  --bs-btn-border-color: #e4405f;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #e4405f;
  --bs-btn-hover-border-color: #e4405f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #d62e4c;
  --bs-btn-active-border-color: #d62e4c;
}

.btn-outline-indigo {
  --bs-btn-color: #5865f2;
  --bs-btn-border-color: #5865f2;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #5865f2;
  --bs-btn-hover-border-color: #5865f2;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #4752c4;
  --bs-btn-active-border-color: #4752c4;
}

.youtuber-actions .btn {
  min-width: 44px;
}

.youtuber-actions .btn i:only-child {
  margin: 0;
}

.youtuber-contact {
  margin-top: 0.5rem;
}

/* ========================================
   Admin Edit Section
   ======================================== */
.admin-edit-section .admin-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.admin-edit-section .form-label {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.admin-edit-section .form-label i {
  opacity: 0.7;
}

.admin-edit-section .form-control {
  background-color: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

.admin-edit-section .form-control:focus {
  background-color: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 0 0 0.25rem rgba(var(--color-primary-rgb, 99, 102, 241), 0.25);
}

.admin-edit-section .form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* ========================================
   User Dashboard
   ======================================== */
.dashboard-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.dashboard-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-icon i {
  font-size: 1.75rem;
  color: white;
}

.dashboard-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  height: 100%;
}

.dashboard-panel .panel-title {
  color: var(--color-text);
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.dashboard-panel .form-label {
  color: var(--color-text);
  font-weight: 500;
}

.dashboard-panel .form-control {
  background-color: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-text);
}

.dashboard-panel .form-control:focus {
  background-color: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
}

.dashboard-panel .form-text {
  color: var(--color-text-muted);
}

/* ========================================
   User Lists
   ======================================== */
.list-icon {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.list-icon i {
  font-size: 1.25rem;
}

.list-group-item {
  transition: background-color 0.2s ease;
}

.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* List badges on YouTuber cards */
.youtuber-list-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.youtuber-list-badges .list-badge {
  font-size: 0.7rem;
  font-weight: 500;
}

.youtuber-list-section {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

/* Dropdown active state */
.dropdown-item.active {
  background-color: rgba(var(--color-primary-rgb, 99, 102, 241), 0.1);
}

.dropdown-item.active:hover {
  background-color: rgba(var(--color-primary-rgb, 99, 102, 241), 0.2);
}

/* Add to list button in card */
.add-to-list-btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* ========================================
   Registration - Plan Selection
   ======================================== */

.plan-option,
.pricing-tier {
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-option:hover,
.pricing-tier:hover {
  border-color: var(--color-primary);
  background-color: rgba(99, 102, 241, 0.05);
}

.plan-option.selected,
.pricing-tier.selected {
  border-color: var(--color-primary);
  background-color: rgba(99, 102, 241, 0.1);
}

.plan-option .form-check-input,
.pricing-tier .form-check-input {
  margin-top: 0.25rem;
}

.plan-info,
.tier-info {
  flex: 1;
}

.tier-price {
  text-align: right;
}

.tier-price .h5 {
  color: var(--color-primary);
}

/* Stripe Card Element */
#card-element {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  min-height: 50px;
}

#card-element.StripeElement--focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

#card-element.StripeElement--invalid {
  border-color: #dc3545;
}

#card-errors {
  min-height: 1.5rem;
}

/* ========================================
   Admin - Clickable Stat Cards
   ======================================== */

.clickable-stat {
  transition: all 0.2s ease;
  cursor: pointer;
}

.clickable-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border-color: var(--color-primary);
}

/* Admin User Management */
.admin-panel .card {
  transition: all 0.2s ease;
}

.admin-panel .card:hover {
  border-color: var(--color-primary);
}

/* ========================================
   Dashboard - Credits Card
   ======================================== */

.credits-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.credits-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.credits-display {
  margin-top: 0.5rem;
}

/* Credits indicator on game page */
.credits-indicator {
  font-size: 0.85rem;
}

.credits-indicator i {
  color: var(--color-primary);
}

