/* ====================== ОСНОВНЫЕ СТИЛИ ====================== */
body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #2a2a4e);
  color: #ffffff;
  overflow-x: hidden;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 2.8em;
  background: linear-gradient(90deg, #00ffcc, #ff00cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  margin: 30px 0 15px;
  text-align: center;
}

/* Управляющие элементы */
.telegram-icon, .animation-toggle {
  position: absolute;
  top: 20px;
  width: 30px;
  height: 30px;
  padding: 5px;
  transition: transform 0.2s;
  z-index: 10;
}
.telegram-icon { right: 20px; }
.animation-toggle { left: 20px; }

.telegram-icon svg, .animation-toggle svg { 
  fill: #00ffcc; 
  width: 100%; 
  height: 100%; 
}
.telegram-icon:active, .animation-toggle:active { 
  transform: scale(0.95); 
}

.lang-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0 auto 25px auto;
  padding: 10px 0;
  flex-wrap: wrap;
}

#current-lang-display { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: #b0b0ff; 
}

#lang-toggle-btn {
  width: 32px;
  height: 32px;
  padding: 4px;
  background: rgba(0,255,204,0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

#lang-toggle-btn:hover {
  background: rgba(0,255,204,0.3);
  transform: scale(1.1);
}

/* ====================== ЗАДАНИЯ (DAILY / WEEKLY) ====================== */
.daily-weekly {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 35px 0 40px 0;
}

@media (min-width: 768px) {
  .daily-weekly { grid-template-columns: 1fr 1fr; }
}

.daily-card, .weekly-card {
  background: rgba(30, 30, 47, 0.95);
  border: 2px solid #00ffcc44;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.daily-card:hover, .weekly-card:hover {
  border-color: #ff00cc;
  box-shadow: 0 0 25px rgba(255,0,204,0.4);
  transform: translateY(-5px);
}

.task-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 12px;
}

.task-title {
  font-size: 1.35em;
  color: #00ffcc;
  margin-bottom: 10px;
}

.miner-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex: 1;
}

