@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
/* ═══════════════════════════════════════════════════════════
   Împrumut Rapid 247 — imprumutrapid247.ro
   Design system + site styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-500: #22c55e;
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --blue-600: #2563eb;
  --blue-50: #eff6ff;
  --amber-500: #f59e0b;
  --amber-50: #fffbeb;
  --red-500: #ef4444;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .10);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }

.section { padding: 64px 0; }
.section-alt { background: var(--gray-50); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--gray-500); max-width: 640px; margin: 0 auto 44px; font-size: 1.05rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; transition: all .2s ease;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white); box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 163, 74, .45); }
.btn-outline {
  background: var(--white); color: var(--green-700);
  border: 2px solid var(--green-600);
}
.btn-outline:hover { background: var(--green-50); }
.btn-lg { padding: 17px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy-900); text-decoration: none !important; }
.logo-badge {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white); width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo span em { color: var(--green-600); font-style: normal; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--navy-700); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--green-600); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--navy-800); }

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, #14532d 100%);
  color: var(--white); padding: 56px 0 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, .18), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--green-500); }
.hero-lead { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 28px; max-width: 520px; }
.hero-points { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.hero-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #e2e8f0; }
.hero-points svg { flex-shrink: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero-stat {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px; padding: 16px 14px; text-align: center;
}
.hero-stat strong { display: block; font-size: 1.5rem; color: var(--green-500); font-weight: 800; line-height: 1.1; }
.hero-stat span { font-size: .82rem; color: var(--gray-400); display: block; margin-top: 4px; }

/* ── Form Card ── */
.form-card {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 30px 28px; color: var(--navy-800); max-width: 480px; margin-left: auto; width: 100%;
}
.form-card-header { text-align: center; margin-bottom: 22px; }
.form-card-header h2 { font-size: 1.35rem; margin-bottom: 4px; }
.form-card-header p { color: var(--gray-500); font-size: .9rem; }

.form-steps-bar { display: flex; gap: 8px; margin-bottom: 24px; }
.form-steps-bar .step-seg {
  flex: 1; height: 6px; border-radius: 3px; background: var(--gray-200); transition: background .3s;
}
.form-steps-bar .step-seg.active { background: var(--green-500); }

.form-step { display: none; }
.form-step.visible { display: block; animation: fadeSlide .35s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; color: var(--navy-800); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; padding: 13px 15px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--navy-900); background: var(--white);
  transition: border-color .2s; -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green-500); }
.field input.error, .field select.error { border-color: var(--red-500); }
.field-error { color: var(--red-500); font-size: .82rem; margin-top: 5px; display: none; }
.field-error.visible { display: block; }

/* Sliders */
.slider-field { margin-bottom: 22px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider-head label { font-weight: 700; font-size: .9rem; }
.slider-value { font-weight: 800; font-size: 1.3rem; color: var(--green-600); }
.slider-value small { font-size: .85rem; font-weight: 600; color: var(--gray-500); }
input[type="range"] {
  width: 100%; height: 8px; border-radius: 4px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--green-500) var(--fill, 50%), var(--gray-200) var(--fill, 50%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--green-600);
  box-shadow: var(--shadow-md); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--green-600);
  box-shadow: var(--shadow-md); cursor: grab;
}
.slider-limits { display: flex; justify-content: space-between; font-size: .78rem; color: var(--gray-400); margin-top: 6px; }

.form-nav { display: flex; gap: 12px; margin-top: 6px; }
.form-nav .btn-back {
  background: var(--gray-100); color: var(--navy-700); flex: 0 0 auto; padding: 14px 18px;
}
.form-nav .btn-back:hover { background: var(--gray-200); }
.form-nav .btn-primary { flex: 1; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: .82rem; color: var(--gray-600); }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green-600); flex-shrink: 0; cursor: pointer; }
.consent a { text-decoration: underline; }

.form-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: .8rem; color: var(--gray-500); }
.req { color: var(--red-500); font-weight: 700; }
.req-legend { font-size: .78rem; color: var(--gray-500); margin: 10px 0 0; }

/* ── Trust bar ── */
.trust-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 22px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust-item svg { flex-shrink: 0; }
.trust-item strong { display: block; font-size: .95rem; color: var(--navy-900); }
.trust-item span { font-size: .8rem; color: var(--gray-500); }

/* ── Steps (Cum funcționează) ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  text-align: center; position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--gray-500); font-size: .95rem; }

/* ── Benefits ── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefits-grid-3 { max-width: 960px; margin: 0 auto 28px; }
.benefit-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: var(--green-50); display: flex; align-items: center; justify-content: center;
}
.benefit-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.benefit-card p { color: var(--gray-500); font-size: .93rem; }

/* ── Partners strip ── */
.partners-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.partner-chip {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; color: var(--navy-700); font-size: .95rem;
  box-shadow: var(--shadow-sm);
}

