/* Стили для баланса и TON кошелька */

.wallet-section, .balance-section {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.wallet-section h3, .balance-section h3 {
  margin: 0 0 15px 0;
  color: var(--text-color);
  font-size: 18px;
}

.wallet-btn, .action-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.wallet-btn:hover, .action-btn:hover {
  background: #219a52;
}

.wallet-btn:disabled, .action-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color);
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 14px;
}

.info-box {
  background: #e8f5e8;
  border: 1px solid #27ae60;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.address-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  word-break: break-all;
  margin: 10px 0;
}

.transactions-list {
  max-height: 300px;
  overflow-y: auto;
}

.transaction-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

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

.transaction-type {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.transaction-type.deposit {
  background: #e8f5e8;
  color: #27ae60;
}

.transaction-type.withdrawal {
  background: #fff3cd;
  color: #856404;
}

.transaction-status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.transaction-status.pending {
  background: #fff3cd;
  color: #856404;
}

.transaction-status.completed {
  background: #e8f5e8;
  color: #27ae60;
}

.transaction-status.failed {
  background: #f8d7da;
  color: #721c24;
}

.transaction-details {
  font-size: 12px;
  color: #666;
}

.loading {
  text-align: center;
  color: #666;
  font-style: italic;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
}

.success-message {
  background: #e8f5e8;
  border: 1px solid #27ae60;
  color: #27ae60;
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
}

.user-wallet-address {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;
  text-align: center;
  font-family: monospace;
  font-size: 13px;
  background: var(--card-bg);
  border-radius: 6px;
  padding: 3px 6px;
  margin: 3px 0;
  transition: background 0.2s;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  cursor: pointer;
  line-height: 1.3;
  border: 1px dashed #27ae60;
}

.user-wallet-address:hover {
  background: #e8f5e8;
}

.wallet-btn.disconnect-btn {
  background: #e74c3c;
  color: #fff;
  margin-top: 10px;
  width: 100%;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.wallet-btn.disconnect-btn:hover {
  background: #c0392b;
}

.wallet-btn.connect-btn {
  background: #27ae60;
  color: #fff;
  margin-top: 10px;
  width: 100%;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.wallet-btn.connect-btn:hover {
  background: #219a52;
}

/* Стили для депозита */
.deposit-summary {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-item.total {
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
  margin-top: 8px;
  font-weight: bold;
  font-size: 16px;
}

.amount-highlight {
  color: #27ae60;
  font-weight: bold;
}

.fee-text {
  color: #666;
  font-size: 12px;
}

.total-highlight {
  color: #e67e22;
  font-weight: bold;
}

.address-highlight {
  font-family: monospace;
  background: var(--card-bg);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  word-break: break-all;
}

.deposit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.deposit-modal-content {
  background: var(--bg-color);
  border-radius: 12px;
  padding: 20px;
  max-width: 90%;
  width: 400px;
  text-align: center;
}

.deposit-modal h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.deposit-modal .amount {
  font-size: 24px;
  font-weight: bold;
  color: #27ae60;
  margin: 15px 0;
}

.deposit-modal .buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.deposit-modal .btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.deposit-modal .btn-confirm {
  background: #27ae60;
  color: white;
}

.deposit-modal .btn-confirm:hover {
  background: #219a52;
}

.deposit-modal .btn-cancel {
  background: #e74c3c;
  color: white;
}

.deposit-modal .btn-cancel:hover {
  background: #c0392b;
}

/* Адаптивность для баланса */
@media (max-width: 480px) {
  .user-wallet-address {
    font-size: 11px;
    padding: 2px 2px;
    max-width: 98vw;
  }
  
  .deposit-modal-content {
    width: 95%;
    padding: 15px;
  }
  
  .deposit-modal .buttons {
    flex-direction: column;
  }
  
  .transaction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
} 