/* ============================================
   CreditNebancar.ro — DARK PREMIUM THEME
   Glassmorphism · neon emerald/cyan · Space Grotesk
   ============================================ */

:root {
  --bg: #070d1f;
  --bg-2: #0b1226;
  --bg-3: #0d1530;
  --panel: rgba(255, 255, 255, .05);
  --panel-2: rgba(255, 255, 255, .03);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --text: #e6edf7;
  --text-soft: #b9c4dc;
  --muted: #8b98b8;
  --dim: #5b6a8c;
  --em: #34d399;
  --em-deep: #10b981;
  --cy: #22d3ee;
  --gold: #fbbf24;
  --red: #f87171;
  --ink: #04121c;
  --grad: linear-gradient(90deg, #34d399, #22d3ee);
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 10px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, .55);
  --glow: 0 0 36px rgba(52, 211, 153, .35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Space Grotesk', 'Inter', sans-serif;
  /* legacy aliases still referenced in a few inline spots */
  --blue-900: #0b1226;
  --blue-600: #34d399;
  --gray-200: rgba(255, 255, 255, .1);
  --gray-500: #8b98b8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient glows on every page */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -1;
}
body::before { width: 620px; height: 620px; background: rgba(16, 185, 129, .13); top: -220px; right: -160px; }
body::after { width: 520px; height: 520px; background: rgba(34, 211, 238, .09); bottom: -200px; left: -150px; }

::selection { background: rgba(52, 211, 153, .35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--em); text-decoration: none; }
a:hover { color: var(--cy); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-d); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }

/* ============================================
   HEADER + NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 31, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.22rem;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -.3px;
}

.logo .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  margin-right: 10px;
}

.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { text-decoration: none; }

.nav-item { position: relative; }

.nav-link {
  color: var(--muted);
  font-weight: 500;
  font-size: .93rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  text-decoration: none !important;
}
.nav-link:hover { color: #fff; }

.caret { font-size: .62rem; transition: transform .2s; }

.dropdown {
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 265px;
  display: none;
  z-index: 60;
}

.dropdown a {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none !important;
}
.dropdown a:hover { background: rgba(52, 211, 153, .1); color: var(--em); }
.dropdown a strong { color: var(--text); }

.dropdown .dd-head {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--dim);
  font-weight: 700;
  padding: 8px 14px 4px;
}

.nav-item.open .dropdown { display: block; }
.nav-item.open .caret { transform: rotate(180deg); }

@media (min-width: 961px) {
  .has-drop { padding: 23px 0; }
  .has-drop:hover .dropdown { display: block; }
  .has-drop:hover .caret { transform: rotate(180deg); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-d);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: var(--ink) !important;
  padding: 15px 30px;
  font-size: 1.02rem;
  box-shadow: 0 8px 28px -8px rgba(52, 211, 153, .5);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--glow); text-decoration: none !important; }

.btn-header {
  background: var(--grad);
  color: var(--ink) !important;
  padding: 10px 22px;
  font-size: .9rem;
}
.btn-header:hover { filter: brightness(1.08); box-shadow: var(--glow); }

.btn-sm { padding: 8px 16px !important; font-size: .82rem !important; border-radius: 9px !important; }

.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: #fff; cursor: pointer; }
.nav-toggle .ic { width: 24px; height: 24px; }

/* ============================================
   HERO (homepage)
   ============================================ */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .12), transparent 65%);
  top: -180px; right: -120px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

.hero-copy h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 20px;
}

.hero-copy h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-copy .subtitle { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; max-width: 520px; line-height: 1.75; }

.hero-usps { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }

.hero-usps li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .98rem; color: var(--text-soft); }

.usp-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: .95rem;
  flex-shrink: 0;
}

.hero-trust { display: flex; gap: 14px; flex-wrap: wrap; }

.trust-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 20px;
}
.trust-item strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--em);
  text-shadow: 0 0 22px rgba(52, 211, 153, .45);
}
.trust-item span { font-size: .78rem; color: var(--muted); }

/* ============================================
   FORM CARD (glass calculator)
   ============================================ */
.form-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 30px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .5), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-card h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 4px; }

.form-card .form-sub { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }

.slider-group { margin-bottom: 24px; }

