
.iam-tax {
  --tax-bg: #08111f;
  --tax-surface: #122337;
  --tax-border: #294156;
  --tax-primary: #1cd7f5;
  --tax-success: #4ade80;
  --tax-warning: #f59e0b;
  --tax-text: #f1f5f9;
  --tax-muted: #a5b8cc;

  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  background: var(--tax-bg);
  color: var(--tax-text);
  border: 1px solid var(--tax-border);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 36px);
  max-width: 1100px;
  margin: 24px auto;
  line-height: 1.6;
  color-scheme: dark;
}

.iam-tax *,
.iam-tax *::before,
.iam-tax *::after {
  box-sizing: border-box;
}

.iam-tax h2,
.iam-tax h3,
.iam-tax p {
  color: inherit;
  margin-top: 0;
}

.iam-tax .tax-brand {
  color: var(--tax-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.iam-tax .tax-muted {
  color: var(--tax-muted);
  font-size: 13px;
}

.iam-tax .tax-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iam-tax .tax-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.iam-tax label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tax-muted);
}

.iam-tax input,
.iam-tax select {
  width: 100%;
  min-height: 48px;
  background: var(--tax-surface);
  color: var(--tax-text);
  border: 1px solid var(--tax-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
}

.iam-tax input:focus,
.iam-tax select:focus {
  outline: 2px solid var(--tax-primary);
  outline-offset: 2px;
}

.iam-tax button {
  font-family: inherit;
  cursor: pointer;
}

.iam-tax .tax-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  background: var(--tax-primary);
  color: #08111f;
  font-size: 16px;
  font-weight: 750;
}

.iam-tax .tax-button:hover {
  filter: brightness(1.08);
}

.iam-tax button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.iam-tax .tax-secondary {
  background: transparent;
  border: 1px solid var(--tax-border);
  color: var(--tax-muted);
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  margin-top: 10px;
}

.iam-tax .tax-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--tax-border);
}

.iam-tax details {
  background: var(--tax-surface);
  border: 1px solid var(--tax-border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 20px;
}

.iam-tax summary {
  cursor: pointer;
  color: var(--tax-primary);
  font-weight: 600;
}

.iam-tax details .tax-grid {
  margin-top: 16px;
}

.iam-tax .tax-hero {
  text-align: center;
  padding: 28px 12px;
}

.iam-tax .tax-hero-value {
  color: var(--tax-success);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  overflow-wrap: anywhere;
  letter-spacing: -1px;
}

.iam-tax .tax-stat {
  background: var(--tax-surface);
  border: 1px solid var(--tax-border);
  border-radius: 14px;
  padding: 18px;
}

.iam-tax .tax-stat-value {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 750;
  color: var(--tax-primary);
  overflow-wrap: anywhere;
}

.iam-tax .tax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--tax-border);
  font-size: 14px;
}

.iam-tax .tax-row strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.iam-tax .tax-bar {
  display: flex;
  width: 100%;
  height: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tax-border);
  margin: 20px 0;
}

.iam-tax .tax-bar span {
  display: block;
  height: 100%;
  transition: width .35s ease;
}

.iam-tax .tax-notice {
  border: 1px solid var(--tax-border);
  background: var(--tax-surface);
  border-radius: 12px;
  padding: 14px;
  margin-top: 18px;
  font-size: 13px;
}

.iam-tax .tax-error {
  color: #fca5a5;
  border-color: #991b1b;
  background: #321b25;
}

