/* =========================================================
   WITHDRAW — USDT balance, wallet, notes, CTA
   ========================================================= */

.withdraw-container {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-grad);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* balance card */

.usdt-balance-card {
  position: relative;
  padding: 22px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  background: linear-gradient(
    160deg,
    rgba(92, 242, 182, 0.12) 0%,
    rgba(11, 24, 35, 0.94) 58%,
    rgba(9, 14, 24, 0.97) 100%
  );
  border: 1px solid rgba(92, 242, 182, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 40px -22px rgba(92, 242, 182, 0.8);
  overflow: hidden;
}

.usdt-balance-card::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 190px;
  background: radial-gradient(
    circle,
    rgba(92, 242, 182, 0.18),
    transparent 65%
  );
  pointer-events: none;
}

.usdt-balance-card h6 {
  position: relative;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
}

.usdt-amount {
  position: relative;
  font-family: var(--font-num);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 26px rgba(92, 242, 182, 0.35);
}

.usdt-amount i {
  color: var(--green-1) !important;
}

/* wallet box */

.wallet-info-box {
  padding: 15px;
  border-radius: var(--radius-md);
  color: var(--text);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--stroke);
}

.wallet-info-box .text-white {
  color: var(--text) !important;
  font-weight: 800;
  font-size: 13px;
}

.wallet-info-box a.text-info {
  color: var(--cyan-2) !important;
  font-weight: 700;
}

#wallet-connected-view p,
#wallet-not-connected-view p {
  font-size: 11px;
  line-height: 1.6;
}

#wallet-address-display {
  color: var(--green-1);
  font-family: var(--font-num);
  font-size: 10px;
}

/* notes */

.withdraw-notes {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}

.withdraw-notes i {
  margin-left: 3px;
}

#referral-condition {
  margin-top: 12px !important;
  padding: 10px;
  border-radius: 12px;
  color: var(--red-1) !important;
  background: rgba(255, 107, 138, 0.08);
  border: 1px solid rgba(255, 107, 138, 0.28);
  font-size: 11px;
  line-height: 1.7;
}

#referral-condition a {
  color: var(--red-1) !important;
  font-weight: 800;
}

/* CTA */

.btn-confirm-withdraw {
  width: 100%;
  padding: 14px;
  margin-top: 16px;
  border: none;
  border-radius: 15px;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  box-shadow: none;
  transition: filter 0.2s ease, transform 0.15s ease,
    box-shadow 0.25s ease;
}

.btn-confirm-withdraw:not(:disabled) {
  background: var(--gold-grad);
  color: #10141f;
  box-shadow: 0 16px 30px -14px rgba(240, 165, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-confirm-withdraw:not(:disabled):hover {
  filter: brightness(1.06);
}

.btn-confirm-withdraw:not(:disabled):active {
  transform: translateY(2px) scale(0.99);
  box-shadow: 0 8px 18px -12px rgba(240, 165, 0, 0.95);
}

.btn-connect-wallet {
  display: block;
  padding: 11px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #04141c;
  font-size: 13px;
  font-weight: 800;
  background: var(--cyan-grad);
  box-shadow: 0 12px 24px -14px rgba(70, 216, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-connect-wallet:hover {
  filter: brightness(1.05);
  color: #04141c;
}

/* legacy quick withdraw */

.quick-withdraw-box {
  padding: 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(70, 216, 255, 0.3);
}

.btn-withdraw-instant {
  padding: 11px;
  border: none;
  border-radius: 12px;
  color: #04141c;
  font-size: 14px;
  font-weight: 800;
  background: var(--cyan-grad);
  box-shadow: 0 12px 24px -14px rgba(70, 216, 255, 0.95);
}

/* custom withdraw amount */

.withdraw-amount-box {
  padding: 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--stroke);
}

.withdraw-amount-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.btn-withdraw-max {
  padding: 3px 12px;
  border: 1px solid rgba(92, 242, 182, 0.4);
  border-radius: 99px;
  background: rgba(92, 242, 182, 0.1);
  color: var(--green-1);
  font-size: 11px;
  font-weight: 800;
}

.withdraw-input-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.withdraw-input-group input {
  width: 100%;
  padding: 4px 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.withdraw-input-group input::placeholder {
  color: #485570;
}

.withdraw-input-group input::-webkit-outer-spin-button,
.withdraw-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.withdraw-input-group .usdt-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 99px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 800;
  color: var(--green-1);
  background: rgba(92, 242, 182, 0.1);
  border: 1px solid rgba(92, 242, 182, 0.25);
}