/* ── Eligibility ── */
.eligibility-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 1rem; }
.check-list svg { flex-shrink: 0; margin-top: 3px; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.stars { color: var(--amber-500); letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.testimonial p { color: var(--navy-700); font-size: .95rem; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.testimonial-author strong { display: block; font-size: .92rem; color: var(--navy-900); }
.testimonial-author span { font-size: .8rem; color: var(--gray-500); }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq-item summary {
  padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--green-600); font-weight: 700; transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--gray-600); font-size: .95rem; }

/* ── CTA band ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: 20px; padding: 48px 40px; text-align: center; color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }
.cta-band .btn { background: var(--white); color: var(--green-700); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* ── Footer ── */
.site-footer { background: var(--navy-900); color: var(--gray-400); padding: 56px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.05fr 1.15fr; gap: 30px; margin-bottom: 40px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-400); }
.footer-col a:hover { color: var(--green-500); text-decoration: none; }
.footer-legal {
  border-top: 1px solid var(--navy-700); padding-top: 24px;
  font-size: .8rem; color: var(--gray-500); line-height: 1.7;
}
.footer-legal p { margin-bottom: 10px; }

/* ── Loading overlay ── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(160deg, var(--navy-900) 0%, #14532d 100%);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.loading-overlay.visible { display: flex; }
.loading-box { max-width: 440px; width: 100%; text-align: center; color: var(--white); }
.loading-spinner {
  width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.15); border-top-color: var(--green-500);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 8px; }
.loading-box > p { color: var(--gray-400); margin-bottom: 30px; }
.loading-steps { text-align: left; max-width: 340px; margin: 0 auto; }
.loading-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  color: var(--gray-500); font-weight: 600; font-size: .95rem; transition: color .3s;
}
.loading-step .ls-icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--gray-500); display: flex; align-items: center; justify-content: center;
  font-size: .8rem; transition: all .3s;
}
.loading-step.active { color: var(--white); }
.loading-step.active .ls-icon { border-color: var(--green-500); }
.loading-step.done { color: var(--green-500); }
.loading-step.done .ls-icon { background: var(--green-500); border-color: var(--green-500); color: var(--navy-900); }
.loading-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; margin-top: 28px; overflow: hidden; }
.loading-bar-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  transition: width .4s ease;
}

/* ═══════════ OFFERS PAGE ═══════════ */
.offers-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, #14532d 100%);
  color: var(--white); padding: 44px 0 36px; text-align: center;
}
.offers-hero .badge-approved {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.15); border: 1px solid var(--green-500);
  color: var(--green-500); font-weight: 700; font-size: .85rem;
  padding: 7px 18px; border-radius: 999px; margin-bottom: 18px;
}
.offers-hero h1 { color: var(--white); font-size: clamp(1.5rem, 3.6vw, 2.3rem); margin-bottom: 10px; }
.offers-hero h1 em { font-style: normal; color: var(--green-500); }
.offers-hero p { color: var(--gray-400); max-width: 560px; margin: 0 auto; }

.countdown-bar {
  background: var(--amber-50); border-bottom: 1px solid #fde68a;
  padding: 12px 0; text-align: center; font-weight: 600; color: #92400e; font-size: .95rem;
}
.countdown-bar strong { font-variant-numeric: tabular-nums; color: #b45309; }

.offers-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-50); border: 1px solid #bfdbfe; border-radius: var(--radius-sm);
  padding: 16px 20px; margin: 28px 0; font-size: .93rem; color: var(--navy-700);
}
.offers-tip svg { flex-shrink: 0; margin-top: 2px; }

.offers-list { display: flex; flex-direction: column; gap: 18px; padding-bottom: 56px; }
.more-offers { display: flex; flex-direction: column; gap: 18px; animation: fadeSlide .35s ease; }
.show-more-btn { align-self: center; margin-top: 6px; }
.offer-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; position: relative;
  display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center;
  transition: box-shadow .2s, border-color .2s;
}
.offer-card:hover { box-shadow: var(--shadow-md); }
.offer-card.featured { border: 2px solid var(--green-500); box-shadow: 0 6px 24px rgba(22,163,74,.16); }
.offer-badge {
  position: absolute; top: -12px; left: 20px;
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
  color: var(--white); font-size: .75rem; font-weight: 800; letter-spacing: .3px;
  padding: 4px 14px; border-radius: 999px; text-transform: uppercase;
}
.offer-badge.badge-amber { background: linear-gradient(135deg, #d97706, var(--amber-500)); }
.offer-brand { display: flex; flex-direction: column; gap: 6px; }
.offer-logo {
  font-weight: 800; font-size: 1.25rem; color: var(--navy-900); letter-spacing: -.3px;
}
.offer-logo span { color: var(--green-600); }
.offer-logo-img {
  width: 190px; height: 80px; padding: 14px 20px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  object-fit: contain; object-position: center; box-shadow: var(--shadow-sm);
}
.brand-logo-frame {
  width: 230px; height: 92px; padding: 18px 26px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  object-fit: contain; object-position: center; box-shadow: var(--shadow-sm);
}
.offer-note {
  grid-column: 1 / -1; font-size: .74rem; color: var(--gray-400);
  line-height: 1.5; margin-top: 8px;
}
.offer-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--gray-500); }
.offer-rating .stars { margin: 0; font-size: .85rem; }
.offer-details { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 26px; }
.data-table .cell-brand img {
  width: 128px; height: 54px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  object-fit: contain; object-position: center;
  display: block; margin-bottom: 6px;
}
.offer-detail span { display: block; font-size: .78rem; color: var(--gray-500); }
.offer-detail strong { font-size: 1.02rem; color: var(--navy-900); }
.offer-perks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.offer-perk {
  font-size: .78rem; font-weight: 600; color: var(--green-700);
  background: var(--green-50); border-radius: 999px; padding: 3px 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.offer-action { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.offer-action .btn { min-width: 180px; }
.offer-action small { color: var(--gray-400); font-size: .75rem; }

.offers-disclaimer {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 20px 24px; font-size: .82rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 40px;
}

/* ── Legal / content pages ── */
.page-hero { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 44px 0; }
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.page-hero p { color: var(--gray-500); margin-top: 8px; }
.legal-content { max-width: 820px; margin: 0 auto; padding: 48px 20px 72px; }
.legal-content h2 { font-size: 1.35rem; margin: 36px 0 14px; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.legal-content p, .legal-content li { color: var(--navy-700); margin-bottom: 12px; font-size: .97rem; }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 8px; }
.legal-content strong { color: var(--navy-900); }

/* ── Form modal ── */
.form-modal-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(15, 23, 42, .68);
  display: none; align-items: flex-start; justify-content: center;
  padding: 32px 16px; overflow-y: auto;
}
.form-modal-overlay.visible { display: flex; }
.form-modal {
  position: relative; margin: auto; max-width: 460px;
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--gray-100); color: var(--gray-500);
  font-size: 1.45rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.modal-close:hover { background: var(--gray-200); color: var(--navy-900); }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 900;
  max-width: 620px; margin: 0 auto;
  background: var(--navy-900); color: var(--gray-300); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-lg); font-size: .88rem;
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { flex: 1 1 300px; }
.cookie-banner a { color: var(--green-500); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 20px; font-size: .88rem; }
.cookie-actions .btn-ghost { background: transparent; color: var(--gray-300); border: 1px solid var(--gray-600); }

