/* ===== APP-SPECIFIC STYLES ===== */
/* Extends the main website design system for the dashboard app */
/* Consistent with landing page gaming aesthetic */

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 80%, rgba(50, 205, 50, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(50, 205, 50, 0.03) 0%, transparent 70%),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0a0a0a 100%);
  position: relative;
  overflow-x: hidden;
}

/* Animated background orbs */
.app::before,
.app::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.app::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(50, 205, 50, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: orbFloat 20s ease-in-out infinite;
}

.app::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  animation: orbFloat 15s ease-in-out infinite reverse;
}

/* ===== SIDEBAR ===== */
.app__sidebar {
  width: 260px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(50, 205, 50, 0.2);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: var(--z-fixed);
  transition: transform var(--transition-normal);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.app__main {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-8);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ===== SIDEBAR BRAND ===== */
.sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.sidebar__logo {
  height: 45px;
  width: auto;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.sidebar__logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar__nav {
  flex: 1;
}

.sidebar__menu {
  list-style: none;
}

.sidebar__item {
  margin-bottom: var(--space-2);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  font-weight: var(--fw-medium);
  position: relative;
  overflow: hidden;
}

.sidebar__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.1), transparent);
  transition: var(--transition-normal);
}

.sidebar__link:hover {
  background: rgba(50, 205, 50, 0.15);
  color: var(--primary-color);
  transform: translateX(4px);
}

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

.sidebar__link.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.sidebar__link i {
  font-size: var(--fs-lg);
  width: 24px;
  text-align: center;
}

.sidebar__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: var(--space-4) 0;
}

/* ===== SIDEBAR USER ===== */
.sidebar__user {
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar__user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(50, 205, 50, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(50, 205, 50, 0.1);
}

.sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: var(--fw-bold);
  box-shadow: 0 0 15px rgba(50, 205, 50, 0.3);
}

.sidebar__username {
  color: var(--text-white);
  font-weight: var(--fw-medium);
}

.sidebar__points {
  color: var(--primary-color);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
}

.page-header__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header__subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.stat-card {
  background: rgba(10, 10, 26, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 205, 50, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(50, 205, 50, 0.1);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.stat-card__icon--secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.stat-card__icon--dark {
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.stat-card__value {
  font-family: var(--font-secondary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-1);
}

.stat-card__label {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card__change {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  margin-top: var(--space-2);
}

.stat-card__change--positive {
  color: var(--success-color);
}

.stat-card__change--negative {
  color: var(--error-color);
}

/* ===== CONTENT CARDS ===== */
.content-card {
  background: rgba(10, 10, 26, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid rgba(255, 215, 0, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-6);
}

.content-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-white);
}

/* ===== ACTION CARDS ===== */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.action-card {
  background: rgba(10, 10, 26, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.action-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(50, 205, 50, 0.15);
  background: rgba(50, 205, 50, 0.05);
}

.action-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 25px rgba(50, 205, 50, 0.3);
  transition: var(--transition-normal);
}

.action-card:hover .action-card__icon {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(50, 205, 50, 0.5);
}

.action-card__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  margin-bottom: var(--space-2);
}

.action-card__description {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

/* ===== TABLES ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  color: rgba(255, 255, 255, 0.9);
}

.data-table tr:hover td {
  background: rgba(50, 205, 50, 0.05);
}

.data-table strong {
  color: var(--primary-color);
}

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--success {
  background: rgba(76, 175, 80, 0.2);
  color: var(--success-color);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.badge--warning {
  background: rgba(255, 152, 0, 0.2);
  color: var(--warning-color);
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge--error {
  background: rgba(244, 67, 54, 0.2);
  color: var(--error-color);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.badge--pending {
  background: rgba(50, 205, 50, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(50, 205, 50, 0.3);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-base);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 26, 0.5);
  color: var(--text-white);
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(50, 205, 50, 0.2), 0 0 20px rgba(50, 205, 50, 0.1);
  background: rgba(10, 10, 26, 0.7);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-helper {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-2);
}

.form-error {
  font-size: var(--fs-sm);
  color: var(--error-color);
  margin-top: var(--space-2);
}

/* ===== GAME INTERFACE ===== */
.game-container {
  max-width: 800px;
  margin: 0 auto;
}

.game-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: rgba(50, 205, 50, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(50, 205, 50, 0.2);
}

.game-progress__bar {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.game-progress__fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
  box-shadow: 0 0 10px rgba(50, 205, 50, 0.5);
}

.game-progress__text {
  font-family: var(--font-secondary);
  font-weight: var(--fw-semibold);
  color: var(--primary-color);
  white-space: nowrap;
}

.game-question {
  background: rgba(10, 10, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: var(--space-6);
}

.game-question__number {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--text-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.3);
}

.game-question__text {
  font-family: var(--font-secondary);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  line-height: 1.4;
}

.game-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-6);
  background: rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-full);
  display: inline-flex;
}