.slider-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-label .lbl { font-weight: 500; font-size: .92rem; color: var(--muted); }
.slider-label .val {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--em);
  text-shadow: 0 0 20px rgba(52, 211, 153, .45);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--em) 0%, var(--em) var(--fill, 50%), rgba(255, 255, 255, .12) var(--fill, 50%), rgba(255, 255, 255, .12) 100%);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--em);
  box-shadow: 0 0 16px rgba(52, 211, 153, .55);
  cursor: grab;
  transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 25px; height: 25px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--em);
  box-shadow: 0 0 16px rgba(52, 211, 153, .55);
  cursor: grab;
}

.slider-minmax { display: flex; justify-content: space-between; font-size: .76rem; color: var(--dim); margin-top: 6px; }

.calc-box {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.calc-box .calc-lbl { font-size: .84rem; color: var(--muted); }
.calc-box .calc-val {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.calc-box .calc-note { font-size: .7rem; color: var(--dim); display: block; }

/* form fields */
.field { margin-bottom: 16px; }

.field label { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }

.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 11px;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  transition: border-color .15s, box-shadow .15s;
}
.field select option { background: var(--bg-3); color: var(--text); }

.field input::placeholder { color: var(--dim); }

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--em);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .15);
}

.field input.invalid { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: .78rem; margin-top: 4px; }
.field input.invalid + .err, .field input.invalid ~ .err { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: .79rem; color: var(--muted); margin-bottom: 12px; }
.checkbox-field input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--em-deep); flex-shrink: 0; cursor: pointer; }

.form-card .btn-primary { width: 100%; margin-top: 6px; }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .76rem; color: var(--dim); margin-top: 14px; }

/* ============================================
   PARTNER STRIP
   ============================================ */
.partner-strip { padding: 24px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.partner-strip .strip-inner { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; }

/* ============================================
   SECTIONS
   ============================================ */
section { padding: 76px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.section-head h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.8px;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 16px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: var(--grad);
}

.section-head p { color: var(--muted); font-size: 1.02rem; }

/* How it works */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
  position: relative;
  transition: transform .2s, border-color .2s;
}
.step-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, .4); }

.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .3);
  color: var(--em);
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.step-card .step-icon { font-size: 2.1rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: .92rem; color: var(--muted); }

/* Benefits */
.benefits { background: rgba(255, 255, 255, .02); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.benefit-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.benefit-card:hover { border-color: rgba(52, 211, 153, .4); transform: translateY(-3px); }

.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(34, 211, 238, .1));
  border: 1px solid rgba(52, 211, 153, .25);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.benefit-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.benefit-card p { font-size: .9rem; color: var(--muted); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.testi-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }

.testi-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi-card p { font-size: .92rem; color: var(--text-soft); font-style: italic; margin-bottom: 16px; }

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: .92rem;
}

.testi-author strong { display: block; font-size: .92rem; color: #fff; }
.testi-author span { font-size: .8rem; color: var(--dim); }

/* FAQ */
.faq { background: rgba(255, 255, 255, .02); }

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: rgba(52, 211, 153, .45); }
.faq-item.open { border-color: rgba(52, 211, 153, .55); box-shadow: 0 0 28px -8px rgba(52, 211, 153, .25); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.faq-item.open .faq-q { color: var(--em); }

.faq-q .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .12);
  color: var(--em);
  display: grid;
  place-items: center;
  font-size: .8rem;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .chev { transform: rotate(180deg); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 18px; font-size: .92rem; color: var(--muted); }

/* CTA band */
.cta-band {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(34, 211, 238, .08));
  border-top: 1px solid rgba(52, 211, 153, .3);
  border-bottom: 1px solid rgba(52, 211, 153, .3);
  text-align: center;
  padding: 64px 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 70%);
  top: -160px; right: 6%;
  pointer-events: none;
}
.cta-band h2 { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.5px; margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; font-size: 1.02rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #050a18;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 56px 0 28px;
  font-size: .9rem;
  position: relative;
  z-index: 1;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid-5 { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; }

.footer-grid h4, .footer-grid .f-title { color: #fff; font-size: .92rem; margin-bottom: 14px; font-weight: 700; font-family: var(--font-d); }

.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--em); }

.footer-about .logo { margin-bottom: 14px; }
.footer-about p { font-size: .85rem; line-height: 1.65; color: var(--muted); }

