/* ===============================================
   КОЛЕСО ФОРТУНЫ - slattVPN 
   Дизайн по референсу с современными 3D эффектами
   =============================================== */

/* ИСПРАВЛЕНО: Убран блокирующий Google Fonts для лучшей производительности */

:root {
  /* Цвета - только зеленая палитра */
  --bg-primary: linear-gradient(135deg, #0a1a0a 0%, #0d2818 50%, #0f3d2a 100%);
  --bg-secondary: #0e2e1e;
  --text-primary: #ffffff;
  --text-secondary: #a0b8a6;
  --accent-green-light: #00ff88;
  --accent-green-main: #10b981;
  --accent-green-dark: #047857;
  --accent-green-bright: #34d399;
  --accent-green-neon: #00ff7f;
  --accent-green-forest: #16a085;
  --accent-green-mint: #2dd4bf;
  --accent-green-lime: #84cc16;
  
  /* 3D эффекты */
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.3);
  --shadow-wheel: inset 0 0 60px rgba(0, 0, 0, 0.3), 0 0 100px rgba(16, 185, 129, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ===============================================
   БЕТА НАДПИСЬ (НЕЗАМЕТНАЯ)
   =============================================== */

.beta-label {
  position: fixed;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  color: rgba(160, 184, 166, 0.3);
  font-weight: 300;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===============================================
   КОНТЕЙНЕР ПРИЛОЖЕНИЯ
   =============================================== */

.app-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  background: var(--bg-primary);
}

/* ===============================================
   ЗАГОЛОВОК
   =============================================== */

.header {
  text-align: center;
  margin-bottom: 30px;
  z-index: 10;
}

.title {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.subtitle {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-secondary);
  font-weight: 500;
  opacity: 0.9;
}

/* ===============================================
   СТАТУС КАРТОЧКА
   =============================================== */

.status-container {
  margin-bottom: 25px;
  text-align: center;
}

.status-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, rgba(52, 211, 153, 0.1) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  position: relative;
  overflow: hidden;
}

.status-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 2s ease;
}

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

.status-icon {
  font-size: 28px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.status-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 500;
}

/* ===============================================
   КОЛЕСО ФОРТУНЫ (ПО РЕФЕРЕНСУ)
   =============================================== */

.wheel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.wheel-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  margin-bottom: 35px;
  filter: drop-shadow(var(--shadow-xl));
  
  /* Красивая анимация при ховере */
  transition: all 0.3s ease;
}

.wheel-wrapper:hover {
  transform: scale(1.02);
  filter: drop-shadow(var(--shadow-xl)) drop-shadow(0 0 40px rgba(16, 185, 129, 0.4));
}

/* Декоративные элементы вокруг колеса */
.wheel-wrapper::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #10b981, #34d399, #6ee7b7, #34d399, #10b981);
  z-index: -1;
  animation: decorativeRotate 20s linear infinite;
  opacity: 0.3;
}

@keyframes decorativeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow-wheel);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#wheel-canvas:hover {
  transform: scale(1.02);
  box-shadow: 
    inset 0 0 60px rgba(0, 0, 0, 0.3), 
    0 0 120px rgba(16, 185, 129, 0.4),
    0 0 200px rgba(0, 255, 136, 0.2);
}

/* Внешний градиентный ободок */
.wheel-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #10b981, #00ff88, #34d399, #2dd4bf, #10b981);
  z-index: -1;
  animation: rotate 10s linear infinite;
}

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

/* УКАЗАТЕЛЬ КОЛЕСА СПРАВА (как в логике кода) */
.wheel-pointer {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #ffffff;
  z-index: 10;
  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5));
  
  /* 3D эффект и анимация */
  animation: pointerPulse 2s ease-in-out infinite;
}

.wheel-pointer::after {
  content: '';
  position: absolute;
  top: -36px;
  left: -18px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 36px solid #10b981;
  z-index: -1;
  transform: translateY(4px);
}

.wheel-pointer::before {
  content: '';
  position: absolute;
  top: -32px;
  left: -14px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #34d399;
  z-index: -2;
  transform: translateY(2px);
}

@keyframes pointerPulse {
  0%, 100% { 
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
  }
  50% { 
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 25px rgba(16, 185, 129, 0.8));
  }
}

/* ===============================================
   ЦЕНТРАЛЬНАЯ ОБЛАСТЬ КОЛЕСА
   =============================================== */

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #1e3a2e 0%, #0d1f14 60%, #1e3a2e 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(16, 185, 129, 0.4),
    0 0 100px rgba(16, 185, 129, 0.2);
  border: 4px solid #10b981;
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Красивый внутренний эффект */
  position: relative;
  overflow: hidden;
}

