/* Tokens Modal Styles - Matching site design */

.tokens-modal-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tokens-modal-modern.show {
  opacity: 1;
}

.tokens-modal-content {
  background: linear-gradient(135deg, #161616, #1a1a1a);
  border: 2px solid #2a2a2a;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.tokens-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.tokens-modal-title {
  color: white;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.tokens-modal-title i {
  color: #ffd700;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #333;
  color: #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 0, 110, 0.2);
  border-color: #ff006e;
  color: #ff006e;
}

.tokens-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.token-stat-card {
  background: linear-gradient(135deg, #2a2a2a, #333);
  border: 1px solid #3a3a3a;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.token-stat-card:hover {
  transform: translateY(-2px);
  border-color: #ff006e;
  box-shadow: 0 5px 20px rgba(255, 0, 110, 0.2);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.stat-icon.balance { color: #ffd700; }
.stat-icon.spent { color: #ff4444; }
.stat-icon.earned { color: #00ff88; }
.stat-icon.premium { color: #ff006e; }

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.low-tokens-warning {
  background: linear-gradient(135deg, #ff4444, #cc3333);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.warning-icon {
  color: white;
  font-size: 24px;
}

.warning-content {
  flex: 1;
}

.warning-title {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.warning-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.4;
}

.buy-tokens-btn {
  background: linear-gradient(135deg, #ff006e, #ff4500);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.buy-tokens-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 0, 110, 0.3);
}

.token-progress-section {
  margin-bottom: 25px;
}

.history-title {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-title i {
  color: #ff006e;
}

.token-progress-bar {
  width: 100%;
  height: 10px;
  background: #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.token-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff006e, #ff4500);
  border-radius: 5px;
  transition: width 0.3s ease;
}

.tokens-history {
  margin-bottom: 25px;
}

.history-list {
  max-height: 200px;
  overflow-y: auto;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

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

.history-info {
  flex: 1;
}

.history-action {
  color: white;
  font-size: 14px;
  margin-bottom: 4px;
}

.history-time {
  color: #666;
  font-size: 12px;
}

.history-amount {
  font-size: 16px;
  font-weight: bold;
}

.history-amount.positive {
  color: #00ff88;
}

.history-amount.negative {
  color: #ff4444;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tokens-modal-content {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }
  
  .tokens-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .token-stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 20px;
  }
}