/* Calculator-only visual polish. No calculator behavior or layout order lives here. */

.calculator-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 40px;
  background: linear-gradient(135deg, #0f2347 0%, #174b7f 58%, #205f96 100%);
}

.calculator-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -56%;
  width: 68%;
  height: 88%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.calculator-hero .container {
  position: relative;
  z-index: 1;
}

.calculator-hero h2 {
  max-width: 720px;
  margin-top: 11px;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: 0;
}

.calculator-hero p {
  max-width: 680px;
  color: #e6f0fb;
  line-height: 1.6;
}

.calculator-page {
  padding: 32px 0 58px;
  background: #f5f9fc;
}

.calculator-page .calculator-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px;
  border-color: #d5e3ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(16, 73, 124, 0.08);
}

.calculator-page .calculator-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #145da0;
}

.calculator-page .budget-health-card::before,
.calculator-page .bills-ledger-card::before {
  background: #16a34a;
}

.calculator-page .add-bill-card::before {
  background: #78b5df;
}

.calculator-page .dashboard-section-title {
  margin: 0 0 13px;
  padding: 2px 0 12px;
  border-bottom: 1px solid #e4edf5;
}

.calculator-page .dashboard-section-title h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f2347;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.calculator-page .dashboard-section-title h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #145da0;
  box-shadow: 0 0 0 5px #e8f2fb;
}

.calculator-page .budget-health-card .dashboard-section-title h3::before,
.calculator-page .bills-ledger-card .dashboard-section-title h3::before {
  background: #16a34a;
  box-shadow: 0 0 0 5px #e9f8ef;
}

.calculator-page .section-helper {
  max-width: 780px;
  margin: 0 0 13px;
  padding: 8px 12px;
  border-left: 3px solid #78b5df;
  border-radius: 0 8px 8px 0;
  color: #42566d;
  background: #f4f9fd;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.calculator-page .budget-health-card .section-helper,
.calculator-page .bills-ledger-card .section-helper {
  border-left-color: #43b77a;
  background: #f2fbf6;
}

.calculator-page .enhanced-bill-input {
  gap: 10px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background: #f8fbff;
}

.calculator-page .calculator-card input,
.calculator-page .calculator-card select {
  min-height: 40px;
  border-color: #c9ddec;
  background: #ffffff;
}

.calculator-page .calculator-card input:focus,
.calculator-page .calculator-card select:focus {
  outline: none;
  border-color: #145da0;
  box-shadow: 0 0 0 3px rgba(20, 93, 160, 0.12);
}

.calculator-page .calculator-card button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
}

.calculator-page .stress-meter {
  padding: 14px;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background: #f8fbff;
}

.calculator-page .dashboard-stat-card {
  border-color: #dbe5f1;
  background: #fbfdff;
  box-shadow: 0 6px 16px rgba(16, 73, 124, 0.06);
}

.calculator-page .table-wrap {
  overflow-x: auto;
  border: 1px solid #dbe5f1;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 73, 124, 0.05);
}

.calculator-page #billsTable th {
  background: #edf6fd;
  color: #0f2347;
}

.calculator-page .next-move-card {
  background: linear-gradient(145deg, #ffffff, #f6fbff);
}

.calculator-page .next-step-btn {
  border-radius: 11px;
  background: linear-gradient(135deg, #16a34a, #145da0);
  box-shadow: 0 9px 20px rgba(20, 93, 160, 0.18);
}

@media (max-width: 640px) {
  .calculator-hero {
    padding: 34px 0 32px;
  }

  .calculator-hero h2 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .calculator-page {
    padding-top: 24px;
  }

  .calculator-page .calculator-card {
    padding: 16px;
  }

  .calculator-page .dashboard-section-title {
    gap: 8px;
  }

  .calculator-page .enhanced-bill-input {
    padding: 10px;
  }
}
