/* Wallet Modal - SkySpin Style */
#walletModal .modal-dialog {
  max-width: 580px;
  margin: 30px auto;
}

#walletModal .modal-dialog.modal-lg {
  max-width: 600px;
}

#walletModal .modal-content {
  /*background: linear-gradient(135deg, #1a1625 0%, #2d1b4e 100%);*/
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

#walletModal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 30px;
  position: relative;
}

#walletModal .modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#walletModal .close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #999;
  opacity: 1;
  font-size: 28px;
  font-weight: 300;
  text-shadow: none;
  transition: color 0.3s;
}

#walletModal .close:hover {
  color: #fff;
}

/* Tab Navigation */
.wallet-tabs {
  display: flex;
  gap: 0;
  padding: 0 30px;
  margin-bottom: 24px;
}

.wallet-tab {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: #999;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px 8px 0 0;
}

.wallet-tab:first-child {
  margin-right: 2px;
}

.wallet-tab.active {
  /*background: rgba(124, 58, 237, 0.3);*/
  background-color: #BB44F0;
  color: #fff;
}

.wallet-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

/* Modal Body */
#walletModal .modal-body {
  padding: 0 30px 30px;
}

/* Tab Content */
.wallet-tab-content {
  display: none;
}

.wallet-tab-content.active {
  display: block;
}

/* Form Elements */
.wallet-form-group {
  margin-bottom: 20px;
}

.wallet-form-label {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
}

.wallet-form-label .balance-info {
  float: right;
  color: #bb44f0;
  font-size: 13px;
}

.wallet-history-link {
  float: right;
  color: #7C3AED;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.wallet-history-link:hover {
  color: #6366F1;
  text-decoration: none;
}

/* Currency Selector */
.currency-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.currency-selector:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.5);
}

.currency-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.currency-name {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.currency-dropdown-icon {
  color: #999;
  font-size: 12px;
}

/* Trending Coins */
.trending-coins {
  margin-bottom: 20px;
}

.coin-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.coin-button:hover {
  background: rgba(124, 58, 237, 0.3);
}

/* Network Dropdown */
.network-dropdown {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.network-dropdown:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
}

.network-dropdown option {
  background: #1a1625;
  color: #fff;
  padding: 12px;
}

.network-dropdown option:hover {
  background: #2d1b4e;
}

.currency-selector-dropdown select.network-dropdown option {
  background: #1a1625;
  color: #fff;
}

/* Deposit Address */
.deposit-address-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.address-text-section {
  flex: 1;
}

.address-display {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #7C3AED;
  font-size: 12px;
  word-break: break-all;
  margin-bottom: 12px;
  font-family: monospace;
}

.copy-button {
  width: 100%;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 58, 237, 0.5);
}

.qr-code-box {
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  flex-shrink: 0;
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Input Fields */
.wallet-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s;
}

.wallet-input:focus {
  outline: none;
  border-color: rgba(124, 58, 237, 0.5);
  background-color: rgba(255, 255, 255, 0.08);
}

.wallet-input::placeholder {
  color: #666;
}

/* Amount Input with Percentages */
.amount-input-group {
  position: relative;
}

.amount-input-group .wallet-input {
  padding-right: 120px;
}

.percentage-buttons {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
}

.percentage-btn {
  padding: 4px 8px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s;
}

.percentage-btn:hover {
  background: rgba(124, 58, 237, 0.4);
}

/* Min/Max Info */
.min-info {
  text-align: right;
  color: #999;
  font-size: 13px;
  margin-top: -16px;
  margin-bottom: 20px;
}

