/* ═══════════════════════════════
   WALLET
═══════════════════════════════ */
.wallet-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  gap: 14px;
}

.wallet-spinner {
  width: 80px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  animation: none;
}

.lottie-spinner svg {
  width: 100% !important;
  height: 100% !important;
}

.wallet-loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 1px;
}

.wallet-card {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--cyan) 60%, transparent);
  opacity: .28;
}

.wallet-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.wallet-card-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-exchange-icon {
  color: var(--accent);
  display: flex;
}

.wallet-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.wallet-mode-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}

.badge-demo {
  color: var(--white);
  background: none;
  border: none;
}

.badge-live {
  color: transparent;
  background: none;
  border: none
}

.wallet-exchange-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.wallet-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--sc);
  background: color-mix(in srgb, var(--sc) 10%, transparent);
  border: none;
  padding: 5px 11px;
  border-radius: 20px;
}

.wallet-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc);
  box-shadow: 0 0 6px var(--sc);
}

.wallet-key-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.wallet-key-box {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 13px;
}

.wallet-key-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink3);
  margin-bottom: 4px;
}

.wallet-key-val {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  word-break: break-all;
  line-height: 1.4;
}

.wallet-actions-row {
  display: flex;
  gap: 8px;
}

.wallet-btn-secondary {
  flex: 1;
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: 11px;
  padding: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s;
}

.wallet-btn-secondary:hover {
  border-color: var(--border3);
  color: var(--ink);
}

.wallet-btn-primary {
  flex: 1.2;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .34);
  border-radius: 11px;
  padding: 12px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all .15s;
}

.wallet-btn-primary:hover {
  background: rgba(59, 130, 246, .18);
}

.wallet-btn-danger {
  width: 46px;
  flex-shrink: 0;
  background: var(--red-dim);
  border: 1px solid rgba(255, 62, 62, .3);
  border-radius: 11px;
  padding: 12px;
  color: var(--red);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

.wallet-btn-danger:hover {
  background: rgba(255, 62, 62, .2);
  border-color: rgba(255, 62, 62, .5);
}

.wallet-btn-danger:active {
  transform: scale(.92);
}

.wallet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.wallet-info-box {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-info-icon {
  display: flex;
  color: var(--ink3);
}

.wallet-info-text {
  font-size: 12px;
  color: var(--ink3);
  line-height: 1.5;
}

.wallet-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: rgba(59, 130, 246, .05);
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: 9px;
  padding: 11px 13px;
  margin-bottom: 13px;
}

.wallet-hint-icon {
  display: flex;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.wallet-hint-text {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
}

.wallet-hint-text b {
  color: var(--accent);
  font-weight: 700;
}

.wallet-save-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .38);
  border-radius: 13px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}

.wallet-save-btn:hover {
  background: rgba(59, 130, 246, .18);
}

.wallet-save-btn:active {
  transform: scale(.98);
}

.wallet-save-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Toggle */
.toggle {
  position: relative;
  width: 38px;
  height: 21px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--s3);
  border: 1px solid var(--border2);
  border-radius: 11px;
  transition: background .2s, border-color .2s;
}

.toggle input:checked~.toggle-track {
  background: rgba(59, 130, 246, .25);
  border-color: var(--accent);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink3);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}

.toggle input:checked~.toggle-track~.toggle-knob {
  transform: translateX(17px);
  background: var(--accent);
}

/* Form elements */
.wf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 13px;
}

.wf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink3);
}

.wf-required {
  color: var(--red);
}

.wf-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.wf-input {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.wf-input::placeholder {
  color: var(--ink3);
  font-family: var(--font-body);
  font-size: 13px;
}

.wf-input:focus {
  border-color: var(--accent);
}

.wf-input-wrap .wf-input {
  padding-right: 46px;
}

.wf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wf-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.wf-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wf-toggle-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.wf-toggle-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.wf-paste-btn,
.wf-eye-btn {
  position: absolute;
  right: 11px;
  background: none;
  border: none;
  color: var(--ink3);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  transition: color .15s, background .15s;
}

.wf-paste-btn:hover,
.wf-eye-btn:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ═══════════════════════════════
   SETTINGS — редизайн без теней, в стиле dashboard
═══════════════════════════════ */
.settings-param-card {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.settings-param-icon {
  color: var(--accent);
  opacity: .6;
  margin-bottom: 2px;
}

.settings-param-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink3);
}

.settings-param-val {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}

.settings-param-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink3);
}

.settings-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.settings-input-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
  margin-top: 2px;
  line-height: 1.5;
}

