body.page-tools-fx {
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 300px);
}
.fx-hero {
  border-radius: 20px;
  padding: 22px 20px;
  background: linear-gradient(145deg, #dbeafe 0%, #eff6ff 60%, #f8fafc 100%);
  border: 1px solid #93c5fd;
  margin-bottom: 20px;
}
.fx-hero h1 { margin: 0 0 8px; font-size: clamp(1.35rem, 3.5vw, 1.65rem); color: #1e3a8a; }
.fx-hero-lead { margin: 0; color: #374151; font-size: 0.94rem; line-height: 1.5; }
.fx-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
@media (min-width: 720px) {
  .fx-hero-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fx-hero-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  padding: 12px;
}
.fx-hero-code { margin: 0 0 4px; font-weight: 800; font-size: 0.95rem; }
.fx-hero-vnd { margin: 0; font-size: 0.82rem; font-weight: 600; color: #1d4ed8; line-height: 1.35; }

.fx-convert-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .fx-convert-row { grid-template-columns: 1fr auto 1fr auto; align-items: end; }
}
.fx-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.fx-field input,
.fx-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}
.fx-swap-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  height: 44px;
}
.fx-result-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
}
.fx-result-label { margin: 0 0 4px; font-size: 0.82rem; color: #166534; }
.fx-result-value { margin: 0; font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 800; color: #14532d; }
.fx-result-hint { margin: 8px 0 0; font-size: 0.85rem; color: #15803d; }

.fx-search {
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.fx-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fx-table th,
.fx-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fx-table th:first-child,
.fx-table td:first-child,
.fx-table td:nth-child(2) { text-align: left; }
.fx-chart-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.fx-chart-pair select { flex: 1; min-width: 140px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); }
.fx-chart-wrap { overflow-x: auto; }
.fx-chart { display: block; width: 100%; min-width: 280px; height: auto; }
.fx-chart-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
