/* ============================================================
   BuyCalc — design system
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand: #ff7a00;
  --brand-2: #ff5a1f;
  --brand-dark: #e06600;
  --brand-soft: #fff4ea;
  --brand-ring: rgba(255,122,0,.18);

  --ink: #0b0e13;
  --ink-2: #11151d;
  --ink-3: #1a2029;

  --text: #1a1f29;
  --muted: #6a7480;
  --muted-light: #9aa3b2;
  --line: #e9ecf1;
  --line-2: #f1f3f6;

  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #15a86a;
  --danger: #e23b3b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11,14,19,.06), 0 4px 12px rgba(11,14,19,.05);
  --shadow: 0 8px 24px rgba(11,14,19,.08), 0 2px 6px rgba(11,14,19,.05);
  --shadow-lg: 0 30px 60px -20px rgba(11,14,19,.28);
  --shadow-brand: 0 12px 26px -8px rgba(255,122,0,.5);

  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; }
a { color: var(--brand-dark); text-decoration: none; }
img { max-width: 100%; }
.wrapmax { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 12px; padding: 14px 24px; font-size: 15px;
  font-weight: 700; font-family: var(--font); cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(255,122,0,.62); transform: translateY(-1px); }
.btn-primary:disabled { background: #f0cdab; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--text); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-link { background: none; border: none; color: var(--brand-dark); cursor: pointer; font-weight: 600; padding: 6px 2px; font-size: 14px; }
.btn-link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 14px; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 16px; }
label.field > span.lbl, .lbl { display: block; font-weight: 600; margin-bottom: 7px; font-size: 13.5px; color: #353c47; }
.hint { color: var(--muted); font-size: 13px; margin-top: 5px; }
input[type=text], input[type=number], input[type=tel], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; background: #fff; color: var(--text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236a7480' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .row2 { grid-template-columns: 1fr; } }

/* ---------- Topbar ---------- */
.topbar { background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.topbar.on-dark { background: rgba(11,14,19,.6); border-color: rgba(255,255,255,.08); }
.topbar .wrap { max-width: 1180px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 14px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.on-dark .logo { color: #fff; }
.logo .dot { color: var(--brand); }
.logo-badge {
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 9px;
  padding: 5px 9px; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: var(--shadow-brand);
}
.topbar .spacer { flex: 1; }
.topbar .nav-link { font-size: 14px; color: var(--muted); font-weight: 500; }
.on-dark .nav-link { color: var(--muted-light); }
.topbar .nav-link:hover { color: var(--brand-dark); }
.on-dark .nav-link:hover { color: #fff; }
.topbar .nav-cta { background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 17px; border-radius: 11px; box-shadow: var(--shadow-brand); }
.topbar .nav-cta:hover { background: var(--brand-dark); }

/* ============================================================
   HERO (landing)
   ============================================================ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(255,122,0,.32), transparent 58%),
    radial-gradient(680px 480px at 6% 12%, rgba(255,90,31,.16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #0e1219 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 56px 22px 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,122,0,.14); color: #ffb877;
  border: 1px solid rgba(255,122,0,.28); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 99px; margin-bottom: 22px;
}
.eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(255,122,0,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,122,0,.6)} 70%{box-shadow:0 0 0 8px rgba(255,122,0,0)} 100%{box-shadow:0 0 0 0 rgba(255,122,0,0)} }
.hero h1 { font-size: 50px; line-height: 1.04; margin: 0 0 18px; font-weight: 800; }
.hero h1 .hl { background: linear-gradient(120deg, var(--brand) 10%, #ffb066); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 940px){ .hero h1 { font-size: 36px; } }
@media (max-width: 420px){ .hero h1 { font-size: 30px; } }
.hero .lead { font-size: 18.5px; color: #c4ccd8; margin: 0 0 26px; max-width: 30em; }
.hero .trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 30px; }
.hero .trust-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: #d6dce6; font-weight: 500; }
.hero .trust-row span::before { content: "✓"; color: var(--brand); font-weight: 800; }
.hero-stats { display: flex; gap: 34px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }
.hero-stats .hs strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stats .hs span { font-size: 12.5px; color: var(--muted-light); }

/* lead form card on hero */
.lead-card { background: var(--card); border-radius: 22px; padding: 28px; box-shadow: var(--shadow-lg); color: var(--text); }
.lead-card .lc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lead-card .lc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; }
.lead-card h2 { font-size: 21px; margin: 0; }
.lead-card .lc-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lead-card .lc-foot { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 12px; }
.lead-card .lc-foot a { font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #4b5160; margin: 4px 0 16px; cursor: pointer; line-height: 1.45; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.consent a { font-weight: 600; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  background: var(--ink); color: #e6e9ef; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px;
}
.cookie-banner a { color: #ffb877; font-weight: 600; }
.cookie-banner .btn { white-space: nowrap; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 70px 0; }
.section.tint { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head .kicker { color: var(--brand-dark); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; margin: 10px 0 10px; }
.sec-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px){ .benefits { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .benefits { grid-template-columns: 1fr; } }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s, box-shadow .2s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit .bi { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(180deg, var(--brand-soft), #fff); border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.benefit h3 { margin: 0 0 8px; font-size: 17.5px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; position: relative; }
@media (max-width: 720px){ .steps3 { grid-template-columns: 1fr; } }
.s3 { text-align: center; padding: 6px 12px; }
.s3 .num { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; margin: 0 auto 16px; box-shadow: var(--shadow-brand); }
.s3 h3 { margin: 0 0 7px; font-size: 18px; }
.s3 p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ecuatia schimbului */
.trade-band { padding: 34px 0; background: #fff; border-bottom: 1px solid var(--line); }
.trade-eq { display: flex; align-items: stretch; justify-content: center; gap: 14px; flex-wrap: wrap; }
.trade-eq .te-item { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px 22px; text-align: center; min-width: 160px; box-shadow: var(--shadow-sm); }
.trade-eq .te-item.te-hl { border-color: var(--brand); background: linear-gradient(180deg, var(--brand-soft), #fff); box-shadow: var(--shadow-brand); }
.trade-eq .te-ic { font-size: 30px; line-height: 1; }
.trade-eq .te-t { font-family: var(--display); font-weight: 700; font-size: 17px; margin-top: 8px; }
.trade-eq .te-s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.trade-eq .te-op { display: flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--brand); }
.trade-note { text-align: center; color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
@media (max-width: 560px){
  .trade-eq { flex-direction: column; align-items: stretch; gap: 8px; }
  .trade-eq .te-item { min-width: 0; }
  .trade-eq .te-op { justify-content: center; font-size: 22px; }
}

.cta-band { background: linear-gradient(120deg, var(--ink), #141a24); border-radius: 24px; padding: 46px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 80% 0%, rgba(255,122,0,.28), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: 28px; margin: 0 0 10px; }
.cta-band p { color: #c4ccd8; margin: 0 0 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab2c0; padding: 46px 0 38px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer .muted-light { color: #79828f; font-size: 13.5px; max-width: 30em; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: #aab2c0; font-size: 14px; }
.footer-links a:hover { color: #fff; }

/* ============================================================
   Generic card / states / wizard bits (reused by admin too)
   ============================================================ */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.alert { background: #fdecec; color: #a12020; padding: 12px 15px; border-radius: 12px; font-size: 14px; }
.success { background: #eaf8ee; color: #15633f; padding: 18px; border-radius: 14px; }
.note { background: var(--brand-soft); border: 1px solid #ffe0c4; border-radius: 12px; padding: 13px 15px; font-size: 14px; color: #8a4b00; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }

.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.dark { border-color: rgba(255,122,0,.25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.choices { display: grid; gap: 10px; }
.choice { border: 1.5px solid var(--line); border-radius: 13px; padding: 14px 16px; cursor: pointer; display: flex; align-items: center; gap: 13px; transition: all .12s; background: #fff; }
.choice:hover { border-color: var(--brand); background: #fffaf4; }
.choice.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-ring); }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; }
.choice.sel .tick { background: var(--brand); border-color: var(--brand); }
.choice .c-main { font-weight: 600; }
.choice .c-sub { color: var(--muted); font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1.5px solid var(--line); border-radius: 99px; padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 600; background: #fff; user-select: none; transition: all .12s; }
.chip:hover { border-color: var(--brand); }
.chip.sel { border-color: var(--brand); background: linear-gradient(180deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-brand); }

/* photos */
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: all .15s; background: var(--line-2); }
.dropzone:hover { border-color: var(--brand); background: #fffaf4; color: var(--brand-dark); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; border-radius: 11px; overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .rm { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.62); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 13px; }

/* ============================================================
   CALCULATOR PAGE
   ============================================================ */
.calc-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 22px 70px; }
.calc-back { color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; margin-bottom: 16px; }
.calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: start; }
.calc-grid > * { min-width: 0; }   /* permite carouselului sa faca scroll in loc sa latească grila */
@media (max-width: 940px){ .calc-grid { grid-template-columns: 1fr; } }

/* estimate hero card */
.estimate {
  position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: 28px 28px 26px;
  background: radial-gradient(600px 300px at 90% -20%, rgba(255,122,0,.35), transparent 60%), linear-gradient(135deg, var(--ink), #141a24);
  box-shadow: var(--shadow-lg); margin-bottom: 22px;
}
.estimate .car-line { font-size: 14px; color: var(--muted-light); margin-bottom: 4px; font-weight: 500; }
.estimate .est-label { font-size: 13.5px; color: #ffb877; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.estimate .est-amount { font-family: var(--display); font-size: 46px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; line-height: 1; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.estimate .est-range { font-size: 14.5px; color: #c4ccd8; }
.estimate .est-foot { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--muted-light); }
.estimate.busy .est-amount { opacity: .5; }

.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; margin-bottom: 22px; }
.panel-card > h3 { font-family: var(--display); font-size: 17px; margin: 0 0 4px; }
.panel-card > .ph-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.block-label { font-weight: 600; font-size: 13.5px; color: #353c47; margin: 18px 0 9px; }
.block-label:first-child { margin-top: 0; }

/* recommendations */
.rec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.rec-head h3 { font-family: var(--display); font-size: 19px; margin: 0; }
.rec-head .rec-meta { font-size: 13px; color: var(--muted); }
.rec-list { display: grid; gap: 14px; }
.rec {
  display: grid; grid-template-columns: 210px 1fr; gap: 0; background: #fff; border: 1.5px solid var(--line);
  border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s;
  color: inherit; text-decoration: none;   /* cand .rec este folosit ca link (pagina de multumire) */
}
.rec:hover { box-shadow: var(--shadow); border-color: #dfe3ea; }
.rec.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.rec .rec-ph { display: block; background: #eef0f3; overflow: hidden; }
.rec .rec-ph img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 150px; }
.rec .rec-body { padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rec .rec-name { font-weight: 700; font-size: 15px; line-height: 1.28; color: var(--text); text-decoration: none; }
.rec .rec-name:hover { color: var(--brand-dark); }
.rec .rec-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.rec .rec-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.rec .rec-diff { font-family: var(--display); font-weight: 800; color: var(--brand-dark); font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.rec .rec-diff small { display: block; font-family: var(--font); font-weight: 600; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.rec .rec-go { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.rec .rec-go:hover { text-decoration: underline; }
.rec .heart-btn { padding: 9px 14px; }
@media (max-width: 560px){
  .rec { grid-template-columns: 1fr; }                         /* imagine mare, pe toata latimea, deasupra */
  .rec .rec-ph img { min-height: 0; aspect-ratio: 16 / 10; }
}

.rec-skeleton { height: 130px; border-radius: 16px; background: linear-gradient(100deg, #eef0f3 30%, #f6f7f9 50%, #eef0f3 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* desired */
.desired-pick { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.heart-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.heart-btn.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

.breakdown { margin-top: 6px; }
.breakdown .bd-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.breakdown .bd-row .amt.pos { color: var(--ok); }
.breakdown .bd-row .amt.neg { color: var(--danger); }

.steps-mini { display: flex; gap: 6px; margin-bottom: 18px; }
.steps-mini .seg { flex: 1; height: 5px; border-radius: 99px; background: var(--line); }
.steps-mini .seg.on { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

.sticky { position: sticky; top: 86px; }
.col-side { position: sticky; top: 86px; }
@media (max-width: 940px){ .sticky, .col-side { position: static; } }
.toggle-manual { text-align: center; margin-top: 16px; }
.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

.est-label .est-upd { display: inline-block; margin-left: 6px; animation: spin .9s linear infinite; }

/* single-column results flow */
.calc-single { max-width: 680px; margin: 0 auto; }

/* "thinking" loader (stil carvertical) */
.think { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 26px; text-align: center; }
.think.think-sm { box-shadow: none; border: none; padding: 18px 4px 4px; }
.think-orb { position: relative; width: 96px; height: 96px; margin: 0 auto 22px; display: grid; place-items: center; }
.think-orb.sm { width: 64px; height: 64px; margin-bottom: 12px; }
.think-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.think-orb .ring.r1 { border-top-color: var(--brand); animation: spin 1s linear infinite; }
.think-orb .ring.r2 { inset: 12px; border-right-color: var(--brand-2); animation: spin 1.4s linear infinite reverse; }
.think-orb .ring.r3 { inset: 24px; border-bottom-color: #ffc089; animation: spin 1.8s linear infinite; }
.think-cur { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--brand-dark); }
.think-orb.sm .think-cur { font-size: 20px; }
.think-title { font-family: var(--display); font-size: 20px; font-weight: 700; }
.think.think-sm .think-title { font-size: 16px; color: var(--muted); }
.think-car { color: var(--muted); font-size: 14px; margin-top: 4px; }
.think-steps { list-style: none; padding: 0; margin: 22px auto 0; max-width: 340px; text-align: left; display: grid; gap: 10px; }
.think-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted-light); transition: color .3s; }
.think-steps li.done { color: var(--text); }
.think-steps li.active { color: var(--text); font-weight: 600; }
.think-steps li .ts-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ok); font-size: 13px; font-weight: 800; }
.think-steps li.done .ts-ic { background: #e7f7ee; }
.think-steps li .ts-ic .spinner { width: 13px; height: 13px; border-width: 2px; }
.think-bar { height: 7px; border-radius: 99px; background: var(--line); margin: 24px auto 0; max-width: 340px; overflow: hidden; }
.think-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .5s ease; }

.fineprint { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; line-height: 1.5; }

/* pagina de multumire */
.done-hero { text-align: center; padding: 24px 16px 8px; }
.done-check { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 38px; color: #fff; background: linear-gradient(180deg, #1fc46b, #15a86a); box-shadow: 0 12px 26px -8px rgba(21,168,106,.55); animation: pop .4s ease; }
@keyframes pop { 0%{ transform: scale(.6); opacity: 0 } 100%{ transform: scale(1); opacity: 1 } }
.done-hero h2 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.done-hero p { color: var(--muted); font-size: 16px; margin: 0 auto 14px; max-width: 30em; }
.done-ref { display: inline-block; background: var(--line-2); border-radius: 99px; padding: 7px 16px; font-size: 14px; color: #4b5160; }
.done-offers { margin-top: 30px; }
.offers-cta { text-align: center; padding: 10px 6px 6px; }
.offers-cta .oc-icon { font-size: 36px; line-height: 1; }
.offers-cta h3 { font-family: var(--display); font-size: 22px; margin: 10px 0 6px; }
.offers-cta p { margin: 0 0 18px; font-size: 15px; }
.offers-cta p strong { color: var(--brand-dark); }
.submit-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.desired-ok { margin-top: 12px; background: var(--brand-soft); border: 1px solid #ffd9b3; border-radius: 11px; padding: 11px 14px; font-size: 14px; color: #8a4b00; }
.desired-ok strong { color: #6b3a00; }

/* offers carousel */
.rec-head .rec-nav { display: flex; gap: 7px; }
.rec-nav button { width: 36px; height: 36px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--text); box-shadow: var(--shadow-sm); transition: all .15s; }
.rec-nav button:hover { border-color: var(--brand); color: var(--brand-dark); }
.rec-sub { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }
@media (max-width: 560px){ .rec-nav { display: none; } }

.rec-carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 14px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.rec-carousel::-webkit-scrollbar { height: 7px; }
.rec-carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.rec-carousel::-webkit-scrollbar-track { background: transparent; }
.rec-card {
  scroll-snap-align: start; flex: 0 0 250px; width: 250px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .14s, box-shadow .2s, border-color .2s;
}
.rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe3ea; }
.rec-card .rc-ph { aspect-ratio: 16/10; background: #eef0f3; overflow: hidden; }
.rec-card .rc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-card .rc-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rec-card .rc-name { font-weight: 700; font-size: 14px; line-height: 1.28; }
.rec-card .rc-specs { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 3px 10px; }
.rec-card .rc-diff { font-family: var(--display); font-weight: 800; color: var(--brand-dark); font-size: 19px; letter-spacing: -.01em; line-height: 1; margin-top: 2px; }
.rec-card .rc-diff small { display: block; font-family: var(--font); font-weight: 600; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.rec-card .rc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.rec-card .rec-go { font-size: 12.5px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.rec-card .rec-go::after { content: " →"; }
.rec-carousel .rec-skeleton { flex: 0 0 250px; width: 250px; height: 230px; }

/* collapsible details */
.collapse-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 15px 16px; cursor: pointer;
  font-weight: 700; font-size: 15px; font-family: var(--font); color: var(--text); transition: border-color .15s, background .15s;
}
.collapse-toggle:hover { border-color: var(--brand); }
.collapse-toggle.open { background: var(--brand-soft); border-color: #ffd9b3; }
.collapse-toggle .ct-hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.collapse-toggle .ct-icon { font-size: 22px; color: var(--brand-dark); transition: transform .2s; line-height: 1; }
.collapse-toggle.open .ct-icon { transform: rotate(45deg); }
.collapse-body { padding-top: 6px; }

.hide-mobile { display: inline-flex; }

/* sticky mobile CTA bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 14px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(11,14,19,.12); padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
}
.mobile-bar .mb-val { line-height: 1.1; white-space: nowrap; }
.mobile-bar .mb-val small { display: block; font-size: 11px; color: var(--muted); }
.mobile-bar .mb-val strong { font-family: var(--display); font-size: 20px; color: var(--text); letter-spacing: -.02em; }
.mobile-bar .btn { flex: 1; }
@media (max-width: 940px){
  .mobile-bar { display: flex; }
  .hide-mobile { display: none; }
  .calc-wrap { padding-bottom: 92px; }
  .col-primary { margin-bottom: 8px; }
}