.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.badge {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-legal { border-top: 1px solid var(--line); padding-top: 24px; font-size: .77rem; color: var(--dim); line-height: 1.7; }
.footer-legal p { margin-bottom: 10px; }
.footer-legal a { color: var(--muted) !important; }

/* ============================================
   LEAD MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.visible { display: flex; }

.modal-card {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(52, 211, 153, .3);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  animation: modalIn .28s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: .15s;
}
.modal-close:hover { color: #fff; border-color: var(--line-2); }

.modal-card h3 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 4px; padding-right: 34px; }
.modal-card .form-sub { margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.modal-card .checkbox-field a { color: var(--em); }

/* ============================================
   OFFERS POPUP (homepage)
   ============================================ */
.offers-modal .modal-card {
  max-width: 940px;
  background: var(--bg-2);
  padding: 30px 30px 24px;
}

.om-head { text-align: center; margin-bottom: 24px; padding: 0 24px; }

.om-head .approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .45);
  color: var(--em);
  border-radius: 99px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.om-head h3 { font-size: 1.5rem; padding-right: 0 !important; }
.om-sub { color: var(--muted); font-size: .92rem; max-width: 560px; margin: 6px auto 0; }
.om-sub strong { color: var(--text); }
.om-head .req-summary { margin-top: 12px; color: var(--cy); font-weight: 600; font-size: .92rem; }

.offers-modal .offer-card { padding: 20px 22px; }

.om-disclaimer { margin-top: 18px; font-size: .72rem; color: var(--dim); line-height: 1.6; }

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(800px 500px at 70% 20%, rgba(16, 185, 129, .12), transparent 60%), var(--bg);
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.loading-overlay.visible { display: flex; }

.loading-box { text-align: center; max-width: 420px; padding: 0 24px; }

.spinner {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, .12);
  border-top-color: var(--em);
  animation: spin 1s linear infinite;
  margin: 0 auto 28px;
  box-shadow: 0 0 40px -10px rgba(52, 211, 153, .5);
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-wrap { position: relative; width: 86px; height: 86px; margin: 0 auto 28px; }
.spinner-wrap .spinner { width: 86px; height: 86px; margin: 0; }
.spinner-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--em);
  text-shadow: 0 0 26px rgba(52, 211, 153, .65);
  font-variant-numeric: tabular-nums;
}

.loading-box h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.loading-box .loading-sub { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }

.loading-steps { display: grid; gap: 14px; text-align: left; }

.loading-step { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--dim); transition: color .3s; }

.loading-step .ls-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: .72rem;
  flex-shrink: 0;
  transition: all .3s;
}

.loading-step.done { color: var(--text); }
.loading-step.done .ls-icon { background: var(--em-deep); border-color: var(--em-deep); color: var(--ink); }

.loading-step.working { color: #fff; }
.loading-step.working .ls-icon { border-color: var(--em); border-top-color: transparent; animation: spin .8s linear infinite; }

.progress-track { height: 7px; background: rgba(255, 255, 255, .1); border-radius: 99px; margin-top: 30px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 99px; background: var(--grad); transition: width .4s ease; box-shadow: 0 0 14px rgba(52, 211, 153, .6); }

/* ============================================
   OFFERS PAGE
   ============================================ */
.offers-hero { position: relative; padding: 46px 0 104px; text-align: center; overflow: hidden; }
.offers-hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .14), transparent 65%);
  top: -220px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.offers-hero .approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .45);
  color: var(--em);
  border-radius: 99px;
  padding: 7px 18px;
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.offers-hero h1 { font-size: 2.1rem; font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -.8px; }
.offers-hero p { color: var(--muted); max-width: 580px; margin: 0 auto; }
.offers-hero p strong { color: var(--text); }
.offers-hero .req-summary {
  margin-top: 16px;
  font-size: .95rem;
  color: var(--cy);
  font-weight: 600;
}

.offers-wrap { margin-top: -56px; padding-bottom: 80px; position: relative; z-index: 1; }

.offers-list { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }

.offer-card {
  background: rgba(13, 21, 48, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.offer-card:hover { transform: translateY(-3px); border-color: rgba(52, 211, 153, .45); }

.offer-card.featured {
  border: 1px solid rgba(52, 211, 153, .6);
  box-shadow: 0 0 52px -14px rgba(52, 211, 153, .35);
}

.offer-flag {
  position: absolute;
  top: -13px; left: 24px;
  background: var(--grad);
  color: var(--ink);
  font-family: var(--font-d);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 14px;
  border-radius: 99px;
}

.offer-logo {
  width: 170px;
  height: 80px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  padding: 6px;
  flex-shrink: 0;
}

.offer-logo.img-logo { background: #fff; border: none; padding: 12px 16px; }
.offer-logo.img-logo img { width: 100%; height: 100%; object-fit: contain; }

.offer-note { margin-top: 10px; font-size: .72rem; color: var(--dim); line-height: 1.55; }

.offer-body { min-width: 0; }

.offer-name {
  font-family: var(--font-d);
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.offer-rating { color: var(--gold); font-size: .85rem; font-weight: 700; font-family: var(--font); }
.offer-rating .rr { color: var(--dim); font-weight: 500; }

.offer-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.offer-tag {
  background: rgba(34, 211, 238, .1);
  border: 1px solid rgba(34, 211, 238, .25);
  color: var(--cy);
  font-size: .73rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 99px;
}
.offer-action { text-align: center; }
.offer-action .btn-primary { padding: 14px 26px; font-size: .95rem; white-space: nowrap; }
.offer-action .oa-note { display: block; font-size: .72rem; color: var(--dim); margin-top: 8px; }

.offers-disclaimer {
  max-width: 880px;
  margin: 34px auto 0;
  font-size: .77rem;
  color: var(--dim);
  line-height: 1.7;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page { padding: 56px 0 72px; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 1.9rem; color: #fff; margin-bottom: 8px; letter-spacing: -.5px; }
.legal-page .updated { color: var(--dim); font-size: .85rem; margin-bottom: 32px; }
.legal-page h2 { font-size: 1.25rem; color: #fff; margin: 30px 0 10px; }
.legal-page p, .legal-page li { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }

/* ============================================
   CONTENT PAGES (landing / review / blog)
   ============================================ */
.breadcrumbs { padding: 14px 0 0; font-size: .82rem; color: var(--dim); }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--em); }
.breadcrumbs .sep { margin: 0 7px; color: var(--dim); }
.bc-current { color: var(--text-soft); font-weight: 600; }

.page-hero {
  position: relative;
  padding: 44px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 340px at 88% -20%, rgba(52, 211, 153, .13), transparent 60%),
    radial-gradient(600px 300px at -5% 130%, rgba(34, 211, 238, .09), transparent 60%);
}

.page-hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -1px;
  max-width: 820px;
  margin-bottom: 14px;
  line-height: 1.16;
  color: #fff;
}
.page-hero-sub { color: var(--muted); max-width: 740px; font-size: 1.04rem; line-height: 1.7; }

.page-hero .breadcrumbs {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 16px !important;
  border-radius: 99px;
  margin-bottom: 18px;
  font-size: .78rem;
}

.page-meta { margin-top: 20px; font-size: .8rem; display: flex; gap: 10px; flex-wrap: wrap; }
.page-meta span {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .77rem;
  color: var(--muted);
}

.content-article { max-width: 800px; margin: 0 auto; padding: 44px 22px 64px; font-size: 1.01rem; }

.content-article h2 {
  font-size: 1.5rem;
  color: #fff;
  margin: 46px 0 18px;
  letter-spacing: -.5px;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
  scroll-margin-top: 92px;
}
.content-article h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 54px; height: 4px;
  border-radius: 99px;
  background: var(--grad);
}
.content-article h2:first-child { margin-top: 0; }

.content-article h3 { font-size: 1.15rem; color: #fff; margin: 26px 0 10px; }
.content-article p { margin-bottom: 14px; color: var(--text-soft); line-height: 1.8; }
.content-article strong { color: #fff; }
.content-article ul, .content-article ol { padding-left: 24px; margin-bottom: 16px; color: var(--text-soft); }
.content-article li { margin-bottom: 8px; line-height: 1.8; }
.content-article ol li::marker { color: var(--em); font-weight: 700; }
.content-article > ul > li::marker { color: var(--em); }
.content-article em { color: var(--muted); }
.content-article .faq-list { margin-top: 8px; }

/* Answer box */
.answer-box {
  background: linear-gradient(135deg, rgba(52, 211, 153, .09), rgba(34, 211, 238, .05));
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 16px;
  padding: 22px 24px 20px;
  margin: 0 0 28px;
  position: relative;
  overflow: hidden;
}
.answer-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--em), var(--cy));
}
.answer-box .ab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad);
  color: var(--ink);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
  font-family: var(--font-d);
}
.answer-box p { margin: 0; color: var(--text); font-size: 1.02rem; }
.answer-box strong { color: #fff; }

/* Key points */
.key-points {
  background: rgba(52, 211, 153, .07);
  border: 1px solid rgba(52, 211, 153, .3);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 20px 0 26px;
  position: relative;
  overflow: hidden;
}
.key-points::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.key-points h3 { margin: 0 0 10px !important; font-size: 1rem; color: var(--em); }
.key-points ul { margin-bottom: 0; }

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 18px 0 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  box-shadow: var(--shadow-sm);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
.cmp-table th {
  background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(34, 211, 238, .12));
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-family: var(--font-d);
  border-bottom: 1px solid rgba(52, 211, 153, .3);
  white-space: nowrap;
}
.cmp-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--text-soft); transition: background .15s; }
.cmp-table tr:first-child td { border-top: none; }
.cmp-table tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.cmp-table tbody tr:hover td { background: rgba(52, 211, 153, .07); }
.cmp-table td strong, .cmp-table td b { color: #fff; }
.cmp-table td:first-child { font-weight: 600; color: var(--text); }
.cmp-table a { font-weight: 700; white-space: nowrap; }

/* Pros / Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 26px; }
.pros, .cons { border-radius: 14px; padding: 18px 20px; }
.pros { background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); }
.cons { background: rgba(248, 113, 113, .07); border: 1px solid rgba(248, 113, 113, .28); }
.pros h3, .cons h3 { margin: 0 0 12px !important; font-size: 1rem; color: #fff; }
.pros ul, .cons ul { margin: 0; list-style: none; padding-left: 2px; }
.pros li, .cons li { position: relative; padding-left: 28px; line-height: 1.65; }
.pros li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--em-deep);
  color: var(--ink);
  font-size: .66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.cons li::before {
  content: "✕";
  position: absolute; left: 0; top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Rating summary */
.rating-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin: 8px 0 26px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.rating-summary::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }

.rs-score { text-align: center; }
.rs-score .num {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--em);
  line-height: 1;
  text-shadow: 0 0 30px rgba(52, 211, 153, .5);
}
.rs-score .stars { color: var(--gold); letter-spacing: 2px; margin-top: 6px; }
.rs-score .lbl { font-size: .75rem; color: var(--dim); }

.rs-bars { flex: 1; min-width: 240px; display: grid; gap: 9px; }
.rs-bar { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.rs-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.rs-fill { height: 100%; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px rgba(52, 211, 153, .5); }

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(34, 211, 238, .07));
  border: 1px solid rgba(52, 211, 153, .4);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}
.verdict-box::before {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .25), transparent 70%);
  pointer-events: none;
}
.verdict-box > * { position: relative; z-index: 1; }
.verdict-box h3 { color: #fff !important; margin: 0 0 10px !important; font-size: 1.3rem; }
.verdict-box p { color: var(--text-soft); }
.verdict-box .btn-primary { margin-top: 10px; }
.verdict-box a:not(.btn) { color: var(--cy) !important; }

/* CTA inline */
.cta-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px dashed rgba(52, 211, 153, .5);
  border-radius: 16px;
  padding: 18px 22px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.cta-inline strong { display: block; color: #fff; font-size: 1.05rem; }
.cta-inline span { font-size: .85rem; color: var(--muted); }
.cta-inline .btn-primary { white-space: nowrap; }

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-top: 46px;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--font-d);
  flex-shrink: 0;
}
.author-box strong { display: block; color: #fff; }
.author-box span { font-size: .83rem; color: var(--dim); }

/* TOC */
.toc-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 30px; }
.toc-box .toc-title { font-family: var(--font-d); font-weight: 700; color: #fff; font-size: .95rem; margin-bottom: 10px; }
.toc-box ol { margin: 0; padding-left: 22px; }
.toc-box li { margin-bottom: 7px; font-size: .9rem; line-height: 1.5; }
.toc-box li::marker { color: var(--em); font-weight: 700; }
.toc-box a { color: var(--muted); font-weight: 500; text-decoration: none; }
.toc-box a:hover { color: var(--em); }

/* Reading progress */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 300;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(52, 211, 153, .6);
  transition: width .1s linear;
}

/* ============================================
   CALCULATOARE
   ============================================ */
.calc-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin: 0 0 18px; }

.calc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.calc-card h2 { margin: 0 0 18px !important; font-size: 1.2rem !important; padding-bottom: 0 !important; }
.calc-card h2::after { display: none; }