.wheel-center::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  animation: centerRotate 3s linear infinite;
  z-index: -1;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.7),
    0 0 70px rgba(16, 185, 129, 0.6),
    0 0 150px rgba(16, 185, 129, 0.3);
}

@keyframes centerRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.center-icon {
  font-size: 28px;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.8));
}

.center-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===============================================
   КНОПКИ (ПО РЕФЕРЕНСУ)
   =============================================== */

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #00ff88 100%);
  color: #ffffff;
  box-shadow: 
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 50px rgba(16, 185, 129, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 30px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 
    0 10px 25px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: linear-gradient(145deg, rgba(14, 46, 30, 0.8) 0%, rgba(13, 40, 24, 0.8) 100%);
  color: var(--text-secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: linear-gradient(145deg, rgba(14, 46, 30, 0.9) 0%, rgba(13, 40, 24, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===============================================
   МОДАЛЬНОЕ ОКНО РЕЗУЛЬТАТА
   =============================================== */

.result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 26, 10, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
}

.result-content {
  background: linear-gradient(145deg, rgba(14, 46, 30, 0.95) 0%, rgba(13, 40, 24, 0.95) 100%);
  backdrop-filter: blur(30px);
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  max-width: 380px;
  margin: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.result-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.result-icon {
  font-size: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
  animation: resultIconBounce 0.6s ease-out;
}

@keyframes resultIconBounce {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.2) rotate(-90deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  font-weight: 500;
}

/* ===============================================
   КНОПКА ЗВУКА
   =============================================== */

.sound-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.2) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sound-toggle:hover {
  transform: scale(1.1);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.3) 0%, rgba(52, 211, 153, 0.3) 100%);
  box-shadow: 
    0 15px 40px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===============================================
   КОНФЕТТИ
   =============================================== */

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ===============================================
   АНИМАЦИИ КОЛЕСА
   =============================================== */

.wheel-spinning {
  animation: spinWheel 3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes spinWheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1800deg);
  }
}

.glow-effect {
  box-shadow: 
    inset 0 0 60px rgba(0, 0, 0, 0.3), 
    0 0 120px rgba(16, 185, 129, 0.9),
    0 0 200px rgba(0, 255, 136, 0.7),
    0 0 300px rgba(16, 185, 129, 0.4) !important;
  
  animation: pulseGlow 0.6s ease-in-out infinite alternate, spinningGlow 2s linear infinite;
}

@keyframes pulseGlow {
  from {
    filter: brightness(1) saturate(1) drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
  }
  to {
    filter: brightness(1.3) saturate(1.5) drop-shadow(0 0 40px rgba(16, 185, 129, 0.8));
  }
}

@keyframes spinningGlow {
  0% { 
    box-shadow: 
      inset 0 0 60px rgba(0, 0, 0, 0.3), 
      0 0 120px rgba(16, 185, 129, 0.9),
      0 0 200px rgba(0, 255, 136, 0.7),
      0 0 300px rgba(16, 185, 129, 0.4);
  }
  50% { 
    box-shadow: 
      inset 0 0 60px rgba(0, 0, 0, 0.3), 
      0 0 140px rgba(34, 197, 94, 1),
      0 0 220px rgba(52, 211, 153, 0.8),
      0 0 320px rgba(16, 185, 129, 0.5);
  }
  100% { 
    box-shadow: 
      inset 0 0 60px rgba(0, 0, 0, 0.3), 
      0 0 120px rgba(16, 185, 129, 0.9),
      0 0 200px rgba(0, 255, 136, 0.7),
      0 0 300px rgba(16, 185, 129, 0.4);
  }
}

/* ===============================================
   АДАПТИВНОСТЬ
   =============================================== */

