/* Стили для профиля */

.full-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  margin-top: 15px;
}

.full-history-table th, 
.full-history-table td {
  padding: 4px 2px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.full-history-table th {
  background: var(--border-color);
  font-weight: bold;
}

.history-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-button {
  background: var(--border-color);
  color: var(--text-color);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background: var(--accent-color);
  color: white;
}

.filter-button.active {
  background: var(--accent-color);
  color: white;
}

/* Адаптивность для профиля */
@media (max-width: 480px) {
  .full-history-table {
    font-size: 10px;
  }
  
  .full-history-table th, 
  .full-history-table td {
    padding: 2px 1px;
  }
  
  .history-filters {
    gap: 5px;
  }
  
  .filter-button {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* Стили для реферальной системы */
.referral-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.referral-section h3 {
  margin: 0 0 20px 0;
  color: var(--accent-color);
  font-size: 18px;
}

.referral-section h4 {
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
}

.referral-code-section,
.referral-input-section,
.referrals-section,
.rewards-section {
  margin-bottom: 25px;
}

.code-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.referral-code {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: bold;
  color: var(--accent-color);
  letter-spacing: 1px;
  flex: 1;
}

.copy-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

.code-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#referral-code-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-color);
  font-size: 14px;
}

.use-code-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.use-code-btn:hover {
  background: var(--accent-hover);
}

.message {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 8px;
}

.message.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.message.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.referrer-info {
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 15px;
  margin-top: 15px;
}

.referrer-info h5 {
  margin: 0 0 10px 0;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
}

.referrer-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.referrer-name {
  font-weight: 600;
  color: var(--text-color);
}

.referrer-code,
.referrer-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.referrer-code span,
.referrer-date span {
  color: var(--accent-color);
  font-weight: 600;
}

.referrals-list {
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 15px;
  min-height: 60px;
}

.referral-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.referral-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.referral-username {
  font-weight: 600;
  color: var(--text-color);
}

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

.referral-deposits {
  font-weight: 600;
  color: var(--accent-color);
}

.rewards-info {
  background: var(--bg-primary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
  padding: 15px;
  margin-bottom: 15px;
}

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

.reward-item.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: 600;
}

.amount {
  font-weight: 600;
  color: var(--accent-color);
}

.collect-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
  width: 100%;
}

.collect-btn:hover {
  background: var(--accent-hover);
}

.collect-btn:disabled {
  background: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Адаптивность для реферальной системы */
@media (max-width: 480px) {
  .referral-section {
    padding: 15px;
  }
  
  .code-display {
    flex-direction: column;
    gap: 8px;
  }
  
  .code-input-group {
    flex-direction: column;
  }
  
  .referral-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Система бонусов */
.bonus-section {
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.bonus-section h3 {
  margin: 0 0 20px 0;
  color: var(--accent-color);
  font-size: 18px;
}

.bonus-section h4 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 600;
}

.bonus-section h5 {
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
}

.bonus-section h6 {
  margin: 0 0 8px 0;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 600;
}

/* Балансы */
.balances-section {
  margin-bottom: 25px;
}

.balances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.balance-item {
  background: var(--bg-primary);
  padding: 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
}

.balance-label {
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
}

.balance-amount {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
}

/* Прогресс отыгрыша */
.playthrough-section {
  margin-bottom: 25px;
}

.playthrough-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.playthrough-item {
  background: var(--bg-primary);
  padding: 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
}

.playthrough-label {
  color: var(--text-color);
  font-weight: 500;
  font-size: 14px;
}

.playthrough-progress {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
}

/* Активные бонусы */
.active-bonuses-section {
  margin-bottom: 25px;
}

.bonuses-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bonus-item {
  background: var(--bg-primary);
  padding: 15px;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
  border: 1px solid var(--border-color);
}

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

.bonus-title {
  color: var(--text-color);
  font-weight: bold;
  font-size: 14px;
}

.bonus-amount {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 16px;
}

.bonus-description {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.bonus-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.progress-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}

.progress-status.completed {
  color: #22c55e;
}

.progress-status.pending {
  color: #f59e0b;
}

.progress-status.completed::before {
  content: "✅";
}

.progress-status.pending::before {
  content: "⏳";
}

/* История бонусов */
.bonus-history-section {
  margin-bottom: 25px;
}

.bonus-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
}

.history-item-received {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
}

.history-item-completed {
  background: var(--bg-primary);
  padding: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #22c55e;
  border-left: 4px solid #22c55e;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-type {
  color: var(--text-color);
  font-weight: 500;
  font-size: 12px;
}

.history-status {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

.history-item-received .history-status {
  color: #f59e0b;
}

.history-item-completed .history-status {
  color: #22c55e;
}

.history-description {
  color: var(--text-muted);
  font-size: 11px;
}

.history-amount {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 14px;
}

.history-date {
  color: var(--text-muted);
  font-size: 11px;
}

/* Адаптивность для системы бонусов */
@media (max-width: 480px) {
  .bonus-section {
    padding: 15px;
  }
  
  .balances-grid,
  .playthrough-grid {
    grid-template-columns: 1fr;
  }
  
  .balance-item,
  .playthrough-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .bonus-item {
    padding: 12px;
  }
  
  .bonus-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .history-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
} 

/* Навигация профиля */
.profile-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 0 10px;
}

.profile-nav-btn {
  flex: 1;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  justify-content: center;
}

.profile-nav-btn:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.profile-nav-btn.active {
  background: linear-gradient(135deg, var(--accent-color) 0%, #2ecc71 100%);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.profile-nav-btn .nav-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.profile-nav-btn .nav-text {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
}

/* Секции профиля */
.profile-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.profile-section.active {
  display: block;
}

.section-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.section-header h3 {
  margin: 0;
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 700;
}

/* Селектор игры */
.game-selector {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.game-selector label {
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.game-selector select {
  flex: 1;
  max-width: 200px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-color);
  font-size: 14px;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность для навигации */
@media (max-width: 480px) {
  .profile-nav {
    flex-direction: column;
    gap: 10px;
  }
  
  .profile-nav-btn {
    min-height: 60px;
    padding: 12px 15px;
  }
  
  .profile-nav-btn .nav-icon {
    font-size: 20px;
  }
  
  .profile-nav-btn .nav-text {
    font-size: 12px;
  }
} 