/* ============================================================
   style.css — Calculadora Retención No Residentes Puerto Rico
   ============================================================ */

:root {
  --bg-main:      #f8f9fa;
  --bg-card:      #ffffff;
  --bg-card-alt:  #f1f3f5;
  --border:       #dee2e6;
  --border-hover: #ced4da;

  --accent-blue:  #113654; /* Navy Blue */
  --accent-teal:  #A7945A; /* Gold/Bronze */
  --accent-green: #218838;
  --accent-amber: #d39e00;
  --accent-red:   #dc3545;

  --text-primary: #343a40;
  --text-second:  #495057;
  --text-muted:   #6c757d;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 8px 30px rgba(17, 54, 84, 0.08);
  --shadow-glow: 0 0 40px rgba(17, 54, 84, 0.12);

  --font-main: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-head: 'Montserrat', sans-serif;

  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #113654 0%, #1e4263 50%, #284459 100%);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
}

.hero-orbs { position: absolute; inset: 0; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orb-float 8s ease-in-out infinite;
}
.orb-1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #284459, transparent);
  top: -100px; left: -80px;
  animation-delay: 0s;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #A7945A, transparent);
  top: -60px; right: 10%;
  animation-delay: -3s;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #113654, transparent);
  bottom: 0; left: 40%;
  animation-delay: -5s;
}

@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 148, 90, 0.12);
  border: 1px solid rgba(167, 148, 90, 0.3);
  color: #dfcd9f;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #A7945A;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(90deg, #A7945A, #cbb577, #f3e5be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: #cad6e2;
  line-height: 1.7;
}

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 72px;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   MAIN
   ============================================================ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ============================================================
   LEGAL BANNER
   ============================================================ */
.legal-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, rgba(17, 54, 84, 0.05), rgba(167, 148, 90, 0.05));
  border: 1px solid rgba(17, 54, 84, 0.15);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.9rem;
  color: var(--text-second);
  line-height: 1.65;
}
.legal-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.legal-banner strong { color: var(--accent-blue); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.calc-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   FORM CARD
   ============================================================ */
.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.card-icon-wrap {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(17, 54, 84, 0.12), rgba(167, 148, 90, 0.12));
  border: 1px solid rgba(17, 54, 84, 0.25);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card-head h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.card-head p {
  font-size: 0.82rem;
  color: var(--text-second);
  margin-top: 3px;
}

/* ============================================================
   FIELD GROUPS
   ============================================================ */
.field-group { margin-bottom: 22px; }

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.info-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color var(--transition);
  line-height: 1;
}
.info-btn:hover { color: var(--accent-teal); }

/* Option Cards (Seller Type & Acquisition Mode) */
.seller-opts, .acquisition-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 600px) {
  .acquisition-opts {
    flex-direction: row;
  }
  .acquisition-opts > label {
    flex: 1;
  }
}

.seller-opt, .acq-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.seller-opt input[type="radio"], .acq-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seller-opt:hover, .acq-opt:hover {
  border-color: var(--border-hover);
  background: rgba(0, 0, 0, 0.015);
}
.seller-opt.active, .acq-opt.active {
  border-color: var(--accent-blue);
  background: rgba(17, 54, 84, 0.05);
  box-shadow: 0 0 0 1px rgba(17, 54, 84, 0.15), 0 4px 20px rgba(17, 54, 84, 0.05);
}

.opt-flag, .acq-icon { font-size: 1.6rem; flex-shrink: 0; }

.opt-body, .acq-body { flex: 1; }
.opt-title, .acq-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.opt-desc, .acq-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-second);
  margin-top: 2px;
}

.opt-rate {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.seller-opt.active .opt-rate { color: var(--accent-blue); }

.opt-check, .acq-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}
.seller-opt.active .opt-check, .acq-opt.active .acq-check {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* Inputs */
.input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.input-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(17, 54, 84, 0.15);
}