.game-timer__value {
  font-family: var(--font-secondary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.game-timer--warning .game-timer__value {
  color: var(--warning-color);
  text-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
  animation: timerPulse 1s ease-in-out infinite;
}

.game-timer--danger .game-timer__value {
  color: var(--error-color);
  text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
  animation: timerPulse 0.5s ease-in-out infinite;
}

.game-options {
  display: grid;
  gap: var(--space-4);
}

.game-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 10, 26, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
}

.game-option:hover {
  border-color: var(--primary-color);
  background: rgba(50, 205, 50, 0.1);
  transform: translateX(8px);
}

.game-option--selected {
  border-color: var(--primary-color);
  background: rgba(50, 205, 50, 0.15);
  box-shadow: 0 0 25px rgba(50, 205, 50, 0.3);
}

.game-option--correct {
  border-color: var(--success-color);
  background: rgba(76, 175, 80, 0.15);
  animation: correctPulse 0.5s ease;
}

.game-option--incorrect {
  border-color: var(--error-color);
  background: rgba(244, 67, 54, 0.15);
  animation: shake 0.5s ease;
}

.game-option__letter {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-secondary);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.game-option--selected .game-option__letter {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.game-option__text {
  flex: 1;
  font-size: var(--fs-lg);
  color: var(--text-white);
}

.game-result {
  text-align: center;
  padding: var(--space-12);
}

.game-result__icon {
  font-size: 80px;
  margin-bottom: var(--space-6);
  animation: achievementGlow 2s ease-in-out infinite;
}

.game-result__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-4);
}

.game-result--success .game-result__title {
  color: var(--success-color);
  text-shadow: 0 0 30px rgba(76, 175, 80, 0.5);
}

.game-result--complete .game-result__title {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-result__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.game-result__stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(50, 205, 50, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(50, 205, 50, 0.2);
}

.game-result__stat-value {
  font-family: var(--font-secondary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.game-result__stat-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* ===== REFERRAL SECTION ===== */
.referral-code-box {
  background: rgba(50, 205, 50, 0.05);
  border: 2px dashed rgba(50, 205, 50, 0.3);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  margin-bottom: var(--space-6);
}

.referral-code-box__label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.referral-code-box__code {
  font-family: var(--font-secondary);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  text-shadow: none;
}

.referral-code-box__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.referral-stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(50, 205, 50, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(50, 205, 50, 0.1);
}

.referral-stat__value {
  font-family: var(--font-secondary);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.referral-stat__label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* ===== LOADING STATES ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
}

.loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(50, 205, 50, 0.2);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

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

/* Skeleton loading already defined in main styles.css */

/* ===== ALERTS ===== */
.alert {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.alert--success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: var(--success-color);
}

.alert--error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: var(--error-color);
}

.alert--warning {
  background: rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 152, 0, 0.3);
  color: var(--warning-color);
}

.alert--info {
  background: rgba(50, 205, 50, 0.15);
  border: 1px solid rgba(50, 205, 50, 0.3);
  color: var(--primary-color);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-normal);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.modal__title {
  font-family: var(--font-secondary);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-white);
}

.modal__close {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-normal);
  background: transparent;
  border: none;
  cursor: pointer;
}

.modal__close:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--primary-color);
}

/* ===== MOBILE SIDEBAR ===== */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: var(--fs-xl);
  box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4);
  z-index: var(--z-fixed);
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(50, 205, 50, 0.6);
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-card + .content-card,
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 768px) {
  .app__sidebar {
    transform: translateX(-100%);
  }

  .app__sidebar.open {
    transform: translateX(0);
  }

  .app__main {
    margin-left: 0;
    padding: var(--space-4);
  }

  .sidebar-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .page-header__title {
    font-size: var(--fs-2xl);
  }

  .game-question {
    padding: var(--space-6);
  }

  .game-question__text {
    font-size: var(--fs-xl);
  }

  .referral-stats {
    grid-template-columns: 1fr;
  }

  .game-result__stats {
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Hide background orbs on mobile for performance */
  .app::before,
  .app::after {
    display: none;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-brand);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-green {
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.3);
}

.glow-gold {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