.calc-result {
  background: var(--bg-3);
  border: 1px solid rgba(52, 211, 153, .35);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  position: sticky;
  top: 88px;
  box-shadow: 0 0 48px -16px rgba(52, 211, 153, .3);
}
.calc-result .cr-main-lbl {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dim);
  display: block;
  margin-bottom: 4px;
}
.calc-result .cr-main {
  font-family: var(--font-d);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--em);
  text-shadow: 0 0 30px rgba(52, 211, 153, .5);
}
.cr-rows { margin-top: 20px; display: grid; gap: 10px; }
.cr-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .92rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}
.cr-row strong { color: #fff; font-variant-numeric: tabular-nums; }
.cr-note { font-size: .74rem; color: var(--dim); margin-top: 16px; }

.amort-table th, .amort-table td { font-size: .82rem; padding: 8px 12px; }

.eligibility-verdict { border-radius: 14px; padding: 20px 24px; margin: 18px 0; font-weight: 600; display: none; }
.eligibility-verdict.ok { display: block; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); color: var(--em); }
.eligibility-verdict.warn { display: block; background: rgba(251, 191, 36, .09); border: 1px solid rgba(251, 191, 36, .35); color: var(--gold); }
.eligibility-verdict.bad { display: block; background: rgba(248, 113, 113, .09); border: 1px solid rgba(248, 113, 113, .35); color: var(--red); }
.eligibility-verdict p { margin: 6px 0 0; font-weight: 400; font-size: .9rem; color: var(--text-soft); }
.eligibility-verdict strong { color: #fff; }

/* ============================================
   RESOURCE / BLOG CARDS
   ============================================ */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.resource-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: transform .2s, border-color .2s;
  display: block;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .2s;
}
.resource-card:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, .45); }
.resource-card:hover::before { opacity: 1; }

.resource-card .rc-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .15), rgba(34, 211, 238, .1));
  border: 1px solid rgba(52, 211, 153, .25);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.resource-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.resource-card p { font-size: .85rem; color: var(--muted); margin: 0; }
.resource-card .rc-more { font-size: .85rem; font-weight: 700; color: var(--em); display: inline-flex; gap: 4px; margin-top: 12px; transition: gap .2s; }
.resource-card:hover .rc-more { gap: 8px; }

/* ============================================
   ICON SYSTEM (assets/icons.svg sprite)
   ============================================ */
.ic {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.18em;
  flex-shrink: 0;
  display: inline-block;
}
.ic-fill { fill: currentColor; stroke: none; }

.usp-icon .ic { width: 15px; height: 15px; color: var(--em); vertical-align: 0; }
.benefit-icon .ic, .rc-icon .ic { width: 23px; height: 23px; color: var(--em); vertical-align: 0; }
.step-icon { display: flex; justify-content: center; }
.step-icon .ic { width: 30px; height: 30px; color: var(--em); stroke-width: 1.6; }
.badge .ic { width: 13px; height: 13px; color: var(--em); }
.page-meta .ic { width: 13px; height: 13px; margin-right: 4px; color: var(--em); }
.ab-label .ic { width: 12px; height: 12px; stroke-width: 2.4; vertical-align: -.14em; }
.offer-flag .ic { width: 11px; height: 11px; stroke-width: 2.2; vertical-align: -.1em; margin-right: 2px; }
.toc-title .ic { width: 15px; height: 15px; color: var(--em); margin-right: 6px; }
.key-points h3 .ic { width: 15px; height: 15px; margin-right: 6px; }
.secure-note .ic, .oa-note .ic { width: 12px; height: 12px; color: var(--em); }
.dropdown .ic { width: 13px; height: 13px; color: var(--gold); margin-right: 4px; }
.approved-badge .ic { width: 14px; height: 14px; }
.legal-page .ic { width: 15px; height: 15px; color: var(--em); margin-right: 6px; }
.cmp-table .ic-star { width: 13px; height: 13px; color: var(--gold); margin-right: 3px; }

/* status dots (replace 🟢🟡🔴 in tables) */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 0;
}
.dot-ok { background: var(--em); box-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.dot-mid { background: var(--gold); box-shadow: 0 0 8px rgba(251, 191, 36, .5); }
.dot-bad { background: var(--red); box-shadow: 0 0 8px rgba(248, 113, 113, .5); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy h1 { font-size: 2.3rem; }
  .steps-grid, .benefits-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid-5 { grid-template-columns: 1fr 1fr; }
  .calc-page-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .resource-grid { grid-template-columns: 1fr 1fr; }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--bg-3);
    flex-direction: column;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
    gap: 16px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }

  .nav-item { width: 100%; }
  .drop-toggle { width: 100%; justify-content: space-between; font-size: 1rem; }
  .dropdown { position: static; display: none; box-shadow: none; border: none; background: transparent; padding: 4px 0 4px 12px; min-width: 0; }
  .nav-item.open .dropdown { display: block; }
}