.settings-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(59, 130, 246, .05);
  border: 1px solid rgba(59, 130, 246, .12);
  border-radius: var(--r);
  padding: 13px 14px;
  margin-bottom: 18px;
}

.settings-info-box svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.settings-info-text {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.55;
}

.settings-levels-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.settings-level-box {
  flex: 1;
  min-width: 120px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-level-box--tp {
  border-color: rgba(57, 255, 20, .2);
}

.settings-level-box--sl {
  border-color: rgba(255, 62, 62, .2);
}

.settings-level-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink3);
}

.settings-level-val {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
}

.settings-level-box--tp .settings-level-val {
  color: var(--green);
}

.settings-level-box--sl .settings-level-val {
  color: var(--red);
}

.settings-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.settings-divider::before,
.settings-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.settings-divider span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink3);
  white-space: nowrap;
}

/* ── Settings limit status ── */
.settings-limit-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid;
  transition: all .2s;
}

.settings-limit-status--on {
  background: rgba(57, 255, 20, .06);
  border-color: rgba(57, 255, 20, .22);
}

.settings-limit-status--off {
  background: rgba(214, 220, 232, .04);
  border-color: var(--border2);
}

.settings-limit-status__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-limit-status__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-limit-status--on .settings-limit-status__icon {
  background: rgba(57, 255, 20, .12);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, .2);
}

.settings-limit-status--off .settings-limit-status__icon {
  background: var(--s3);
  color: var(--ink3);
  border: 1px solid var(--border2);
}

.settings-limit-status__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}

.settings-limit-status__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.settings-limit-status__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.settings-limit-status--on .settings-limit-status__badge {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(57, 255, 20, .22);
}

.settings-limit-status--off .settings-limit-status__badge {
  color: var(--ink3);
  background: var(--s3);
  border: 1px solid var(--border2);
}

/* ── Settings toggle row ── */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 15px;
  margin-bottom: 10px;
}

.settings-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-toggle-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.settings-toggle-desc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.settings-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.settings-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.settings-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--s3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  transition: background .2s, border-color .2s;
}

.settings-toggle input:checked~.settings-toggle-track {
  background: var(--green);
  border-color: var(--green);
}

.settings-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ink3);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s;
}

.settings-toggle input:checked~.settings-toggle-track~.settings-toggle-knob {
  transform: translateX(20px);
  background: #fff;
}

/* ── Exchange selection cards ── */
.exchange-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.exchange-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 14px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.exchange-select-card:active {
  transform: scale(.97);
}

.exchange-select-card:hover {
  border-color: var(--border2);
  background: var(--s2);
}

.exchange-select-card.selected {
  border-color: var(--accent);
  background: rgba(59, 130, 246, .06);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .2);
}

.exchange-select-card.selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: .6;
}

.exchange-select-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--s2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  transition: all .2s;
}

.exchange-select-card.selected .exchange-select-card__icon {
  background: var(--accent-dim);
  border-color: rgba(59, 130, 246, .3);
  color: var(--accent);
}

.wallet-onboard-icon .just-wallet-animation {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-onboard-icon .just-wallet-animation svg {
  width: 32px !important;
  height: 32px !important;
}

.exchange-select-card__name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.exchange-select-card__badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(245, 158, 11, .25);
  padding: 3px 8px;
  border-radius: 20px;
  position: absolute;
  top: 8px;
  right: 8px;
}

/* ── Wallet onboard (empty state) ── */
.wallet-onboard {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wallet-onboard-header {
  display: flex;
  /* Включаем Flexbox */
  flex-direction: column;
  /* Выстраиваем элементы вертикально */
  align-items: center;
  /* Центрируем анимацию и все блоки по горизонтали */
  text-align: center;
  /* Центрируем текст внутри блоков */
  padding: 20px 10px 18px;
}

.wallet-onboard-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}

.wallet-onboard-sub {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

.wallet-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  gap: 10px;
}

.wallet-empty-icon {
  color: var(--ink3);
  margin-bottom: 4px;
}

.wallet-empty-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink2);
}

.wallet-empty-desc {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.5;
  max-width: 240px;
}

.wallet-edit-section {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 16px;
  animation: fadeUp .2s ease;
}

.wallet-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink2);
}

.wallet-edit-close {
  background: none;
  border: none;
  color: var(--ink3);
  cursor: pointer;
  padding: 4px;
  border-radius: 5px;
  display: flex;
  transition: color .15s, background .15s;
}

.wallet-edit-close:hover {
  color: var(--ink);
  background: var(--s3);
}

