/* GoalPro Soccer Predictions - Dark Theme Sports Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #0b0f19;
  --bg-card: #141c2e;
  --bg-card-hover: #1b263e;
  --bg-elevated: #1e2942;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.25);
  
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-glow: rgba(16, 185, 129, 0.4);
  
  --vip-gold: #f59e0b;
  --vip-gold-hover: #d97706;
  --vip-glow: rgba(245, 158, 11, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #06b6d4;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(20, 28, 46, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  max-width: 100%;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-panel-gold {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.12), rgba(20, 28, 46, 0.85));
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0;
}

.brand-logo span span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  min-height: 42px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.btn-vip {
  background: linear-gradient(135deg, var(--vip-gold), #d97706);
  color: #0b0f19;
  box-shadow: 0 4px 15px var(--vip-glow);
  font-weight: 800;
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  min-height: 36px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-vip {
  background: rgba(245, 158, 11, 0.15);
  color: var(--vip-gold);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-won {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-lost {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.badge-pending {
  background: rgba(6, 182, 212, 0.2);
  color: #06b6d4;
}

/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fde047;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  background: linear-gradient(135deg, #10b981, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-md);
}

.stat-card .stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* Soccer Prediction Match Card */
.prediction-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.prediction-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-glow);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.prediction-card.vip-locked {
  border-color: rgba(245, 158, 11, 0.3);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

.league-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0;
}

.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  flex: 1;
}

.team-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.vs-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
}

.prediction-body {
  background: rgba(11, 15, 25, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pick-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pick-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
}

.odds-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
}

/* Locked Card Overlay */
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 10;
}

.locked-icon {
  font-size: 2.5rem;
  color: var(--vip-gold);
  margin-bottom: 0.5rem;
  animation: pulse 2s infinite;
}

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

/* Section Wrapper */
.section-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--text-main);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* VIP Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-header .plan-name {
  font-size: 1.5rem;
  color: var(--text-main);
}

.pricing-header .plan-price {
  font-size: 3rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--primary);
  margin: 1rem 0;
}

.pricing-header .plan-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feature-list li i {
  color: var(--primary);
}

/* User Dashboard Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 75px);
}

.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
}

.main-content {
  padding: 2rem;
  background: var(--bg-main);
  padding-bottom: 6rem;
  min-width: 0;
  overflow-x: hidden;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 22, 38, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 0.5rem 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-bottom-nav .nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0.2rem 0;
}

.mobile-bottom-nav a i {
  font-size: 1.2rem;
}

.mobile-bottom-nav a.active {
  color: var(--primary);
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

.table-responsive::-webkit-scrollbar {
  height: 5px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.5);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Tables */
.custom-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  white-space: nowrap;
}

.custom-table th {
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .admin-support-grid,
  .payment-page-grid {
    grid-template-columns: 1fr !important;
  }
  .sidebar {
    display: none;
  }
  .sidebar.active-sidebar {
    display: flex !important;
    position: fixed;
    top: 62px;
    left: 0;
    width: 270px;
    height: calc(100vh - 62px);
    z-index: 9999;
    background: #0f172a;
    border-right: 1px solid var(--border-color);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
  }
  .mobile-bottom-nav {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-links {
    display: none;
  }
  .main-content {
    padding: 1.25rem;
    padding-bottom: 6rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-wrapper {
    padding: 2.5rem 1rem;
  }
  .section-header h2 {
    font-size: 1.75rem;
  }
  .auth-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
  .glass-panel {
    padding: 1rem !important;
  }
}
