/* Help Esports Theme (scoped to body.help-page) */
body.help-page {
  --bg-1: #050505;
  --bg-2: #0A0A0A;
  --glass: rgba(255,255,255,0.05);
  --text-main: #EDEDED;
  --text-secondary: #9CA3AF;
  --primary-neon: #39FF14;
  --accent-green: #00FF7F;
  --neon-glow: 0 0 14px #39FF14;
  --card-border: rgba(57,255,20,0.25);
  --divider-gradient: linear-gradient(90deg, #00FFBF, #39FF14, #00FFBF);
  background: var(--bg-1);
  color: var(--text-main);
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
  touch-action: manipulation;
  will-change: auto;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-neon), var(--accent-green)) !important;
  color: #000 !important;
  padding: 2rem 0;
  position: relative;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

.page-header h1 {
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-weight: 800;
  color: #000;
  transform: translateZ(0);
}

.page-header .lead {
  color: rgba(0,0,0,0.8);
  font-weight: 500;
  transform: translateZ(0);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--divider-gradient);
  box-shadow: 0 0 10px var(--primary-neon);
  transform: translateZ(0);
}

/* Help Content */
.help-content {
  padding: 2rem 0;
}

/* Support Cards */
.support-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.1);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.support-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.3);
}

.support-card .card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
  color: var(--primary-neon);
  font-size: 1.5rem;
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.support-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.support-card h5 {
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.support-card p {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* List Group */
.list-group {
  transform: translateZ(0);
}

.list-group-item {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
}

.list-group-item:hover {
  background: rgba(57, 255, 20, 0.1);
  transform: translateX(5px);
}

.list-group-item.active {
  background: linear-gradient(135deg, var(--primary-neon), var(--accent-green));
  border-color: var(--primary-neon);
  color: #000;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  border: 1px solid var(--card-border);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.1);
  transform: translateZ(0);
  will-change: transform;
  margin-bottom: 1.5rem;
}

.card-title {
  color: var(--primary-neon);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.3);
}

.card-body {
  padding: 1.5rem;
}

/* Accordion */
.accordion-item {
  background: transparent;
  border: none;
  margin-bottom: 1rem;
  transform: translateZ(0);
}

.accordion-button {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-weight: 500;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  transform: translateZ(0);
  will-change: transform;
}

.accordion-button:not(.collapsed) {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--primary-neon);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.3);
  color: var(--primary-neon);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2339FF14'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-collapse {
  transform: translateZ(0);
}

.accordion-body {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  border-top: none;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  color: var(--text-main);
  transform: translateZ(0);
}

/* Form Controls */
.form-control, .form-select {
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  min-height: 44px;
}

.form-control:focus, .form-select:focus {
  background: rgba(10,10,10,0.9);
  border-color: var(--primary-neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
  color: var(--text-main);
  outline: none;
}

.form-control:disabled, .form-control[readonly] {
  background: rgba(10,10,10,0.5);
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-neon), var(--accent-green));
  border: none;
  color: #000;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.4);
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  min-height: 44px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.6);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Contact Options */
.contact-option {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 1.5rem;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform;
  margin-bottom: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
  color: var(--primary-neon);
  font-size: 1.5rem;
  flex-shrink: 0;
  transform: translateZ(0);
  transition: all 0.3s ease;
}

.contact-option:hover .contact-icon {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.contact-info h6 {
  color: var(--text-main);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Divider */
.neon-divider {
  height: 1px;
  background: var(--divider-gradient);
  margin: 1.5rem 0;
  border: none;
  transform: translateZ(0);
}

/* Animations */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.4);
  }
  50% {
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.7);
  }
  100% {
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.4);
  }
}

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

.support-card {
  animation: fadeInUp 0.5s ease forwards;
  transform: translateZ(0);
}

.support-card:nth-child(1) { animation-delay: 0.1s; }
.support-card:nth-child(2) { animation-delay: 0.2s; }
.support-card:nth-child(3) { animation-delay: 0.3s; }
.support-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth height transitions for FAQ accordion */
.accordion-collapse {
  transition: height 0.3s ease;
  will-change: height;
}

.accordion-body {
  transition: opacity 0.3s ease;
  will-change: opacity;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .page-header {
    padding: 1.5rem 0;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .help-content {
    padding: 1rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .support-card {
    margin-bottom: 1rem;
    padding: 1rem;
    min-height: 180px;
  }
  
  .contact-option {
    padding: 1rem;
    min-height: 180px;
  }
  
  .accordion-button {
    padding: 0.75rem 1rem;
  }
  
  .form-control, .form-select {
    padding: 0.75rem;
    min-height: 44px; /* Minimum tap size */
  }
  
  .btn-primary {
    width: 100%;
    margin-bottom: 0.5rem;
    min-height: 44px; /* Minimum tap size */
  }
  
  .btn-sm {
    min-height: 44px; /* Minimum tap size */
  }
  
  /* Mobile responsive grid */
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Momentum scrolling */
  .help-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent layout shifts */
  .support-card, .contact-option {
    will-change: auto;
  }
}

/* Navigation Glow */
.navbar-nav .nav-link.active {
  color: #39FF14 !important;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);
  box-shadow: 0 0 12px rgba(57,255,20,0.3), 0 0 24px rgba(57,255,20,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 2px;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Ensure Help tab is properly highlighted */
.navbar-nav .nav-link[href='help.html'] {
  color: #39FF14 !important;
  text-shadow: 0 0 8px rgba(57,255,20,0.6);
  box-shadow: 0 0 12px rgba(57,255,20,0.3), 0 0 24px rgba(57,255,20,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 2px;
  transition: all 0.3s ease;
  transform: translateZ(0);
  will-change: transform, box-shadow;
}

/* Wallet Info */
.wallet-info {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  transform: translateZ(0);
  will-change: transform;
}

.wallet-info:hover {
  background: rgba(57,255,20,0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 8px rgba(57,255,20,0.3);
}

.wallet-info i {
  color: var(--primary-neon);
}

.wallet-info span {
  font-weight: 600;
  color: var(--primary-neon);
}

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn-primary {
    animation: none;
  }
  
  .support-card {
    animation: none;
  }
  
  .page-header {
    animation: none;
  }
  
  .accordion-collapse {
    transition: none;
  }
  
  .accordion-body {
    transition: none;
  }
}