/* ═══════════════════════════════
   PLAN
═══════════════════════════════ */
.plan-current-card {
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.plan-current-card--free {
  background: var(--s1);
  border: 1px solid var(--border2);
}

.plan-current-card--pro {
  background: linear-gradient(135deg, rgba(191, 0, 255, .1) 0%, rgba(59, 130, 246, .07) 100%);
  border: 1px solid rgba(191, 0, 255, .3);
}

.plan-current-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.plan-current-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
}

.plan-badge--free {
  color: var(--ink3);
  background: var(--s2);
  border: 1px solid var(--border2);
}

.plan-badge--pro {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .28);
}

.plan-expires {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.plan-stat-row {
  display: flex;
  gap: 16px;
}

.plan-stat__val {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}

.plan-stat__lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink3);
}

.plan-free-bar {
  height: 4px;
  background: var(--s3);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}

.plan-free-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 2px;
  transition: width .4s ease;
}

.plan-free-reset {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
  margin-top: 7px;
}

.plan-section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink3);
  margin-bottom: 10px;
}

.plan-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.plan-compare__col {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 13px 12px;
}

.plan-compare__col--pro.plan-compare__col--active {
  border-color: rgba(59, 130, 246, .22);
  background: linear-gradient(135deg, var(--accent-dim), rgba(34, 34, 34, .04));
}

.plan-compare__head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink3);
  margin-bottom: 10px;
  text-align: center;
}

.plan-compare__head--pro {
  color: var(--accent);
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.4;
}

.plan-feature--on {
  color: var(--ink2);
}

.plan-feature--off {
  color: var(--ink3);
}

.plan-feature--on svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature--off svg {
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
  opacity: .6;
}

.plan-payment-block {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 20px 18px;
  text-align: center;
  margin-bottom: 20px;
}

.plan-payment-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.plan-payment-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin-bottom: 7px;
}

.plan-payment-amount {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
}

.plan-payment-currency {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

.plan-payment-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink3);
}

.plan-payment-note {
  font-size: 13px;
  color: var(--ink3);
  margin-bottom: 16px;
  line-height: 1.5;
}

.plan-pay-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: var(--r2);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}

.plan-pay-btn:hover {
  background: rgba(59, 130, 246, .18);
}

.plan-pay-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.plan-pro-note {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--green-dim);
  border: 1px solid rgba(57, 255, 20, .22);
  border-radius: var(--r2);
  padding: 13px 16px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}

/* ═══════════════════════════════
   PREMIUM UPGRADE MODAL
═══════════════════════════════ */
.premium-upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: none;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.premium-upgrade-modal.open {
  display: flex;
  pointer-events: all;
}

.premium-upgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 30, .75);
  backdrop-filter: blur(6px);
  z-index: 0;
}

.premium-upgrade-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--s1);
  border-top: 1px solid var(--border2);
  border-radius: 20px 20px 0 0;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 32px);
  animation: slideUp .3s cubic-bezier(.34, 1.4, .64, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.premium-upgrade-sheet .ai-sheet-handle {
  margin: 10px auto 0;
}

.premium-upgrade-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 0 12px;
  position: sticky;
  top: 0;
  background: var(--s1);
  z-index: 2;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.premium-upgrade-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 3px;
}

.premium-upgrade-sub {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.4;
}

.premium-upgrade-close {
  background: none;
  border: none;
  color: var(--ink3);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}

.premium-upgrade-close:hover {
  color: var(--ink);
  background: var(--s3);
}

.premium-upgrade-body {
  padding-bottom: 8px;
}

.premium-upgrade-desc {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.premium-upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.premium-upgrade-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.4;
}

.premium-upgrade-feature svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

.premium-upgrade-animation-wrap {
  width: 100%;
  height: 180px;
  margin: 0 auto 18px;
}

.premium-upgrade-animation-wrap .premium-card-animation {
  width: 100%;
  height: 100%;
}

.premium-upgrade-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .35);
  border-radius: var(--r2);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
}

.premium-upgrade-btn:hover {
  background: rgba(59, 130, 246, .18);
}

.premium-upgrade-btn:active {
  transform: scale(.98);
}

/* ── Plan page animation block ── */
.plan-animation-section {
  background: var(--s1);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 20px 18px;
  margin-bottom: 20px;
  text-align: center;
}

.plan-animation-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-animation-desc {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
  margin-bottom: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.plan-animation-wrap {
  width: 100%;
  height: 180px;
  margin: 0 auto;
}

.plan-animation-wrap .premium-card-animation {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════
   HISTORY
═══════════════════════════════ */
.hist-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hist-period-row {
  display: flex;
  gap: 3px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 3px;
}

.hist-period-btn {
  background: none;
  border: none;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink3);
  cursor: pointer;
  padding: 5px 10px;
  transition: all .15s;
}

.hist-period-btn:hover {
  color: var(--ink2);
}

.hist-period-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, .22);
}

