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

.transfer-modal.show {
  display: flex;
  opacity: 1;
}

.transfer-modal-content {
  background: white;
  border-radius: 12px;
  padding: 10px 30px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.transfer-modal-header {
  padding: 20px 25px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transfer-modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  margin: 0;
}

.transfer-modal-close {
  background: #6c757d;
  border: none;
  font-size: 16px;
  color: white;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transfer-modal-close:hover {
  color: white;
}

.transfer-modal-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

.transfer-form-group {
  margin-bottom: 25px;
}

.transfer-form-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #727688;
  margin-bottom: 8px;
}

.max-amount-checkbox .transfer-form-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #727688;
  margin-bottom: 8px;
}

.transfer-to-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transfer-to-header .transfer-tabs {
  border-bottom: none !important;
  display: flex;
  align-items: center;
}

.transfer-tab-link {
  font-size: 16px;
  font-weight: 600;
  color: #6c757d;
  text-decoration: none;
  padding: 0 8px;
}

.transfer-tab-link.active {
  color: #2363e2;
  font-weight: 700;
}

.tab-divider {
  font-weight: bold;
  color: #6c757d;
  font-size: 16px;
  padding: 0 8px;
}

.asset-selector,
.account-selector,
.destination-selector {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
}

.asset-selector:hover,
.account-selector:hover,
.destination-selector:hover {
  border-color: #246cf9;
}

.asset-placeholder,
.account-placeholder,
.destination-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
}

.add-address-icon {
  margin-right: 10px;
}

.address-icon-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.address-icon-default {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #727688;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.add-address-info,
.account-name-column,
.destination-name-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.add-address-name,
.account-name,
.destination-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #212529;
}

.asset-placeholder .add-address-name,
.account-placeholder .account-name,
.destination-placeholder .destination-name {
  font-weight: normal;
  color: #b7b8bf;
}

.asset-list .add-address-name {
  font-weight: bold;
}

.add-address-network,
.account-type,
.destination-type {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6c757d;
}

.account-info,
.destination-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-balance-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  margin-right: 8px;
}

.account-balance-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.account-balance-display .account-item-balance-quantity {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.account-balance-display .account-item-balance-symbol {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6c757d;
  font-weight: bold;
}

.account-balance-usd {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6c757d;
}

.clear-icon {
  background: #6c757d;
  border: none;
  font-size: 14px;
  color: white !important;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-icon:hover {
  color: white;
}

.dropdown-arrow {
  color: #6c757d;
  margin-left: auto;
}

.asset-list,
.account-dropdown-menu,
.destination-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1070;
}

.asset-list .add-address-item,
.account-dropdown-menu .account-item,
.destination-dropdown-menu .destination-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.asset-list .add-address-item:last-child,
.account-dropdown-menu .account-item:last-child,
.destination-dropdown-menu .destination-item:last-child {
  border-bottom: none;
}

.asset-list .add-address-item:hover,
.account-dropdown-menu .account-item:hover,
.destination-dropdown-menu .destination-item:hover {
  background-color: #f8f9fa;
}

.asset-list .no-assets,
.account-dropdown-menu .no-accounts,
.destination-dropdown-menu .no-destinations {
  padding: 12px 16px;
  color: #6c757d;
  font-size: 14px;
  text-align: center;
}

.account-item,
.destination-item {
  display: flex;
  align-items: center;
}

.account-name-column,
.destination-name-column {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.account-item-name,
.destination-item-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #212529;
  font-weight: bold;
}

.account-item-type,
.destination-item-type {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #6c757d;
}

.account-balance-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.account-item-balance {
  display: flex;
  flex-direction: column;
}

.account-item-balance-quantity {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.account-item-balance-symbol {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #6c757d;
  font-weight: bold;
}

.account-usd-column {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.account-item-usd {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #212529;
}

.destination-subtabs {
  display: flex;
  padding: 8px 16px;
}

.subtab-link {
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  margin-right: 16px;
}

.subtab-link.active {
  color: #246cf9;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #246cf9;
  text-decoration-thickness: 2px;
}

.destination-input-container {
  position: relative;
}

.destination-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 18px;
  color: #b7b8bf;
  background: white;
}

.destination-input.error {
  border-color: #dc3545;
}

.destination-input::placeholder {
  color: #adb5bd;
}

.amount-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.amount-group {
  display: flex;
  flex-direction: column;
}

.amount-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

.amount-input[type="number"]::-webkit-outer-spin-button,
.amount-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input[type="number"] {
  -moz-appearance: textfield;
}

.amount-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.amount-input.error {
  border-color: #dc3545;
}

.amount-input:focus:not(:disabled) {
  outline: none;
  border-color: #246cf9;
  box-shadow: 0 0 0 3px rgba(36, 108, 249, 0.1);
}

.max-amount-checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.max-amount-input {
  margin-right: 8px;
  margin-bottom: 8px;
}

.note-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.note-textarea:focus {
  outline: none;
  border-color: #246cf9;
  box-shadow: 0 0 0 3px rgba(36, 108, 249, 0.1);
}

.note-textarea::placeholder {
  color: #adb5bd;
}

.transfer-modal-footer {
  padding: 20px 25px;
  border-top: none;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-transfer-cancel {
  background: white;
  color: #6c757d;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-transfer-cancel:hover {
  background-color: #f8f9fa;
  border-color: #6c757d;
}

.btn-transfer-submit {
  background: #246cf9;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
}

.btn-transfer-submit:hover:not(:disabled) {
  background: #1d5dd9;
}

.btn-transfer-submit:disabled {
  background: #b7b8bf;
  cursor: not-allowed;
  opacity: 0.6;
}

@media (max-width: 576px) {
  .transfer-modal-content {
    width: 95%;
    max-height: 95vh;
  }
}

.telegram-otp-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: 10000;
}

.telegram-otp-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.otp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
}

.otp-modal-close:hover {
  color: #333;
}

.telegram-otp-content .otp-title {
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
  font-size: 20px;
}

.telegram-otp-content .otp-description {
  margin-bottom: 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.telegram-otp-content .otp-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.telegram-otp-content .otp-input {
  width: 50px !important;
  height: 50px !important;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 0;
}

.telegram-otp-content .otp-input:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  outline: none;
}

.telegram-otp-content .otp-input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}

.telegram-otp-content .resend-section {
  font-size: 16px;
  color: #666;
}

.telegram-otp-content .resend-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.telegram-otp-content .resend-link:hover {
  color: #0056b3;
}

.telegram-otp-content #otpCountdown {
  color: #007bff;
  font-weight: 600;
}

.telegram-otp-content .loading-text {
  margin-top: 16px;
  color: #666;
}

.telegram-setup-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: 10000;
}

.telegram-setup-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.telegram-setup-content .modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.telegram-setup-content .modal-header h5 {
  margin: 0;
  font-weight: 600;
  color: #424242;
}

.telegram-setup-content .modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6c757d;
  cursor: pointer;
}

.telegram-setup-content .modal-body {
  padding: 24px;
  text-align: center;
}

.telegram-setup-content .modal-body .fa-telegram {
  font-size: 48px;
  color: #0088cc;
  margin-bottom: 16px;
}

.telegram-setup-content .modal-body p {
  margin: 0;
  color: #6c757d;
  font-size: 16px;
  line-height: 1.5;
}

.telegram-setup-content .modal-footer {
  padding: 16px 24px 24px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.telegram-setup-content .btn-primary {
  background: #3085d6;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  color: white;
}

.telegram-setup-content .btn-cancel {
  background: #e2e2ec;
  color: #424242;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
}
