/* Главная область контента */
.content {
  display: flex;
  gap: 3px;
  min-height: 400px;
}

.block1 {
  flex: 5;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  border-radius: 2px;
  position: relative;
  height: 600px;
  overflow: hidden;
}

.middle-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 600px;
}

/* Стили для блоков баланса */
.balance-info {
  display: flex;
  align-items: center;
  margin-top: 5px;
  padding: 2px 0;
}

.balance-info .crypto-icon {
  font-size: 18px;
  font-weight: bold;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #2a2d3a;
  margin-right: 10px;
  flex-shrink: 0;
}

.balance-info .balance-text {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.balance-info .balance-name {
  font-size: 14px;
  color: #979797;
}

.balance-info .balance-value {
  font-size: 14px;
  font-weight: bold;
  margin-left: 10px;
}

/* Специфические стили для разных валют */
.usdt-balance .crypto-icon {
  color: #14b079;
}

.btc-balance .crypto-icon {
  color: #f59416;
}

/* Стили для popup Trading AI */
.trading-ai-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #1A1C24;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #2A2D3A;
}

.popup-header h3 {
  margin: 0;
  font-size: 18px;
  color: white;
}

.close-popup {
  font-size: 24px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s;
}

.close-popup:hover {
  color: white;
}

.popup-body {
  padding: 20px;
}

.popup-body p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #AAA;
  line-height: 1.5;
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.ai-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background-color: #252836;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: 14px;
  color: white;
}

.ai-action-button {
  width: 100%;
  padding: 14px;
  background-color: #3861FB;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ai-action-button:hover {
  background-color: #2D4EDB;
}

/* Стили для кнопки Trading AI */
.trading-ai-button {
  cursor: pointer;
}

.trading-ai-button:hover {
  /* Removing hover effects */
}

/* Стили для попапа анимации работы Trading AI */
.trading-ai-working,
.trading-ai-result {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

.ai-working-content {
  width: 90%;
  max-width: 600px;
  background-color: #151824;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(52, 97, 235, 0.3);
  animation: glowAnimation 2s infinite alternate;
}

@keyframes glowAnimation {
  from {
    box-shadow: 0 0 20px rgba(52, 97, 235, 0.3);
  }
  to {
    box-shadow: 0 0 40px rgba(52, 97, 235, 0.6);
  }
}

.ai-brain {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.brain-icon {
  font-size: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.brain-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: rgba(52, 97, 235, 0.2);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

.ai-working-animation {
  padding: 20px 0;
  text-align: center;
}

.ai-progress {
  margin: 20px 0;
}

.progress-bar {
  height: 10px;
  background-color: #2a2d3a;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3861FB, #6C8DFF);
  transition: width 0.3s ease-out;
  border-radius: 5px;
}

.progress-text {
  color: #aaa;
  font-size: 14px;
  text-align: center;
}

.ai-stats {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-stat {
  flex: 1;
  min-width: 150px;
  background-color: #1A1C24;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.stat-name {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 5px;
}

.stat-value {
  font-size: 16px;
  color: white;
  font-weight: bold;
}

.ai-activity-log {
  margin-top: 20px;
  text-align: left;
}

.log-title {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 10px;
}

.log-container {
  background-color: #10121a;
  border-radius: 5px;
  padding: 10px;
  height: 120px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  color: #a3e4f8;
}

.log-entry {
  margin-bottom: 5px;
  line-height: 1.5;
}

/* Стили для попапа результата Trading AI */
.ai-result-content {
  width: 90%;
  max-width: 500px;
  text-align: center;
  background-color: #151824;
}

.result-title {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin-bottom: 10px;
}

.result-amount {
  font-size: 48px;
  font-weight: bold;
  color: #2ebd85;
  margin: 20px 0;
  animation: fadeInUp 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-details {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.result-stat {
  flex: 1;
  min-width: 120px;
  background-color: #1A1C24;
  padding: 10px;
  border-radius: 5px;
}

.result-stat .stat-label {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 5px;
}

.result-stat .stat-value {
  font-size: 16px;
  color: white;
}

/* Стили для popup депозита */
.deposit-popup,
.deposit-success-popup,
.withdrawal-popup,
.withdrawal-success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Remove spinner/arrows from number inputs */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.deposit-popup .popup-content,
.withdrawal-popup .popup-content {
  width: 90%;
  max-width: 450px;
  background-color: #1A1C24;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: popupFadeIn 0.3s ease-out;
}

.deposit-popup .form-group,
.withdrawal-popup .form-group {
  margin-bottom: 16px;
}

.deposit-popup .form-label,
.withdrawal-popup .form-label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 14px;
}

.deposit-popup .input-container,
.withdrawal-popup .input-container {
  position: relative;
  width: 100%;
}

.deposit-popup .form-input,
.withdrawal-popup .form-input {
  width: 100%;
  padding: 12px;
  background-color: #252836;
  border: 1px solid #3a3e4d;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  transition: border-color 0.2s;
}

.deposit-popup .form-input:focus,
.withdrawal-popup .form-input:focus {
  border-color: #3861FB;
  outline: none;
}

.deposit-popup .input-suffix,
.withdrawal-popup .input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  font-size: 14px;
}

/* Стили для кнопки MAX */
.amount-container {
  display: flex;
}

.amount-container .form-input {
  padding-right: 60px;
}

.max-button {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #3861FB;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.max-button:hover {
  background-color: #2D4EDB;
}

/* Saved Cards Dropdown Styles */
.saved-cards-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #252836;
  border: 1px solid #3a3e4d;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 10;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
}

.saved-card {
  display: flex;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  align-items: center;
}

.saved-card:hover {
  background-color: #2a2d3a;
}

.card-icon {
  margin-right: 12px;
  font-size: 20px;
}

.card-details {
  display: flex;
  flex-direction: column;
}

.card-name {
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
}

.card-expiry {
  font-size: 12px;
  color: #888;
}

/* Стили для popup успешного депозита и вывода средств */
.deposit-success-popup .success-content,
.withdrawal-success-popup .success-content {
  width: 90%;
  max-width: 400px;
  background-color: #151824;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
}

.success-animation {
  padding: 30px 20px;
}

.success-icon {
  font-size: 70px;
  margin-bottom: 20px;
  animation: flyIn 0.8s ease-out, float 3s ease-in-out infinite 0.8s;
}

.withdrawal-icon {
  animation: flyFromRight 0.8s ease-out, float 3s ease-in-out infinite 0.8s;
}

@keyframes flyFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px) scale(0.5);
  }
  60% {
    transform: translateX(-20px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes flyIn {
  0% {
    opacity: 0;
    transform: translateY(-100px) scale(0.5);
  }
  60% {
    transform: translateY(20px) scale(1.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.success-title {
  font-size: 24px;
  color: white;
  font-weight: bold;
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.3s forwards;
}

.deposit-amount,
.withdrawal-amount {
  font-size: 36px;
  font-weight: bold;
  margin: 20px 0;
  opacity: 0;
  animation: scaleIn 0.5s ease-out 0.6s forwards;
}

.deposit-amount {
  color: #2ebd85;
}

.withdrawal-amount {
  color: #f6465d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.balance-update {
  background-color: #1e2132;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.9s forwards;
}

.balance-update-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.balance-update-row:last-child {
  margin-bottom: 0;
}

.balance-label {
  color: #aaa;
  font-size: 14px;
  text-align: left;
}

.balance-value {
  color: white;
  font-size: 14px;
  font-weight: bold;
} 