/* ── Dropdown nav ── */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-item .caret { transition: transform .2s; }
.dropdown {
  position: absolute; top: 100%; left: -12px; min-width: 250px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s ease; z-index: 200;
}
.nav-item:hover .dropdown, .nav-item.open .dropdown {
  opacity: 1; visibility: visible; transform: none;
}
.nav-item:hover .caret, .nav-item.open .caret { transform: rotate(180deg); }
.dropdown a {
  display: block; padding: 9px 14px; border-radius: 8px; font-weight: 600;
  font-size: .92rem; color: var(--navy-700);
}
.dropdown a:hover { background: var(--green-50); color: var(--green-700); text-decoration: none; }
.dropdown .dd-label {
  padding: 10px 14px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--gray-400);
}

/* ── Breadcrumbs ── */
.breadcrumbs { padding: 14px 0; font-size: .85rem; color: var(--gray-500); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--gray-400); }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--green-600); }
.breadcrumbs [aria-current] { color: var(--navy-800); font-weight: 600; }

/* ── Article / SEO content pages ── */
.article-hero { background: linear-gradient(160deg, var(--navy-900) 0%, #14532d 100%); color: var(--white); padding: 40px 0 44px; }
.article-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3.6vw, 2.4rem); max-width: 820px; }
.article-hero .article-meta { margin-top: 12px; color: var(--gray-400); font-size: .88rem; display: flex; gap: 18px; flex-wrap: wrap; }
.article-hero .article-meta strong { color: var(--green-500); }

.article-layout { max-width: 860px; margin: 0 auto; padding: 36px 20px 72px; }
.article-layout h2 { font-size: 1.45rem; margin: 40px 0 16px; scroll-margin-top: 90px; }
.article-layout h3 { font-size: 1.15rem; margin: 28px 0 12px; }
.article-layout p { color: var(--navy-700); margin-bottom: 15px; font-size: 1rem; }
.article-layout ul, .article-layout ol { padding-left: 24px; margin-bottom: 18px; }
.article-layout ul { list-style: disc; }
.article-layout li { color: var(--navy-700); margin-bottom: 8px; }
.article-layout a { font-weight: 600; }

/* Direct answer box (AEO — featured snippet bait) */
.answer-box {
  background: var(--green-50); border-left: 4px solid var(--green-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 0 0 26px; color: var(--navy-800); font-size: 1.02rem;
}
.answer-box strong { color: var(--green-700); }

/* Key facts box (GEO — citable facts) */
.key-facts {
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 20px 24px; margin: 22px 0;
}
.key-facts h3, .key-facts .kf-title { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--navy-900); }
.key-facts ul { margin: 0; padding-left: 20px; }
.key-facts li { margin-bottom: 7px; font-size: .95rem; }

/* Table of contents */
.toc {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 18px 22px; margin: 0 0 28px;
}
.toc .toc-title { font-weight: 800; font-size: .95rem; margin-bottom: 10px; color: var(--navy-900); }
.toc ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { font-size: .92rem; font-weight: 600; color: var(--navy-700); }
.toc a:hover { color: var(--green-600); }

/* Inline CTA banner in articles */
.article-cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius); padding: 26px 28px; margin: 32px 0;
  color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.article-cta .ac-text { flex: 1 1 300px; }
.article-cta strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.article-cta p { color: rgba(255,255,255,.9); margin: 0; font-size: .93rem; }
.article-cta .btn { background: var(--white); color: var(--green-700); flex-shrink: 0; }

