/* ============================================================
   EasyEMI — blue & white financial theme
   Mobile-first, no frameworks
   ============================================================ */

:root {
  /* Blue brand ladder */
  --blue-900: #0a2540;
  --blue-800: #0f3460;
  --blue-700: #14438a;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93b4f7;
  --blue-100: #dbe6fb;
  --blue-50:  #eef3fd;

  /* Accent for "interest" portion */
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-100: #fef0d3;

  /* Neutrals */
  --ink:      #0c1b2e;
  --ink-2:    #334a63;
  --ink-3:    #61748a;
  --line:     #e4eaf2;
  --line-2:   #eef2f7;
  --bg:       #f4f7fc;
  --bg-2:     #eaf0f9;
  --white:    #ffffff;

  --ok: #16a34a;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(12, 27, 46, 0.06);
  --shadow:    0 6px 24px rgba(20, 67, 138, 0.08);
  --shadow-lg: 0 18px 48px rgba(20, 67, 138, 0.14);

  --maxw: 1120px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* tabular numbers everywhere figures appear */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 20px; letter-spacing: -0.02em; }
.brand-name b { background: linear-gradient(120deg, var(--blue-600), var(--blue-400)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-top: -3px; }

.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--blue-600); }

.nav-cta {
  display: none;
  background: var(--blue-600); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--blue-700); }
.nav-cta:active { transform: translateY(1px); }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #f1f4f9, #f1f4f9 12px, #eef2f8 12px, #eef2f8 24px);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: #9aa9bd;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.ad::after {
  content: "Advertisement";
  position: absolute; top: 6px; left: 8px;
  font-size: 8.5px; letter-spacing: .12em; color: #b3c0d2;
}
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; margin: 14px auto 0; }
.ad-sidebar { width: 300px; height: 250px; margin: 0 auto; }
.ad-mobile {
  position: sticky; bottom: 0; z-index: 40;
  width: 100%; height: 50px;
  border-radius: 0;
  border-left: none; border-right: none; border-bottom: none;
  background: #f1f4f9;
}
@media (min-width: 980px) { .ad-mobile { display: none; } }
.ad-leaderboard { display: none; }
@media (min-width: 760px) { .ad-leaderboard { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    radial-gradient(1100px 380px at 80% -10%, rgba(37,99,235,0.12), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg));
  padding: 40px 0 18px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p {
  max-width: 620px; margin: 14px auto 0;
  color: var(--ink-2); font-size: clamp(15px, 2.5vw, 18px);
}
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin-top: 22px;
}
.hero-stats span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.hero-stats span svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* ============================================================
   CALCULATOR SECTION
   ============================================================ */
.calc-section { padding: 26px 0 10px; }

/* Tabs */
.tabs {
  display: flex; gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  max-width: 560px; margin: 0 auto 26px;
  box-shadow: var(--shadow-sm);
}
.tab {
  flex: 1;
  border: none; background: transparent;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  color: var(--ink-3);
  padding: 11px 10px; border-radius: 999px;
  cursor: pointer; transition: color .15s, background .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--blue-600); }
.tab.active {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 6px 16px rgba(37,99,235,0.32);
}
.tab .tab-label-long { display: none; }
@media (min-width: 560px) {
  .tab .tab-label-long { display: inline; }
  .tab .tab-label-short { display: none; }
}

/* Layout grid: form + result, plus sidebar ad on desktop */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 980px) {
  .calc-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

.calc-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 720px) {
  .calc-main { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
@media (min-width: 720px) { .card-pad { padding: 26px; } }

.card-title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.card-title .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: var(--blue-50); color: var(--blue-600);
}
.card-title .ic svg { width: 19px; height: 19px; }
.card-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 20px; }

/* Input control = label + slider + number box */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 12px;
}
.field-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field-input {
  display: flex; align-items: center; gap: 4px;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 800; color: var(--blue-700);
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.field-input:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.field-input .prefix { color: var(--blue-600); font-weight: 800; }
.field-input input {
  border: none; background: transparent; outline: none;
  font-family: var(--font); font-weight: 800; font-size: 15px;
  color: var(--blue-700); width: 92px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.field-input .suffix { color: var(--blue-600); font-weight: 700; font-size: 14px; }
.field-input input::-webkit-outer-spin-button,
.field-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field-input input[type=number] { -moz-appearance: textfield; }

/* tenure unit toggle */
.unit-toggle {
  display: inline-flex; background: var(--bg-2);
  border-radius: 8px; padding: 2px; gap: 2px;
}
.unit-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 12px;
  color: var(--ink-3); padding: 5px 10px; border-radius: 6px;
  transition: all .15s;
}
.unit-toggle button.active { background: var(--white); color: var(--blue-600); box-shadow: var(--shadow-sm); }

/* Range slider */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--blue-100);
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue-600);
  box-shadow: 0 2px 6px rgba(37,99,235,0.4);
  transition: transform .1s;
}
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--blue-600);
  box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}