.iam-tax [hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .iam-tax {
    border-radius: 16px;
    padding: 16px;
  }

  .iam-tax .tax-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .iam-tax .tax-row {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iam-tax .tax-bar span {
    transition: none;
  }
}


/* =========================================
   FEDERAL INCOME TAX CALCULATOR — 014
========================================= */

.iam-federal {
  --ft-bg: #08111f;
  --ft-surface: #122337;
  --ft-border: #294156;
  --ft-accent: #1cd7f5;
  --ft-success: #4ade80;
  --ft-muted: #a5b8cc;

  box-sizing: border-box;
  background: var(--ft-bg);
  color: #f1f5f9;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--ft-border);
  font-family: inherit;
  width: 100%;
}

.iam-federal *,
.iam-federal *::before,
.iam-federal *::after {
  box-sizing: border-box;
}

.iam-federal [hidden] {
  display: none !important;
}

.iam-federal .ft-eyebrow {
  color: var(--ft-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.iam-federal h2 {
  color: #ffffff;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.iam-federal h3 {
  color: #ffffff;
  font-size: 19px;
  margin: 0 0 12px;
}

.iam-federal p,
.iam-federal small,
.iam-federal li {
  color: var(--ft-muted);
  line-height: 1.65;
}

.iam-federal .ft-header {
  margin-bottom: 24px;
}

.iam-federal .ft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iam-federal .ft-full {
  grid-column: 1 / -1;
}

.iam-federal label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--ft-muted);
}

.iam-federal input,
.iam-federal select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  background-color: var(--ft-surface);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  color-scheme: dark;
}

.iam-federal select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5b8cc' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: right 14px center;
}

.iam-federal input:focus,
.iam-federal select:focus,
.iam-federal button:focus-visible {
  outline: 2px solid var(--ft-accent);
  outline-offset: 2px;
}

.iam-federal input[readonly] {
  color: var(--ft-accent);
}

.iam-federal .ft-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.iam-federal button {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.iam-federal .ft-primary {
  flex: 1;
  background: var(--ft-accent);
  color: #08111f;
  border: 0;
}

.iam-federal .ft-secondary {
  background: var(--ft-surface);
  color: #ffffff;
  border: 1px solid var(--ft-border);
}

.iam-federal button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.iam-federal .ft-status {
  color: var(--ft-success);
  font-size: 13px;
  margin: 14px 0;
}

.iam-federal .ft-error {
  color: #fca5a5;
}

.iam-federal .ft-results {
  margin-top: 24px;
}

.iam-federal .ft-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 30px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--ft-border);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    #122337,
    #0b1929
  );
}

.iam-federal .ft-hero > span {
  color: var(--ft-muted);
}

.iam-federal .ft-hero > strong {
  font-size: clamp(30px, 6vw, 48px);
  color: var(--ft-success);
  overflow-wrap: anywhere;
}

.iam-federal .ft-metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  min-width: 0;
}

.iam-federal .ft-metric span {
  font-size: 12px;
  color: var(--ft-muted);
}

.iam-federal .ft-metric strong {
  font-size: clamp(18px, 3vw, 25px);
  color: var(--ft-accent);
  overflow-wrap: anywhere;
}

.iam-federal .ft-panel {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 16px;
  padding: 22px;
  margin-top: 18px;
}

.iam-federal .ft-bracket {
  margin: 20px 0;
}

.iam-federal .ft-bracket-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.iam-federal .ft-bracket-heading strong {
  color: var(--ft-accent);
}

.iam-federal .ft-track {
  background: #08111f;
  height: 10px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.iam-federal .ft-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    #0891b2,
    #1cd7f5
  );
}

.iam-federal .ft-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--ft-border);
  color: var(--ft-success);
}

.iam-federal .ft-savings {
  padding: 16px 0 8px;
  color: var(--ft-muted);
}

.iam-federal .ft-savings strong {
  color: var(--ft-success);
}

.iam-federal .ft-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ft-muted);
  border-top: 1px solid var(--ft-border);
  margin-top: 24px;
  padding-top: 20px;
}

@media (max-width: 600px) {

  .iam-federal {
    padding: 16px;
    border-radius: 16px;
  }

  .iam-federal .ft-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .iam-federal .ft-actions {
    flex-direction: column;
  }

  .iam-federal .ft-panel {
    padding: 16px;
  }

  .iam-federal .ft-total {
    flex-wrap: wrap;
  }

}