.input-pre, .input-suf {
  padding: 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.field-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 12px 0;
  min-width: 0;
}
.field-input::placeholder { color: var(--text-muted); }

.field-input[type="date"] {
  padding: 12px 14px;
  width: 100%;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color-scheme: light;
  cursor: pointer;
}
.field-input[type="date"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(17, 54, 84, 0.15);
  outline: none;
}

.field-select {
  padding: 12px 14px;
  width: 100%;
  background: var(--bg-card-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  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='%23555f78' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(17, 54, 84, 0.15);
  outline: none;
}
.field-select option { background: #ffffff; }

.field-err {
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-top: 6px;
  min-height: 18px;
}

/* ============================================================
   DEDUCTIONS SECTION
   ============================================================ */
.deductions-section {
  background: rgba(17, 54, 84, 0.02);
  border: 1px dashed rgba(17, 54, 84, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 14px;
}

.ded-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.ded-header-icon {
  font-size: 1.2rem;
  margin-top: 2px;
}
.ded-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue);
}
.ded-subtitle {
  font-size: 0.78rem;
  color: var(--text-second);
  margin-top: 2px;
}

.ded-field {
  margin-bottom: 16px;
  transition: all 0.3s ease;
  max-height: 120px;
  opacity: 1;
  overflow: visible;
}
.ded-field.hidden-field {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.ded-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-second);
  margin-bottom: 8px;
  line-height: 1.4;
}
.ded-letter {
  font-weight: 700;
  color: var(--accent-teal);
}

.ded-input {
  max-width: 100%;
}

.ded-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* Calc Button */
.calc-btn {
  width: 100%;
  margin-top: 12px;
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-slate, #284459), var(--accent-teal));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  position: relative;
}
.calc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(17, 54, 84, 0.25); }
.calc-btn:active { transform: translateY(0); }

/* ============================================================
   RESULTS CARD
   ============================================================ */
.results-card { min-height: 480px; display: flex; flex-direction: column; }

.placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
}
.placeholder-icon { font-size: 3.5rem; opacity: 0.5; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.results { display: flex; flex-direction: column; gap: 20px; }
.hidden { display: none !important; }

.res-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.res-header h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.action-btns {
  display: flex;
  gap: 8px;
}

.print-btn, .export-btn {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.print-btn {
  background: rgba(0, 0, 0, 0.02);
  color: var(--text-second);
}
.print-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.export-btn {
  background: rgba(167, 148, 90, 0.06);
  color: var(--accent-teal);
  border-color: rgba(167, 148, 90, 0.2);
}
.export-btn:hover {
  background: rgba(167, 148, 90, 0.15);
  color: var(--text-primary);
  border-color: var(--accent-teal);
}

.seller-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
}
.seller-badge.us-badge {
  background: rgba(17, 54, 84, 0.08);
  border: 1px solid rgba(17, 54, 84, 0.2);
  color: var(--accent-blue);
}
.seller-badge.foreign-badge {
  background: rgba(167, 148, 90, 0.12);
  border: 1px solid rgba(167, 148, 90, 0.3);
  color: #86733e;
}

/* Full breakdown */
.full-breakdown {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.brk-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.brk-row, .brk-ded-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.brk-ded-row {
  padding-left: 14px;
  font-size: 0.84rem;
}
.brk-label { color: var(--text-second); }
.ded-tag { color: var(--text-muted); }
.brk-val { font-weight: 600; color: var(--text-primary); }
.brk-val.neg { color: var(--accent-red); }
.brk-val.teal { color: var(--accent-teal); }
.brk-val.accent { color: var(--accent-amber); }
.brk-val.blue-bold { color: var(--accent-blue); font-weight: 700; font-size: 1rem; }

.brk-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.brk-divider.thick {
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  margin: 14px 0;
}

.brk-subtotal, .brk-total {
  font-size: 0.92rem;
  font-weight: 600;
}
.brk-subtotal .brk-label, .brk-total .brk-label {
  color: var(--text-primary);
}

/* Big Result */
.big-result {
  background: linear-gradient(135deg, rgba(17, 54, 84, 0.05), rgba(167, 148, 90, 0.05));
  border: 1px solid rgba(17, 54, 84, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.big-label {
  font-size: 0.78rem;
  color: var(--text-second);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.big-amount {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}
.big-sub { font-size: 0.85rem; color: var(--text-second); }

/* Deadline Box */
.deadline-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(33,136,56,0.05), rgba(33,136,56,0.02));
  border: 1px solid rgba(33,136,56,0.18);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.deadline-left { display: flex; align-items: center; gap: 12px; }
.deadline-icon { font-size: 1.4rem; flex-shrink: 0; }
.deadline-label { font-size: 0.82rem; font-weight: 600; color: #1e5c2d; }
.deadline-note { font-size: 0.74rem; color: var(--text-second); margin-top: 2px; }
.deadline-date {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
  white-space: nowrap;
}

/* No Gain Box */
.no-gain-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(17, 54, 84, 0.05);
  border: 1px solid rgba(17, 54, 84, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.no-gain-box strong { color: var(--accent-blue); }

/* Relief Box */
.relief-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(167, 148, 90, 0.08);
  border: 1px solid rgba(167, 148, 90, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--text-primary);
  line-height: 1.65;
}
.relief-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.relief-box strong { color: #86733e; }

/* ============================================================
   RATES TABLE
   ============================================================ */
.table-card { padding: 32px; }
.section-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

.rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.rates-table th {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-second);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rates-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.rates-table tr:last-child td { border-bottom: none; }

.tbl-type { display: flex; align-items: center; gap: 12px; }
.tbl-name { font-weight: 600; font-size: 0.9rem; }
.tbl-desc { font-size: 0.78rem; color: var(--text-second); margin-top: 2px; }

.rate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  padding: 5px 18px;
  border-radius: 100px;
}
.r15 { background: rgba(17, 54, 84, 0.08); color: var(--accent-blue); border: 1px solid rgba(17, 54, 84, 0.2); }
.r25 { background: rgba(167, 148, 90, 0.12); color: #86733e; border: 1px solid rgba(167, 148, 90, 0.3); }

.table-footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  margin-top: 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.disclaimer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 820px;
}
.disclaimer strong { color: var(--text-second); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-links a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent-teal); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================================
   TOOLTIP
   ============================================================ */
.tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  background: #ffffff;
  border: 1px solid rgba(17, 54, 84, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.55;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PRINT (BLACK & WHITE PDF PRESENTATION)
   ============================================================ */
@media print {
  /* Hide interactive or unnecessary elements */
  .hero-orbs, 
  .orb, 
  .hero-wave,
  .calc-btn, 
  .action-btns, 
  .footer-links, 
  .info-btn,
  .form-card { 
    display: none !important; 
  }
  
  /* Reset body styles for standard paper print */
  body { 
    background: #ffffff !important; 
    color: #000000 !important; 
    font-size: 11pt !important;
  }
  
  /* Simplify main container */
  .main {
    padding: 0 !important;
    max-width: 100% !important;
    gap: 20px !important;
  }
  
  /* Re-style Hero for black and white print */
  .hero {
    background: none !important;
    border-bottom: 2px solid #000000 !important;
    padding: 20px 0 !important;
    text-align: left !important;
  }
  .hero h1 {
    color: #000000 !important;
    font-size: 24pt !important;
    margin-bottom: 8px !important;
  }
  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000000 !important;
  }
  .hero-sub {
    color: #333333 !important;
    font-size: 10pt !important;
  }
  .badge {
    display: none !important;
  }
  
  /* Legal banner styling for print */
  .legal-banner {
    background: #f0f0f0 !important;
    border: 1px solid #999999 !important;
    color: #000000 !important;
    border-radius: 0 !important;
    padding: 10px !important;
    font-size: 9pt !important;
    page-break-inside: avoid;
  }
  
  /* Layout: make results card full width */
  .calc-layout {
    display: block !important;
  }
  
  /* Results card styles */
  .card.results-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
  }
  
  .results {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .res-header h2 {
    color: #000000 !important;
    font-size: 16pt !important;
    border-bottom: 1px solid #000000 !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
  }
  
  /* Badges */
  .seller-badge {
    background: #f0f0f0 !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0 !important;
    padding: 4px 10px !important;
    font-size: 9pt !important;
    font-weight: bold !important;
  }
  
  /* Breakdown table */
  .full-breakdown {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    padding: 15px !important;
  }
  .brk-section-title {
    color: #000000 !important;
    border-bottom: 1px solid #000000 !important;
    padding-bottom: 3px !important;
    font-weight: bold !important;
  }
  .brk-row, .brk-ded-row {
    margin-bottom: 6px !important;
    font-size: 10pt !important;
  }
  .brk-label, .ded-tag {
    color: #000000 !important;
  }
  .brk-val {
    color: #000000 !important;
  }
  .brk-val.neg, .brk-val.teal, .brk-val.accent, .brk-val.blue-bold {
    color: #000000 !important;
    -webkit-text-fill-color: initial !important;
    font-weight: bold !important;
  }
  .brk-divider {
    background: #000000 !important;
  }
  .brk-divider.thick {
    background: #000000 !important;
    height: 2px !important;
  }
  
  /* Big result box */
  .big-result {
    background: #f9f9f9 !important;
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    page-break-inside: avoid;
  }
  .big-label {
    color: #000000 !important;
    font-weight: bold !important;
  }
  .big-amount {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #000000 !important;
    font-size: 28pt !important;
  }
  .big-sub {
    color: #333333 !important;
  }
  
  /* Deadline Box */
  .deadline-box {
    background: #f0f0f0 !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 10px 15px !important;
    page-break-inside: avoid;
  }
  .deadline-label {
    color: #000000 !important;
  }
  .deadline-note {
    color: #333333 !important;
  }
  .deadline-date {
    color: #000000 !important;
    font-size: 12pt !important;
  }
  
  /* Info and relief boxes */
  .no-gain-box, .relief-box {
    background: #f9f9f9 !important;
    border: 1px solid #666666 !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 10px 15px !important;
    font-size: 9pt !important;
    page-break-inside: avoid;
  }
  
  
  /* Rates Table card styling for print */
  .card.table-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 20px !important;
    page-break-inside: avoid;
  }
  .section-title {
    color: #000000 !important;
    font-size: 14pt !important;
    border-bottom: 1px solid #000000 !important;
    padding-bottom: 5px !important;
  }
  .rates-table {
    border: 1px solid #000000 !important;
  }
  .rates-table th {
    background: #e6e6e6 !important;
    color: #000000 !important;
    border-bottom: 1px solid #000000 !important;
    font-weight: bold !important;
  }
  .rates-table td {
    border-bottom: 1px solid #cccccc !important;
    color: #000000 !important;
  }
  .tbl-desc {
    color: #333333 !important;
  }
  .rate-pill {
    background: #e6e6e6 !important;
    border: 1px solid #000000 !important;
    color: #000000 !important;
    border-radius: 0 !important;
    font-weight: bold !important;
  }
  
  .table-footnote {
    color: #333333 !important;
    border-top: 1px solid #000000 !important;
  }
  
  /* Footer styles */
  .footer {
    background: none !important;
    border-top: 1px solid #000000 !important;
    padding: 20px 0 0 0 !important;
    margin-top: 30px !important;
  }
  .disclaimer {
    color: #333333 !important;
    font-size: 8pt !important;
  }
  .footer-copy {
    color: #666666 !important;
    font-size: 8pt !important;
  }
}