@media (max-width: 640px) {
  .hero { padding: 40px 0 56px; }
  .hero-copy h1 { font-size: 1.85rem; }
  .steps-grid, .benefits-grid, .testi-grid, .resource-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  section { padding: 52px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.6rem; }
  .content-article h2 { font-size: 1.3rem; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid, .footer-grid-5 { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust { gap: 10px; }
  .cta-inline { flex-direction: column; align-items: stretch; text-align: center; }

  .offer-card { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .offer-logo { margin: 0 auto; }
  .offer-name, .offer-tags { justify-content: center; }
  .offer-action .btn-primary { width: 100%; }
}

/* ============================================
   OFFER CARD v2 + TABLE COMPONENTS
   ============================================ */
.offer-left { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.offer-review-link { font-size: .78rem; color: var(--dim); font-weight: 600; text-decoration: none; }
.offer-review-link:hover { color: var(--em); text-decoration: none; }

.offer-promo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(52, 211, 153, .16), rgba(34, 211, 238, .08));
  border: 1px solid rgba(52, 211, 153, .4);
  color: var(--em);
  font-weight: 700;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 10px;
}
.offer-promo .ic { width: 13px; height: 13px; }

.brand { display: flex; align-items: center; }
.tlogo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 36px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  margin-right: 12px;
  flex-shrink: 0;
}
.tlogo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.pill-promo {
  display: inline-block;
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .35);
  color: var(--em);
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 99px;
  white-space: nowrap;
}