/* ── Data tables (comparison / SEO tables) ── */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); min-width: 560px; }
.data-table th {
  background: var(--navy-900); color: var(--white); text-align: left;
  padding: 12px 16px; font-weight: 700; white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { background: var(--navy-800); }
.data-table th .sort-arrow { opacity: .6; font-size: .8em; margin-left: 4px; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--gray-200); color: var(--navy-700); vertical-align: middle; }
.data-table tr:nth-child(even) td { background: var(--gray-50); }
.data-table td .btn { padding: 8px 16px; font-size: .85rem; }
.data-table .cell-brand { font-weight: 800; color: var(--navy-900); white-space: nowrap; }
.data-table .tag-green { background: var(--green-100); color: var(--green-700); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }

/* ── Calculator UI ── */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin: 28px 0; }
.calc-panel {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.calc-panel h2, .calc-panel h3 { margin: 0 0 18px; font-size: 1.15rem; }
.calc-results { background: var(--navy-900); color: var(--white); border: none; }
.calc-results h3 { color: var(--white); }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc-row span { color: var(--gray-400); font-size: .9rem; }
.calc-row strong { font-size: 1.05rem; color: var(--white); font-variant-numeric: tabular-nums; }
.calc-row.calc-highlight strong { color: var(--green-500); font-size: 1.5rem; }
.calc-row:last-child { border-bottom: none; }
.calc-note { font-size: .8rem; color: var(--gray-400); margin-top: 14px; line-height: 1.5; }

/* ── Related pages grid ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.related-card {
  display: block; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 700; font-size: .93rem;
  color: var(--navy-800); box-shadow: var(--shadow-sm); transition: all .2s;
}
.related-card:hover { border-color: var(--green-500); color: var(--green-700); text-decoration: none; transform: translateY(-2px); }
.related-card span { display: block; font-weight: 400; font-size: .82rem; color: var(--gray-500); margin-top: 4px; }

/* ── Glossary ── */
.glossary-item { border-bottom: 1px solid var(--gray-200); padding: 20px 0; }
.glossary-item dt { font-weight: 800; font-size: 1.1rem; color: var(--navy-900); margin-bottom: 6px; }
.glossary-item dd { color: var(--navy-700); font-size: .97rem; }
.glossary-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.glossary-nav a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px;
  font-weight: 700; color: var(--navy-700); font-size: .9rem;
}
.glossary-nav a:hover { border-color: var(--green-500); color: var(--green-700); text-decoration: none; }

/* ── Pros / cons ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.pros-box, .cons-box { border-radius: var(--radius-sm); padding: 18px 22px; }
.pros-box { background: var(--green-50); border: 1px solid var(--green-100); }
.cons-box { background: #fef2f2; border: 1px solid #fecaca; }
.pros-box .pc-title { color: var(--green-700); font-weight: 800; margin-bottom: 10px; }
.cons-box .pc-title { color: #b91c1c; font-weight: 800; margin-bottom: 10px; }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 20px; }
.pros-box li, .cons-box li { font-size: .93rem; }

/* ═══════════════════════════════════════════════════════════
   DESIGN POLISH V2 — bố cục, bảng biểu, màu sắc, trình bày
   ═══════════════════════════════════════════════════════════ */

/* ── Article hero: glow + meta chips ── */
.article-hero { position: relative; overflow: hidden; padding: 48px 0 52px; }
.article-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 85% 10%, rgba(34, 197, 94, .22), transparent 55%);
}
.article-hero .container { position: relative; }
.article-hero .article-meta { gap: 10px; margin-top: 18px; }
.article-hero .article-meta span {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  padding: 6px 15px; border-radius: 999px; font-size: .82rem; color: #e2e8f0;
}

/* ── Page hero (legal/company) ── */
.page-hero {
  background: linear-gradient(135deg, var(--gray-50) 55%, var(--green-50));
  border-bottom: 1px solid var(--gray-200);
}
.page-hero h1 { position: relative; padding-left: 18px; }
.page-hero h1::before {
  content: ''; position: absolute; left: 0; top: .14em; bottom: .14em; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--green-500), var(--green-700));
}

/* ── Typography rhythm ── */
.article-layout { font-size: 1.02rem; }
.article-layout p { line-height: 1.75; }
.article-layout h2 {
  position: relative; padding-left: 18px; margin: 48px 0 18px; letter-spacing: -.3px;
}
.article-layout h2::before {
  content: ''; position: absolute; left: 0; top: .16em; bottom: .16em; width: 5px;
  border-radius: 3px; background: linear-gradient(180deg, var(--green-500), var(--green-700));
}
.legal-content h2 { position: relative; padding-left: 16px; }
.legal-content h2::before {
  content: ''; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px;
  border-radius: 2px; background: var(--green-500);
}
.article-layout > ul > li::marker { color: var(--green-600); }
.article-layout > ul > li { margin-bottom: 10px; line-height: 1.7; }

/* ── OL ca pași numerotați (cercuri verzi) ── */
.article-layout > ol {
  list-style: none; counter-reset: steps; padding-left: 0; margin: 24px 0 28px;
}
.article-layout > ol > li {
  counter-increment: steps; position: relative;
  padding: 0 0 0 52px; margin-bottom: 18px; line-height: 1.7;
}
.article-layout > ol > li::before {
  content: counter(steps); position: absolute; left: 0; top: -2px;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 2px solid var(--green-500); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
}

