.tool-hero {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin: 0 auto 0.5rem;
  max-width: 720px;
}
.tool-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.tool-page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
}
.calc-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.75rem;
}
.calc-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-card h2 i { color: #059669; }

.hs-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg, #f1f5f9);
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
}
@media (max-width: 520px) {
  .hs-mode-tabs { grid-template-columns: 1fr; }
}
.hs-tab {
  border: none;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.hs-tab.is-active {
  background: #059669;
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}

.hs-presets-wrap { margin-bottom: 1.25rem; }
.hs-presets-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.45rem;
}
.hs-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hs-pill {
  background: var(--bg, #f8fafc);
  color: var(--text, #0f172a);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.hs-pill:hover, .hs-pill.is-active {
  background: #059669;
  color: #fff;
  border-color: #059669;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.38rem;
}
.form-field input, .form-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: 10px;
  background: var(--bg, #fff);
  color: var(--text, #0f172a);
  outline: none;
}
.form-field input:focus, .form-field select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.hs-money-wrap {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.45rem;
}

.hs-res-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hs-res-head h2 { margin-bottom: 0; }
.hs-copy-btn {
  background: var(--bg, #f8fafc);
  color: var(--text, #0f172a);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 9px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.hs-copy-btn:hover { border-color: #059669; color: #059669; }

.hs-hero-KPIs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 1rem;
}
.hs-kpi {
  background: var(--bg, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.15rem;
}
.hs-kpi.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.05));
  border-color: #34d399;
}
.kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.45rem;
}
.kpi-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  line-height: 1.15;
}
.hs-kpi.highlight .kpi-val { color: #059669; }
[data-theme="dark"] .hs-kpi.highlight .kpi-val { color: #34d399; }
.kpi-sub {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}
.hs-ot-banner {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 0.88rem;
  color: var(--text, #0f172a);
}

.hs-table-note {
  font-size: 0.84rem;
  color: var(--text-muted, #64748b);
  margin: -0.5rem 0 0.85rem;
}
.hs-table-scroll { width: 100%; overflow-x: auto; }
.hs-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.hs-ref-table th, .hs-ref-table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  text-align: right;
  white-space: nowrap;
}
.hs-ref-table th:first-child, .hs-ref-table td:first-child { text-align: left; font-weight: 700; }
.hs-ref-table th {
  background: var(--bg, #f8fafc);
  color: var(--text, #0f172a);
  font-weight: 700;
}
.hs-ref-table tbody tr { cursor: pointer; transition: background 0.12s ease; }
.hs-ref-table tbody tr:hover { background: rgba(5, 150, 105, 0.07); }