/* Amount Display */
.amount-display {
  text-align: right;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Fee Display */
.fee-display {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Confirm Button */
.confirm-button {
  width: 100%;
  padding: 14px 24px;
  background-color: #BB44F0; /*linear-gradient(135deg, #7C3AED 0%, #6366F1 100%);*/
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.confirm-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.confirm-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
}

/* TFA Notice */
.tfa-notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.tfa-notice a {
  color: #7C3AED;
  text-decoration: none;
  font-weight: 500;
}

.tfa-notice a:hover {
  color: #6366F1;
  text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #walletModal .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100vh;
  }

  #walletModal .modal-content {
    border-radius: 0;
    min-height: 100vh;
  }

  #walletModal .modal-header {
    padding: 16px 20px;
  }

  #walletModal .modal-title {
    font-size: 18px;
  }

  #walletModal .close {
    right: 16px;
    top: 16px;
    font-size: 24px;
  }

  .wallet-tabs {
    padding: 0 20px;
    margin-bottom: 20px;
  }

  .wallet-tab {
    padding: 10px 12px;
    font-size: 14px;
  }

  #walletModal .modal-body {
    padding: 0 20px 20px;
  }

  .deposit-address-box {
    flex-direction: column;
    gap: 12px;
  }

  .qr-code-box {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .address-display {
    font-size: 11px;
    padding: 10px 12px;
  }

  .currency-selector {
    padding: 10px 14px;
  }

  .currency-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .currency-name {
    font-size: 14px;
  }

  .wallet-input,
  .network-dropdown {
    padding: 10px 14px;
    font-size: 14px;
  }

  .amount-input-group .wallet-input {
    padding-right: 110px;
  }

  .percentage-buttons {
    right: 6px;
    gap: 3px;
  }

  .percentage-btn {
    padding: 4px 6px;
    font-size: 10px;
  }

  .confirm-button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .wallet-form-label,
  .wallet-history-link {
    font-size: 13px;
  }

  .min-info,
  .fee-display {
    font-size: 12px;
  }

  .amount-display {
    font-size: 16px;
  }

  .tfa-notice {
    padding: 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #walletModal .modal-header {
    padding: 14px 16px;
  }

  #walletModal .modal-title {
    font-size: 16px;
  }

  .wallet-tabs {
    padding: 0 16px;
  }

  .wallet-tab {
    padding: 8px 10px;
    font-size: 13px;
  }

  #walletModal .modal-body {
    padding: 0 16px 16px;
  }

  .currency-info {
    gap: 8px;
  }

  .coin-button {
    padding: 6px 12px;
    font-size: 13px;
    gap: 6px;
  }
}

/* Deposit Methods List */
.deposit-methods-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

.deposit-methods-list::-webkit-scrollbar {
  width: 6px;
}

.deposit-methods-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.deposit-methods-list::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 3px;
}

.deposit-method-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
  width: 100%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.deposit-method-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(124, 58, 237, 0.4);
}

.deposit-method-btn.selected {
  background: rgba(16, 185, 129, 0.1);
  border-color: #bb44f0;
}

.method-group-title {
  color: #888;
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bank Details Box */
.bank-details-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bank-detail-row:last-child {
  margin-bottom: 0;
}

/* Copy Toast Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.copy-toast {
  animation: fadeIn 0.3s ease-out;
}

/* ===== NowPayments Crypto List Styles ===== */
.crypto-currency-item {
  transition: all 0.2s ease;
}

.crypto-currency-item:hover {
  background: rgba(187, 68, 240, 0.1) !important;
  border-color: rgba(187, 68, 240, 0.3);
  transform: translateX(4px);
}

.crypto-currency-item:hover i {
  color: #bb44f0 !important;
}

.payment-method-toggle:hover {
  background: linear-gradient(135deg, rgba(187, 68, 240, 0.3), rgba(187, 68, 240, 0.15)) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(187, 68, 240, 0.2);
}

.quick-amount-btn:hover {
  background: rgba(187, 68, 240, 0.2) !important;
  border-color: rgba(187, 68, 240, 0.5) !important;
  transform: translateY(-1px);
}

#cryptoCurrenciesList {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.5) rgba(255, 255, 255, 0.05);
}

#cryptoCurrenciesList::-webkit-scrollbar {
  width: 6px;
}

#cryptoCurrenciesList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#cryptoCurrenciesList::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.5);
  border-radius: 3px;
}

#cryptoCurrenciesList::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 58, 237, 0.7);
}