.hist-period-btn:active {
  transform: scale(.9);
}

.hist-channel-wrap {
  flex: 1;
  min-width: 120px;
}

.hist-channel-select {
  width: 100%;
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink2);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hist-channel-select:focus {
  border-color: var(--accent);
}

.hist-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.hist-stat-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 10px 8px;
  text-align: center;
}

.hist-stat-pnl {
  grid-column: span 2;
  text-align: left;
  padding: 12px 14px;
  border-color: var(--border2);
}

@media (max-width: 380px) {
  .hist-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hist-stat-pnl {
    grid-column: span 3;
  }
}

.hist-stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink3);
  margin-bottom: 5px;
}

.hist-stat-val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.hist-stat-pnl .hist-stat-val {
  font-size: 28px;
}

.hist-stat-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
  font-weight: 400;
  margin-left: 3px;
}

.hist-deal-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px 10px;
  margin-bottom: 7px;
  animation: fadeUp .25s ease both;
}

.hist-deal-card:hover {
  border-color: var(--border2);
}

.hist-deal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.hist-deal-body {
  flex: 1;
  min-width: 0;
}

.hist-deal-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.hist-deal-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.hist-deal-right {
  text-align: right;
  flex-shrink: 0;
}

.hist-deal-pnl {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.hist-deal-pnl.pos {
  color: var(--green);
}

.hist-deal-pnl.neg {
  color: var(--red);
}

.hist-deal-roi {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.hist-deal-roi.pos {
  color: rgba(57, 255, 20, .7);
}

.hist-deal-roi.neg {
  color: rgba(255, 62, 62, .7);
}

.hist-deal-prices {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hist-price-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink3);
}

.hist-price-tag b {
  color: var(--ink2);
  font-weight: 600;
}

.hist-load-more {
  width: 100%;
  padding: 12px;
  background: var(--s2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink2);
  cursor: pointer;
  margin: 4px 0 12px;
  transition: all .15s;
}

.hist-load-more:hover {
  background: var(--s3);
  color: var(--accent);
}

/* ═══════════════════════════════
   FAQ
═══════════════════════════════ */
.faq-cat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink3);
  margin: 18px 0 8px;
}

.faq-item {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color .2s;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 10px;
  text-align: left;
}

.faq-trigger:hover {
  background: var(--s2);
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  line-height: 1.4;
  flex: 1;
}

.faq-chevron {
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open {
  border-color: rgba(59, 130, 246, .2);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-body {
  max-height: 400px;
}

.faq-answer {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
  margin-top: 10px;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 4px;
}

.faq-answer b {
  color: var(--ink);
  font-weight: 700;
}

/* ── Select (wf-select) ── */
.wf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(232,232,232,.3)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

[data-theme="light"] .wf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(26,29,46,.42)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ── TP Section ── */
.tp-section {
  margin-bottom: 14px;
}

.tp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.tp-item {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 6px;
  align-items: center;
  animation: fadeUp .15s ease both;
}

.tp-item .wf-input {
  padding: 10px 12px;
  font-size: 11px;
}

.tp-remove-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  border: 1px solid rgba(255, 62, 62, .25);
  border-radius: 8px;
  color: var(--red);
  cursor: pointer;
  transition: all .15s;
  padding: 0;
}

.tp-remove-btn:hover {
  background: rgba (255, 62, 62, .22);
  border-color: rgba(255, 62, 62, .45);
}

.tp-remove-btn:active {
  transform: scale(.88);
}

.tp-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--s2);
  border: 1px dashed var(--border2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink3);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 6px;
}

.tp-add-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.tp-add-btn:active {
  transform: scale(.98);
}

.tp-add-btn svg {
  flex-shrink: 0;
}

/* ── Плавающая панель сохранения (Параметры) ── */
.settings-sticky-save {
  position: fixed;
  left: 50%;
  bottom: calc(var(--navbar-h, 62px) + env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%) translateY(14px);
  width: calc(100% - 28px);
  max-width: 452px;
  z-index: 480;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.34, 1.4, .64, 1);
}

.settings-sticky-save.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.settings-sticky-save .wallet-save-btn {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
}

