/*
Theme Name: FinanceTrim
Theme URI: https://financetrim.com
Author: FinanceTrim Editorial Desk
Description: Clean, fast, AdSense-ready personal finance WordPress theme with pinned sky-blue header, built-in 130+ language Google Translate switcher, white-link dark footer, justified typography without hyphenation, comparison tables, and interactive calculators.
Version: 1.1.0
Text Domain: financetrim
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  padding-top: 68px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.7;
  top: 0 !important;
  position: static !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  line-height: 1.2;
  margin-top: 0;
  hyphens: none !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0369a1; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hide Google Translate top banner */
iframe.goog-te-banner-frame, .goog-te-banner-frame.skiptranslate, body > .skiptranslate,
#goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important; visibility: hidden !important;
}
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Pinned Sky-Blue Header */
.ft-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 68px; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}
.ft-header-inner {
  max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ft-brand {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.25rem;
  color: #0369a1; letter-spacing: -0.02em; text-decoration: none !important;
}
.ft-nav ul {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px;
}
.ft-nav a { color: #0369a1; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.ft-nav a:hover { color: #0284c7; text-decoration: underline; text-underline-offset: 4px; }
.ft-header-right { display: flex; align-items: center; gap: 10px; }
.ft-lang-select {
  border: 1px solid #bae6fd; background: #f0f9ff; color: #0369a1;
  border-radius: 8px; padding: 6px 10px; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ft-menu-toggle {
  display: none; border: 1px solid #cbd5e1; background: #fff; color: #0369a1;
  border-radius: 8px; padding: 6px 12px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}

/* Containers */
.ft-main { min-height: 70vh; }
.ft-container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.ft-page-wrap { max-width: 1160px; margin: 0 auto; }
.ft-article-wrap { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px; }
.ft-article-body p, .ft-prose, .ft-page-wrap p, .ft-post-card-body p, .ft-cat-card p {
  text-align: justify;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  color: #334155;
}
.ft-cat-label { display: inline-block; font-size: 0.75rem; font-weight: 700; color: #0369a1; letter-spacing: 0.01em; margin-bottom: 6px; }
.ft-dek { font-size: 1.12rem; color: #475569; margin: 0 0 18px; }
.ft-meta-bar { font-size: 0.82rem; color: #64748b; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 10px 0; margin-bottom: 24px; }
.ft-hero-fig { margin: 0 0 26px; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.ft-hero-fig img { width: 100%; max-height: 440px; object-fit: cover; }
.ft-takeaways { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 20px 24px; margin-bottom: 22px; }
.ft-takeaways h3 { font-size: 1rem; margin-bottom: 10px; color: #0c4a6e; }
.ft-takeaways ul { margin: 0; padding-left: 20px; }
.ft-takeaways li { margin-bottom: 6px; text-align: justify; color: #1e293b; font-size: 0.94rem; }
.ft-note { background: #f8fafc; border-left: 4px solid #0284c7; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 24px; font-size: 0.9rem; text-align: justify; color: #334155; }
.ft-h2 { font-size: 1.5rem; margin: 32px 0 12px; padding-top: 8px; }
.ft-inline-link { color: #0369a1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ft-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 28px 0; }

/* CTA Box */
.ft-cta-box {
  margin: 32px 0; padding: 22px 24px; background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.ft-cta-box p { margin: 4px 0 0; font-size: 0.9rem; }
.ft-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-btn-primary {
  display: inline-block; background: #0369a1; color: #fff !important; font-weight: 600;
  font-size: 0.88rem; padding: 10px 18px; border-radius: 8px; text-decoration: none !important;
}
.ft-btn-primary:hover { background: #075985; }
.ft-btn-secondary {
  display: inline-block; background: #fff; color: #0f172a !important; border: 1px solid #cbd5e1;
  font-weight: 600; font-size: 0.88rem; padding: 10px 18px; border-radius: 8px; text-decoration: none !important;
}
.ft-btn-secondary:hover { border-color: #0369a1; color: #0369a1 !important; }

/* FAQs */
.ft-faq-item { border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.ft-faq-item summary { font-weight: 700; cursor: pointer; color: #0f172a; font-size: 0.96rem; }
.ft-faq-item p { margin: 10px 0 0; font-size: 0.92rem; }

/* Sources */
.ft-sources { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e2e8f0; font-size: 0.86rem; color: #475569; }
.ft-sources h3 { font-size: 0.95rem; margin-bottom: 8px; }
.ft-sources ul { padding-left: 20px; margin: 0; }

/* Continue Reading with thumbnails */
.ft-continue { margin-top: 32px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.ft-continue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ft-continue-card {
  display: flex; gap: 14px; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px; background: #f8fafc; text-decoration: none !important; color: inherit;
}
.ft-continue-card:hover { border-color: #0284c7; background: #fff; }
.ft-continue-card img { width: 92px; height: 74px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ft-continue-card h4 { font-size: 0.92rem; margin: 2px 0 6px; color: #0f172a; }
.ft-read-more { font-size: 0.8rem; font-weight: 700; color: #0369a1; }

/* Home / Grids */
.ft-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 36px; }
.ft-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 14px; }
.ft-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ft-hero-media img { border-radius: 12px; width: 100%; height: 320px; object-fit: cover; }
.ft-section { margin-top: 44px; }
.ft-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.ft-sec-head > div { flex: 1; min-width: 260px; }
.ft-sec-head p { margin: 6px 0 0; }
.ft-bench-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ft-bench-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; }
.ft-bench-val { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: #0f172a; margin: 2px 0 4px; }
.ft-bench-card p { font-size: 0.8rem; margin: 0; text-align: left; }
.ft-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ft-cat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; display: block; text-decoration: none !important; }
.ft-cat-card:hover { border-color: #0284c7; }
.ft-cat-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ft-cat-card p { font-size: 0.88rem; margin: 0 0 10px; }
.ft-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ft-post-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ft-post-card img { width: 100%; height: 190px; object-fit: cover; }
.ft-post-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ft-post-card-body h3 { font-size: 1.02rem; margin: 4px 0 8px; }
.ft-post-card-body h3 a { color: #0f172a; }
.ft-post-card-body p { font-size: 0.86rem; flex: 1; margin: 0 0 12px; }

/* Compare Page */
.ft-pill-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.ft-pill-link { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 7px 14px; border-radius: 8px; font-size: 0.84rem; font-weight: 600; }
.ft-pill-link:hover { border-color: #0369a1; color: #0369a1; text-decoration: none; }
.ft-compare-sec { margin-top: 36px; }
.ft-prod-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px; margin-bottom: 16px; }
.ft-prod-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.ft-provider { font-size: 0.82rem; color: #64748b; margin: 2px 0 0; text-align: left !important; }
.ft-prod-metrics { display: flex; gap: 18px; flex-wrap: wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; }
.ft-prod-metrics small { display: block; font-size: 0.72rem; color: #64748b; }
.ft-prod-metrics strong { font-size: 0.92rem; color: #0f172a; }
.ft-best-for { font-size: 0.86rem; margin: 10px 0; }
.ft-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid #e2e8f0; padding-top: 12px; font-size: 0.85rem; }
.ft-pros-cons ul { margin: 6px 0 0; padding-left: 18px; }

/* Calculators */
.ft-calc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; margin-top: 24px; }
.ft-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.ft-calc-card label { display: block; font-size: 0.82rem; font-weight: 600; color: #334155; margin-bottom: 12px; }
.ft-calc-card input, .ft-calc-card select {
  width: 100%; margin-top: 4px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 0.95rem; background: #f8fafc;
}
.ft-calc-out { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 24px; }
.ft-calc-big { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.1rem; font-weight: 800; color: #0369a1; margin: 6px 0 10px; }

/* Dark Footer with Sky-Blue Headings & Crisp White Menu Links */
.ft-footer { background: #0f172a; color: #e2e8f0; border-top: 1px solid #1e3a5f; margin-top: 60px; }
.ft-footer-inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.ft-footer-brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: #38bdf8; }
.ft-footer p { color: #bae6fd; font-size: 0.86rem; text-align: justify; hyphens: none !important; }
.ft-footer h3 { color: #38bdf8; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.ft-footer ul { list-style: none; margin: 0; padding: 0; }
.ft-footer li { margin-bottom: 8px; }
.ft-footer ul a { color: #ffffff !important; font-size: 0.9rem; }
.ft-footer ul a:hover { color: #7dd3fc !important; }
.ft-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 20px 28px; border-top: 1px solid #1e293b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #7dd3fc; }

/* Pagination */
.nav-links { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.page-numbers { padding: 7px 13px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 0.85rem; color: #0f172a; }
.page-numbers.current { background: #0369a1; border-color: #0369a1; color: #fff; }

@media (max-width: 900px) {
  .ft-hero, .ft-calc-grid, .ft-continue-grid, .ft-pros-cons, .ft-footer-inner { grid-template-columns: 1fr; }
  .ft-bench-grid, .ft-cat-grid, .ft-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 20px; }
  .ft-nav.open { display: block; }
  .ft-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ft-menu-toggle { display: inline-block; }
  .ft-article-wrap { padding: 22px; }
}
@media (max-width: 600px) {
  .ft-bench-grid, .ft-cat-grid, .ft-post-grid { grid-template-columns: 1fr; }
}

/* WordPress Admin Bar offset fix so pinned header is never clipped */
body.admin-bar .ft-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .ft-header { top: 46px; }
}
.ft-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; font-variant-numeric: tabular-nums; }
.ft-header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: #0284c7; color: #ffffff !important; font-weight: 600; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 10px; text-decoration: none !important; white-space: nowrap;
  transition: background 0.15s ease;
}
.ft-header-cta:hover { background: #0369a1; }
@media (max-width: 640px) { .ft-header-cta { display: none; } }
.ft-nav a[aria-current="page"], .ft-nav .current-menu-item > a {
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}

/* =====================================================================
   1:1 Comparison Hub Styles (matches React ComparisonHub.tsx)
   ===================================================================== */
.ft-hub-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ft-hub-head-left { flex: 1; min-width: 280px; }
.ft-hub-title { font-size: clamp(1.7rem, 2.8vw, 2.15rem); font-weight: 800; letter-spacing: -0.025em; margin: 6px 0 8px; }
.ft-hub-desc { margin: 0; font-size: 0.98rem; color: #475569; text-align: justify; hyphens: none !important; }
.ft-search-box { position: relative; width: 270px; max-width: 100%; flex-shrink: 0; }
.ft-search-box input {
  width: 100%; padding: 9px 12px 9px 34px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; font-size: 0.87rem; color: #0f172a; outline: none;
}
.ft-search-box input:focus { border-color: #0284c7; box-shadow: 0 0 0 2px rgba(2,132,199,0.12); }
.ft-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 0.9rem; pointer-events: none; }

.ft-cat-tabs-bar {
  display: flex; align-items: center; gap: 4px; overflow-x: auto;
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px;
  margin-bottom: 16px;
}
.ft-cat-tab {
  border: 0; background: transparent; color: #334155; font-weight: 600; font-size: 0.84rem;
  padding: 9px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: all 0.15s ease;
  font-family: inherit;
}
.ft-cat-tab:hover { background: #f1f5f9; color: #0f172a; }
.ft-cat-tab.active { background: #0284c7; color: #ffffff; }

.ft-subbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.ft-subpills { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-subpill {
  border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 0.78rem; font-weight: 600;
  padding: 6px 13px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.ft-subpill:hover { border-color: #cbd5e1; color: #0f172a; }
.ft-subpill.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.ft-sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #64748b; }
.ft-sort-wrap select {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; padding: 6px 12px;
  font-size: 0.82rem; color: #0f172a; font-family: inherit; cursor: pointer;
}

.ft-offer-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 26px;
  margin-bottom: 14px; transition: border-color 0.15s ease;
}
.ft-offer-card:hover { border-color: #cbd5e1; }
.ft-offer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px; font-size: 0.76rem; color: #64748b; margin-bottom: 12px;
}
.ft-offer-provider { color: #0369a1; font-weight: 600; }
.ft-offer-rating { color: #334155; font-size: 0.78rem; font-weight: 600; }
.ft-offer-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.25fr) 172px;
  gap: 24px; align-items: center;
}
.ft-offer-name { font-size: 1.18rem; font-weight: 800; margin: 0 0 6px; color: #0f172a; }
.ft-offer-summary { font-size: 0.86rem; color: #475569; margin: 0; line-height: 1.55; text-align: left !important; }
.ft-offer-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  border-left: 1px solid #f1f5f9; padding-left: 20px;
}
.ft-metric-lbl { font-size: 0.72rem; color: #64748b; margin-bottom: 4px; display: block; }
.ft-metric-val { font-size: 0.96rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.ft-offer-actions { display: flex; flex-direction: column; gap: 8px; }
.ft-btn-dark {
  background: #0f172a; color: #fff; border: 0; border-radius: 9px; padding: 10px 14px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; text-align: center; font-family: inherit;
}
.ft-btn-dark:hover { background: #1e293b; }
.ft-btn-outline {
  background: #fff; color: #334155; border: 1px solid #e2e8f0; border-radius: 9px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; text-align: center; font-family: inherit;
}
.ft-btn-outline:hover { border-color: #0284c7; color: #0369a1; }
.ft-btn-outline.selected { background: #f0f9ff; border-color: #0284c7; color: #0369a1; }

/* Compare Floating Bar & Modal */
.ft-compare-tray {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 990;
  background: #0f172a; color: #fff; border-radius: 14px; padding: 12px 18px;
  display: none; align-items: center; gap: 14px; box-shadow: 0 18px 40px rgba(15,23,42,0.28);
  max-width: 94vw; flex-wrap: wrap;
}
.ft-compare-tray.show { display: flex; }
.ft-tray-btn {
  background: #0284c7; color: #fff; border: 0; border-radius: 8px; padding: 8px 14px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.ft-tray-clear { background: transparent; border: 1px solid #475569; color: #cbd5e1; border-radius: 8px; padding: 7px 10px; font-size: 0.78rem; cursor: pointer; }

.ft-modal-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,0.55);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ft-modal-backdrop.open { display: flex; }
.ft-modal {
  background: #fff; border-radius: 16px; max-width: 780px; width: 100%; max-height: 88vh;
  overflow-y: auto; padding: 28px; box-shadow: 0 24px 60px rgba(15,23,42,0.28);
}
.ft-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px; margin-bottom: 18px; }
.ft-modal-close { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; color: #334155; }
.ft-terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.ft-term-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 10px 14px; }
.ft-term-box small { display: block; font-size: 0.72rem; color: #64748b; }
.ft-term-box strong { font-size: 0.88rem; color: #0f172a; }
.ft-compare-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ft-compare-table th, .ft-compare-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.ft-compare-table th { background: #f8fafc; font-weight: 700; color: #0f172a; }

/* =====================================================================
   1:1 Interactive Calculators Styles (matches React CalculatorsSuite.tsx)
   ===================================================================== */
.ft-calc-tabs {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 4px;
  flex-shrink: 0; overflow-x: auto; max-width: 100%;
}
.ft-calc-tab {
  border: 0; background: transparent; color: #475569; font-size: 0.8rem; font-weight: 600;
  padding: 9px 15px; border-radius: 8px; cursor: pointer; white-space: nowrap; font-family: inherit;
}
.ft-calc-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,0.08); }

.ft-calc-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 30px;
}
.ft-calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ft-slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 0.86rem; font-weight: 600; color: #334155; }
.ft-slider-val { font-size: 1.02rem; font-weight: 700; color: #0f172a; }
.ft-range {
  width: 100%; accent-color: #0284c7; height: 6px; cursor: pointer; margin-bottom: 18px;
}
.ft-input-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.ft-field label { display: block; font-size: 0.78rem; font-weight: 600; color: #334155; margin-bottom: 6px; }
.ft-field input {
  width: 100%; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 9px;
  font-size: 0.92rem; color: #0f172a; background: #fff; outline: none; font-family: inherit;
}
.ft-field input:focus { border-color: #0284c7; box-shadow: 0 0 0 2px rgba(2,132,199,0.12); }
.ft-term-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ft-term-btn {
  border: 1px solid #e2e8f0; background: #fff; color: #334155; font-size: 0.82rem; font-weight: 600;
  padding: 10px 8px; border-radius: 9px; cursor: pointer; font-family: inherit;
}
.ft-term-btn.active { background: #0284c7; border-color: #0284c7; color: #fff; }

.ft-result-card {
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; background: #ffffff;
}
.ft-result-kicker { font-size: 0.78rem; color: #64748b; display: block; margin-bottom: 6px; }
.ft-result-big { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; color: #0f172a; line-height: 1.05; }
.ft-result-unit { font-size: 1rem; font-weight: 500; color: #64748b; margin-left: 4px; }
.ft-result-sub { font-size: 0.82rem; color: #64748b; margin: 8px 0 20px; text-align: left !important; }
.ft-bar-head { display: flex; justify-content: space-between; font-size: 0.76rem; color: #475569; margin-bottom: 6px; gap: 8px; flex-wrap: wrap; }
.ft-bar-track { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.ft-bar-fill { height: 100%; background: #0284c7; border-radius: 999px; transition: width 0.2s ease; }
.ft-result-3col {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  border-top: 1px solid #f1f5f9; padding-top: 16px;
}
.ft-result-3col small { display: block; font-size: 0.73rem; color: #64748b; margin-bottom: 3px; }
.ft-result-3col strong { font-size: 0.94rem; color: #0f172a; }

.ft-cross-strip {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid #e2e8f0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 0.82rem;
}
.ft-cross-cta { font-weight: 700; color: #0369a1; white-space: nowrap; }
.ft-cross-links { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #64748b; }
.ft-cross-links a { color: #0f172a; font-weight: 600; }
.ft-cross-links a:hover { color: #0369a1; }

@media (max-width: 960px) {
  .ft-offer-grid { grid-template-columns: 1fr; gap: 16px; }
  .ft-offer-metrics { border-left: 0; border-top: 1px solid #f1f5f9; padding-left: 0; padding-top: 14px; }
  .ft-offer-actions { flex-direction: row; }
  .ft-offer-actions button { flex: 1; }
  .ft-calc-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ft-input-2col, .ft-terms-grid { grid-template-columns: 1fr; }
  .ft-offer-metrics { grid-template-columns: 1fr; gap: 8px; }
  .ft-calc-panel { padding: 18px; }
}

