/**
 * Финансы → STON · снятие LP + обмен + пулы
 */
body.vh-page-finances .admin-main {
  padding: 8px 12px 24px;
}

.vh-fin-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vh-fin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vh-fin-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.vh-fin-head__sub {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #64748b;
  max-width: 36rem;
}

.vh-fin-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vh-fin-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #475569;
}

.vh-fin-wallet code {
  font-size: 0.78rem;
  word-break: break-all;
}

.vh-fin-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%);
  border: 1px solid #6ee7b7;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
}

.vh-fin-hero__q {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #065f46;
}

.vh-fin-hero__sum {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 900;
  color: #047857;
  line-height: 1.1;
}

.vh-fin-hero__sub {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #047857;
}

.vh-fin-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .vh-fin-workspace {
    grid-template-columns: 1fr;
  }
}

.vh-fin-panel {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.vh-fin-panel--swap {
  border-color: #5eead4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 24%);
}

.vh-fin-panel--pools {
  border-color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.vh-fin-panel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}

.vh-fin-panel__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.vh-fin-tokens {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.vh-fin-token {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.vh-fin-token--ton {
  background: #dbeafe;
  color: #1d4ed8;
}

.vh-fin-token--yoga {
  background: #fef3c7;
  color: #b45309;
}

.vh-fin-token--usdt {
  background: #d1fae5;
  color: #047857;
}

.vh-fin-widget-wrap {
  margin: 10px 12px 14px;
  border-radius: 12px;
  border: 1px solid #99f6e4;
  background: #fff;
  min-height: 420px;
  overflow: hidden;
}

#omniston-widget-container-fin {
  min-height: 400px;
}

.vh-fin-widget-loading {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
}

.vh-fin-ston-fallback {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
}

.vh-fin-pool-card {
  border-radius: 12px;
  padding: 14px 16px;
}

.vh-fin-pool-card h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.vh-fin-pool-card p {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.vh-fin-pool-card--add {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%);
  border: 1px solid #7dd3fc;
}

.vh-fin-pool-card--add h4 {
  color: #0369a1;
}

.vh-fin-pool-card--withdraw {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
  border: 1px solid #fdba74;
}

.vh-fin-pool-card--withdraw h4 {
  color: #c2410c;
}

.vh-fin-pool-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vh-fin-pool-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.vh-fin-pool-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.vh-fin-pool-card--add .vh-fin-pool-btn {
  border-color: #bae6fd;
}

.vh-fin-pool-card--withdraw .vh-fin-pool-btn {
  border-color: #fed7aa;
}

.vh-fin-pool-btn__meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
}

.vh-fin-pool-btn__arrow {
  color: #0f766e;
  flex-shrink: 0;
}

.vh-fin-pool-card--withdraw .vh-fin-pool-btn__arrow {
  color: #ea580c;
}

.vh-fin-pool-empty {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.vh-fin-ston-frame-wrap {
  margin-top: 4px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
}

.vh-fin-ston-frame-wrap[hidden] {
  display: none !important;
}

.vh-fin-ston-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: #f1f5f9;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.vh-fin-ston-frame {
  display: block;
  width: 100%;
  height: min(520px, 55vh);
  border: none;
  background: #fff;
}

.vh-fin-positions {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 14px 16px;
}

.vh-fin-positions h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.vh-fin-pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.vh-fin-pos-table th {
  text-align: left;
  padding: 8px 10px;
  color: #64748b;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.vh-fin-pos-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.vh-fin-pos-table tr:last-child td {
  border-bottom: none;
}

.vh-fin-link {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.vh-fin-link:hover {
  text-decoration: underline;
}
