.nfh-calculator {
  max-width: 520px;
  margin: 24px auto;
  font-family: inherit;
}

.nfh-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e8edf3;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.nfh-header {
  margin-bottom: 22px;
}

.nfh-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.nfh-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
  color: #0f172a;
}

.nfh-header p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.nfh-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.nfh-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
}

.nfh-input-wrap input {
  width: 100%;
  border: 0 !important;
  outline: none !important;
  background: transparent;
  padding: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: none !important;
}

.nfh-input-wrap span {
  padding: 0 16px;
  color: #64748b;
  font-weight: 700;
}

.nfh-error {
  background: #fff1f2 !important;
}

.nfh-button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  padding: 15px 18px;
  background: #2563eb;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.nfh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.nfh-result {
  margin-top: 22px;
  padding-top: 10px;
  animation: nfhFadeIn 0.22s ease-out;
}

.nfh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f7;
  color: #334155;
  font-size: 15px;
}

.nfh-row strong {
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}

.nfh-highlight {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0f172a 100%);
  margin: 18px 0 14px;
  padding: 22px 20px;
  border-radius: 22px;
  border-bottom: 0;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.26);
  overflow: hidden;
}

.nfh-highlight::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -55px;
  top: -70px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.nfh-highlight span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.nfh-highlight strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  text-align: left;
  white-space: normal;
}

.nfh-net {
  border-bottom: 0;
  font-weight: 700;
}

.nfh-net strong {
  color: #16a34a;
}

.nfh-note {
  display: block;
  margin-top: 14px;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .nfh-card {
    padding: 20px;
    border-radius: 18px;
  }

  .nfh-header h3 {
    font-size: 21px;
  }

  .nfh-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nfh-row strong {
    text-align: left;
  }
}

.nfh-row em {
  font-style: normal;
  color: #64748b;
  font-size: 13px;
}

.nfh-net-input strong {
  color: #16a34a;
}

.nfh-total-row {
  border-bottom: 0;
  font-weight: 700;
}


.nfh-result-title {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.nfh-total-row {
  background: #f8fafc;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
}

.nfh-total-row strong {
  color: #0f172a;
  font-size: 17px;
}

@keyframes nfhFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