.range-scale {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--ink-3); margin-top: 7px; font-weight: 500;
}

/* ============ RESULT PANEL ============ */
.result-emi {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-radius: var(--r); color: #fff;
  padding: 22px 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(20,67,138,0.28);
}
.result-emi .lbl { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.result-emi .val { font-size: clamp(30px, 8vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.result-emi .val small { font-size: 16px; font-weight: 700; opacity: .8; }
.result-emi .emi-extra { font-size: 12.5px; font-weight: 700; color: #fff; opacity: .92; margin-top: 6px; }

.result-rows { display: grid; gap: 10px; margin-bottom: 20px; }
.result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-2);
}
.result-row .k { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.result-row .dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.result-row .v { font-weight: 800; font-size: 15.5px; }
.dot-principal { background: var(--blue-500); }
.dot-interest { background: var(--amber-500); }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 168px; height: 168px; flex: none; }
.donut svg { transform: rotate(-90deg); display: block; }
.donut-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.donut-center .pct { font-size: 26px; font-weight: 800; color: var(--blue-700); line-height: 1; }
.donut-center .pct-lbl { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }

.donut-legend { display: grid; gap: 12px; }
.donut-legend .li { display: flex; align-items: flex-start; gap: 9px; }
.donut-legend .li .dot { width: 11px; height: 11px; border-radius: 3px; margin-top: 5px; flex: none; }
.donut-legend .li .lt { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.donut-legend .li .lv { font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }

.section-mini-title {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 22px 0 12px; display: flex; align-items: center; gap: 8px;
}
.section-mini-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Yearly bar chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-stack {
  width: 100%; max-width: 30px; border-radius: 5px 5px 0 0; overflow: hidden;
  display: flex; flex-direction: column-reverse;
  background: var(--line-2);
  transition: height .4s ease;
}
.bar-principal { background: var(--blue-500); width: 100%; transition: height .4s ease; }
.bar-interest { background: var(--amber-500); width: 100%; transition: height .4s ease; }
.bar-label { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.bars-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-section { padding: 30px 0; }
.section-head { text-align: center; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--ink-2); margin-top: 8px; max-width: 580px; margin-inline: auto; }

.table-wrap {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; min-width: 540px; }
thead th {
  background: var(--blue-50); color: var(--blue-800);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; text-align: right; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
thead th:first-child { text-align: left; }
tbody td {
  padding: 13px 16px; text-align: right; font-weight: 600;
  font-variant-numeric: tabular-nums; font-size: 14.5px;
  border-bottom: 1px solid var(--line-2); color: var(--ink-2);
}
tbody td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
tbody tr:last-child td { border-bottom: none; }
tbody tr.is-current { background: var(--blue-50); }
tbody tr.is-current td:first-child { color: var(--blue-700); }
tbody tr.is-current td:first-child::after {
  content: "current"; margin-left: 8px; font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; background: var(--blue-600); color: #fff;
  padding: 2px 7px; border-radius: 999px; font-weight: 700; vertical-align: middle;
}
tbody tr:hover { background: var(--bg); }
.table-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* ============================================================
   ARTICLE (SEO)
   ============================================================ */
.article-section { padding: 14px 0 30px; }
.article {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  padding: 26px;
}
@media (min-width: 720px) { .article { padding: 36px 44px; } }
.article h2 { font-size: clamp(21px, 3.5vw, 27px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.article > p.lead { color: var(--ink-2); margin: 8px 0 18px; }
.article h3 { font-size: 17px; font-weight: 800; margin: 22px 0 8px; color: var(--ink); }
.article p { color: var(--ink-2); margin-bottom: 12px; }
.article ul { margin: 0 0 14px 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.article ul li { position: relative; padding-left: 26px; color: var(--ink-2); }
.article ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 15px; height: 15px; border-radius: 5px;
  background: var(--blue-50);
  box-shadow: inset 0 0 0 1.5px var(--blue-300);
}
.article ul li::after {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 4px; height: 7px; border: solid var(--blue-600);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.formula {
  background: var(--blue-900); color: #cfe0ff;
  border-radius: var(--r); padding: 18px 22px; margin: 16px 0;
  font-family: var(--font); overflow-x: auto;
}
.formula .eq { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.formula .where { font-size: 13px; margin-top: 10px; color: #9bb8e8; display: grid; gap: 3px; }
.formula .where b { color: #fff; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 16px 0 40px; }
.faq-list { display: grid; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); border-color: var(--blue-100); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 20px; font-weight: 700; font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  width: 22px; height: 22px; flex: none; color: var(--blue-600);
  transition: transform .25s;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--blue-900); color: #b6c7df; padding: 44px 0 0; margin-top: 10px; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 30px;
  padding-bottom: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer .brand-name { color: #fff; }
.footer .brand-name b { color: var(--blue-300); }
.footer-about p { font-size: 14px; margin-top: 14px; max-width: 360px; color: #93a8c6; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul li a { font-size: 14px; color: #b6c7df; transition: color .15s; }
.footer ul li a:hover { color: #fff; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0 26px; font-size: 12.5px; color: #7e93b3; line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; align-items: center; font-size: 13px; color: #93a8c6;
}

@media (max-width: 979px) { body { padding-bottom: 0; } }

/* ============================================================
   PREPAYMENT
   ============================================================ */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider-sw { position: absolute; inset: 0; cursor: pointer; background: var(--bg-2); border-radius: 999px; transition: background .2s; }
.slider-sw::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(12,27,46,.25); }
.switch input:checked + .slider-sw { background: var(--blue-600); }
.switch input:checked + .slider-sw::before { transform: translateX(18px); }

.prepay { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.prepay-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.prepay-badge { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; background: var(--blue-50); color: var(--blue-600); padding: 2px 7px; border-radius: 999px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.prepay-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.prepay-body { margin-top: 18px; }
.prepay-mode { display: flex; gap: 6px; background: var(--bg-2); border-radius: 10px; padding: 3px; margin-bottom: 20px; }
.prepay-mode button { flex: 1; border: none; background: transparent; font-family: var(--font); font-weight: 700; font-size: 12.5px; color: var(--ink-3); padding: 9px 6px; border-radius: 8px; cursor: pointer; transition: all .15s; }
.prepay-mode button.active { background: #fff; color: var(--blue-600); box-shadow: var(--shadow-sm); }
.prepay-mode button:hover:not(.active) { color: var(--ink-2); }

.prepay-result { background: linear-gradient(135deg, #ecfdf3, #eef4ff); border: 1px solid #c9e9d5; border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; }
.prepay-result-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ok); margin-bottom: 13px; display: flex; align-items: center; gap: 7px; }
.prepay-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prepay-stats > div { display: flex; flex-direction: column; gap: 3px; }
.ps-lbl { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ps-val { font-size: 15px; font-weight: 800; color: var(--ink); }
.ps-save { color: var(--ok); }
.prepay-note { font-size: 11.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.5; }

/* ============================================================
   AMORTISATION SCHEDULE + ACTIONS
   ============================================================ */
.schedule-section { padding: 16px 0 30px; }
.schedule-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.schedule-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 700; font-size: 13px;
  color: var(--blue-700); background: var(--white);
  border: 1.5px solid var(--blue-100); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn-ghost svg { width: 15px; height: 15px; flex: none; }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-300); }
.btn-ghost:active { transform: translateY(1px); }

.schedule-wrap { max-height: 440px; overflow: auto; }
.schedule-wrap thead th { position: sticky; top: 0; z-index: 1; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: 76px;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-900); color: #fff;
  font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60;
  max-width: 90vw; text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   PRINT / PDF
   ============================================================ */
@media print {
  .nav, .ad, .hero, .tabs, .calc-side,
  input[type=range], .range-scale, .unit-toggle, .prepay,
  .schedule-actions, #sched-toggle, .faq-section,
  .footer ul, .footer h4, #toast { display: none !important; }
  html, body { background: #fff; }
  .wrap { max-width: 100%; }
  .schedule-wrap { max-height: none !important; overflow: visible !important; }
  table { min-width: 0 !important; }
  .card, .table-wrap, .article {
    box-shadow: none !important; border-color: #d4dce8 !important;
    break-inside: avoid;
  }
  .calc-main { grid-template-columns: 1fr !important; }
  .result-emi, thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: ""; }
}
