/* ===== Пополнение, вывод, профиль ===== */

.card {
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 14px;
}
.card + .card { margin-top: 0; }
.card-title { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.card-title small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }

/* ---- поля формы ---- */
.form { display: flex; flex-direction: column; gap: 10px; }
.f { display: flex; flex-direction: column; gap: 5px; }
.f-cap { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.f-row {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.f-row:focus-within { border-color: rgba(63,124,255,.55); box-shadow: 0 0 0 3px rgba(63,124,255,.14); }
.f-row input {
  flex: 1 1 0; width: 0; min-width: 0; background: transparent; border: 0; outline: 0;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  appearance: textfield; -moz-appearance: textfield;
}
.f-row input::placeholder { color: #5f6c8a; font-weight: 600; }
.f-row input::-webkit-outer-spin-button, .f-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.f-row.static { background: rgba(27,42,70,.55); color: var(--text); font-weight: 700; }
.f-row.static b { flex: 1; }
.f-row .lock { width: 14px; height: 14px; color: var(--muted); }
.f-unit { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 700; }
.f-unit svg, .f-row > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.f-hint { font-size: 11.5px; color: var(--muted); padding-left: 2px; line-height: 1.3; }
.f-hint.ok { color: var(--green); }
.f.invalid .f-row { border-color: rgba(255,90,110,.6); }
.f.invalid .f-hint { color: var(--red); }
.net-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0343a; box-shadow: 0 0 8px rgba(224,52,58,.8); flex: 0 0 auto; }

.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: -2px; }
.quick-amounts button {
  height: 38px; border-radius: 10px;
  background: var(--card-3); border: 1px solid var(--border);
  color: #c9d4ee; font-size: 13px; font-weight: 800;
  transition: background .15s, border-color .15s, transform .1s;
}
.quick-amounts button:active { transform: scale(.97); }
.quick-amounts button.active { background: var(--blue); border-color: var(--blue-2); color: #fff; box-shadow: 0 6px 18px -6px var(--blue-glow); }

.form-error { min-height: 0; color: var(--red); font-size: 12.5px; font-weight: 600; text-align: center; }
.form-error:empty { display: none; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }

/* ---- шаги ---- */
.step[hidden] { display: none; }
.step { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- анимация подбора реквизитов ---- */
.search { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 10px 18px; gap: 16px; }
.ring {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue) 0%, rgba(63,124,255,0) 70%);
  animation: spin 1s linear infinite;
  filter: drop-shadow(0 0 14px rgba(63,124,255,.55));
}
.ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--card); }
.ring::after {
  content: ''; position: absolute; inset: 24px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,147,255,.9), rgba(63,124,255,.1));
  animation: pulseCore 1.2s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseCore { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1); opacity: 1; } }
.search h3 { margin: 0; font-size: 17px; font-weight: 800; }
.steps { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; text-align: left; }
.steps li {
  list-style: none; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s;
}
.steps li i {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(140,170,230,.3); display: grid; place-items: center;
  transition: all .3s;
}
.steps li.active { opacity: 1; color: var(--text); }
.steps li.active i { border-color: var(--blue-2); box-shadow: 0 0 10px rgba(63,124,255,.6); }
.steps li.done { opacity: 1; color: var(--text); }
.steps li.done i { background: var(--green); border-color: var(--green); }
.steps li.done i::after { content: ''; width: 5px; height: 9px; border: solid #06331c; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* ---- реквизиты ---- */
.pay-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pay-head .ok-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(47,224,138,.15); display: grid; place-items: center; flex: 0 0 auto; }
.pay-head .ok-ico svg { width: 18px; height: 18px; color: var(--green); }
.pay-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.pay-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }

.copy-list { display: flex; flex-direction: column; gap: 8px; }
.copy-row {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "cap ico" "val ico"; column-gap: 10px;
  padding: 9px 12px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--border);
  cursor: pointer; overflow: hidden; text-align: left;
  transition: border-color .2s;
}
.copy-row:active { border-color: rgba(63,124,255,.5); }
.copy-row .cr-cap { grid-area: cap; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.copy-row .cr-val { grid-area: val; font-size: 14px; font-weight: 800; color: var(--text); word-break: break-all; line-height: 1.3; margin-top: 2px; }
.copy-row .cr-val.big { font-size: 20px; color: var(--gold-2); }
.copy-row .cr-ico { grid-area: ico; align-self: center; width: 20px; height: 20px; color: var(--muted); }
.copy-row .cr-done {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--green); color: #06331c; font-weight: 800; font-size: 13px;
  transform: translateY(100%); transition: transform .25s ease;
}
.copy-row.copied .cr-done { transform: translateY(0); }
.copy-row.plain { cursor: default; }

.warn {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(244,182,64,.1); border: 1px solid rgba(244,182,64,.35);
  font-size: 12px; color: #f3dca6; line-height: 1.35;
}
.warn svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); margin-top: 1px; }