.miner-info img {
  width: 75px;
  height: 75px;
  filter: drop-shadow(0 0 12px #00ffcc);
}

.progress-bar {
  height: 10px;
  background: #333;
  border-radius: 5px;
  margin: 12px 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffcc, #00ccff);
  transition: width 0.6s ease;
}

.timer {
  font-size: 0.95em;
  color: #ffcc00;
  margin-top: 10px;
  font-weight: 500;
}

/* ====================== МАЙНЕРЫ ====================== */
.shelf {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #00ffcc #1e1e2f;
  min-height: 280px;
  align-items: center;
}

.shelf::-webkit-scrollbar { height: 8px; }
.shelf::-webkit-scrollbar-thumb { background: #00ffcc; border-radius: 10px; }

.miner-card {
  flex: 0 0 180px;
  height: 280px;
  background: rgba(30, 30, 47, 0.9);
  border: 2px solid #00ffcc44;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0,255,204,0.3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.miner-card:hover {
  transform: translateY(-10px);
  border-color: #ff00cc;
  box-shadow: 0 0 30px rgba(255,0,204,0.5);
}

.miner-svg {
  width: 110px;
  height: 110px;
  margin: 0 auto 12px;
  filter: drop-shadow(0 0 12px #00ffcc);
}

.miner-name {
  font-size: 1.1em;
  color: #00ffcc;
  margin: 8px 0 4px;
}

.miner-stat {
  font-size: 0.9em;
  color: #b0b0ff;
  margin-bottom: 12px;
}

.upgrade-btn {
  margin-top: auto;
  padding: 10px 14px;
  background: linear-gradient(90deg, #00ffcc, #00ccaa);
  color: #0d1117;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.upgrade-btn:hover {
  background: linear-gradient(90deg, #00ccaa, #00ffcc);
  transform: translateY(-2px);
}

.empty-shelf {
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  color: #8b949e;
  font-size: 1.4em;
  background: rgba(30,30,47,0.5);
  border-radius: 12px;
  border: 1px dashed #00ffcc44;
}

/* ====================== СТАТИСТИКА ====================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,255,204,0.2);
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 0 8px #00ffcc);
}

.stat-value {
  font-size: 1.8em;
  color: #00ffcc;
  margin: 10px 0;
  font-weight: bold;
}

.stat-label {
  font-size: 1.1em;
  color: #b0b0ff;
}

/* ====================== БУСТЕРЫ ====================== */
.boosters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 25px 0 40px;
}

.booster-card {
  background: rgba(22, 27, 34, 0.8);
  border: 2px solid #30363d;
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.booster-card.locked { opacity: 0.6; filter: grayscale(80%); }
.booster-card.unlocked { border-color: #00ffcc; box-shadow: 0 0 15px rgba(0,255,204,0.3); }
.booster-card.active { 
  border-color: #ffcc00; 
  background: rgba(255,204,0,0.08); 
  box-shadow: 0 0 20px rgba(255,204,0,0.4); 
}

.booster-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.booster-card:hover img { transform: scale(1.08); }

.activate-booster-btn {
  background: linear-gradient(90deg, #00ffcc, #00ccaa);
  color: #0d1117;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
}

.activate-booster-btn:hover {
  background: linear-gradient(90deg, #00ccaa, #00ffcc);
  transform: translateY(-2px);
}

/* ====================== БЛИЖАЙШАЯ НАГРАДА ====================== */
.nearest-reward-section {
  margin: 30px 0 20px;
  text-align: center;
}

.nearest-card {
  background: rgba(0, 255, 204, 0.08);
  border: 2px solid #00ffcc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 15px;
}

.show-all-btn { 
  background: #238636; 
  color: white; 
  border: none; 
  padding: 12px 24px; 
  border-radius: 10px; 
  font-size: 1.05em; 
  cursor: pointer; 
  margin-top: 10px;
  transition: all 0.2s;
}

.show-all-btn:hover {
  background: #2ea043;
  transform: translateY(-2px);
}

/* ====================== НИЖНЯЯ ЧАСТЬ (ВЫВОД + ДИСКЛЕЙМЕР) ====================== */
.progress-section, 
.withdraw-section, 
.disclaimer-section {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

.progress-item {
  font-size: 1.3em;
  margin: 15px 0;
  color: #00ffcc;
}

.withdraw-section p {
  margin: 12px 0;
  line-height: 1.5;
}

.disclaimer-section {
  font-size: 0.95em;
  color: #b0b0ff;
  text-align: left;
}

.disclaimer-item {
  margin: 15px 0;
  line-height: 1.5;
}

.disclaimer-section a {
  color: #00ffcc;
  text-decoration: underline;
}

.disclaimer-section a:hover {
  color: #ff00cc;
}

footer {
  text-align: center;
  padding: 40px 20px 20px;
  color: #8b949e;
  font-size: 0.9em;
  border-top: 1px solid #30363d;
  margin-top: 60px;
}

/* ====================== ЯЗЫКОВОЙ МОДАЛ ====================== */
#language-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

#language-modal.show { display: flex; }

.modal-content {
  background: rgba(30,30,47,0.98);
  border-radius: 16px;
  padding: 25px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0,255,204,0.5);
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  color: #00ffcc;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #ff00cc;
  transform: rotate(90deg) scale(1.15);
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(0,255,204,0.08);
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  text-decoration: none;
}

.lang-option:hover {
  background: rgba(0,255,204,0.25);
  transform: translateX(4px);
}

.lang-option img {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #555;
}

/* ====================== АДАПТИВНОСТЬ ====================== */
@media (max-width: 768px) {
  .boosters-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  .booster-card img { width: 68px; height: 68px; }
  h1 { font-size: 2.3em; }
}

@media (max-width: 480px) {
  .container {
    margin: 15px 8px;
    padding: 15px;
  }
  .miner-card { flex: 0 0 160px; height: 265px; }
}

/* ====================== КНОПКА НА ГЛАВНЫЙ МАЙНИНГ ====================== */
.main-mining-link {
  text-align: center;
  margin: 20px 0 30px 0;
}

.btn-main-mining {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #00ffcc, #00ccff);
  color: #0d1117;
  font-weight: 700;
  font-size: 1.15em;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.5);
  transition: all 0.3s ease;
  border: none;
}

.btn-main-mining:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.7);
  background: linear-gradient(90deg, #00ccff, #00ffcc);
}

.btn-main-mining:active {
  transform: scale(0.97);
}

.mine-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0.95);
}

/* Адаптив */
@media (max-width: 480px) {
  .btn-main-mining {
    font-size: 1.05em;
    padding: 12px 24px;
    gap: 10px;
  }
  
  .mine-icon {
    width: 24px;
    height: 24px;
  }
}

/* ====================== УВЕДОМЛЕНИЯ ====================== */
.notification-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

.notification-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid #00ffcc;
  color: #00ffcc;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notification-btn:hover {
  background: rgba(0, 255, 204, 0.15);
  transform: scale(1.08);
}

.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff0066;
  border-radius: 50%;
  border: 2px solid #0d1117;
  display: none;
  box-shadow: 0 0 8px #ff0066;
}

.notification-panel {
  display: none;
  position: absolute;
  top: 58px;
  right: 0;
  width: 340px;
  background: #161b22;
  border: 2px solid #00ffcc;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
  z-index: 1000;
  max-height: 420px;
  overflow: hidden;
}

.notification-header {
  padding: 14px 16px;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d1117;
}

.notification-header h3 {
  margin: 0;
  color: #00ffcc;
  font-size: 1.1em;
}

.mark-all-read-btn {
  background: transparent;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
}

.mark-all-read-btn:hover {
  background: rgba(0, 255, 204, 0.1);
}

.notification-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 8px 0;
}

.notification-item {
  padding: 12px 16px;
  border-bottom: 1px solid #21262d;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #1f252e;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.notification-message {
  color: #8b949e;
  font-size: 0.95em;
  line-height: 1.4;
}

.notification-time {
  font-size: 0.8em;
  color: #6e7681;
  margin-top: 6px;
}

.no-notifications {
  padding: 40px 20px;
  text-align: center;
  color: #8b949e;
  font-style: italic;
}

/* Адаптив */
@media (max-width: 520px) {
  .notification-panel {
    width: 300px;
    right: -10px;
  }
}