@media (max-width: 480px) {
  .app-container {
    padding: 12px;
  }
  
  .wheel-wrapper {
    width: 320px;
    height: 320px;
    margin-bottom: 25px;
  }
  
  .wheel-wrapper::before {
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
  }
  
  .wheel-pointer {
    right: -16px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #ffffff;
  }
  
  .wheel-pointer::after {
    top: -28px;
    left: -14px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 28px solid #10b981;
    transform: translateY(3px);
  }
  
  .wheel-pointer::before {
    top: -25px;
    left: -11px;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 22px solid #34d399;
    transform: translateY(1px);
  }
  
  .wheel-center {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(16, 185, 129, 0.5);
  }
  
  .center-icon {
    font-size: 24px;
    margin-bottom: 4px;
  }
  
  .center-text {
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  
  .controls {
    max-width: 320px;
    gap: 12px;
  }
  
  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .result-content {
    padding: 32px 24px;
    margin: 16px;
  }
  
  .result-icon {
    font-size: 70px;
  }
  
  .result-title {
    font-size: 24px;
  }
  
  .sound-toggle {
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .beta-label {
    font-size: 9px;
    bottom: 6px;
    right: 6px;
  }
}

@media (max-width: 360px) {
  .wheel-wrapper {
    width: 280px;
    height: 280px;
  }
  
  .wheel-center {
    width: 85px;
    height: 85px;
  }
  
  .center-icon {
    font-size: 20px;
  }
  
  .center-text {
    font-size: 9px;
  }
  
  .controls {
    max-width: 280px;
  }
}

@media (max-height: 700px) {
  .header {
    margin-bottom: 20px;
  }
  
  .wheel-wrapper {
    margin-bottom: 20px;
  }
  
  .status-container {
    margin-bottom: 15px;
  }
}

/* ===============================================
   УТИЛИТАРНЫЕ КЛАССЫ
   =============================================== */

.hidden {
  display: none !important;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ===============================================
   АНИМАЦИЯ ЗАГРУЗКИ
   =============================================== */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 185, 129, 0.2);
  border-top: 3px solid #10b981;
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===============================================
   ПАНЕЛЬ ИНФОРМАЦИИ О ПОЛЬЗОВАТЕЛЕ
   =============================================== */

.user-info-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(14, 46, 30, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent-green-main);
  padding: 10px 20px;
  z-index: 1000;
  font-size: 14px;
  transition: all 0.3s ease;
  max-height: 60px;
  overflow: hidden;
}

.user-info-panel.expanded {
  max-height: 300px;
  padding: 15px 20px;
}

.user-header-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.user-basic-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.expand-arrow {
  color: var(--accent-green-bright);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.user-info-panel.expanded .expand-arrow {
  transform: rotate(180deg);
}

.user-details-expandable {
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-info-panel.expanded .user-details-expandable {
  opacity: 1;
}

.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

.user-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.user-status:contains("VIP") {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
}

.user-status:contains("Базовый") {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green-main);
  color: var(--accent-green-bright);
}

.spin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 12px;
}

.stat-value {
  color: var(--text-primary);
  font-weight: 600;
}

.stat-value.promo {
  color: var(--accent-green-bright);
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.active-prizes {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.prizes-header {
  color: var(--accent-green-bright);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 13px;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}

.prize-label {
  color: var(--text-primary);
  font-weight: 500;
}

.prize-expires {
  color: var(--text-secondary);
  font-size: 11px;
}

/* ===============================================
   МОДАЛЬНЫЕ ОКНА
   =============================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #0e2e1e 0%, #1a3a2a 100%);
  border: 2px solid var(--accent-green-main);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.modal-message {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--text-secondary);
  white-space: pre-line;
}

.modal-button {
  background: linear-gradient(45deg, var(--accent-green-main), var(--accent-green-bright));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.error .modal-content {
  border-color: #ef4444;
}

.modal-overlay.error .modal-header {
  color: #ef4444;
}

/* Стили для модального окна конфликта промокодов */
.modal-overlay.conflict .modal-content {
  max-width: 450px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 2px solid var(--accent-green-main);
  text-align: left;
}

.modal-body {
  margin: 15px 0;
}

.modal-body p {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.promo-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.promo-option.existing-promo {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
}

.promo-option.new-prize {
  border-color: var(--accent-green-main);
  background: rgba(0, 255, 0, 0.1);
}

.promo-icon {
  font-size: 32px;
  margin-right: 15px;
  min-width: 50px;
  text-align: center;
}

.promo-details {
  flex: 1;
}

.promo-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-code {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-family: 'Courier New', monospace;
}

.promo-value {
  font-size: 14px;
  color: var(--accent-green-bright);
  font-weight: bold;
}

.vs-divider {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-secondary);
  margin: 20px 0;
  position: relative;
}

.vs-divider::before,
.vs-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.vs-divider::before {
  left: 0;
}

.vs-divider::after {
  right: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
}

.modal-actions .modal-button {
  padding: 15px 20px;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.modal-actions .keep-existing {
  background: linear-gradient(45deg, #FFD700, #FFA500);
  color: #000;
  border: 2px solid #FFD700;
}

.modal-actions .keep-existing:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.modal-actions .choose-new {
  background: linear-gradient(45deg, var(--accent-green-main), var(--accent-green-bright));
  color: #fff;
  border: 2px solid var(--accent-green-main);
}

.modal-actions .choose-new:hover {
  background: linear-gradient(45deg, var(--accent-green-bright), var(--accent-green-main));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 128, 0.4);
}

/* ===============================================
   АДАПТАЦИЯ ДЛЯ ПАНЕЛИ ПОЛЬЗОВАТЕЛЯ
   =============================================== */

body {
  padding-top: 120px; /* Отступ для панели пользователя */
}

@media (max-width: 600px) {
  .user-info-panel {
    padding: 10px 15px;
  }
  
  .spin-stats {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  body {
    padding-top: 140px;
  }
} 