/* İLK 11 - Premium Sports Quiz Platform
   Modern Dark Theme with Gold Accents + Glassmorphism */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  /* Background Colors */
  --bg-primary: #05050a;
  --bg-secondary: #0a0a12;
  --bg-tertiary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.7);
  --bg-card-hover: rgba(25, 25, 35, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Gold/Yellow Accents */
  --gold-primary: #ffd700;
  --gold-secondary: #d4af37;
  --gold-dark: #b8860b;
  --gold-light: #ffe44d;
  --gold-gradient: linear-gradient(
    135deg,
    #ffd700 0%,
    #f0c14b 50%,
    #d4af37 100%
  );
  --gold-gradient-soft: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  --gold-glow: 0 0 30px rgba(255, 215, 0, 0.3);

  /* Green Accent */
  --green-primary: #00d97e;
  --green-secondary: #00b368;
  --green-gradient: linear-gradient(135deg, #00d97e 0%, #00b368 100%);

  /* Blue Accent */
  --blue-primary: #0dcaf0;
  --blue-secondary: #0aa2c0;

  /* Purple Accent */
  --purple-primary: #a855f7;
  --purple-secondary: #9333ea;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --text-gold: #ffd700;

  /* Status Colors */
  --success: #00d97e;
  --warning: #f0c14b;
  --error: #ff4757;
  --info: #0dcaf0;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(255, 215, 0, 0.25);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 8px 32px rgba(255, 215, 0, 0.15);
  --shadow-glow: 0 0 60px rgba(255, 215, 0, 0.1);

  /* Spacing */
  --sidebar-width: 280px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-primary);
  background-image: radial-gradient(
      ellipse at 20% 20%,
      rgba(255, 215, 0, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 80%,
      rgba(138, 43, 226, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(0, 217, 126, 0.01) 0%,
      transparent 60%
    );
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--gold-primary);
  color: #000;
}

/* ========================================
   LAYOUT
   ======================================== */
.app-container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 40px;
  min-height: 100vh;
}

/* ========================================
   PREMIUM SIDEBAR
   ======================================== */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 215, 0, 0.2),
    transparent
  );
}

.sidebar-logo {
  padding: 28px 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.sidebar-logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: var(--gold-gradient);
}

.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.logo-text .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 0;
  overflow-y: auto;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  border-left: 3px solid transparent;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  margin: 4px 12px;
  border-radius: var(--radius-md);
}

.sidebar-nav-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-left-color: rgba(255, 215, 0, 0.3);
}

.sidebar-nav-item.active {
  background: var(--gold-gradient-soft);
  color: var(--gold-primary);
  border-left-color: var(--gold-primary);
}

.sidebar-nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--gold-gradient);
  border-radius: 0 4px 4px 0;
}

.sidebar-nav-item i {
  width: 22px;
  text-align: center;
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.sidebar-nav-item:hover i {
  transform: scale(1.1);
}

.sidebar-nav-item.logout {
  color: var(--error);
}

.sidebar-nav-item.logout:hover {
  background: rgba(255, 71, 87, 0.1);
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
  margin: 16px 24px;
}

.sidebar-user {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-glass);
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 20px;
  box-shadow: var(--gold-glow);
  position: relative;
}

.user-avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold-primary), transparent)
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.user-points {
  font-size: 14px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-points i {
  font-size: 12px;
}

/* ========================================
   ALERTS - Premium Style
   ======================================== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 126, 0.15) 0%,
    rgba(0, 217, 126, 0.05) 100%
  );
  border: 1px solid rgba(0, 217, 126, 0.3);
  color: var(--success);
}

.alert-error {
  background: linear-gradient(
    135deg,
    rgba(255, 71, 87, 0.15) 0%,
    rgba(255, 71, 87, 0.05) 100%
  );
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: var(--error);
}

/* ========================================
   BUTTONS - Premium Style
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 215, 0, 0.35);
}

.btn-secondary {
  background: rgba(255, 215, 0, 0.05);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  background: var(--gold-gradient-soft);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ========================================
   PREMIUM CARDS
   ======================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.card:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold), var(--shadow-glow);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta i {
  color: var(--gold-secondary);
}

/* ========================================
   STAT CARDS - Premium Glass Style
   ======================================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.03) 0%,
    transparent 70%
  );
  transition: all var(--transition-slow);
}

.stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.stat-card:hover::before {
  opacity: 1;
  transform: translate(-20%, 20%);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
}

.stat-icon.gold {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(255, 215, 0, 0.05) 100%
  );
  color: var(--gold-primary);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1);
}

.stat-icon.green {
  background: linear-gradient(
    135deg,
    rgba(0, 217, 126, 0.15) 0%,
    rgba(0, 217, 126, 0.05) 100%
  );
  color: var(--green-primary);
}

.stat-icon.blue {
  background: linear-gradient(
    135deg,
    rgba(13, 202, 240, 0.15) 0%,
    rgba(13, 202, 240, 0.05) 100%
  );
  color: var(--blue-primary);
}

.stat-icon.purple {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15) 0%,
    rgba(168, 85, 247, 0.05) 100%
  );
  color: var(--purple-primary);
}

.stat-content h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   PREMIUM LEADERBOARD
   ======================================== */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.leaderboard-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.leaderboard-item:hover {
  border-color: var(--border-gold);
  transform: translateX(8px);
}

.leaderboard-item:hover::before {
  background: var(--gold-gradient);
}

.leaderboard-item.top-1 {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.12) 0%,
    rgba(255, 215, 0, 0.03) 100%
  );
  border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-item.top-1::before {
  background: var(--gold-gradient);
}

