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

:root {
  /* Premium Dark Theme Palette */
  --bg-main: #09090e;
  --bg-surface: rgba(22, 22, 30, 0.6);
  --bg-surface-solid: #16161e;
  --bg-card: rgba(26, 27, 38, 0.7);
  
  /* Vibrant Accents */
  --primary: #4ade80; /* Neon Green */
  --primary-glow: rgba(74, 222, 128, 0.4);
  --secondary: #3b82f6; /* Bright Blue */
  --accent: #f59e0b; /* Amber */
  --danger: #ef4444;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Borders & Shadows */
  --border-glass: rgba(255, 255, 255, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  /* Premium animated background */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  display: flex;
  justify-content: center;
}

h1, h2, h3, h4, h5, h6, .outfit-font {
  font-family: 'Outfit', sans-serif;
}

/* Mobile App Container */
.app-container {
  width: 100%;
  max-width: 480px; /* Mobile width */
  min-height: 100vh;
  position: relative;
  background: transparent;
  padding-bottom: 90px;
  box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Header */
.app-header {
  padding: 30px 20px 20px;
  background: linear-gradient(180deg, var(--bg-surface-solid) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.02);
  text-align: center;
  margin-bottom: 10px;
}

.heading-gradient {
  background: linear-gradient(135deg, #4ade80, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 20px;
  margin: 0 16px 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.8;
}

.glass-card:active {
  transform: scale(0.98);
}

.match-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

/* Info Badges inside Card */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.02);
}

.info-icon {
  color: var(--primary);
  font-size: 1rem;
}

.prize-pool {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1rem;
}

/* Premium Button */
.btn-premium {
  background: linear-gradient(135deg, var(--primary), #22c55e);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-premium:hover, .btn-premium:focus {
  background: linear-gradient(135deg, #22c55e, var(--primary));
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-2px);
  color: #000;
}

/* Price Tag */
.price-tag {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
}

.price-tag span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  padding: 16px 0 24px 0;
  z-index: 1000;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  gap: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-item i {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 8px var(--primary-glow));
}

.nav-item:hover {
  color: #fff;
}

/* Modals */
.modal-content.glass-panel {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.form-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
  background: rgba(0, 0, 0, 0.5);
}

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

/* Visibility Fixes */
.text-muted {
  color: #94a3b8 !important;
}
.form-label {
  color: #e2e8f0 !important;
  font-weight: 500;
}
.small, small {
  color: #cbd5e1 !important;
}

/* Tabs */
.custom-tabs {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 5px !important;
}
.custom-tabs .nav-link {
  color: #94a3b8;
  border-radius: 8px;
  font-weight: 500;
}
.custom-tabs .nav-link.active {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 10px var(--primary-glow);
}
