@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Audiowide&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff6b35;
  --accent-color: #ffd700;
  --bg-dark: #0a0a0f;
  --bg-darker: #05050a;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  --text-light: #ffffff;
  --text-muted: #b0b0b0;
  --success: #00ff88;
  --error: #ff4444;
  --warning: #ffaa00;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(0, 255, 255, 0.2);
  --glow-primary: 0 0 20px var(--primary-color);
  --glow-secondary: 0 0 20px var(--secondary-color);
  --glow-accent: 0 0 30px var(--accent-color);
  --neon-glow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-neon: 0 4px 15px rgba(0, 255, 255, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', monospace;
  background: var(--bg-gradient);
  color: var(--text-light);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.8;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
  border-color: var(--primary-color);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.card:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

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

.btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-dark);
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
  filter: brightness(1.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

.btn-secondary:hover {
  box-shadow: var(--glow-secondary);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: var(--text-light);
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--glow-primary);
  background: rgba(255, 255, 255, 0.15);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title {
  font-family: 'Audiowide', cursive;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--primary-color);
}

.subtitle {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-muted);
  font-weight: 400;
}

.xp-bar {
  width: 100%;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}

.xp-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  transition: width 2s ease;
  position: relative;
}

.xp-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: xp-glow 3s infinite;
}

@keyframes xp-glow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  color: var(--error);
  font-size: 14px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.success-message {
  color: var(--success);
  font-size: 14px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Advanced Gaming Navbar - Improved Version */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 1000;
  padding: 0;
  border-bottom: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-100%);
}

.nav.nav-entrance {
  animation: navSlideDown 0.8s ease-out forwards;
}

@keyframes navSlideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav:hover::before {
  opacity: 1;
}

.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), var(--primary-color), transparent);
  animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.nav-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.logo {
  font-family: 'Audiowide', cursive;
  font-size: 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.3s ease;
  z-index: 10;
}

.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.logo:hover::before {
  opacity: 1;
}

.logo:hover {
  transform: translateX(-50%) scale(1.05);
  text-shadow: 0 0 20px var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  position: absolute;
  left: 20px;
}

.nav-links li {
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
}

.nav-links li.nav-item-entrance {
  animation: navItemSlideIn 0.6s ease-out forwards;
}

@keyframes navItemSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 12px 18px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
  z-index: -1;
}

.nav-links a:hover::before {
  opacity: 0.2;
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
  border-color: var(--primary-color);
}

.nav-links a.active {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.user-section {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-initial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--bg-dark);
  font-weight: bold;
  font-size: 16px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.username {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
}

.user-level {
  font-size: 12px;
  color: var(--accent-color);
}

.xp-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.guest-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  z-index: 11;
}

.nav-mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-light);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.auth-only {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* Welcome Animation Overlay */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s ease;
}

.welcome-overlay.welcome-top {
  transform: translateY(-100%);
}

.welcome-overlay.welcome-bottom {
  transform: translateY(100%);
}

.welcome-overlay.welcome-left {
  transform: translateX(-100%);
}

.welcome-overlay.welcome-right {
  transform: translateX(100%);
}

.welcome-overlay.show {
  opacity: 1;
  transform: translate(0, 0);
}

.welcome-overlay.hide {
  opacity: 0;
  transform: scale(0.8);
}

.welcome-content {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-width: 400px;
}

.welcome-features {
  margin-top: 20px;
}

.feature-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--success);
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--success);
}

.unlock-icon {
  font-size: 1.2rem;
  animation: unlockBounce 1s ease-in-out infinite alternate;
}

@keyframes unlockBounce {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* AI Chat Bot Float Button */
.ai-chat-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.ai-chat-float.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 255, 255, 0.5);
}

.ai-chat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-chat-btn:hover::before {
  opacity: 1;
}

.ai-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Tournament Details Float Panel */
.tournament-details-float {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 350px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  backdrop-filter: blur(20px);
  z-index: 9998;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tournament-details-float.show {
  opacity: 1;
  transform: translateX(0);
}

.tournament-details-content {
  padding: 20px;
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.tournament-header h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary-color);
}

.tournament-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tournament-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.tournament-info h4 {
  margin: 0 0 8px 0;
  color: var(--text-light);
  font-size: 1rem;
}

.tournament-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tournament-info .prize {
  color: var(--accent-color);
  font-weight: bold;
}

.tournament-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status.live {
  background: var(--success);
  color: var(--bg-dark);
}

.status.starting-soon {
  background: var(--warning);
  color: var(--bg-dark);
}

.status.registering {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.time-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Enhanced Welcome Animation with Directions */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: all 0.5s ease;
}

.welcome-overlay.welcome-top {
  transform: translateY(-100%);
}

.welcome-overlay.welcome-bottom {
  transform: translateY(100%);
}

.welcome-overlay.welcome-left {
  transform: translateX(-100%);
}

.welcome-overlay.welcome-right {
  transform: translateX(100%);
}

.welcome-overlay.show {
  opacity: 1;
  transform: translate(0, 0);
}

.welcome-overlay.hide {
  opacity: 0;
  transform: scale(0.8);
}

.welcome-content {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-radius: 20px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  max-width: 400px;
}

