/* RCA HUB - stiluri globale */
:root {
  --brand: #0b5cff;
  --brand-600: #0849d1;
  --brand-50: #eef3ff;
  --brand-100: #dbe6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --ok: #059669;
  --ok-50: #ecfdf5;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --err: #dc2626;
  --err-50: #fef2f2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(11, 92, 255, .12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; flex: none; }
.ico-lg { width: 28px; height: 28px; flex: none; }
.ico-xl { width: 40px; height: 40px; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 32px; height: 32px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle { display: block; }
}

.sandbox-banner { background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fed7aa; font-size: .82rem; padding: 7px 0; }
.sandbox-banner .container { display: flex; align-items: center; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s, color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(11, 92, 255, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-soft { background: var(--brand-50); color: var(--brand); }
.btn-soft:hover { background: var(--brand-100); }
.btn-danger { background: var(--err); color: #fff; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: 8px 12px; font-size: .86rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .65; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; }

.spinner { width: 22px; height: 22px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, #dbe6ff 0, transparent 60%), radial-gradient(800px 400px at -10% 110%, #e0f2fe 0, transparent 60%), #f8faff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-100); color: var(--brand); padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero-form { margin-top: 28px; background: #fff; border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--brand-100); display: flex; gap: 10px; max-width: 580px; }
.plate-input { flex: 1; display: flex; align-items: stretch; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; min-width: 0; }
.plate-input .eu { background: #003399; color: #fff; width: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: .78rem; gap: 2px; flex: none; }
.plate-input .eu svg { width: 18px; height: 18px; }
.plate-input input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.45rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; color: var(--ink); }
.plate-input input::placeholder { color: #cbd5e1; }
.hero-alt { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 18px; font-size: .92rem; }
.hero-alt a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--ink-2); font-size: .92rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--ok); }
.hero-visual { position: relative; }
.hero-visual .art { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(11, 92, 255, .18)); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.feature .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 30px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(11, 92, 255, .3); }

.insurer-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.insurer-chip { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 600; color: var(--ink); }
.insurer-chip-logo { padding: 8px 14px; }
.insurer-chip-logo img { display: block; height: 34px; width: auto; }
.monogram { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .02em; flex: none; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { background: linear-gradient(120deg, #0b5cff, #2563eb 55%, #0ea5e9); color: #fff; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 56px 0 28px; margin-top: 0; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; display: block; padding: 3px 0; }
.site-footer a.logo { color: #fff; display: inline-flex; padding: 0; }
.site-footer .legal { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.site-footer .cols.cols-5 { grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1.2fr; }
@media (max-width: 860px) { .site-footer .cols, .site-footer .cols.cols-5 { grid-template-columns: 1fr 1fr; } }
.nav-account { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .legal a.credit { display: inline; padding: 0; color: #fff; font-weight: 600; }
.site-footer .legal a.credit:hover { color: #93b4ff; }

/* Pagini legale: cuprins */
.prose table.roles td { font-size: .88rem; line-height: 1.5; }
.prose table.roles td:first-child { width: 36%; }
.prose table.roles td:nth-child(2) { width: 20%; }
@media (max-width: 640px) { .prose table.roles, .prose table.roles tbody, .prose table.roles tr, .prose table.roles td { display: block; width: auto !important; } .prose table.roles tr:first-child { display: none; } .prose table.roles tr { margin-bottom: 12px; } }
.prose .toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; font-size: .9rem; }
.prose .toc strong { grid-column: 1 / -1; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 560px) { .prose .toc { grid-template-columns: 1fr; } }
.prose h2[id] { scroll-margin-top: 90px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card h3 { margin-top: 0; }
textarea { font: inherit; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .err { font-size: .8rem; color: var(--err); display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--err); background: var(--err-50); }
.field.filled input, .field.filled select { border-color: #86efac; background: #f0fdf4; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="tel"], select, textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 13px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 92, 255, .12); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--ok-50); color: var(--ok); }
.tag-blue { background: var(--brand-50); color: var(--brand); }
.tag-warn { background: var(--warn-50); color: var(--warn); }
.tag-err { background: var(--err-50); color: var(--err); }
.tag-gray { background: #f1f5f9; color: var(--muted); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .93rem; margin-bottom: 16px; border: 1px solid; }
.alert svg { margin-top: 1px; }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: #1e3a8a; }
.alert-ok { background: var(--ok-50); border-color: #a7f3d0; color: #065f46; }
.alert-warn { background: var(--warn-50); border-color: #fde68a; color: #92400e; }
.alert-err { background: var(--err-50); border-color: #fecaca; color: #991b1b; }

.segmented { display: inline-flex; background: #eef2f7; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.segmented button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--ink-2); padding: 10px 16px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.segmented button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

.dropzone { border: 2px dashed #cbd5e1; border-radius: var(--radius); padding: 28px; text-align: center; background: #fbfcfe; cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone .icon-wrap { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.dropzone strong { color: var(--ink); display: block; }
.dropzone input { display: none; }
.ocr-progress { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--brand-50); border-radius: 12px; color: var(--brand); font-weight: 600; margin-top: 14px; }

/* ---------- Wizard ---------- */
.wizard-wrap { padding: 36px 0 80px; }
.wizard-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .wizard-layout { grid-template-columns: 1fr; } .summary-col { order: -1; } }
/* Stepper numerotat, legat printr-o linie (pașii parcurși sunt clicabili) */
.stepper { list-style: none; display: flex; margin: 0 0 28px; padding: 0; overflow-x: auto; }
.stepper .s { flex: 1; min-width: 104px; position: relative; text-align: center; }
.stepper .s::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.stepper .s:first-child::before { display: none; }
.stepper .s.done::before, .stepper .s.active::before { background: var(--brand); }
.stepper .s button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--muted); }
.stepper .s button:disabled { cursor: default; }
.stepper .s .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .92rem; background: #fff; border: 2.5px solid #cbd5e1; color: var(--muted); transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.stepper .s .lbl { font-size: .8rem; font-weight: 600; line-height: 1.25; padding: 0 4px; }
.stepper .s.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper .s.done button:not(:disabled):hover .dot { box-shadow: 0 0 0 5px var(--brand-100); }
.stepper .s.done .lbl { color: var(--ink-2); }
.stepper .s.active .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px var(--brand-50); }
.stepper .s.active .lbl { color: var(--brand); }
@media (max-width: 560px) { .stepper .s .lbl { font-size: .7rem; } .stepper .s { min-width: 72px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 30px; }
@media (max-width: 560px) { .panel { padding: 20px; } }
.panel-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.panel-head .icon-wrap { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.panel-head h2 { font-size: 1.4rem; margin: 0 0 2px; }
.panel-head p { margin: 0; color: var(--muted); font-size: .93rem; }
.panel-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.summary { position: sticky; top: 92px; }
.summary h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; font-size: .88rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; word-break: break-word; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.summary .total strong { font-size: 1.5rem; color: var(--ink); }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 14px; }

.duration-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 560px) { .duration-grid { grid-template-columns: repeat(2, 1fr); } }
.choice { position: relative; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; background: #fff; text-align: center; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: #93b4ff; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; font-size: 1.3rem; color: var(--ink); }
.choice span { font-size: .82rem; color: var(--muted); }
.choice.selected { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 92, 255, .1); background: var(--brand-50); }

.cnp-info { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Ofertă */
.offers { display: flex; flex-direction: column; gap: 14px; }
.offer { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.offer:hover { border-color: #93b4ff; box-shadow: var(--shadow); }
.offer.best { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 92, 255, .08); }
.offer .monogram { width: 50px; height: 50px; border-radius: 12px; font-size: .95rem; }
.offer .name { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.offer .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); margin-top: 4px; }
.offer .meta span { display: inline-flex; align-items: center; gap: 5px; }
.offer .price { text-align: right; }
.offer .price strong { display: block; font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.offer .price small { color: var(--muted); font-size: .8rem; }
.offer .ds { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8fafc; border-radius: 10px; padding: 10px 14px; font-size: .88rem; flex-wrap: wrap; }
.offer .ds label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--ink); }
.offer .ds input { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 640px) {
  .offer { grid-template-columns: auto 1fr; }
  .offer .price { grid-column: 1 / -1; text-align: left; display: flex; justify-content: space-between; align-items: center; }
  .offer .ds { grid-column: 1 / -1; }
}
.best-badge { position: relative; display: inline-flex; align-items: center; gap: 4px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }

.loading-quotes { text-align: center; padding: 40px 10px; }
.loading-quotes .radar { width: 120px; height: 120px; margin: 0 auto 18px; }
.insurer-progress { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; max-width: 460px; margin: 18px auto 0; text-align: left; font-size: .9rem; }
.insurer-progress div { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.insurer-progress div.ok { color: var(--ink); }
.insurer-progress div.ok svg { color: var(--ok); }

/* ---------- Status comandă ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: var(--muted); flex: none; position: relative; z-index: 1; }
.timeline li.done .dot { background: var(--ok); color: #fff; }
.timeline li.done::before { background: var(--ok); }
.timeline li.current .dot { background: var(--brand); color: #fff; }
.timeline li.failed .dot { background: var(--err); color: #fff; }
.timeline strong { color: var(--ink); display: block; }
.timeline span { font-size: .86rem; color: var(--muted); }
.docs-list { display: grid; gap: 10px; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc-item .icon-wrap { width: 42px; height: 42px; border-radius: 10px; background: var(--err-50); color: var(--err); display: grid; place-items: center; flex: none; }
.doc-item .grow { flex: 1; min-width: 0; }
.doc-item strong { color: var(--ink); display: block; }
.doc-item .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.big-status { text-align: center; padding: 10px 0 24px; }
.big-status .circle { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.big-status .circle.ok { background: var(--ok-50); color: var(--ok); }
.big-status .circle.wait { background: var(--brand-50); color: var(--brand); }
.big-status .circle.err { background: var(--err-50); color: var(--err); }

/* ---------- Pagina plată sandbox ---------- */
.pay-page { min-height: 100vh; background: linear-gradient(180deg, #eef2ff, #f8fafc 50%); padding: 40px 16px; }
.pay-box { max-width: 460px; margin: 0 auto; }
.pay-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pay-amount { text-align: center; padding: 18px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pay-amount strong { display: block; font-size: 2.2rem; color: var(--ink); letter-spacing: -.02em; }
.card-input { position: relative; }
.card-input svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.test-cards { font-size: .8rem; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 12px; margin-top: 14px; color: var(--muted); }
.test-cards code { color: var(--ink); font-weight: 600; }
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: #fff; border-radius: 18px; max-width: 420px; width: 100%; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal-wide { max-width: 980px; max-height: 92vh; overflow: auto; }
.otp-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }

/* ---------- Pagini text ---------- */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 34px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; margin: 32px auto 64px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #f8fafc; }
.prose ol { padding-left: 22px; }
.prose ol li { margin-bottom: 8px; }
.prose .faq { margin-top: 14px; }
.page-hero .hero-form { margin-top: 20px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current] { color: var(--ink-2); }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
a.card h3 { color: var(--brand); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); font-size: .92rem; display: flex; gap: 10px; align-items: center; max-width: 380px; animation: toastIn .2s ease-out; }
.toast.err { background: #991b1b; }
.toast.ok { background: #065f46; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Admin ---------- */
.admin-body { background: #f1f5f9; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: #0b1220; color: #cbd5e1; padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .logo { color: #fff; padding: 4px 10px 22px; font-size: 1.2rem; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 10px; color: #cbd5e1; padding: 10px 12px; border-radius: 9px; font-size: .93rem; font-weight: 500; }
.admin-side nav a:hover { background: #172033; text-decoration: none; }
.admin-side nav a.active { background: var(--brand); color: #fff; }
.admin-side nav a .count { margin-left: auto; background: var(--err); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.admin-side .foot { margin-top: auto; font-size: .82rem; padding: 10px; border-top: 1px solid #1e293b; }
.admin-side .foot button { background: none; border: 0; color: #cbd5e1; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 0 0; font: inherit; }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 18px; }
@media (max-width: 900px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static; height: auto; } .admin-side nav { flex-direction: row; flex-wrap: wrap; } .admin-main { padding: 20px 16px; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.kpi .lbl { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-top: 4px; letter-spacing: -.02em; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f8fafc; white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: var(--ink-2); }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #f8fafc; }
table.data td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data code { font-size: .8rem; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 200px; padding: 9px 12px; }
.pager { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 12px; font-size: .88rem; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .b { flex: 1; background: var(--brand-100); border-radius: 6px 6px 0 0; position: relative; min-height: 3px; }
.bars .b:hover { background: var(--brand); }
.bars .b span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--muted); white-space: nowrap; }
.login-box { max-width: 400px; margin: 10vh auto; }
pre.json { background: #0b1220; color: #e2e8f0; padding: 12px; border-radius: 10px; font-size: .78rem; overflow: auto; max-height: 220px; }

/* =================================================================
   Formular RCA în 5 pași: opțiuni, secțiuni, conducători, oferte
   ================================================================= */
.wizard-layout.full { grid-template-columns: 1fr; }
.wizard-layout.full .summary-col { display: none; }

.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--ink); margin: 28px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-title svg { color: var(--brand); }
.section-title .tag { margin-left: 4px; }
.section-title .btn { margin-left: auto; }
form > .section-title:first-child, .driver-card:first-child .section-title { margin-top: 6px; }

.field-group { margin: 0 0 22px; }
.group-label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.group-label em { font-weight: 500; font-style: italic; }
.field-group .hint { display: block; font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.field-group .err { font-size: .8rem; color: var(--err); display: none; margin-top: 6px; }
.field-group.invalid .err { display: block; }
.field-group.invalid .opt { border-color: #fca5a5; }

/* Butoane-opțiune mari (stare legală, PF/PJ, Da/Nu, perioadă) */
.opt-grid { display: grid; gap: 10px; }
.opt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.cols-5 { grid-template-columns: repeat(5, 1fr); margin-top: 10px; }
.opt-legal { grid-template-columns: repeat(3, 1fr); }
.opt-legal .opt-wide { grid-column: 1 / -1; }
.opt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 14px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink-2); background: #fff; border: 1.5px solid #cbd5e1; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, color .15s; }
.opt:hover { border-color: #93b4ff; }
.opt:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(11, 92, 255, .18); }
.opt.active { background: var(--brand-50); border-color: var(--brand); color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 92, 255, .08); }
.opt.active svg { color: var(--brand); }
.opt-sm { min-height: 44px; font-size: .88rem; padding: 8px 6px; }
@media (max-width: 640px) {
  .opt-legal { grid-template-columns: 1fr; }
  .opt-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
}
.opt-help { margin-top: 12px; padding: 12px 14px; background: #f8fafc; border-radius: 10px; font-size: .82rem; color: var(--muted); }
.opt-help p { margin: 0 0 4px; }
.opt-help p:last-child { margin: 0; }
.opt-help strong { color: var(--ink-2); }
#vehicle-mode { margin-bottom: 4px; }

.opt-tag { font-size: .72rem; font-weight: 600; color: var(--muted); background: #f1f5f9; padding: 1px 7px; border-radius: 999px; }
.hint-warn { color: var(--warn) !important; font-weight: 600; }
.input-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important; letter-spacing: .08em; }
.input-plate { font-weight: 700; letter-spacing: .1em; }
.note-ok { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-50); color: #065f46; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin: 0 0 22px; }
.note-ok svg { flex: none; margin-top: 2px; color: var(--ok); }

/* Tooltip "?" (doar CSS, accesibil cu tastatura) */
.tip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #475569; color: #fff; font-size: .7rem; font-weight: 800; cursor: help; flex: none; font-style: normal; }
.tip-lg { width: 24px; height: 24px; font-size: .85rem; background: var(--brand); }
.tip::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; }
.tip:hover::after, .tip:focus::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.tip:focus { outline: 0; box-shadow: 0 0 0 3px rgba(11, 92, 255, .3); }

.dropzone-compact { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: left; }
.dropzone-compact .icon-wrap { width: 44px; height: 44px; margin: 0; flex: none; }
.dropzone-compact .small { display: block; }

.input-action { display: flex; gap: 10px; }
.input-action input { flex: 1; min-width: 0; }
.input-action .btn { flex: none; }
@media (max-width: 480px) { .input-action { flex-direction: column; } }
.company-card { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; border: 1px solid #a7f3d0; background: var(--ok-50); border-radius: 12px; padding: 14px 16px; margin: -4px 0 18px; }
.company-card strong { color: var(--ink); }
.company-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Conducători auto */
.driver-card { border: 1px solid var(--line); border-radius: 16px; padding: 6px 20px 8px; margin-bottom: 16px; background: #fff; }
.driver-card.readonly { background: #f8fafc; }
.driver-card.readonly input:disabled { background: #f1f5f9; color: var(--ink-2); }
.driver-card .section-title { margin: 14px 0 16px; }
.driver-card > .hint { font-size: .8rem; color: var(--muted); margin: -4px 0 12px; }
.btn-pill { border-radius: 999px; padding: 12px 22px; box-shadow: var(--shadow); }
.btn-pill svg { color: var(--brand); }

.period-end { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin: -4px 0 22px; }
.period-end svg { color: var(--brand); flex: none; margin-top: 2px; }
.consent-box { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 4px; margin-top: 8px; }
.field.consent-box.invalid { border-color: #fca5a5; background: var(--err-50); }

/* ---------- Pas 5: lista de oferte ---------- */
.offer-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; padding: 18px 20px; border-radius: 14px; background: linear-gradient(135deg, #f8fbff, #f1f5ff); border: 1px solid var(--brand-100); font-size: .9rem; color: var(--ink-2); }
.offer-summary .os-col { display: grid; gap: 4px; align-content: start; }
.offer-summary .os-title { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; color: var(--ink); margin-bottom: 4px; }
.offer-summary .os-title svg { color: var(--brand); }
@media (max-width: 760px) { .offer-summary { grid-template-columns: 1fr; } }
.offer-notes { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.offer-notes li { display: flex; gap: 8px; align-items: flex-start; }
.offer-notes svg { color: var(--ok); flex: none; margin-top: 2px; }
.offer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 14px; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check-pill input { width: 17px; height: 17px; accent-color: var(--ok); }
.check-pill:has(input:checked) { border-color: #86efac; background: #f0fdf4; color: #065f46; }

.offer-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.ot-head { display: grid; background: #0f1f4b; color: #fff; }
.ot-h { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 10px; background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .12); color: inherit; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-align: center; line-height: 1.25; }
.ot-h small { font-weight: 500; opacity: .75; }
.ot-h svg { opacity: .55; flex: none; }
.ot-h:hover, .ot-h.sorted { background: rgba(255, 255, 255, .08); }
.ot-h.sorted svg { opacity: 1; }
.ot-h.sel { background: rgba(11, 92, 255, .35); }
.ot-row { display: grid; grid-template-columns: var(--cols); border-top: 1px solid var(--line); transition: background .15s; }
.ot-row:hover { background: #fafcff; }
.ot-row.is-ds { background: #fcfdff; }
.ot-row.best { box-shadow: inset 4px 0 0 var(--ok); }
.ot-row > [role="cell"] { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 10px; border-right: 1px solid var(--line); min-width: 0; }
.ot-row > [role="cell"]:last-of-type { border-right: 0; }
.ot-ins { flex-direction: column; gap: 6px !important; }
.ins-logo { display: block; width: 100%; max-width: 160px; height: auto; }
.ins-logo-lg { max-width: 200px; }
.ins-mono { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.ot-ins .best-badge { margin: 0; background: var(--ok); }
.ot-price { flex-wrap: wrap; }
.ot-price.sel { background: rgba(11, 92, 255, .045); }
.amt { font-size: 1.45rem; font-weight: 800; color: #0f1f4b; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt sup { font-size: .58em; font-weight: 700; margin-left: 1px; vertical-align: .62em; }
.btn-buy { background: var(--ok); color: #fff; box-shadow: 0 6px 16px rgba(5, 150, 105, .25); }
.btn-buy:hover { background: #047857; }
.btn-dark { background: #1e3a8a; color: #fff; }
.btn-dark:hover { background: #172e6e; }
.btn-dark svg { transition: transform .15s; }
.ot-row.open .more svg { transform: rotate(180deg); }
.ds-yes { color: var(--ok); display: inline-flex; }
.ds-no { color: #94a3b8; display: inline-flex; }
.ot-details { grid-column: 1 / -1; padding: 0 16px 16px; }
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding: 14px; background: #f8fafc; border-radius: 12px; }
.od-col { display: grid; gap: 4px; align-content: start; font-size: .86rem; color: var(--ink-2); }
.od-col strong { color: var(--ink); margin-bottom: 2px; }
.od-col span { display: flex; gap: 6px; align-items: flex-start; }
.od-col svg { color: var(--brand); flex: none; margin-top: 2px; }
.od-total { font-weight: 700; color: var(--ink); }

/* Pe telefon fiecare ofertă devine un card */
@media (max-width: 820px) {
  .ot-head { display: none; }
  .ot-row { grid-template-columns: 1fr 1fr !important; padding: 10px 0; }
  .ot-row > [role="cell"] { border-right: 0; padding: 8px 14px; }
  .ot-ins { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between !important; }
  .ins-logo { max-width: 150px; }
  .ot-price, .ot-ds { flex-direction: column; gap: 6px !important; }
  .ot-price::before, .ot-ds::before { content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .ot-more { grid-column: 1 / -1; }
  .ot-more .btn { width: 100%; }
}

/* Fereastra de confirmare a ofertei */
body.modal-open { overflow: hidden; }
.modal-buy { max-width: 480px; max-height: 94vh; overflow: auto; }
.buy-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.modal-buy h2 { font-size: 1.3rem; margin: 0 0 12px; }
.buy-kv { grid-template-columns: 130px 1fr; font-size: .88rem; margin-bottom: 14px; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.buy-total strong { font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.buy-invoice { margin-bottom: 6px; }
.buy-invoice p { display: flex; gap: 6px; align-items: flex-start; }

/* ---------- Chat asistență (colțul din dreapta jos) ---------- */
.has-chat .toast-wrap { bottom: 96px; }
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-fab { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 28px rgba(11, 92, 255, .35); transition: transform .15s, background .15s; }
.chat-fab:hover { background: var(--brand-600); transform: translateY(-2px); }
.chat-fab:focus-visible { outline: 0; box-shadow: 0 0 0 4px rgba(11, 92, 255, .3), 0 10px 28px rgba(11, 92, 255, .35); }
.chat-badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--err); color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.chat-panel { width: 370px; max-width: calc(100vw - 40px); height: min(560px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); display: flex; flex-direction: column; overflow: hidden; animation: chatIn .18s ease-out; }
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--brand); color: #fff; flex: none; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.chat-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.chat-title strong { color: #fff; font-size: .98rem; }
.chat-sub { display: flex; align-items: center; gap: 6px; font-size: .78rem; opacity: .9; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; flex: none; }
.chat-widget.is-online .chat-dot { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.chat-icon-btn { background: transparent; border: 0; color: #fff; padding: 6px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .16); }
.chat-start { padding: 16px; overflow-y: auto; flex: 1; }
.chat-start .field { margin-bottom: 12px; }
.chat-start textarea { resize: vertical; min-height: 76px; }
.chat-conv { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-status { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; font-size: .82rem; background: var(--ok-50); color: #065f46; border-bottom: 1px solid #a7f3d0; flex: none; }
.chat-status svg { margin-top: 2px; }
.chat-widget.is-queued .chat-status { background: var(--warn-50); color: #92400e; border-color: #fde68a; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg .bubble { padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg time { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.me .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.them { align-self: flex-start; }
.chat-msg.them .bubble { background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-sys { align-self: center; text-align: center; font-size: .76rem; color: var(--muted); background: #eef2f7; padding: 4px 10px; border-radius: 99px; max-width: 92%; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); flex: none; }
.chat-compose textarea { resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; font-size: .94rem; }
.chat-send { width: 42px; height: 42px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.chat-send:hover { background: var(--brand-600); }
.chat-end { background: none; border: 0; border-top: 1px solid var(--line); color: var(--muted); font: inherit; font-size: .8rem; padding: 8px; cursor: pointer; flex: none; }
.chat-end:hover { color: var(--err); }
.chat-ended { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 24px; }
.chat-ended-ico { color: var(--ok); }
@media (max-width: 520px) {
  .chat-widget { right: 12px; bottom: 12px; }
  .has-chat .toast-wrap { bottom: 84px; right: 12px; left: 12px; }
  .chat-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; max-width: none; height: min(560px, calc(100vh - 100px)); }
}

/* ---------- Contul meu ---------- */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 520px) 340px; gap: 24px; justify-content: center; align-items: start; }
.auth-wrap.single { grid-template-columns: minmax(0, 520px); }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-panel .segmented { display: flex; width: 100%; margin-bottom: 20px; }
.auth-panel .segmented button { flex: 1; justify-content: center; }
.auth-form .btn-block { margin-top: 6px; }
.auth-benefits h3 { margin-top: 0; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: .92rem; color: var(--ink-2); }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits svg { color: var(--brand); flex: none; margin-top: 2px; }
.acc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.acc-head h1 { margin: 0 0 4px; font-size: 1.9rem; }
.acc-head p { margin: 0; }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acc-tabs { margin: 8px 0 16px; }
.acc-tabs .tag { margin-left: 2px; }
.acc-order { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; }
.acc-order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-order-head strong { color: var(--ink); font-size: 1.05rem; }
.acc-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.acc-order-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.acc-vehicle { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.acc-vehicle .grow { flex: 1; min-width: 200px; }
.acc-vehicle strong { color: var(--ink); }
.acc-plate { font-weight: 800; letter-spacing: .1em; border: 2px solid var(--ink); border-left: 12px solid #003399; border-radius: 8px; padding: 6px 12px; color: var(--ink); background: #fff; white-space: nowrap; }
.section-title.danger svg { color: var(--err); }
.save-account { border: 1.5px dashed var(--brand-100); background: var(--brand-50); border-radius: 14px; padding: 16px 18px; margin-top: 24px; }
.save-account h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.save-account h3 svg { color: var(--brand); }
.buy-account { border-top: 1px dashed var(--line); padding-top: 12px; margin-bottom: 8px; }
.buy-account .field { margin: 10px 0 0; }
.saved-data { margin-bottom: 18px; }
.saved-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