/* ── Answer box: icon + gradient ── */
.answer-box {
  position: relative; border: 1px solid var(--green-100); border-left: 4px solid var(--green-600);
  background: linear-gradient(135deg, var(--green-50), #fbfffc 70%);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 20px 24px 20px 62px;
}
.answer-box::before {
  content: ''; position: absolute; left: 18px; top: 20px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--green-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1.1 1.3 1.1 2.2h5c0-.9.5-1.7 1.1-2.2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E");
  background-size: 17px; background-position: center; background-repeat: no-repeat;
}

/* ── Key-facts: card cu bife verzi ── */
.key-facts {
  background: var(--white); border: 1px solid var(--gray-200);
  border-top: 4px solid var(--green-500);
  box-shadow: var(--shadow-sm); padding: 22px 26px;
}
.key-facts h3, .key-facts .kf-title {
  display: flex; align-items: center; gap: 9px; font-size: 1.02rem;
}
.key-facts h3::before, .key-facts .kf-title::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px;
  background: var(--green-600);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4z'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.key-facts ul { list-style: none; padding-left: 0; }
.key-facts li { position: relative; padding-left: 30px; margin-bottom: 10px; line-height: 1.65; }
.key-facts li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── TOC: cuprins numerotat ── */
.toc { background: var(--gray-50); padding: 20px 26px; }
.toc .toc-title {
  text-transform: uppercase; letter-spacing: .9px; font-size: .78rem;
  color: var(--gray-500); display: flex; align-items: center; gap: 8px;
}
.toc .toc-title::before {
  content: ''; width: 16px; height: 2px; background: var(--green-500); border-radius: 1px;
}
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 9px; }
.toc a::before {
  content: counter(toc, decimal-leading-zero); color: var(--green-600);
  font-weight: 800; font-size: .78rem; margin-right: 9px;
}

/* ── FAQ: card + plus în cerc ── */
.faq-item { box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: border-color .2s; }
.faq-item:hover, .faq-item[open] { border-color: var(--green-500); }
.faq-item summary::after {
  content: '+'; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-50); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 700; transition: all .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg); background: var(--green-600); color: var(--white);
}

