.tool-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #4338ca 100%);
  padding: 5rem 1.5rem 3rem;
  margin-top: 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.06); top: -150px; right: -100px;
}
.tool-hero::after {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.04); bottom: -100px; left: -50px;
}
.tool-hero-content { position: relative; z-index: 1; }
.tool-hero-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.tool-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800; color: white;
  letter-spacing: -1px; margin-bottom: 0.75rem;
}
.tool-hero p { font-size: 1rem; color: rgba(255,255,255,0.78); max-width: 500px; margin: 0 auto; }

.tool-main { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.hr-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 0.75rem;
}
.form-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(59,130,246,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.form-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.form-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px;
}
.field-input-wrap { position: relative; }
.field-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.9rem; font-weight: 600; color: var(--text-muted); pointer-events: none;
}
.field-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted); pointer-events: none;
}
.field-input {
  width: 100%; padding: 0.7rem 2.5rem 0.7rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  color: var(--text); outline: none;
  transition: var(--transition); background: var(--bg);
}
.field-input.no-prefix { padding-left: 0.9rem; }
.field-input.no-suffix { padding-right: 0.9rem; }
.field-input:focus {
  border-color: #3b82f6; background: white;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.field-input::placeholder { color: var(--text-light); }

.field-hint { font-size: 0.75rem; color: var(--text-light); }

.btn-calc {
  width: 100%; padding: 0.875rem;
  background: linear-gradient(135deg, #3b82f6, #4338ca);
  color: white; border: none; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: var(--transition);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,0.4); }
.btn-reset-small {
  width: 100%; padding: 0.7rem;
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: var(--transition);
}
.btn-reset-small:hover { border-color: var(--text-muted); color: var(--text); }

.result-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden;
}
.result-card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6, #4338ca);
  color: white;
}
.result-card-title { font-size: 0.95rem; font-weight: 700; }
.result-card-subtitle { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

.rate-highlight {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.rate-highlight-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.rate-highlight-value {
  font-size: 3rem; font-weight: 900;
  letter-spacing: -2px; color: #3b82f6; line-height: 1;
}
.rate-highlight-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }

.rate-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-light);
}
.rate-grid-item {
  padding: 1.1rem 1rem; text-align: center;
  border-right: 1px solid var(--border-light);
}
.rate-grid-item:last-child { border-right: none; }
.rate-grid-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.3rem; }
.rate-grid-value { font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }

.breakdown-section { padding: 1.25rem 1.5rem; }
.breakdown-title { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.75rem; }
.breakdown-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label { color: var(--text-muted); }
.breakdown-value { font-weight: 600; color: var(--text); }

.result-placeholder {
  padding: 3rem 2rem; text-align: center; color: var(--text-light);
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1;
}
.result-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }

@media (max-width: 640px) {
  .hr-layout { grid-template-columns: 1fr; }
  .rate-grid { grid-template-columns: 1fr; }
  .rate-grid-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .rate-grid-item:last-child { border-bottom: none; }
}