/* ── ЦЕНТРИРОВАНИЕ ВСЕГО МИНИ-АППА НА ДЕСКТОПЕ ── */
.page {
  /* Ограничиваем максимальную ширину под размеры экрана смартфона */
  max-width: 450px;

  /* ИСПРАВЛЕНО: margin: 0 auto выравнивает весь этот мобильный фрейм строго по центру экрана */
  margin: 0 auto;

  width: 100%;
  position: relative;
}

/* ═══════════════════════════════
   WALLET — Keys Invalid Warning
═══════════════════════════════ */
.wallet-keys-invalid-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 62, 62, .06);
  border: 1px solid rgba(255, 62, 62, .22);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 12px;
  animation: fadeUp .25s ease both;
}

.wallet-keys-invalid-icon {
  display: flex;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.wallet-keys-invalid-body {
  flex: 1;
  min-width: 0;
}

.wallet-keys-invalid-title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 2px;
}

.wallet-keys-invalid-desc {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════
   WALLET REDESIGN 
   (стили под новую разметку из обновлённого wallet.js)
═══════════════════════════════════════════════ */

/* ── Карточки выбора биржи ── */
.exch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.exch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 132px;
  border-radius: 16px;
  background: var(--s1);
  border: 1px solid var(--border);
  cursor: pointer;
  overflow: hidden;
  transition: all .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.exch-card:hover {
  border-color: var(--border2);
  background: var(--s2);
}

.exch-card:active {
  transform: scale(.97);
}

.exch-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .25);
}

.exch-card--disabled {
  cursor: not-allowed;
  opacity: .55;
}

.exch-card--disabled:hover {
  border-color: var(--border);
  background: var(--s1);
}

.exch-card__soon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--s3);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
}

.exch-card__logo-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 4px;
}

.exch-card__logo {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

/* Название биржи внизу карточки + тень позади текста (не text-shadow,
   а размытое пятно за текстом для читаемости на любом фоне логотипа) */
.exch-card__name-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px;
}

.exch-card__name-shadow {
  position: absolute;
  inset: -10px -16px 0;
  background: radial-gradient(ellipse 75% 100% at 50% 55%, rgba(0, 0, 0, .40) 0%, transparent 75%);
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
}

.exch-card__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
}

/* ── Шаг 2: выбор типа счёта (реальный / demo) ── */
.acc-type-section {
  margin-top: 4px;
  animation: fadeUp .25s ease both;
}

.acc-type-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink3);
  margin-bottom: 10px;
}

.acc-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.acc-type-card {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}

.acc-type-card:hover {
  border-color: var(--border2);
  background: var(--s2);
}

.acc-type-card:active {
  transform: scale(.97);
}

.acc-type-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
}

.acc-type-card--demo .acc-type-card__icon {
  background: var(--amber-dim);
  color: var(--amber);
}

.acc-type-card__name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.acc-type-card__desc {
  font-size: 11px;
  color: var(--ink3);
  line-height: 1.4;
}

/* ── Шаг 3: форма подключения (ссылка + видео + поля) ── */
.connect-flow {
  animation: fadeUp .25s ease both;
}

.connect-flow__back {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--ink3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 10px;
  transition: color .15s;
}

.connect-flow__back:hover {
  color: var(--ink);
}

.connect-flow__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.connect-api-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(59, 130, 246, .3);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 16px;
  transition: all .15s;
}

.connect-api-link:hover {
  background: rgba(59, 130, 246, .18);
}

.connect-api-link svg {
  flex-shrink: 0;
}

.connect-api-link .ext-icon {
  margin-left: auto;
}

.connect-video-block {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.connect-video-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--s2);
}

.connect-video-tab {
  flex: 1;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink3);
  cursor: pointer;
  transition: all .15s;
}

.connect-video-tab.active {
  background: var(--s1);
  color: var(--accent);
}

.connect-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.connect-instructions {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.55;
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* ── Кнопка "Подключить" / "Обновить ключи" — стиль как в дэшборде:
   без рамки, сплошная синяя заливка. Переопределяет старое правило
   .wallet-save-btn выше по файлу (rgba-заливка + бордер). ── */
.wallet-save-btn {
  background: var(--accent) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, .32) !important;
}

.wallet-save-btn:hover {
  background: var(--accent) !important;
  filter: brightness(1.12);
}

.wallet-save-btn:active {
  transform: scale(.98);
}

.wallet-save-btn:disabled {
  filter: none;
  opacity: .45;
}

/* Светлая тема — сохраняем тот же сплошной синий, просто без переопределения bg,
   т.к. --accent уже сам подстраивается под тему через theme.css */
[data-theme="light"] .wallet-save-btn {
  background: var(--accent) !important;
  border: none !important;
  color: #fff !important;
}