/* ---- скриншот ---- */
.proof { margin-top: 12px; }
.drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 10px 14px; border-radius: 12px;
  border: 1px dashed rgba(140,170,230,.4); background: rgba(27,42,70,.35);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop:hover { border-color: var(--blue-2); }
.drop svg { width: 22px; height: 22px; color: var(--blue-2); }
.drop.has { border-style: solid; border-color: rgba(47,224,138,.55); color: var(--text); }
.drop img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.drop span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof .btn { margin-top: 10px; }

/* ---- готово ---- */
.done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 10px 10px; }
.done .big-ok {
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,224,138,.35), rgba(47,224,138,.08));
  display: grid; place-items: center; box-shadow: 0 0 30px rgba(47,224,138,.4);
  animation: popIn .5s cubic-bezier(.2,1.4,.4,1);
}
.done .big-ok svg { width: 36px; height: 36px; color: var(--green); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.done p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.done .req-id { font-weight: 800; color: var(--text); }
.done .actions { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.done .actions .btn { flex: 1; }

/* ---- профиль ---- */
.balance-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(260px 160px at 85% 0%, rgba(63,124,255,.4), rgba(63,124,255,0) 70%),
    linear-gradient(150deg, #1a2b4e 0%, #121f3a 60%, #0f1a30 100%);
  border: 1px solid rgba(94,147,255,.25);
  padding: 16px;
}
.balance-card .cap { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.balance-card .sum { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.balance-card .sum b { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; }
.balance-card .sum span { font-size: 14px; font-weight: 700; color: var(--muted); }
.balance-card .actions { display: flex; gap: 8px; margin-top: 14px; }
.balance-card .actions .btn { flex: 1; }

.wallet-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--border);
}
.wallet-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.wallet-item .addr { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wallet-item .tag { font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: rgba(47,224,138,.15); color: var(--green); flex: 0 0 auto; }
.empty { padding: 14px 12px; border-radius: 12px; border: 1px dashed rgba(140,170,230,.3); color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.4; }

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  min-height: 48px; padding: 0 38px 0 12px;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font: inherit; font-size: 13.5px; font-weight: 700; outline: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.select-wrap select:focus { border-color: rgba(63,124,255,.55); box-shadow: 0 0 0 3px rgba(63,124,255,.14); }
.select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.link-btn { background: none; border: 0; color: var(--blue-2); font-weight: 700; font-size: 12px; padding: 0 4px; }

.history { display: flex; flex-direction: column; gap: 6px; }
.h-item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 12px;
  background: var(--card-2); border: 1px solid var(--border);
}
.h-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.h-ico svg { width: 18px; height: 18px; }
.h-ico.dep { background: rgba(47,224,138,.12); color: var(--green); }
.h-ico.wd { background: rgba(63,124,255,.14); color: var(--blue-2); }
.h-main { min-width: 0; }
.h-title { font-size: 13.5px; font-weight: 800; }
.h-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-right { text-align: right; }
.h-sum { font-size: 14px; font-weight: 800; }
.h-sum.plus { color: var(--green); }
.h-sum.minus { color: var(--text); }
.chip-st { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; }
.chip-st.pending, .chip-st.new { background: rgba(244,182,64,.15); color: var(--gold-2); }
.chip-st.done { background: rgba(47,224,138,.15); color: var(--green); }
.chip-st.rejected { background: rgba(255,90,110,.15); color: var(--red); }

.notice { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; padding: 4px 8px; }
.notice.err { color: var(--red); }

/* ---- подсказка, которая видна только при ошибке ---- */
.f-hint.err-only { display: none; }
.f.invalid .f-hint.err-only { display: block; }
.f-hint:empty { display: none; }
.f.ok .f-hint { color: var(--green); }
.f.ok .f-row { border-color: rgba(47,224,138,.45); }

/* ---- поле-список для адреса вывода ---- */
.combo { position: relative; }
.combo-toggle { background: none; border: 0; color: var(--muted); width: 28px; height: 28px; margin-right: -6px; display: grid; place-items: center; }
.combo-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.f.open .combo-toggle svg { transform: rotate(180deg); }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: #18264a; border: 1px solid rgba(94,147,255,.35); border-radius: 12px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.7); overflow: hidden;
  animation: stepIn .18s ease;
}
.combo-list[hidden] { display: none; }
.combo-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; background: none; border: 0; border-bottom: 1px solid var(--border);
  color: var(--text); text-align: left; font: inherit;
}
.combo-item:last-child { border-bottom: 0; }
.combo-item:active { background: rgba(63,124,255,.18); }
.combo-item .usdt { width: 20px; height: 20px; flex: 0 0 auto; }
.combo-item .addr { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item .ok { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; color: var(--green); background: rgba(47,224,138,.14); padding: 3px 7px; border-radius: 6px; flex: 0 0 auto; }
.combo-item .ok svg { width: 11px; height: 11px; }
.combo-empty { padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.4; text-align: center; }
.balance-card.compact { padding: 12px 16px; }
.balance-card.compact .sum b { font-size: 26px; }
.notice a { color: var(--blue-2); font-weight: 700; }
