/* ============================================================
   HEADER
   ============================================================ */
.ec-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 242, 0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink);
  height: var(--header-h);
}
.header-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.ec-brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo-img { height: 52px; width: auto; flex-shrink: 0; }
.brand-name-group { line-height: 1.25; }
.brand-company-title {
  font-family: var(--font-en); font-weight: 900; font-size: 19px; letter-spacing: .02em;
}
.brand-company-title .lightning-word { color: var(--green); }
.brand-company-title small { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.brand-company-sub { font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .14em; }

.ec-nav-list { display: flex; gap: 28px; margin-left: auto; }
.ec-nav-link { font-size: 15px; font-weight: 600; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.ec-nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--green); transition: width .25s ease;
}
.ec-nav-link:hover { color: var(--ink); }
.ec-nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: 24px; }
.btn-ec-hotline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--ink);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  background: var(--paper); box-shadow: var(--shadow-press-sm);
  transition: background .2s, color .2s;
}
.btn-ec-hotline:hover { background: var(--ink); color: var(--cream); }
.btn-ec-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--green); color: var(--cream);
  font-size: 14px; font-weight: 700; border: 1px solid var(--ink);
  box-shadow: var(--shadow-press-sm);
  transition: background .2s, transform .2s;
}
.btn-ec-wa:hover { background: var(--green-deep); transform: translateY(-1px); }

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
  margin-left: auto;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .15s;
}
.mobile-menu-btn:hover {
  background: var(--paper-2);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
body.nav-open .mobile-menu-btn {
  background: var(--ink);
  color: var(--cream);
}
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: var(--paper); border-bottom: 1px solid var(--ink);
  padding: 12px 24px 24px;
}
.mobile-nav .ec-nav-link { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav .header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
  margin-left: 0;
}
.mobile-nav .header-actions .btn-ec-hotline,
.mobile-nav .header-actions .btn-ec-wa {
  justify-content: center;
  padding: 12px 16px;
}
body.nav-open .mobile-nav { display: block; }

/* ============================================================
   LOAN CALCULATOR — DARK FOREST GREEN MINTING PLATE
   (Provides rhythmic mid-page contrast!)
   ============================================================ */
.calc-section {
  padding: 108px 0;
  background: var(--band);
  color: var(--cream);
  border-bottom: 1px solid var(--ink);
  position: relative;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(54, 216, 130, 0.12) 0%, transparent 60%),
    var(--guilloche-dark);
}
.calc-section .section-heading-lg { color: #FFFFFF; }
.calc-section .section-lead-text { color: rgba(247, 245, 236, 0.82); }

.section-head-left { margin-bottom: 48px; }
.section-heading-lg { font-size: clamp(30px, 3.8vw, 44px); font-weight: 900; line-height: 1.25; margin-bottom: 12px; }
.section-lead-text { font-size: 16.5px; color: var(--ink-2); max-width: 680px; }

.calc-console-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--band-2);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
}
.calc-nav-tabs {
  display: flex; border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 32, 22, 0.8);
}
.calc-tab-trigger {
  padding: 18px 30px; font-size: 15px; font-weight: 700; color: rgba(247, 245, 236, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.12); transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 10px;
}
.calc-tab-trigger:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.05); }
.calc-tab-trigger.active {
  background: var(--band-2); color: var(--green-bright);
  border-bottom: 3px solid var(--green-bright); font-weight: 800;
}

.calc-pane { display: none; }
.calc-pane.active { display: block; animation: fade-up .35s var(--ease) both; }
.calc-two-col { display: grid; grid-template-columns: 1.15fr .85fr; }

.calc-controls-side { padding: 48px 44px; }
.calc-field-group { margin-bottom: 34px; }
.calc-field-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.calc-field-title { font-size: 15.5px; font-weight: 700; color: #FFFFFF; display: flex; align-items: center; gap: 8px; }
.calc-numeric-badge { font-size: 26px; font-weight: 900; color: var(--green-bright); }

.fintech-range-slider {
  width: 100%; height: 8px; -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15); outline: none; margin-bottom: 8px;
}
.fintech-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px;
  background: var(--green-bright); border: 2px solid #FFFFFF;
  cursor: pointer; box-shadow: 0 0 12px var(--green-bright);
}
/* Firefox had no thumb rule at all, so it fell back to the default control. */
.fintech-range-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 0;
  background: var(--green-bright); border: 2px solid #FFFFFF;
  cursor: pointer; box-shadow: 0 0 12px var(--green-bright);
}
.slider-scale-limits { display: flex; justify-content: space-between; font-size: 12px; color: rgba(247, 245, 236, 0.6); margin-bottom: 16px; }

.preset-chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-chip {
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 13px;
  font-family: var(--font-mono); font-weight: 700; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); color: #FFFFFF; transition: all .15s ease;
}
.preset-chip:hover { border-color: var(--green-bright); background: rgba(54, 216, 130, 0.15); }