.cmp-table .rate-cell { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cmp-table .btn-sm { white-space: nowrap; }
/* bảng offer nhiều cột (trong .table-wide) cần min-width lớn để scroll ngang gọn */
.table-wide .cmp-table { min-width: 720px; }
/* bảng spec 2 cột (review): vừa màn hình, KHÔNG ép min-width → không tràn cột value trên mobile */
.table-spec .cmp-table { min-width: 0; }
/* bảng versus 3 cột: min-width vừa phải, giá trị không bị đẩy khuất */
.vs-table { min-width: 420px; }

@media (max-width: 640px) {
  .offer-left { margin: 0 auto; }
}

/* wide offer tables break out of the 800px article column */
.content-article .table-wide {
  width: min(1100px, calc(100vw - 44px));
  margin-left: 50%;
  transform: translateX(-50%);
}

/* offer card: 4 stat tiles */
.offer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.stat {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.offer-card:hover .stat { border-color: rgba(52, 211, 153, .25); }
.stat .os-lbl {
  display: block;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--dim);
  font-weight: 700;
  margin-bottom: 3px;
}
.stat .os-val {
  display: block;
  font-family: var(--font-d);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.stat .os-val.green { color: var(--em); text-shadow: 0 0 18px rgba(52, 211, 153, .4); }

.offer-meta { margin-top: 10px; font-size: .8rem; color: var(--dim); }
.offer-meta b { color: var(--muted); font-weight: 600; }

/* hide modal scrollbar (still scrollable) */
.modal-card { scrollbar-width: none; -ms-overflow-style: none; }
.modal-card::-webkit-scrollbar { display: none; }

@media (max-width: 900px) { .offer-stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   MOBILE POLISH
   ============================================ */
.btn-header { white-space: nowrap; }
.calc-box .calc-val { white-space: nowrap; margin-left: 12px; }

@media (max-width: 640px) {
  /* header: compact logo + CTA, no wrapping */
  .header-inner { gap: 10px; height: 62px; }
  .logo { font-size: 1.02rem; }
  .logo-mark { width: 30px; height: 30px; margin-right: 8px; }
  .btn-header { padding: 9px 14px; font-size: .8rem; }
  .main-nav { top: 62px; max-height: calc(100vh - 62px); }

  /* hero trust tiles: 3 equal columns instead of awkward wrap */
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .trust-item { padding: 10px 8px; text-align: center; }
  .trust-item strong { font-size: 1.1rem; }
  .trust-item span { font-size: .68rem; }

  /* calculator card */
  .calc-box { gap: 10px; }
  .calc-box .calc-val { font-size: 1.15rem; }
  .calc-box .calc-note { max-width: 180px; }

  /* modals tighter on small screens */
  .modal-overlay { padding: 10px; }
  .modal-card { padding: 22px 16px; }
  .offers-modal .modal-card { padding: 20px 12px 16px; }
  .om-head { padding: 0 8px; }
  .om-head h3 { font-size: 1.22rem; }
  .offer-card { padding: 18px 14px; }
  .offer-stats { gap: 8px; }
  .stat { padding: 10px 10px; }
  .stat .os-val { font-size: .95rem; }
  .offer-logo { width: 150px; height: 70px; }
  .offer-name { font-size: 1.08rem; }
  .modal-close { top: 8px; right: 8px; }

  /* content pages */
  .page-meta span { font-size: .7rem; padding: 5px 10px; }
  .page-hero .breadcrumbs { font-size: .72rem; }
  .content-article { padding: 32px 18px 52px; }
  .answer-box { padding: 18px 16px; }
  .verdict-box { padding: 22px 18px; }
  .cmp-table { font-size: .84rem; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
  .tlogo { width: 64px; height: 30px; margin-right: 8px; }
  /* versus 3 cột: compactează pe mobile ca cele 3 coloane să încapă */
  .vs-table { min-width: 340px; font-size: .8rem; }
  .vs-table th, .vs-table td { padding: 9px 8px; }
  .table-spec .cmp-table th, .table-spec .cmp-table td { padding: 11px 12px; }

  /* loading overlay */
  .spinner-wrap { width: 76px; height: 76px; }
  .spinner-wrap .spinner { width: 76px; height: 76px; }
  .spinner-count { font-size: 1.8rem; }
  .loading-box h2 { font-size: 1.2rem; }
}

@media (max-width: 360px) {
  .logo { font-size: .95rem; }
  .btn-header { padding: 8px 11px; font-size: .74rem; }
  .hero-copy h1 { font-size: 1.65rem; }
}

/* offers list: collapsed to 5 + "see more" */
.offer-hidden { display: none !important; }
.offers-more { text-align: center; padding: 6px 0 2px; }
.btn-more {
  background: var(--panel);
  border: 1px solid rgba(52, 211, 153, .45);
  color: var(--em);
  padding: 14px 30px;
  border-radius: 12px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}
.btn-more:hover { border-color: var(--em); box-shadow: 0 0 28px -6px rgba(52, 211, 153, .4); }

/* generic USP strip (replaces brand-name strip) */
.strip-usp { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.strip-usp .ic { color: var(--em); width: 15px; height: 15px; }
@media (max-width: 640px) { .strip-usp { font-size: .8rem; } }

/* brand logo on review pages */
.review-logo {
  width: 190px;
  height: 88px;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 14px 20px;
  margin: 4px 0 20px;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, .5), 0 0 0 1px var(--line);
}
.review-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 640px) { .review-logo { width: 160px; height: 74px; padding: 10px 14px; } }

/* offer tables: logo-only brand cells (logo = link to review) */
.cmp-table .brand { text-decoration: none !important; }
.cmp-table .tlogo { width: 94px; height: 42px; margin-right: 0; transition: box-shadow .18s, transform .18s; }
.cmp-table a.brand:hover .tlogo { box-shadow: 0 0 0 2px var(--em), 0 6px 20px -6px rgba(52, 211, 153, .5); transform: translateY(-1px); }
@media (max-width: 640px) { .cmp-table .tlogo { width: 76px; height: 34px; } }

/* ===== versus pages (/compara/) ===== */
.vs-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 8px 0 28px; padding: 24px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; }
.vs-header .vs-side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.vs-header .review-logo { margin: 0; width: 150px; height: 66px; }
.vs-header .vs-name { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; }
.vs-header .vs-rate { font-size: .85rem; color: var(--em); font-weight: 600; }
.vs-header .vs-mid { font-family: var(--font-d); font-weight: 700; font-size: 1.4rem; color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.vs-table th:first-child, .vs-table td:first-child { text-align: left; }
.vs-table th, .vs-table td { text-align: center; }
.vs-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 30px; }
.vs-cta .btn { flex: 1 1 220px; text-align: center; justify-content: center; }
.btn-outline { background: transparent; border: 1.5px solid var(--em); color: var(--em); }
.btn-outline:hover { background: rgba(52,211,153,.1); }
@media (max-width: 560px) {
  .vs-header { padding: 16px; gap: 8px; }
  .vs-header .review-logo { width: 108px; height: 48px; }
  .vs-header .vs-name { font-size: .9rem; }
  .vs-header .vs-mid { width: 40px; height: 40px; font-size: 1.1rem; }
  .vs-cta .btn { flex: 1 1 100%; }
}