/* ── Tabele: hover + antet rafinat ── */
.table-wrap { box-shadow: var(--shadow-sm); }
.data-table th {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; padding: 13px 16px;
  background: linear-gradient(135deg, var(--navy-900), #1a2f4a);
}
.data-table td { padding: 14px 16px; }
.data-table tbody tr td { transition: background .15s; }
.data-table tbody tr:hover td { background: var(--green-50); }

/* ── Pros / cons: titluri cu insigne ── */
.pros-box, .cons-box { box-shadow: var(--shadow-sm); }
.pros-box .pc-title, .cons-box .pc-title { display: flex; align-items: center; gap: 9px; }
.pros-box .pc-title::before, .cons-box .pc-title::before {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  color: var(--white); font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pros-box .pc-title::before { content: '✓'; background: var(--green-600); }
.cons-box .pc-title::before { content: '✕'; background: var(--red-500); }
.pros-box li::marker { color: var(--green-600); }
.cons-box li::marker { color: var(--red-500); }

/* ── Related cards: săgeată animată ── */
.related-card { position: relative; padding-right: 42px; }
.related-card::after {
  content: '→'; position: absolute; right: 16px; top: 14px;
  color: var(--green-600); font-weight: 800; font-size: 1.05rem;
  transition: transform .2s;
}
.related-card:hover::after { transform: translateX(5px); }

/* ── Article CTA: glow decorativ ── */
.article-cta { position: relative; overflow: hidden; box-shadow: 0 12px 32px rgba(22, 163, 74, .28); }
.article-cta::before {
  content: ''; position: absolute; right: -50px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%);
  pointer-events: none;
}
.article-cta .ac-text, .article-cta .btn { position: relative; }

/* ── Glosar: termeni cu accent ── */
.glossary-item dt { position: relative; padding-left: 16px; }
.glossary-item dt::before {
  content: ''; position: absolute; left: 0; top: .22em; bottom: .22em; width: 4px;
  border-radius: 2px; background: var(--green-500);
}
.glossary-item:hover { background: var(--gray-50); }
.glossary-item { padding: 20px 12px; margin: 0 -12px; border-radius: 8px; transition: background .15s; }

/* ── Imagini în articole ── */
.article-layout > p > img { margin: 4px 0; }

/* ── Offers tip: icon aliniat ── */
.offers-tip { box-shadow: var(--shadow-sm); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-card { margin: 0 auto; }
  .steps-grid, .benefits-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .eligibility-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offer-card { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .offer-brand { align-items: center; }
  .offer-details { justify-content: center; }
  .offer-perks { justify-content: center; }
  .offer-action .btn { width: 100%; }
}

@media (max-width: 960px) {
  .calc-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0; align-items: stretch;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); padding: 8px 0;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; width: 100%; }
  .nav-item { width: 100%; }
  .nav-item > a { display: flex; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 3px solid var(--green-100);
    margin: 0 0 4px 24px; padding: 0; min-width: 0; display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown a { padding: 10px 14px; }
  .nav-toggle { display: block; }
  .toc ol { columns: 1; }
  .pros-cons { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 22px; }
  .article-layout h2 { padding-left: 14px; }
  .article-layout > ol > li { padding-left: 44px; }
  .article-layout > ol > li::before { width: 31px; height: 31px; font-size: .85rem; }
  .answer-box { padding: 18px 18px 18px 56px; }
  .answer-box::before { left: 14px; top: 18px; }
  .header-cta .btn { padding: 10px 18px; font-size: .9rem; }
  .steps-grid, .benefits-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { gap: 24px; }
  .offer-details { grid-template-columns: repeat(2, auto); gap: 8px 18px; }
  .offer-logo-img { margin: 0 auto; object-position: center; }
  .cta-band { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   DESIGN FINAL — V3 "Banca Trust" (merged, được chọn iulie 2026)
   Corporate banking: royal blue / deep navy / gold
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   THEME V3 — "Banca Trust"
   Corporate banking authority · royal blue / deep navy / gold
   Loads AFTER style.css — visual overrides only.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Accent remap: "green" slots become blue (600/700) and gold (500).
     Semantic success-green is restored explicitly on perks/pros below. */
  --green-600: #0d4bd1;   /* royal blue — links, icons, numbers */
  --green-700: #0a3aa8;   /* deep blue — hover / emphasis */
  --green-500: #f5b301;   /* gold — highlights on navy, accent bars */
  --green-50:  #eef4fc;   /* blue-tinted pill / icon backgrounds */
  --green-100: #d7e4f8;

  --navy-900: #0a2540;    /* deep navy — headings, footer, tables */
  --navy-800: #22395c;
  --navy-700: #3a5378;

  --blue-600: #0d4bd1;
  --blue-50:  #eef4fc;
  --amber-500: #f5b301;
  --amber-50: #fff8e6;

  --gray-50:  #f4f7fb;    /* cool gray sections */
  --gray-100: #e9eef6;
  --gray-200: #d7e0ec;    /* crisp borders */
  --gray-300: #c2cfe0;
  --gray-400: #8fa3bd;
  --gray-500: #5d7290;
  --gray-600: #46597a;

  /* Sharper geometry + precise shadows */
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .07);
  --shadow-md: 0 2px 8px rgba(10, 37, 64, .08);
  --shadow-lg: 0 10px 28px rgba(10, 37, 64, .14);

  --font: 'IBM Plex Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Typography: authoritative, slightly condensed ── */
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; color: var(--navy-900); }
.logo { font-weight: 700; letter-spacing: -.01em; }

/* ── Buttons: GOLD primary, blue outline ── */
.btn { font-weight: 600; letter-spacing: .01em; }
.btn-primary {
  background: #f5b301;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(245, 179, 1, .38);
}
.btn-primary:hover {
  background: #ffc933;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 179, 1, .45);
}
.btn-outline { border-width: 2px; }

/* ── Header: white, crisp border, gold hairline top ── */
.site-header { border-top: 3px solid #f5b301; }
.logo-badge { background: #0a2540; border-radius: 8px; }

/* ── Hero: solid deep navy + subtle diagonal-line pattern ── */
.hero {
  background: #0a2540;
}
.hero::before {
  background:
    radial-gradient(ellipse at 82% 12%, rgba(13, 75, 209, .30), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
}
.hero h1 em {
  color: #f5b301;
  border-bottom: 3px solid rgba(245, 179, 1, .55);
  padding-bottom: 1px;
}
.hero-lead { color: #c9d6ea; }

/* ── Form card ── */
.form-card { border-radius: 10px; }
.field input:focus, .field select:focus { border-color: #0d4bd1; }

/* Sliders: blue fill, white thumb w/ blue border */
input[type="range"] {
  background: linear-gradient(to right, #0d4bd1 var(--fill, 50%), #dbe4f0 var(--fill, 50%));
}
input[type="range"]::-webkit-slider-thumb { background: #ffffff; border: 3px solid #0d4bd1; }
input[type="range"]::-moz-range-thumb { background: #ffffff; border: 3px solid #0d4bd1; }
.slider-value { color: #0d4bd1; }

/* ── Trust bar + benefits: blue iconography ── */
.trust-item svg { stroke: #0d4bd1; }
.benefit-icon { border-radius: 8px; background: #e7effc; }
.benefit-icon svg { stroke: #0d4bd1; }

/* ── Steps: navy circles, gold numerals ── */
.step-num { background: #0a2540; color: #f5b301; }

/* ── CTA band + article CTA: navy w/ pattern, gold button ── */
.cta-band {
  background: #0a2540 repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
  border-radius: 10px;
}
.cta-band .btn { background: #f5b301; color: #1a1a1a; }
.cta-band .btn:hover { background: #ffc933; }
.article-cta {
  background: #0a2540 repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, .25);
}
.article-cta::before {
  background: radial-gradient(circle, rgba(13, 75, 209, .35), transparent 62%);
}
.article-cta .btn { background: #f5b301; color: #1a1a1a; }
.article-cta .btn:hover { background: #ffc933; }

/* ── Loading overlay: navy + gold spinner/bar ── */
.loading-overlay {
  background: #0a2540 repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 12px);
}
.loading-bar-fill { background: linear-gradient(90deg, #d99b00, #f5b301); }

/* ── Offers hero + countdown ── */
.offers-hero {
  background: #0a2540 repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
}
.offers-hero h1 em {
  color: #f5b301;
  border-bottom: 3px solid rgba(245, 179, 1, .55);
  padding-bottom: 1px;
}
.offers-hero .badge-approved { background: rgba(245, 179, 1, .13); }
.countdown-bar {
  background: #fff6dc; border-bottom: 1px solid #f0dfae; color: #6b5200;
}
.countdown-bar strong { color: #574200; }

/* ── Offer cards ── */
.offers-tip { border-color: #c6d8f2; }
.offer-card.featured { box-shadow: 0 6px 20px rgba(10, 37, 64, .12); }
.offer-badge { background: #0a2540; }
.offer-badge.badge-amber { background: #f5b301; color: #1a1a1a; }
.offer-logo-img, .brand-logo-frame { border-radius: 8px; }

/* Semantic success stays trust green (AA-safe darker text) */
.offer-perk { color: #0a7d54; background: #e3f5ec; }
.data-table .tag-green { background: #d7f0e4; color: #0a7d54; }

/* ── Tables: navy header, zebra cool gray, gold hover edge ── */
.data-table th { background: #0a2540; }
.data-table th.sortable:hover { background: #14335c; }
.data-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 #f5b301; }

/* ── Article hero: navy + pattern, gold meta chips ── */
.article-hero {
  background: #0a2540;
}
.article-hero::before {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(13, 75, 209, .30), transparent 55%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 12px);
}
.article-hero .article-meta span {
  background: rgba(245, 179, 1, .08);
  border: 1px solid rgba(245, 179, 1, .40);
  color: #ecf1f8;
}

/* ── H1/H2 accent bars: gold ── */
.page-hero h1::before { background: #f5b301; }
.article-layout h2::before { background: #f5b301; }

/* ── Numbered article steps: navy circles, gold numerals ── */
.article-layout > ol > li::before {
  background: #0a2540; border-color: #0a2540; color: #f5b301;
}

/* ── Answer box: blue left border, navy icon circle ── */
.answer-box {
  background: linear-gradient(135deg, #eef4fc, #fbfcff 70%);
  border: 1px solid #d7e0ec;
  border-left: 4px solid #0d4bd1;
}
.answer-box::before { background-color: #0a2540; }
.answer-box strong { color: #0a3aa8; }

/* ── FAQ / related / glossary-nav: blue interactions ── */
.faq-item:hover, .faq-item[open] { border-color: #0d4bd1; }
.related-card:hover { border-color: #0d4bd1; }
.glossary-nav a:hover { border-color: #0d4bd1; }

/* ── Pros box: semantic green restored ── */
.pros-box { background: #ecfdf5; border: 1px solid #c8ecda; }
.pros-box .pc-title { color: #0a7d54; }
.pros-box .pc-title::before { background: #0e9f6e; }
.pros-box li::marker { color: #0e9f6e; }

/* ── Logo final: ceas-bifă (mẫu 4) + chip 247 (mẫu 5) ── */
.logo-badge { background: none !important; border-radius: 0 !important; width: 38px; height: 38px; box-shadow: none; }
.logo-chip {
  display: inline-block; background: #f5b301; color: #0a2540;
  font-weight: 700; border-radius: 7px; padding: 0 8px; margin-left: 3px;
  font-size: .9em; line-height: 1.55;
}
.footer-brand .logo span em { color: #f5b301; }

/* ── Mobile fixes (audit iulie 2026) ── */
@media (max-width: 700px) {
  /* Header: logo pe UN singur rând, compact */
  .header-inner { gap: 8px; }
  .logo { font-size: 1rem; gap: 7px; flex-shrink: 1; min-width: 0; }
  .logo > span { white-space: nowrap; }
  .logo-badge, .logo-badge svg { width: 30px; height: 30px; }
  .logo-chip { padding: 0 6px; margin-left: 2px; border-radius: 5px; }
  .header-cta { gap: 8px; flex-shrink: 0; }
  .header-cta .btn { padding: 9px 13px; font-size: .82rem; }
  .nav-toggle { padding: 6px; }

  /* Tabele: coloane lizibile + indiciu de glisare */
  table.data-table { min-width: 680px; }
  #compTable { min-width: 900px; }
  .data-table td strong { white-space: nowrap; }
  .data-table .cell-brand { white-space: nowrap; }
  /* Text-ul hint-ului de glisare (stilul e definit mai jos, în blocul MOBILE POLISH) */
  .table-wrap::before { content: '← Glisează pentru toate coloanele →'; }
}

@media (max-width: 380px) {
  .logo { font-size: .92rem; }
  .header-cta .btn { padding: 8px 10px; font-size: .78rem; }
  .logo-badge, .logo-badge svg { width: 27px; height: 27px; }
}

/* ── Loading countdown 3-2-1 ── */
.loading-timer { position: relative; width: 72px; height: 72px; margin: 0 auto 28px; }
.loading-timer .loading-spinner { margin: 0; width: 72px; height: 72px; }
.loading-count {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; color: #f5b301; font-variant-numeric: tabular-nums;
}

/* ── QA fixes (iulie 2026) ── */
/* kf-title: flex tách span "2026" khỏi text — chuyển về inline flow */
.key-facts h3, .key-facts .kf-title { display: block; }
.key-facts h3::before, .key-facts .kf-title::before {
  display: inline-block; vertical-align: -5px; margin-right: 9px;
}
/* hero stats mobile — layout thực thi ở block MOBILE POLISH V3 cuối file (grid 3 cột) */

/* ── QA fixes đợt 2 (audit B) ── */
/* Root-cause: span [data-t] lồng trong flex container bị tách thành flex item.
   display:contents → text hoà vào dòng chảy như text thường (giữ inherit). */
[data-t] { display: contents; }
/* Link "Citește recenzia" cạnh nút: wrap như một khối */
.article-layout .btn + a { display: inline-block; }
@media (max-width: 700px) {
  .article-layout .btn + a { display: block; margin: 10px 0 0 !important; }
}
/* TOC: hanging indent khi dòng dài wrap */
.toc li { padding-left: 30px; text-indent: -30px; }
.toc a::before { display: inline-block; width: 24px; text-indent: 0; margin-right: 6px; }

/* ═══════════════════════════════════════════════════════════
   MOBILE POLISH V3 (audit iulie 2026) — tinh chỉnh <700px & <430px
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  /* Hero stats: grid 3 ô đều, card gọn hơn trên mobile */
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; align-items: stretch;
  }
  .hero-stat { padding: 12px 8px; }
  .hero-stat strong { font-size: 1.3rem; line-height: 1.1; }
  .hero-stat span { font-size: .74rem; line-height: 1.25; display: block; }

  /* Hero: heading + lead vừa vặn hơn */
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .hero-lead { font-size: 1.05rem; }
  .hero-points li { font-size: .95rem; align-items: flex-start; }
  .hero-points svg { margin-top: 2px; }

  /* Comparator: hint vuốt nổi bật + cột brand sticky khi cuộn ngang */
  .table-wrap { position: relative; }
  .table-wrap::before {
    background: var(--green-50); color: var(--green-700);
    border-radius: 8px; padding: 8px 12px; margin-bottom: 10px;
    font-size: .78rem; text-align: center; display: block; position: static;
  }
  /* Cột đầu (brand/creditor) sticky khi cuộn ngang — comparator + mini-offers + bảng trong bài */
  #compTable .cell-brand,
  .data-table .cell-brand,
  .data-table thead th:first-child,
  .data-table tbody td:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--white);
  }
  .data-table thead th:first-child { background: var(--navy-900); z-index: 2; }
  #compTable tbody tr:nth-child(even) .cell-brand,
  .data-table tbody tr:nth-child(even) td:first-child { background: var(--gray-50); }
  /* viền phải mảnh để tách cột sticky khỏi phần cuộn */
  .data-table .cell-brand, .data-table tbody td:first-child { box-shadow: inset -1px 0 0 var(--gray-200); }

  /* Section spacing gọn hơn trên mobile */
  .section { padding: 44px 0; }
  .section-sub { font-size: 1rem; margin-bottom: 32px; }

  /* Trust bar: 2 cột, canh trên, chữ không rớt lệch */
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .trust-item { align-items: flex-start; }

  /* Article: chữ và tiêu đề dễ đọc */
  .article-hero h1 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .article-layout { font-size: 1rem; }
  .key-facts { padding: 18px 18px; }
  .key-facts li { padding-left: 28px; }

  /* CTA band + article-cta: xếp dọc gọn, nút full-width, không có khoảng trống thừa */
  .cta-band .btn, .article-cta .btn { width: 100%; }
  .article-cta {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    text-align: left; gap: 18px; padding: 24px 22px;
  }
  .article-cta .ac-text { flex: 0 0 auto; }

  /* Calculator: rezultate mai compacte */
  .calc-panel { padding: 22px 18px; }
  .calc-row.calc-highlight strong { font-size: 1.3rem; }

  /* Footer: 2 cột pe tabletă mică pentru densitate mai bună */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  /* iPhone tipic: totul mai strâns */
  .container { padding: 0 16px; }
  .hero-stat strong { font-size: 1.2rem; }
  .hero-stat span { font-size: .72rem; }
  .form-card { padding: 24px 20px; }
  .offer-card { padding: 18px 16px; }
  .offer-badge { left: 14px; font-size: .68rem; padding: 3px 11px; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 360px) {
  /* iPhone SE și telefoane mici */
  .hero-stats { gap: 6px; }
  .hero-stat { padding: 10px 5px; }
  .hero-stat strong { font-size: 1.05rem; }
  .logo { font-size: .86rem; gap: 6px; }
  .logo-badge, .logo-badge svg { width: 30px; height: 30px; }
  .logo-chip { padding: 1px 5px; margin-left: 3px; font-size: .82em; }
  .header-cta .btn { padding: 8px 9px; font-size: .74rem; }
  .header-inner { gap: 8px; }
}

@media (max-width: 340px) {
  /* Galaxy Fold închis / iPhone SE gen 1 (≤320px): evită suprapunerea logo–CTA */
  .logo { font-size: .78rem; gap: 5px; }
  .logo-badge, .logo-badge svg { width: 26px; height: 26px; }
  .logo-chip { padding: 1px 4px; margin-left: 2px; }
  .header-cta .btn { padding: 7px 8px; font-size: .7rem; }
  .header-inner { gap: 6px; }
}