.leaderboard-item.top-2 {
  background: linear-gradient(
    135deg,
    rgba(192, 192, 192, 0.1) 0%,
    rgba(192, 192, 192, 0.02) 100%
  );
  border-color: rgba(192, 192, 192, 0.25);
}

.leaderboard-item.top-2::before {
  background: linear-gradient(180deg, #e8e8e8, #c0c0c0);
}

.leaderboard-item.top-3 {
  background: linear-gradient(
    135deg,
    rgba(205, 127, 50, 0.1) 0%,
    rgba(205, 127, 50, 0.02) 100%
  );
  border-color: rgba(205, 127, 50, 0.25);
}

.leaderboard-item.top-3::before {
  background: linear-gradient(180deg, #e6a861, #cd7f32);
}

.leaderboard-rank {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
  position: relative;
}

.top-1 .leaderboard-rank {
  background: var(--gold-gradient);
  color: #000;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.top-1 .leaderboard-rank::after {
  content: "👑";
  position: absolute;
  top: -12px;
  font-size: 16px;
}

.top-2 .leaderboard-rank {
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
  color: #333;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.top-3 .leaderboard-rank {
  background: linear-gradient(135deg, #e6a861 0%, #cd7f32 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

.leaderboard-user {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.leaderboard-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.leaderboard-points {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.leaderboard-points span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================
   FORMS - Premium Style
   ======================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* ========================================
   PAGE SECTIONS
   ======================================== */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 16px;
}

.section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--gold-primary);
  font-size: 22px;
}

/* ========================================
   GRID
   ======================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   QUIZ CARD - Premium
   ======================================== */
.quiz-card {
  position: relative;
  overflow: hidden;
}

.quiz-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.quiz-card:hover::after {
  opacity: 1;
}

.quiz-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.badge-live {
  background: var(--error);
  color: #fff;
  animation: pulse 2s infinite;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-live i {
  font-size: 8px;
  animation: blink 1s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 20px;
  background: var(--gold-gradient-soft);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-primary);
  margin-bottom: 10px;
  font-size: 22px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ========================================
   AUTH PAGES - Premium
   ======================================== */
.auth-container {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 48px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.auth-footer {
  text-align: center;
  margin-top: 28px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--gold-primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

.badge-gold {
  background: var(--gold-gradient);
  color: #000;
}

.badge-success {
  background: rgba(0, 217, 126, 0.15);
  color: var(--success);
  border: 1px solid rgba(0, 217, 126, 0.3);
}

.badge-info {
  background: rgba(13, 202, 240, 0.15);
  color: var(--info);
  border: 1px solid rgba(13, 202, 240, 0.3);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ========================================
   UTILITIES
   ======================================== */
.text-gold {
  color: var(--gold-primary);
}
.text-success {
  color: var(--success);
}
.text-muted {
  color: var(--text-muted);
}
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 8px;
}
.mb-2 {
  margin-bottom: 16px;
}
.mb-3 {
  margin-bottom: 24px;
}
.mb-4 {
  margin-bottom: 32px;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mt-4 {
  margin-top: 32px;
}

.d-flex {
  display: flex;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 8px;
}
.gap-2 {
  gap: 16px;
}
.gap-3 {
  gap: 24px;
}

.w-100 {
  width: 100%;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    width: 280px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 28px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .stat-content h3 {
    font-size: 26px;
  }
}
/* ========================================
   NOTIFICATION SWITCH
   ======================================== */
.sidebar-notification {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.notification-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-toggle i {
  font-size: 16px;
  color: var(--gold-secondary);
}

/* Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background: var(--gold-gradient-soft);
  border-color: var(--gold-primary);
}

input:checked + .slider:before {
  transform: translateX(16px);
  background: var(--gold-primary);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}
/* ========================================
   GLOBAL PREMIUM BUTTONS & UTILITIES
   ======================================== */

.btn-action {
  position: relative;
  background: var(--gold-gradient);
  color: #000 !important;
  padding: 10px 24px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12.5px;
  border: 1px solid var(--gold-primary);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.15);
}

.btn-action::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--gold-primary);
  z-index: -1;
  border-radius: 10px;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 215, 0, 0.25);
}

.btn-action:hover::before {
  opacity: 0.5;
}

.btn-action i {
  position: relative;
  z-index: 5;
  color: #000 !important;
  font-size: 14px;
  pointer-events: none;
  transition: transform var(--transition-fast);
}

/* Margin Utilities */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }


/* ========================================
   PREMIUM FOOTER REDESIGN
   ======================================== */
.main-footer {
    margin-top: 100px;
    padding: 80px 40px 40px;
    background: linear-gradient(180deg, rgba(10, 10, 18, 0) 0%, rgba(10, 10, 18, 0.8) 100%);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.main-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.2;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 80px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo .logo-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold-gradient);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--gold-primary); /* Gold links as requested */
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.footer-links a::before {
    content: '→';
    font-size: 12px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-light);
    transform: translateX(10px);
    opacity: 1;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 20px;
    transition: all var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gold-gradient);
    color: #000;
    transform: translateY(-5px) rotate(8deg);
    box-shadow: var(--gold-glow);
    border-color: var(--gold-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 217, 126, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(0, 217, 126, 0.1);
    color: var(--green-primary);
    font-weight: 600;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 20px 30px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* Legal Pages Styling */
.legal-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 80px;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
}

.legal-title {
    font-size: 56px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.legal-content h2 {
    color: var(--gold-primary);
    font-size: 28px;
    margin: 50px 0 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.legal-content h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--gold-gradient);
    border-radius: 10px;
}
