.owned-usdt-admin-panel,
.owned-usdt-user-card {
  color: #24312c;
  letter-spacing: 0;
}

.owned-usdt-admin-panel {
  margin: 6px 0 24px;
  padding: 20px;
  border: 1px solid #dbe6e1;
  border-left: 3px solid #138f6b;
  border-radius: 6px;
  background: #fbfdfc;
}

.owned-usdt-section-head,
.owned-usdt-card-head,
.owned-usdt-modal-head,
.owned-usdt-action-row,
.owned-usdt-status-head,
.owned-usdt-address-row,
.owned-usdt-amount-row {
  display: flex;
  align-items: center;
}

.owned-usdt-section-head,
.owned-usdt-card-head,
.owned-usdt-modal-head,
.owned-usdt-status-head {
  justify-content: space-between;
}

.owned-usdt-section-title,
.owned-usdt-card-title,
.owned-usdt-modal-title {
  margin: 0;
  color: #1e2c27;
  font-weight: 700;
  letter-spacing: 0;
}

.owned-usdt-section-title {
  font-size: 16px;
}

.owned-usdt-card-title,
.owned-usdt-modal-title {
  font-size: 17px;
}

.owned-usdt-section-subtitle,
.owned-usdt-card-subtitle,
.owned-usdt-help,
.owned-usdt-modal-note,
.owned-usdt-order-meta {
  color: #6c7873;
  font-size: 13px;
  line-height: 1.7;
}

.owned-usdt-section-subtitle,
.owned-usdt-card-subtitle {
  margin-top: 4px;
}

.owned-usdt-badge,
.owned-usdt-state,
.owned-usdt-network {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.owned-usdt-badge,
.owned-usdt-network {
  color: #087657;
  border: 1px solid #b9ded1;
  background: #edf8f4;
}

.owned-usdt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 20px;
}

.owned-usdt-field-wide {
  grid-column: 1 / -1;
}

.owned-usdt-label {
  display: block;
  margin-bottom: 7px;
  color: #46534e;
  font-size: 13px;
  font-weight: 600;
}

.owned-usdt-input,
.owned-usdt-select {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  color: #24312c;
  border: 1px solid #d2dcd8;
  border-radius: 4px;
  outline: none;
  background: #ffffff;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.owned-usdt-input:focus,
.owned-usdt-select:focus {
  border-color: #138f6b;
  box-shadow: 0 0 0 3px rgba(19, 143, 107, 0.1);
}

.owned-usdt-input:disabled {
  color: #89938f;
  background: #f2f5f4;
}

.owned-usdt-segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #dbe3e0;
  border-radius: 5px;
  background: #f1f4f3;
}

.owned-usdt-segmented label {
  position: relative;
  cursor: pointer;
}

.owned-usdt-segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.owned-usdt-segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  color: #66726d;
  font-size: 13px;
  font-weight: 600;
}

.owned-usdt-segmented input:checked + span {
  color: #087657;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(22, 44, 35, 0.12);
}

.owned-usdt-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: #46534e;
  font-size: 13px;
  font-weight: 600;
}

.owned-usdt-switch input {
  position: absolute;
  opacity: 0;
}

.owned-usdt-switch-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 11px;
  background: #bcc7c2;
  transition: background-color 0.15s ease;
}

.owned-usdt-switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 35, 28, 0.25);
  content: "";
  transition: transform 0.15s ease;
}

.owned-usdt-switch input:checked + .owned-usdt-switch-track {
  background: #138f6b;
}

.owned-usdt-switch input:checked + .owned-usdt-switch-track::after {
  transform: translateX(20px);
}

.owned-usdt-status {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e5ebe8;
}

.owned-usdt-status-title {
  color: #35433d;
  font-size: 14px;
  font-weight: 700;
}

.owned-usdt-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.owned-usdt-status-item {
  min-height: 70px;
  padding: 12px;
  border: 1px solid #e0e7e4;
  border-radius: 5px;
  background: #ffffff;
}

.owned-usdt-status-label {
  color: #77827d;
  font-size: 12px;
}

.owned-usdt-status-value {
  margin-top: 5px;
  overflow: hidden;
  color: #26342e;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-usdt-action-row {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.owned-usdt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #cad5d0;
  border-radius: 4px;
  cursor: pointer;
  color: #425049;
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.owned-usdt-button:hover {
  color: #087657;
  border-color: #7fbca7;
}

.owned-usdt-button-primary {
  color: #ffffff;
  border-color: #138f6b;
  background: #138f6b;
}

.owned-usdt-button-primary:hover {
  color: #ffffff;
  border-color: #0d7658;
  background: #0d7658;
}

.owned-usdt-button:disabled {
  cursor: not-allowed;
  color: #9aa39f;
  border-color: #dfe5e2;
  background: #f2f5f4;
}

.owned-usdt-user-card {
  width: 100%;
  margin-top: 18px;
  border: 1px solid #dbe4e0;
  border-top: 3px solid #138f6b;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(23, 35, 31, 0.055);
}

.owned-usdt-card-head {
  padding: 18px 20px;
  border-bottom: 1px solid #edf1ef;
}

.owned-usdt-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 22px 20px;
}

