/* HonorPro embedded trading calculators (client widgets) */
.hp-calc *, .hp-calc *::before, .hp-calc *::after { box-sizing: border-box; }
.hp-calc {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  background: #07091a;
  background-image:
    radial-gradient(ellipse at top left, rgba(255, 90, 31, 0.10), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(80, 30, 140, 0.12), transparent 50%);
  border-radius: 18px;
  padding: 36px;
  border: 1px solid rgba(255, 120, 60, 0.25);
  box-shadow: 0 0 60px rgba(255, 90, 31, 0.06);
  max-width: 100%;
  margin: 0;
}
.hp-calc.hp-calc--trading { max-width: 1300px; margin: 0 auto; }
.hp-calc .hp-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}
.hp-calc.hp-calc--trading .hp-grid {
  grid-template-columns: 1fr 1fr 320px;
}
.hp-calc .hp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.hp-calc .hp-col { display: flex; flex-direction: column; gap: 18px; }
.hp-calc .hp-field { display: flex; flex-direction: column; }
.hp-calc .hp-field.full { grid-column: 1 / -1; }
.hp-calc .hp-label { font-size: 13px; color: #93a0c8; margin-bottom: 8px; }
.hp-calc .hp-control {
  background: #050a1a;
  border: 1px solid #1a2240;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  transition: border-color 0.15s ease;
}
.hp-calc .hp-control:focus-within { border-color: #ff5a1f; }
.hp-calc .hp-control input,
.hp-calc .hp-control select {
  background: transparent;
  border: 0;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.hp-calc .hp-control select { cursor: pointer; }
.hp-calc .hp-control select option { background: #0a0f24; color: #fff; }
.hp-calc .hp-control.dropdown::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #93a0c8;
  border-bottom: 2px solid #93a0c8;
  transform: rotate(45deg) translateY(-2px);
  position: absolute;
  right: 18px;
  pointer-events: none;
}
.hp-calc .hp-control.with-flag .hp-flag-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.hp-calc .hp-flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a2240;
}
.hp-calc .hp-results {
  background: #050a1a;
  border: 1px solid #1a2240;
  border-radius: 14px;
  padding: 24px;
}
.hp-calc .hp-results-section { margin-bottom: 24px; }
.hp-calc .hp-results-section:last-child { margin-bottom: 0; }
.hp-calc .hp-results-heading {
  font-size: 12px;
  color: #93a0c8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hp-calc .hp-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #14193080;
}
.hp-calc .hp-result-row:last-child { border-bottom: 0; }
.hp-calc .hp-result-row .hp-rlabel { font-size: 14px; color: #ffffff; font-weight: 500; }
.hp-calc .hp-result-row .hp-rvalue {
  font-size: 15px;
  color: #93a0c8;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hp-calc .hp-result-row .hp-rvalue.populated { color: #ff5a1f; }
.hp-calc .hp-result-row .hp-rvalue.headline { font-size: 22px; }
.hp-calc .hp-result-row .hp-rvalue.positive { color: #21d191; }
.hp-calc .hp-result-row .hp-rvalue.negative { color: #ff5d6c; }
.hp-calc .hp-btn {
  grid-column: 1 / -1;
  background: #ff5a1f;
  color: #ffffff;
  border: 0;
  height: 54px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  width: 100%;
  transition: background 0.15s ease, transform 0.05s ease;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.25);
}
.hp-calc .hp-btn:hover { background: #ff6a35; }
.hp-calc .hp-btn:active { transform: translateY(1px); }

@media (max-width: 1100px) {
  .hp-calc.hp-calc--trading .hp-grid { grid-template-columns: 1fr 1fr; }
  .hp-calc.hp-calc--trading .hp-results { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hp-calc { padding: 24px; }
  .hp-calc .hp-grid { grid-template-columns: 1fr; }
  .hp-calc .hp-fields { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hp-calc.hp-calc--trading .hp-grid { grid-template-columns: 1fr; }
}

.calc-tool-section { margin-top: 8px; }