.calc-summary-card {
  padding: 48px 40px; background: var(--band-card); border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.summary-stamp {
  font-size: 12px; font-weight: 800; color: var(--green-bright);
  border: 1px solid var(--green-bright); padding: 5px 12px; width: fit-content;
  margin-bottom: 18px; letter-spacing: 0.5px; background: rgba(54, 216, 130, 0.1);
}
.summary-val-title { font-size: 14px; color: rgba(247, 245, 236, 0.8); font-weight: 600; }
.summary-huge-number {
  font-size: 38px; font-weight: 900; color: var(--green-bright); margin: 6px 0 24px; line-height: 1.1;
  transition: transform .15s ease, text-shadow .2s ease;
  display: inline-block;
}
.summary-huge-number.pulse {
  transform: scale(1.03);
  text-shadow: 0 0 16px rgba(54, 216, 130, 0.5);
}

.summary-breakdown-table { border-top: 1px dashed rgba(255, 255, 255, 0.2); border-bottom: 1px dashed rgba(255, 255, 255, 0.2); margin-bottom: 28px; }
.breakdown-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; color: rgba(247, 245, 236, 0.85); }
.breakdown-row .val { font-weight: 700; font-family: var(--font-mono); color: #FFFFFF; }
.breakdown-row .val.green { color: var(--green-bright); }

.calc-action-buttons { display: flex; flex-direction: column; gap: 12px; }
.btn-calc-wa, .btn-calc-call {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; font-size: 15px; font-weight: 700;
  border: 1px solid #FFFFFF; box-shadow: 3px 3px 0 #000;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-calc-wa { background: var(--green-bright); color: #0C2016; border-color: var(--green-bright); }
.btn-calc-wa i { transition: transform .2s ease; }
.btn-calc-wa:hover { background: #2FBF73; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #000; }
.btn-calc-wa:hover i { transform: scale(1.15); }
.btn-calc-call { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.btn-calc-call:hover { background: rgba(255, 255, 255, 0.2); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }

/* ============================================================
   FOOTER + STATUTORY WARNING
   ============================================================ */
.ec-footer { border-top: 1px solid var(--ink); background: var(--paper); }
.compliance-slogan-card {
  background: var(--band); color: var(--cream); text-align: center;
  padding: 48px 24px; border-bottom: 1px solid var(--ink);
  background-image: var(--guilloche-dark);
}
.slogan-highlight {
  font-size: clamp(34px, 5vw, 56px); font-weight: 900; line-height: 1.35;
  letter-spacing: .02em; display: block;
}
.slogan-sub-notice {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em;
  color: rgba(245, 242, 232, .75); margin-top: 12px;
}

.footer-main-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 44px;
  padding: 64px 0 52px;
}
.footer-brand-logo { height: 72px; width: auto; margin-bottom: 20px; }
.footer-heading { font-size: 15.5px; font-weight: 900; margin-bottom: 18px; letter-spacing: .04em; }
.footer-info-list li {
  display: flex; gap: 10px; font-size: 14px; color: var(--ink-2);
  margin-bottom: 13px; line-height: 1.5;
}
.footer-info-list i { color: var(--green); width: 15px; margin-top: 4px; flex-shrink: 0; }
.footer-info-list a { font-weight: 700; color: var(--green-deep); }

.footer-nav-list li { margin-bottom: 11px; }
.footer-nav-list a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer-nav-list a:hover { color: var(--green-deep); font-weight: 600; }

.legal-apr-box {
  background: var(--paper-2); border: 1px solid var(--ink); padding: 20px;
  font-size: 13px; color: var(--ink-2); line-height: 1.75; box-shadow: 2px 2px 0 var(--line);
}
.legal-apr-box strong { color: var(--ink); }
.legal-apr-box .apr-example { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.legal-apr-box .apr-list { margin-top: 6px; padding-left: 20px; list-style-type: decimal; }
.legal-apr-box .apr-list li { margin-bottom: 4px; line-height: 1.6; }
.legal-apr-box .apr-list li:last-child { margin-bottom: 0; }

.footer-copyright-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   FLOATING DOCK
   ============================================================ */
.ec-floating-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.dock-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; font-size: 14px; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--ink); background: var(--paper);
  box-shadow: var(--shadow-press-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dock-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.dock-wa { background: var(--green); color: var(--cream); }


/* ============================================================
   FLOATING WHATSAPP CTA
   Fixed to the bottom right of the viewport.
   ============================================================ */
.float-wa {
  position: fixed; right: 24px; bottom: 24px;
  /* Below .mobile-nav (99) so an open menu covers it, above page content. */
  z-index: 98;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 14px;
  min-width: 58px; min-height: 58px;
  background: var(--green); color: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.float-wa i {
  font-size: 24px; line-height: 1;
  transition: transform .2s ease;
  animation: wa-bounce-subtle 4s ease-in-out infinite;
}
@keyframes wa-bounce-subtle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.float-wa-label {
  font-size: 11px; font-weight: 700; line-height: 1.25;
  text-align: center; letter-spacing: .02em;
}
.float-wa:hover {
  background: var(--green-deep);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ink);
}
.float-wa:hover i {
  animation: none;
  transform: scale(1.18);
}

/* ============================================================
   SITE PRELOADER (Banknote & Certificate)
   ============================================================ */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--band);
  background-image: var(--guilloche-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.site-preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
html.skip-preloader .site-preloader {
  display: none !important;
}
.preloader-inner {
  text-align: center;
  max-width: 320px;
  padding: 32px 24px;
}
.preloader-emblem {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(54, 216, 130, 0.4);
  border-top-color: var(--green-bright);
  animation: preloader-spin 4s linear infinite;
}
@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}
.preloader-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.5);
}
.preloader-brand {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .06em;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.preloader-brand .preloader-green {
  color: var(--green-bright);
}
.preloader-brand small {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-soft);
  margin-left: 2px;
}
.preloader-tagline {
  font-size: 12px;
  font-weight: 600;
  color: rgba(247, 245, 236, 0.7);
  letter-spacing: .12em;
  margin-bottom: 24px;
}
.preloader-progress-wrap {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto 12px;
  overflow: hidden;
}
.preloader-progress-bar {
  width: 30%;
  height: 100%;
  background: var(--green-bright);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--green-bright);
  animation: preloader-pulse 1.2s ease-in-out infinite alternate;
  transition: width .2s ease;
}
@keyframes preloader-pulse {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(250%); width: 30%; }
}
.preloader-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-soft);
  letter-spacing: .08em;
}
@media print {
  .site-preloader { display: none !important; }
}