.owned-usdt-amount-box {
  padding: 18px;
  border: 1px solid #e0e7e4;
  border-radius: 5px;
  background: #fafcfb;
}

.owned-usdt-amount-row {
  align-items: stretch;
}

.owned-usdt-amount-row .owned-usdt-input {
  height: 42px;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
}

.owned-usdt-unit-addon {
  display: flex;
  align-items: center;
  min-width: 66px;
  justify-content: center;
  color: #45524c;
  border: 1px solid #d2dcd8;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #f3f6f5;
  font-weight: 700;
}

.owned-usdt-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.owned-usdt-quick {
  min-width: 70px;
  padding: 6px 10px;
  border: 1px solid #d7dfdc;
  border-radius: 4px;
  cursor: pointer;
  color: #57635e;
  background: #ffffff;
  font-size: 12px;
}

.owned-usdt-quick:hover {
  color: #087657;
  border-color: #8fc7b4;
  background: #f1f9f6;
}

.owned-usdt-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 18px;
  border-left: 3px solid #d99635;
  background: #fffaf2;
}

.owned-usdt-quote-label {
  color: #7b6b4e;
  font-size: 12px;
  font-weight: 600;
}

.owned-usdt-quote-value {
  margin-top: 6px;
  color: #674b20;
  font-size: 26px;
  font-weight: 750;
}

.owned-usdt-quote-tip {
  margin-top: 8px;
  color: #8a7859;
  font-size: 12px;
  line-height: 1.6;
}

.owned-usdt-modal-backdrop {
  position: fixed;
  z-index: 3200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 28, 24, 0.48);
}

.owned-usdt-modal {
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(12, 26, 20, 0.28);
}

.owned-usdt-modal-head {
  padding: 17px 20px;
  border-bottom: 1px solid #e7ece9;
}

.owned-usdt-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: #64706b;
  background: #f2f5f4;
  font-size: 22px;
  line-height: 1;
}

.owned-usdt-modal-body {
  padding: 22px;
}

.owned-usdt-payment-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
}

.owned-usdt-qr {
  width: 220px;
  height: 220px;
  padding: 10px;
  border: 1px solid #e1e7e4;
  border-radius: 5px;
  background: #ffffff;
}

.owned-usdt-qr canvas,
.owned-usdt-qr img,
.owned-usdt-qr svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.owned-usdt-exact-label {
  color: #6a7671;
  font-size: 12px;
}

.owned-usdt-exact-amount {
  margin-top: 4px;
  color: #0a7e5d;
  font-size: 30px;
  font-weight: 800;
}

.owned-usdt-address-row {
  gap: 8px;
  margin-top: 16px;
}

.owned-usdt-address {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  overflow: hidden;
  color: #3f4d47;
  border: 1px solid #dce4e0;
  border-radius: 4px;
  background: #f8faf9;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owned-usdt-order-meta {
  margin-top: 15px;
}

.owned-usdt-state {
  margin-top: 12px;
  color: #8a681d;
  border: 1px solid #ecd9a8;
  background: #fff9e9;
}

.owned-usdt-state-paid {
  color: #087657;
  border-color: #b9ded1;
  background: #edf8f4;
}

.owned-usdt-state-expired {
  color: #a24a45;
  border-color: #ebc8c5;
  background: #fff1f0;
}

.owned-usdt-toast {
  position: fixed;
  z-index: 3600;
  top: 82px;
  left: 50%;
  max-width: min(440px, calc(100vw - 32px));
  padding: 10px 16px;
  border: 1px solid #b9ded1;
  border-radius: 4px;
  color: #087657;
  background: #f0faf6;
  box-shadow: 0 8px 24px rgba(17, 44, 33, 0.16);
  font-size: 13px;
  transform: translateX(-50%);
}

.owned-usdt-toast-error {
  color: #a03e39;
  border-color: #ebc8c5;
  background: #fff3f2;
}

@media (max-width: 900px) {
  .owned-usdt-grid,
  .owned-usdt-card-body,
  .owned-usdt-payment-layout {
    grid-template-columns: 1fr;
  }

  .owned-usdt-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owned-usdt-qr {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .owned-usdt-admin-panel,
  .owned-usdt-card-body,
  .owned-usdt-modal-body {
    padding: 16px;
  }

  .owned-usdt-section-head,
  .owned-usdt-card-head {
    align-items: flex-start;
    gap: 12px;
  }

  .owned-usdt-status-grid,
  .owned-usdt-segmented {
    grid-template-columns: 1fr;
  }

  .owned-usdt-action-row {
    flex-direction: column-reverse;
  }

  .owned-usdt-action-row .owned-usdt-button {
    width: 100%;
  }

  .owned-usdt-exact-amount {
    font-size: 24px;
  }
}