.welcome-features {
  margin-top: 20px;
}

.feature-unlock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--success);
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--success);
}

.unlock-icon {
  font-size: 1.2rem;
  animation: unlockBounce 1s ease-in-out infinite alternate;
}

@keyframes unlockBounce {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

/* AI Chat Bot Float Button */
.ai-chat-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: none;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.ai-chat-float.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.ai-chat-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.ai-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 255, 255, 0.5);
}

.ai-chat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-chat-btn:hover::before {
  opacity: 1;
}

.ai-pulse {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Tournament Details Float Panel */
.tournament-details-float {
  position: fixed;
  top: 100px;
  right: 30px;
  width: 350px;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  backdrop-filter: blur(20px);
  z-index: 9998;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tournament-details-float.show {
  opacity: 1;
  transform: translateX(0);
}

.tournament-details-content {
  padding: 20px;
}

.tournament-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.tournament-header h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--primary-color);
}

.tournament-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tournament-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-color);
}

.tournament-info h4 {
  margin: 0 0 8px 0;
  color: var(--text-light);
  font-size: 1rem;
}

.tournament-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tournament-info .prize {
  color: var(--accent-color);
  font-weight: bold;
}

.tournament-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status.live {
  background: var(--success);
  color: var(--bg-dark);
}

.status.starting-soon {
  background: var(--warning);
  color: var(--bg-dark);
}

.status.registering {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.time-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .ai-chat-float {
    bottom: 20px;
    right: 20px;
  }
  
  .ai-chat-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .tournament-details-float {
    position: fixed;
    top: 80px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }
  
  .tournament-details-float.show {
    transform: translateY(0);
  }
  
  .tournament-details-float {
    transform: translateY(-100%);
  }
  
  .tournament-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .tournament-status {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .guest-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .guest-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  .user-profile {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .user-info {
    text-align: center;
  }
  
  .xp-bar {
    width: 100px;
    margin: 0 auto;
  }
}

/* Fix webkit prefix issues */
.nav {
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.tournament-details-float {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.welcome-content {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.card {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.user-profile {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-links a {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo {
    position: relative;
    left: auto;
    transform: none;
    font-size: 2rem;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  .nav-links {
    position: relative;
    left: auto;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-links.active {
    max-height: 500px;
  }
  
  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }
  
  .user-section {
    position: relative;
    right: auto;
    width: 100%;
    justify-content: center;
  }
  
  .nav-mobile-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .welcome-content {
    margin: 20px;
    padding: 30px;
  }
  
  .welcome-content h2 {
    font-size: 2rem;
  }
}

.main-content {
  min-height: 100vh;
  padding-top: 100px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
}

/* Advanced Footer Styles */
.advanced-footer {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  margin-top: 80px;
  padding: 60px 0 20px;
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.advanced-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.advanced-footer > * {
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  animation: fadeInUp 0.8s ease;
}

.footer-section h3,
.footer-section h4 {
  color: #00ffff;
  margin-bottom: 20px;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  position: relative;
}

.footer-section h3::after,
.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff6b35);
  border-radius: 2px;
}

.footer-section p {
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer-section ul li:hover {
  transform: translateX(5px);
}

.footer-section ul li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

.footer-section ul li a::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #ff6b35;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer-section ul li a:hover::before {
  color: #00ffff;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 50%;
  color: #00ffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  border-color: #00ffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 30px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff6b35);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #00ffff;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .nav-links a {
    font-size: 12px;
  }
  
  .card {
    padding: 20px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 12px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Footer Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease;
}

.animate-fadeInScale {
  animation: fadeInScale 0.6s ease;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Three.js Canvas */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.nav-links a.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav-links a.btn:hover::before {
  left: 100%;
}

.nav-links a.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
  color: var(--bg-dark);
}

/* Gaming Icons for Navigation */
.nav-links a[href*="tournaments"]::before {
  content: "🏆";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="leaderboard"]::before {
  content: "🥇";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="profile"]::before {
  content: "👤";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="wallet"]::before {
  content: "💰";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="match"]::before {
  content: "⚔️";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="replays"]::before {
  content: "📺";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="contact"]::before {
  content: "📞";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="admin"]::before {
  content: "⚙️";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="login"]::before {
  content: "🔐";
  font-size: 16px;
  margin-right: 8px;
}

.nav-links a[href*="register"]::before {
  content: "🎮";
  font-size: 16px;
  margin-right: 8px;
}

/* Mobile Navigation Button */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-mobile-toggle:hover {
  color: var(--primary-color);
  background: rgba(0, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .logo {
    position: relative;
    left: auto;
    transform: none;
    font-size: 2rem;
  }
  
  .logo:hover {
    transform: scale(1.05);
  }
  
  .nav-links {
    position: relative;
    left: auto;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-links.active {
    max-height: 500px;
  }
  
  .nav-links a {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
  }
  
  .user-section {
    position: relative;
    right: auto;
    width: 100%;
    justify-content: center;
  }
  
  .nav-mobile-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .welcome-content {
    margin: 20px;
    padding: 30px;
  }
  
  .welcome-content h2 {
    font-size: 2rem;
  }
}
