/* ============================================================================
   ContabilAproape.ro - app.css  (design system unic)
   "Cabinet cald, de incredere": fundal alb, accent portocaliu (din logo), navy
   pentru titluri/sidebar/footer, forme geometrice soft. Serif pentru titluri
   (Source Serif 4) + sans pentru text (Inter), self-hostate. Mobile-first.
   Un singur fisier (inlocuieste app.css + public.css + contabil.css).
   ============================================================================ */

/* ---- Fonturi self-hostate (SIL Open Font License) ---- */
@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/assets/fonts/SourceSerif4-Variable.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

/* ---- Tokens ---- */
:root {
    /* navy: profunzime + text pentru titluri, sidebar si footer */
    --navy: #1b4965;
    --navy-700: #1f5573;
    --navy-600: #2d6a8f;
    --navy-900: #0f2f42;
    /* accent principal = portocaliul din logo (pinul). Nuanta profunda pentru text
       si butoane (contrast AA pe alb: alb/deep 4.79:1, deep/alb 4.79:1); varianta
       luminoasa (--brand-bright) DOAR pentru forme si accente non-text. */
    --gold: #c24e00;         /* portocaliu profund: butoane, borduri active, focus */
    --gold-600: #b4530a;     /* portocaliu-text pe alb (AA 5.0): linkuri, preturi, eyebrow */
    --gold-300: #ffb27a;     /* portocaliu deschis: accente pe fundal navy (footer) */
    --gold-100: #ffe9d8;     /* piersica pala: fundal badge-uri / activ / selectie */
    --brand-bright: #fb8500; /* portocaliul EXACT din logo: forme, pin, glow (non-text) */
    --shape: #ffe4cf;        /* forme geometrice soft (blob-uri decorative) */
    /* fundaluri: ALB pur peste tot; piersica/crem doar la sectiuni alternate + hover */
    --paper: #ffffff;
    --surface: #ffffff;
    --sand: #fff4ec;
    --sand-2: #ffe9d8;
    /* text */
    --ink: #1d2b34;
    --soft: #46555f;
    --muted: #6f7d86;
    --line: #e7e1d4;
    --line-2: #efe9dd;
    /* stari */
    --ok-bg: #e7f2ea; --ok-tx: #1c6b39; --ok-bd: #c3e2cd;
    --err-bg: #fbeae7; --err-tx: #b5321f; --err-bd: #f2ccc4;
    --info-bg: #ecf2f6; --info-tx: #1b4965; --info-bd: #cfe0ea;
    --warn-bg: #f9efd8; --warn-tx: #8a601a; --warn-bd: #ecd8a6;
    /* forma */
    --r: 14px; --r-sm: 10px; --r-xs: 8px; --pill: 999px;
    /* umbre calde (brun cald, nu gri-rece) */
    --sh-sm: 0 1px 2px rgba(93,58,26,.08);
    --sh: 0 2px 4px rgba(93,58,26,.06), 0 8px 22px rgba(93,58,26,.09);
    --sh-lg: 0 2px 6px rgba(93,58,26,.07), 0 18px 44px rgba(120,72,30,.15);
    --ring: 0 0 0 3px rgba(251,133,0,.35);
    --ease: 180ms cubic-bezier(.2,.7,.3,1);
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1rem; /* = 16px la radacina; permite scalarea din widgetul de accesibilitate */
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-600); }
::selection { background: var(--gold-100); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy-900); line-height: 1.15; font-weight: 600; }

/* ---- Layout ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.container-lg { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 22px; }
.main { flex: 1 0 auto; padding: 30px 22px 48px; width: 100%; max-width: 1320px; margin: 0 auto; }
.main-public { flex: 1 0 auto; }
.section { padding: 56px 0; }
.section-alt { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--navy-900); color: #eaf1f5; position: relative; overflow: hidden; }
.section-navy::before {
    content: ""; position: absolute; right: -100px; top: -120px; width: 360px; height: 360px;
    background: radial-gradient(circle at 40% 40%, rgba(251,133,0,.16), transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.section-navy > * { position: relative; z-index: 1; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 660px; margin: 0 auto 34px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--soft); font-size: 1.05rem; }
.section-navy .section-head p { color: #b7ccd8; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--gold-600); font-family: var(--sans); margin: 0 0 12px; }

/* motiv recurent: cercuri concentrice ("aproape de tine") */
.rings-bg { position: relative; overflow: hidden; }
.rings-bg::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, transparent 0 58px, rgba(251,133,0,.16) 58px 60px, transparent 60px 108px, rgba(251,133,0,.13) 108px 110px, transparent 110px 158px, rgba(27,73,101,.10) 158px 160px, transparent 160px 214px, rgba(27,73,101,.08) 214px 216px, transparent 216px);
    pointer-events: none;
}

/* ---- Icoane ---- */
.ico { width: 1em; height: 1em; vertical-align: -0.125em; flex: 0 0 auto; }

/* ---- Header + nav ---- */
.site-header {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(1.1) blur(6px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img, .brand picture { display: block; }
.brand img { height: auto; max-width: 100%; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.28rem; color: var(--navy-900); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 8px; }
.brand-text::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 3px rgba(251,133,0,.22); flex: 0 0 auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { color: var(--soft); text-decoration: none; font-size: .96rem; font-weight: 500; padding: 9px 12px; border-radius: var(--r-sm); transition: color var(--ease), background var(--ease); }
.nav-link:hover { color: var(--navy); background: rgba(27,73,101,.06); }
.nav-cta { color: var(--navy); font-weight: 600; }
.nav-user { color: var(--muted); font-size: .9rem; padding: 0 4px; }
.nav-form { margin: 0; }
.nav-toggle { display: none; }

/* hamburger mobil */
@media (max-width: 820px) {
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r-sm);
        background: var(--surface); cursor: pointer; padding: 0 12px;
    }
    .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 14px; }
    .nav.is-open { display: flex; }
    .nav-link { padding: 12px 12px; border-radius: var(--r-sm); font-size: 1rem; }
    .nav .btn { width: 100%; margin-top: 6px; }
    .nav-form { width: 100%; }
    .nav-form .btn { width: 100%; }
}

/* ---- Butoane ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: var(--r-sm); padding: 12px 20px;
    font-family: var(--sans); font-size: .97rem; font-weight: 600; cursor: pointer;
    text-decoration: none; text-align: center; line-height: 1.2;
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--gold-600); color: #fff; transform: translateY(-1px); box-shadow: var(--sh); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-1px); box-shadow: var(--sh); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy-900); transform: translateY(-1px); box-shadow: var(--sh-sm); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn:focus-visible, a:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---- Carduri / forme ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; box-shadow: var(--sh); }
.card-lg { max-width: none; } /* card mare = ocupa toata latimea containerului (shell/dashboard/admin) */
.auth-wrap { max-width: 480px; margin: 12px auto 0; }

h1.page-title { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 0 0 8px; letter-spacing: -.01em; }
.page-sub { margin: 0 0 22px; color: var(--soft); font-size: 1rem; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], select, textarea {
    width: 100%; padding: 12px 13px; font-size: 1rem; font-family: var(--sans); color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color var(--ease), box-shadow var(--ease);
}
input::placeholder, textarea::placeholder { color: #a9b2b8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
input[type="file"] { width: 100%; font-size: .95rem; }
textarea { min-height: 130px; resize: vertical; }

/* alerte */
.alert { border: 1px solid transparent; border-radius: var(--r-sm); padding: 13px 15px; font-size: .95rem; margin-bottom: 18px; }
.alert a { color: inherit; font-weight: 600; }
.alert-succes { background: var(--ok-bg); color: var(--ok-tx); border-color: var(--ok-bd); }
.alert-eroare { background: var(--err-bg); color: var(--err-tx); border-color: var(--err-bd); }
.alert-info { background: var(--info-bg); color: var(--info-tx); border-color: var(--info-bd); }
.alert-list { margin: 0; padding-left: 18px; }

/* choice cards (register) */
.choice-radio { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.choice-row { display: flex; gap: 12px; margin-bottom: 18px; }
.choice { flex: 1; display: block; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px; cursor: pointer; text-align: center; font-weight: 600; color: var(--soft); background: #fff; transition: border-color var(--ease), box-shadow var(--ease), color var(--ease); }
.choice:hover { border-color: var(--navy-600); }
.choice .choice-desc { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: 4px; }
#reg_rol_user:checked ~ .choice-row label[for="reg_rol_user"],
#reg_rol_contabil:checked ~ .choice-row label[for="reg_rol_contabil"] { border-color: var(--gold); color: var(--navy-900); box-shadow: var(--ring); }
.js-contabil-fields { display: none; }
#reg_rol_contabil:checked ~ .js-contabil-fields { display: block; }

.check-row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; font-size: .92rem; color: var(--soft); }
.check-row input[type="checkbox"] { margin-top: 2px; width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--navy); }

.form-links { margin-top: 20px; font-size: .92rem; color: var(--soft); text-align: center; }
.form-links a { color: var(--navy); text-decoration: none; font-weight: 600; }
.form-links a:hover { text-decoration: underline; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .muted { color: var(--muted); } .text-center { text-align: center; }
.lead-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: var(--pill); background: var(--info-bg); color: var(--info-tx); border: 1px solid var(--info-bd); }
.badge-wait { background: var(--warn-bg); color: var(--warn-tx); border-color: var(--warn-bd); }
.badge-premium { background: var(--gold-100); color: var(--gold-600); border-color: var(--gold); }
.soon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-600); background: var(--gold-100); border-radius: var(--pill); padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ---- Hero ---- */
.hero { background:
    radial-gradient(1200px 500px at 82% -10%, rgba(251,133,0,.12), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(27,73,101,.06), transparent 55%),
    var(--paper);
    padding: 64px 0 56px; position: relative; overflow: hidden; }
/* forme geometrice soft (personalitate): blob portocaliu-pal in coltul de jos */
.hero::after {
    content: ""; position: absolute; left: -90px; bottom: -110px; width: 340px; height: 340px;
    background: radial-gradient(circle at 32% 32%, var(--shape), transparent 72%);
    border-radius: 42% 58% 60% 40% / 45% 42% 58% 55%; pointer-events: none; z-index: 0;
}
.hero .container-lg { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 40px; } }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 0 0 16px; letter-spacing: -.015em; }
.hero h1 .accent { color: var(--navy); position: relative; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--soft); margin: 0 0 26px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.hero-search form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.hero-search .field { flex: 1 1 220px; margin: 0; }
.hero-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.hero-art { position: relative; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(93,58,26,.16)); }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--soft); font-weight: 500; }
.trust-item .ico { color: var(--gold-600); font-size: 1.1rem; }

/* ---- Pasi ---- */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--sh-sm); position: relative; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: 0 0 0 4px rgba(27,73,101,.10); }
.step h3 { font-size: 1.18rem; margin: 0 0 7px; }
.step p { margin: 0; color: var(--soft); }

/* carduri beneficii (portal contabil) */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--sh-sm); transition: transform var(--ease), box-shadow var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.feature .f-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .f-ico .ico { font-size: 1.4rem; }
.feature h3 { font-size: 1.08rem; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--soft); font-size: .94rem; }

/* ---- Planuri ---- */
.plans-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (min-width: 680px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--sh-sm); transition: transform var(--ease), box-shadow var(--ease); }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.plan-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--sh); }
.plan-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy-900); margin: 0 0 4px; }
.plan-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-600); background: var(--gold-100); border: 1px solid var(--gold); border-radius: var(--pill); padding: 4px 11px; align-self: flex-start; margin-bottom: 12px; }
.plan-price { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; color: var(--ink); margin: 6px 0 2px; }
.plan-price small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-desc { color: var(--soft); font-size: .92rem; margin: 8px 0 16px; }
.plan-features { list-style: none; margin: 0 0 22px; padding: 0; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--soft); padding: 7px 0; }
.plan-features .ico { color: var(--gold-600); font-size: 1.1rem; margin-top: 1px; }
.plan-card .btn { margin-top: auto; }

/* ---- Servicii ---- */
.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.svc-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 10px 18px; font-size: .92rem; color: var(--soft); text-decoration: none; font-weight: 600; transition: all var(--ease); }
.svc-chip:hover { border-color: var(--gold); color: var(--navy-900); box-shadow: var(--sh-sm); transform: translateY(-1px); }
.svc-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .svc-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .svc-cards { grid-template-columns: 1fr 1fr 1fr; } }
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: inherit; display: block; box-shadow: var(--sh-sm); transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.svc-card:hover { border-color: var(--gold); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.svc-card h3 { font-size: 1.1rem; margin: 0 0 7px; color: var(--navy); }
.svc-card p { margin: 0; font-size: .92rem; color: var(--soft); }

/* ---- Carduri contabili ---- */
.cont-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 620px) { .cont-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cont-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cont-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--sh-sm); transition: transform var(--ease), box-shadow var(--ease); position: relative; }
.cont-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.cont-head { display: flex; gap: 13px; align-items: center; margin-bottom: 12px; }
.cont-logo { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex: 0 0 auto; }
.cont-logo-fallback { width: 58px; height: 58px; border-radius: 12px; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.cont-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: 0; color: var(--navy-900); }
.cont-loc { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.cont-loc .ico { color: var(--gold-600); }
.cont-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.tag { font-size: .74rem; background: var(--sand); color: var(--navy); border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 3px 9px; }
.cont-premium { position: absolute; top: 12px; right: 12px; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); background: var(--gold-100); border: 1px solid var(--gold); border-radius: var(--pill); padding: 3px 9px; }
.cont-card .btn { margin-top: auto; }

/* ---- Stare goala ---- */
.empty-state { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 48px 26px; box-shadow: var(--sh-sm); position: relative; overflow: hidden; }
.empty-state::before {
    content: ""; position: absolute; left: 50%; top: -60px; transform: translateX(-50%); width: 320px; height: 320px;
    background: radial-gradient(circle, transparent 0 70px, rgba(251,133,0,.10) 70px 72px, transparent 72px 118px, rgba(27,73,101,.07) 118px 120px, transparent 120px 168px, rgba(27,73,101,.05) 168px 170px, transparent 170px);
    pointer-events: none;
}
.empty-state > .ico { box-sizing: content-box; display: block; width: 32px; height: 32px; padding: 18px; margin: 0 auto 16px; border-radius: 50%; background: var(--sand); color: var(--navy); box-shadow: 0 0 0 6px rgba(27,73,101,.06); position: relative; }
.empty-state h3 { font-size: 1.3rem; margin: 0 0 8px; }
.empty-state p { color: var(--soft); margin: 0 auto 20px; max-width: 470px; }

/* ---- Filtre / paginare / breadcrumbs ---- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 24px; box-shadow: var(--sh-sm); }
.filters form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { margin: 0; flex: 1 1 200px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pager a, .pager span { display: inline-block; min-width: 42px; text-align: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--soft); font-size: .9rem; font-weight: 600; background: var(--surface); transition: all var(--ease); }
.pager a:hover { border-color: var(--gold); color: var(--navy-900); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.crumbs { margin: 0 0 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .82rem; color: var(--muted); }
.crumbs li:not(:first-child)::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold-600); }

/* ---- Profil public ---- */
.profile-hero { background:
    radial-gradient(900px 360px at 88% -30%, rgba(251,133,0,.12), transparent 60%), var(--sand);
    border-bottom: 1px solid var(--line); }
.profile-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding: 34px 0 26px; }
.profile-logo { width: 92px; height: 92px; border-radius: 16px; object-fit: contain; border: 1px solid var(--line); background: #fff; flex: 0 0 auto; box-shadow: var(--sh-sm); }
.profile-logo-fallback { width: 92px; height: 92px; border-radius: 16px; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 2.2rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; box-shadow: var(--sh-sm); }
.profile-title h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin: 26px 0; }
@media (min-width: 820px) { .profile-grid { grid-template-columns: 1.8fr 1fr; align-items: start; } }
.profile-map { height: 280px; border: 1px solid var(--line); border-radius: var(--r); background: #eef2f0; box-shadow: var(--sh-sm); }
.profile-serv-list { list-style: none; margin: 0; padding: 0; }
.profile-serv-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; }
.profile-serv-list li:last-child { border-bottom: none; }
.profile-serv-list .pret { color: var(--gold-600); font-weight: 700; white-space: nowrap; font-family: var(--serif); }
.contact-card { position: sticky; top: 86px; }
.contact-list { list-style: none; margin: 0 0 4px; padding: 0; }
.contact-list li { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-size: .98rem; }
.contact-list a { color: var(--navy); text-decoration: none; word-break: break-word; font-weight: 500; }
.contact-list a:hover { color: var(--gold-600); }
.contact-list .ico { color: var(--muted); font-size: 1.15rem; }

/* ---- Prose (legal / serviciu) ---- */
.prose { font-size: 1.05rem; color: var(--soft); line-height: 1.75; }
.prose p { margin: 0 0 16px; }
.prose h1, .prose h2 { color: var(--navy-900); }

/* ---- Dashboard shell: sidebar vertical (desktop) / drawer (mobil) ---- */
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.dash-nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dash-nav-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; color: var(--navy-900); cursor: pointer; }
.dash-burger { display: inline-flex; flex-direction: column; gap: 4px; }
.dash-burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
.dash-side { display: none; }
.dash-nav-check:checked ~ .dash-side { display: block; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; box-shadow: var(--sh-sm); }
.dash-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; color: var(--soft); font-weight: 600; font-size: .95rem; transition: background var(--ease), color var(--ease); }
.dash-link:hover { background: var(--sand); color: var(--navy); }
.dash-link.active { background: var(--gold-100); color: var(--navy-900); }
.dash-link .nav-badge { margin-left: auto; }
.dash-body { min-width: 0; }
@media (min-width: 900px) {
    .dash-grid { grid-template-columns: 236px 1fr; gap: 26px; }
    .dash-nav-toggle { display: none; }
    .dash-side { display: block; position: sticky; top: 84px; }
}

.section-card { margin-bottom: 20px; }
.section-card h2 { font-size: 1.2rem; margin: 0 0 4px; }

/* Gestiune logo (admin/brand.php) */
.brand-prev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.brand-canvas { display: flex; align-items: center; justify-content: center; min-height: 100px; border-radius: var(--r-sm); padding: 18px; margin-top: 6px; }
.brand-canvas-light { background: #ffffff; border: 1px solid var(--line); }
.brand-canvas-dark { background: var(--navy-900); border: 1px solid var(--navy-900); }
.brand-canvas img { display: block; max-width: 100%; }
.section-note { color: var(--muted); font-size: .95rem; margin: 0 0 16px; }

/* progres completare */
.progress-wrap { margin: 6px 0 20px; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.progress-top .pct { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-600); }
.progress-bar { height: 10px; border-radius: var(--pill); background: var(--sand-2); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--navy-600)); border-radius: var(--pill); transition: width .3s ease; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: .98rem; }
.steps li:last-child { border-bottom: none; }
.step-label { color: var(--ink); }
.step-done .step-label { color: var(--muted); text-decoration: line-through; }
.step-state { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.state-ok { background: var(--ok-bg); color: var(--ok-tx); border: 1px solid var(--ok-bd); }
.state-todo a { background: var(--gold-100); color: var(--gold-600); border: 1px solid var(--gold); padding: 5px 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.state-todo a:hover { background: var(--gold); color: #fff; }

/* grid formular */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 620px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .col-span-2 { grid-column: 1 / -1; } }

/* servicii (dashboard) */
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-item { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 560px) { .svc-item { grid-template-columns: 1fr 190px; align-items: center; } }
.svc-item:last-child { border-bottom: none; }
.svc-check { display: flex; align-items: flex-start; gap: 11px; }
.svc-check input[type="checkbox"] { width: 19px; height: 19px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.svc-name { font-weight: 600; }
.svc-desc { font-size: .83rem; color: var(--muted); }
.svc-price label { font-size: .8rem; color: var(--soft); display: block; margin-bottom: 4px; }

/* harta / zona */
.map { height: 380px; width: 100%; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 14px; background: #eef2f0; box-shadow: var(--sh-sm); }
.map-help { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--gold); height: 6px; }
.range-val { font-family: var(--serif); font-weight: 600; color: var(--navy); min-width: 68px; text-align: right; }
.map-pin, .sediu-pin { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--navy), 0 2px 6px rgba(0,0,0,.4); cursor: move; }

/* logo upload */
.logo-preview { display: inline-block; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: #fff; margin-bottom: 16px; box-shadow: var(--sh-sm); }
.logo-preview img { display: block; max-width: 200px; max-height: 200px; }
.logo-empty { color: var(--muted); font-size: .95rem; border: 1px dashed var(--line); border-radius: var(--r); padding: 24px; text-align: center; margin-bottom: 16px; background: var(--sand); }

/* lead-uri (cereri) */
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-item { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 13px; background: var(--surface); box-shadow: var(--sh-sm); }
.lead-item:last-child { margin-bottom: 0; }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.lead-loc { font-family: var(--serif); font-weight: 600; color: var(--navy-900); }
.lead-serv { color: var(--gold-600); font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.lead-meta { font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.lead-mesaj { font-size: .93rem; color: var(--soft); background: var(--sand); border-radius: var(--r-sm); padding: 9px 11px; margin-bottom: 8px; }
.lead-contact { font-size: .95rem; color: var(--soft); }
.lead-contact a { color: var(--navy); text-decoration: none; font-weight: 600; }
.lead-contact a:hover { color: var(--gold-600); }

/* ---- Formular in pasi (cerere) ---- */
.cerere-wrap { max-width: 760px; margin: 0 auto; }
.fstep { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 8px; margin-bottom: 18px; background: var(--surface); box-shadow: var(--sh-sm); }
.fstep-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fstep-num { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fstep-head h2 { font-size: 1.15rem; margin: 0; }
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc-grid label { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.svc-grid label:hover { border-color: var(--navy-600); }
.svc-grid input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }

/* ---- Admin (dens, utilitar) ---- */
.adm-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.adm-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: normal; vertical-align: top; }
.adm-table td.nowrap, .adm-table th.nowrap { white-space: nowrap; }
.adm-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--sand); }
.adm-table tr:last-child td { border-bottom: none; }
.st { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); }
.st-confirmata { background: var(--ok-bg); color: var(--ok-tx); }
.st-initiata { background: var(--warn-bg); color: var(--warn-tx); }
.st-esuata { background: var(--err-bg); color: var(--err-tx); }
.st-rambursata { background: var(--info-bg); color: var(--info-tx); }
.adm-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.adm-filters .field { margin: 0; }

/* ---- Footer (navy, profunzime) ---- */
.site-footer { flex-shrink: 0; background: var(--navy-900); color: #c6d6e0; padding: 46px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-col h4 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); margin: 0 0 12px; }
.footer-col a { display: block; color: #b7cad6; text-decoration: none; font-size: .92rem; padding: 4px 0; transition: color var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img, .footer-brand picture { display: block; }
.footer-brand img { height: auto; max-width: 100%; }
.footer-brand .brand-text { font-family: var(--serif); font-weight: 600; color: #fff; font-size: 1.2rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-text::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--gold); flex: 0 0 auto; }
.footer-tag { color: #92abb9; font-size: .92rem; margin: 10px 0 0; max-width: 280px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: .85rem; color: #8ba6b5; }
.site-footer .muted { color: #8ba6b5; }

/* zona de date legale operator */
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .82rem; line-height: 1.7; color: #93aab8; }
.footer-legal a { color: #e8eef2; text-decoration: underline; text-decoration-color: rgba(255,255,255,.32); text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--gold-300); text-decoration-color: var(--gold-300); }
.footer-operator strong { color: #cddbe4; font-weight: 600; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
@media (min-width: 640px) { .footer-meta { align-items: flex-end; text-align: right; } }
.footer-mini { margin: 0; font-size: .82rem; }
.anpc-badge { display: inline-block; margin-top: 8px; line-height: 0; border-radius: 6px; overflow: hidden; }
.anpc-badge img { display: block; width: 140px; height: 35px; background: #fff; padding: 3px 6px; border-radius: 6px; }

/* ---- Modul documente ---- */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.doc-item:last-child { border-bottom: none; }
.doc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-name { font-weight: 600; color: var(--ink); word-break: break-word; }
.doc-name .badge { margin-left: 6px; }
.doc-meta { font-size: .82rem; color: var(--muted); }
.doc-desc { font-size: .86rem; color: var(--soft); }

/* taburi (documente client) - CSS only */
.tab-radio { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tab { padding: 11px 14px; font-weight: 600; font-size: .92rem; color: var(--soft); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: var(--navy); }
.tab-panel { display: none; }
#tab-trimise:checked ~ .tabs label[for="tab-trimise"],
#tab-primite:checked ~ .tabs label[for="tab-primite"] { color: var(--navy-900); border-bottom-color: var(--gold); }
#tab-trimise:checked ~ .panel-trimise { display: block; }
#tab-primite:checked ~ .panel-primite { display: block; }

/* ---- Auth split-screen ---- */
.auth-split { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 940px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); }
@media (min-width: 860px) { .auth-split { grid-template-columns: 0.95fr 1.05fr; } }
.auth-visual { background: var(--navy-900); color: #eaf1f5; padding: 42px 34px; display: flex; align-items: center; position: relative; overflow: hidden; }
.auth-visual-inner { position: relative; z-index: 1; width: 100%; }
.auth-art { width: 78%; max-width: 240px; height: auto; margin-bottom: 6px; }
.auth-visual h2 { color: #fff; font-size: 1.55rem; margin: 14px 0 8px; letter-spacing: -.01em; }
.auth-visual p { color: #b7ccd8; margin: 0; font-size: .98rem; }
.auth-points { list-style: none; margin: 18px 0 0; padding: 0; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: #cddbe4; font-size: .92rem; }
.auth-points li svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.auth-form { padding: 0; }
.auth-form .card { border: 0; box-shadow: none; border-radius: 0; height: 100%; max-width: none; }
@media (max-width: 859px) {
    .auth-art, .auth-points { display: none; }
    .auth-visual { padding: 22px 24px; }
    .auth-visual h2 { font-size: 1.2rem; margin-top: 0; }
}

/* ---- Coperta pagina publica + preview ---- */
.page-cover { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.page-cover img { display: block; width: 100%; height: auto; aspect-ratio: 10 / 3; object-fit: cover; }
.page-preview { border: 1px dashed #cbd2d9; border-radius: var(--r); padding: 20px; background: var(--paper); }

/* ---- A11y / motion ---- */
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; box-shadow: var(--ring); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ============================================================================
   Etapa 9 - Dashboarduri + rapoarte financiare
   ============================================================================ */

/* CTA principal dashboard */
.dash-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn-lg { padding: 14px 28px; font-size: 1.04rem; }

/* Indicatori-cheie (KPI) */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi-grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .01em; }
.kpi-value { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy-900); line-height: 1.1; }
.kpi-trend { font-size: .78rem; color: var(--muted); }
.kpi-trend.trend-up { color: var(--ok-tx); }
.kpi-trend.trend-down { color: var(--err-tx); }
.kpi-bar { margin-top: 8px; height: 6px; border-radius: var(--pill); background: rgba(93,58,26,.12); overflow: hidden; }
.kpi-bar-fill { height: 100%; background: var(--navy); border-radius: var(--pill); }

/* doua coloane cu liste recente */
.dash-cols { display: grid; gap: 18px; margin-bottom: 18px; }
@media (min-width: 820px) { .dash-cols { grid-template-columns: 1fr 1fr; } }
.dash-cols > .card { margin-bottom: 0; height: 100%; }

/* liste compacte (ultimele cereri / documente) */
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.mini-item:last-child { border-bottom: none; }
.mini-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-title { font-weight: 600; color: var(--ink); word-break: break-word; }
.mini-title .badge { margin-left: 6px; }
.mini-meta { font-size: .82rem; color: var(--muted); }

/* sub-taburi (client: Documente / Rapoarte) */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 14px; }
.subtabs a { padding: 10px 14px; font-weight: 600; font-size: .92rem; color: var(--soft); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.subtabs a:hover { color: var(--navy); }
.subtabs a.active { color: var(--navy-900); border-bottom-color: var(--gold); }

/* grafice SVG server-side */
.raport-charts { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 780px) { .raport-charts { grid-template-columns: 1fr 1fr; } }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px 10px; }
.chart-card-wide { margin-top: 4px; }
.chart-title { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.chart-svg { display: block; width: 100%; height: auto; }
.chart-svg .chart-grid { stroke: rgba(15,47,66,.10); stroke-width: 1; }
.chart-svg .chart-zero { stroke: rgba(15,47,66,.32); stroke-width: 1.2; }
.chart-svg .chart-axis { fill: var(--muted); font-family: var(--sans); font-size: 12px; }
.chart-svg .chart-legend { fill: var(--soft); font-family: var(--sans); font-size: 12.5px; }

.raport-sumar { margin-bottom: 18px; }

/* tabel raport (scroll orizontal pe mobil) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.raport-tabel { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.raport-tabel th, .raport-tabel td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.raport-tabel th:first-child, .raport-tabel td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.raport-tabel thead th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; border-bottom-color: var(--line); }
.raport-tabel tbody tr:hover td { background: var(--paper); }

/* ============================================================================
   Etapa 10 A - Comunicare contabil<->firma
   ============================================================================ */

/* badge numeric (nav + conversatii) */
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; height: 18px; line-height: 18px; text-align: center; font-size: .72rem; font-weight: 700; color: #fff; background: #c0563b; border-radius: var(--pill); vertical-align: middle; }
.dash-link .nav-badge { margin-left: 8px; }

/* indicator online */
.online-dot { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.online-dot .dot { width: 9px; height: 9px; border-radius: 50%; background: #b7bfc5; flex: 0 0 auto; }
.online-dot.is-online .dot { background: #2f9e5b; box-shadow: 0 0 0 3px rgba(47,158,91,.18); }
.online-dot.is-online { color: #2f7d5b; }

/* telefon in liste */
.lead-tel { font-weight: 600; text-decoration: none; }

/* cardul contabilului (portal firma) */
.contabil-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.cc-name { margin: 0 0 6px; font-size: 1.05rem; }
.cc-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.cc-phone svg { width: 22px; height: 22px; }
.cc-email { display: block; margin-top: 4px; color: var(--soft); font-size: .92rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.cc-callform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.cc-callform input[type="text"] { min-width: 180px; }
.cc-chat { display: inline-flex; align-items: center; gap: 6px; }
.cc-chat svg { width: 16px; height: 16px; }

/* solicitari de apel */
.apel-list { list-style: none; margin: 0; padding: 0; }
.apel-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.apel-item:last-child { border-bottom: none; }
.apel-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.apel-firma { font-weight: 600; color: var(--ink); }
.apel-tel { display: inline-flex; align-items: center; gap: 7px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.apel-tel svg { width: 20px; height: 20px; }
.apel-mesaj { color: var(--soft); font-size: .92rem; }
.apel-meta { font-size: .8rem; color: var(--muted); }
.apel-rezolvat { opacity: .72; }

/* chat */
.chat-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .chat-layout { grid-template-columns: 240px 1fr; } }
.chat-side { display: flex; flex-direction: column; gap: 4px; max-height: 520px; overflow-y: auto; }
.chat-side-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.chat-side-item:hover { background: var(--paper); }
.chat-side-item.active { background: var(--sand); border-color: var(--line); }
.chat-side-name { flex: 1; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { min-width: 0; }

.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-peer { display: flex; flex-direction: column; gap: 2px; }
.chat-peer-name { font-weight: 600; color: var(--navy-900); }
.chat-call { display: inline-flex; align-items: center; gap: 6px; }
.chat-call svg { width: 15px; height: 15px; }
.chat-log { height: 420px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(var(--paper), var(--paper)); }
.chat-empty { color: var(--muted); text-align: center; margin: auto; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; }
.chat-mine { align-self: flex-end; align-items: flex-end; }
.chat-theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 9px 13px; border-radius: 14px; font-size: .93rem; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-mine .chat-bubble { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-theirs .chat-bubble { background: var(--sand); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-time { font-size: .7rem; color: var(--muted); margin: 3px 4px 0; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; margin: 0; }
.chat-form button { align-self: stretch; }
.chat-main-full .chat-log { height: 460px; }

/* ============================================================================
   Etapa 10 B - Pagini programatice SEO
   ============================================================================ */
.seo-intro { max-width: 760px; color: var(--soft); font-size: 1.02rem; line-height: 1.7; margin: 0 0 22px; }
.seo-cta { margin: 26px 0; }
.seo-links { margin: 26px 0; }
.seo-links h2 { font-size: 1.15rem; margin: 0 0 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 13px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--pill); color: var(--navy); text-decoration: none; font-size: .88rem; transition: background var(--ease), border-color var(--ease); }
.chip:hover { background: var(--sand-2); border-color: var(--gold); }

/* ============================================================================
   Etapa 10 - Abonamente pe module
   ============================================================================ */
/* module in cardurile de plan (activ/inactiv) */
.plan-features .feat-off { color: var(--muted); }
.plan-features .feat-off span { color: var(--muted); }
.feat-x { display: inline-flex; width: 18px; min-width: 18px; justify-content: center; color: var(--muted); font-weight: 700; }

/* badge de tip informativ (Trial) in nav */
.nav-badge-info { background: var(--navy-600); }

/* chip-uri module in tabelul admin */
.mod-cell { white-space: nowrap; }
.mod-chip { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 5px; font-size: .72rem; font-weight: 700; margin-right: 3px; }
.mod-on { background: var(--ok-bg); color: var(--ok-tx); }
.mod-off { background: #ececec; color: #b3b3b3; }

/* formular compact de acordare abonament (per rand) */
.adm-grant { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0; }
.adm-grant select { padding: 6px 8px; font-size: .82rem; }

/* editor de planuri (admin) */
.plan-admin-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .plan-admin-grid { grid-template-columns: 1fr 1fr; } }
.plan-admin { margin-bottom: 0; }
.check-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }

/* ============================================================================
   Etapa 11 - Legal, cookies, contact
   ============================================================================ */
.legal-version { color: var(--muted); font-size: .85rem; margin: -6px 0 18px; }

/* buton stilizat ca link (Setari cookies in footer) */
.linklike { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .linklike { color: #8ba6b5; }
.site-footer .linklike:hover { color: #fff; }

/* banner cookies */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(93,58,26,.16); padding: 14px 0; }
.cookie-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.cookie-text { max-width: 620px; }
.cookie-text strong { display: block; margin-bottom: 2px; }
.cookie-text p { margin: 0; font-size: .88rem; color: var(--soft); }
.cookie-cats { display: flex; flex-wrap: wrap; gap: 8px 18px; width: 100%; }
.cookie-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* editor + comparare legal (admin) */
textarea.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .82rem; line-height: 1.5; }
.legal-compare { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 820px) { .legal-compare { grid-template-columns: 1fr 1fr; } }
.legal-compare-col { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; background: var(--paper); }
.legal-compare-body { max-height: 560px; overflow-y: auto; }
.legal-hist-form { margin-top: 6px; }

/* acord / nota legala */
.legal-scroll { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: var(--paper); }
.legal-note { background: var(--info-bg); border: 1px solid var(--info-bd); border-radius: var(--r-sm); padding: 12px 14px; margin: 0 0 14px; font-size: .9rem; }
.legal-note h2 { font-size: 1rem; margin: 0 0 6px; }
.legal-note ul { margin: 6px 0 0; padding-left: 18px; }

/* contact */
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-op { line-height: 1.7; }
.team-member { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }
.team-photo { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; flex: 0 0 auto; }
.team-name { font-weight: 600; margin: 0; }
.team-role { color: var(--gold-600); font-size: .9rem; margin: 2px 0; }
.team-bio { font-size: .88rem; margin: 4px 0 0; }

/* ============================================================================
   Articole (blog / ghiduri)
   ============================================================================ */
.art-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .art-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .art-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.art-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sh-sm); transition: transform var(--ease), box-shadow var(--ease); }
.art-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.art-card-img { aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.art-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-card-noimg { background: linear-gradient(135deg, var(--navy-900), var(--navy)); }
.art-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.art-cat { text-transform: uppercase; letter-spacing: .07em; font-size: .7rem; font-weight: 700; color: var(--gold-600); font-family: var(--sans); }
.art-card-title { font-size: 1.12rem; margin: 2px 0; color: var(--navy-900); }
.art-card-sub { color: var(--soft); font-size: .92rem; margin: 0; }
.art-card-date { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.chip-on { background: var(--gold-100); border-color: var(--gold); color: var(--navy-900); font-weight: 600; }

.article { margin-top: 6px; }
.art-meta { color: var(--muted); font-size: .9rem; margin: 4px 0 18px; }
.art-hero { margin: 0 0 22px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.art-hero img { width: 100%; height: auto; display: block; }
.article-body { font-size: 1.05rem; }
.art-related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.art-related h2 { font-size: 1.3rem; margin: 0 0 18px; }

/* ============================================================================
   Hub documente legale (layout lat: sidebar + continut de citit ~75ch)
   ============================================================================ */
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 900px) { .legal-grid { grid-template-columns: 252px 1fr; gap: 40px; } }
.legal-nav { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; box-shadow: var(--sh-sm); }
.legal-side-title { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 12px 8px; }
.legal-nav a { padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--soft); font-size: .92rem; font-weight: 500; }
.legal-nav a:hover { background: var(--paper); color: var(--navy); }
.legal-nav a.active { background: var(--gold-100); color: var(--navy-900); font-weight: 600; }
.legal-content { min-width: 0; }
.legal-prose { max-width: 75ch; }
.legal-prose h2 { margin-top: 30px; }
.legal-prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
.legal-prose th, .legal-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-prose thead th { background: var(--sand); }
.ropa-table td, .ropa-table th { font-size: .78rem; line-height: 1.45; white-space: normal; vertical-align: top; }
.ropa-table td { min-width: 120px; }
.legal-nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.legal-nav-toggle { display: block; width: 100%; padding: 11px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600; color: var(--navy-900); cursor: pointer; }
.legal-nav-check ~ .legal-nav { display: none; }
.legal-nav-check:checked ~ .legal-nav { display: flex; }
@media (min-width: 900px) {
    .legal-side { position: sticky; top: 84px; }
    .legal-nav-toggle { display: none; }
    .legal-nav-check ~ .legal-nav { display: flex; }
}

/* ============================================================================
   Admin - shell dedicat (topbar + sidebar dens, centru de comanda)
   ============================================================================ */
.adm-body { margin: 0; background: #ffffff; color: var(--ink); }
.adm-nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.adm-side { position: fixed; top: 0; left: 0; bottom: 0; width: 238px; background: var(--navy-900); color: #c6d4dd; display: flex; flex-direction: column; z-index: 60; overflow-y: auto; }
.adm-brand { padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-brand-link { color: #fff; font-family: var(--serif); font-weight: 600; font-size: 1.06rem; text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.adm-brand-link span { color: var(--gold-300); font-size: .68rem; font-weight: 600; letter-spacing: .03em; margin-top: 1px; }
.adm-nav { flex: 1; padding: 6px 10px 14px; }
.adm-nav-group { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: #6f8a9b; padding: 14px 10px 5px; }
.adm-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: #c6d4dd; text-decoration: none; font-size: .91rem; }
.adm-link > span:first-child { flex: 1; }
.adm-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.adm-link.active { background: var(--gold); color: #fff; }
.adm-main { background: #ffffff; }
.adm-link .nav-badge { margin-left: 8px; }
.adm-side-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.adm-side-foot a { color: #9fb4c1; text-decoration: none; font-size: .84rem; }
.adm-side-foot a:hover { color: #fff; }
.adm-main-wrap { margin-left: 238px; min-height: 100vh; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 22px; }
.adm-burger { display: none; width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.adm-burger span { display: block; width: 18px; height: 2px; background: var(--navy-900); border-radius: 2px; }
.adm-top-title { display: none; font-weight: 600; color: var(--navy-900); }
.adm-top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.adm-top-user { font-size: .85rem; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-logout { margin: 0; }
.adm-main { flex: 1; padding: 22px; max-width: 1600px; width: 100%; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-h1 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy-900); margin: 0; }
.adm-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-badge-wait { background: #c58917; }
.nav-badge-alert { background: #c0392b; }

/* utilitare admin */
.adm-cards { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 20px; }
@media (min-width: 720px) { .adm-cards-2 { grid-template-columns: 1fr 1fr; } }
.adm-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--sh-sm); }
.adm-panel h2 { font-size: 1.05rem; margin: 0 0 12px; color: var(--navy-900); }
.adm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.adm-panel-head h2 { margin: 0; }
.adm-empty { color: var(--muted); font-size: .92rem; padding: 8px 0; }
.adm-pill { display: inline-block; padding: 2px 9px; border-radius: var(--pill); font-size: .74rem; font-weight: 700; letter-spacing: .01em; border: 1px solid transparent; }
.adm-pill-ok { background: var(--ok-bg); color: var(--ok-tx); }
.adm-pill-wait { background: var(--warn-bg); color: var(--warn-tx); }
.adm-pill-off { background: #ececec; color: #7a7a7a; }
.adm-pill-err { background: var(--err-bg); color: var(--err-tx); }
.adm-pill-info { background: var(--info-bg); color: var(--navy); }
.adm-table td .muted, .adm-table .sub { color: var(--muted); font-size: .82rem; }
.adm-table a { color: var(--navy); font-weight: 600; text-decoration: none; }
.adm-table a:hover { text-decoration: underline; }
.adm-count-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--soft); margin-bottom: 8px; }
.adm-deadline { font-weight: 700; }
.adm-deadline.warn { color: var(--warn-tx); }
.adm-deadline.over { color: var(--err-tx); }
.adm-log { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .78rem; line-height: 1.5; background: var(--navy-900); color: #d7e2ea; border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; max-height: 520px; }
.adm-faq details { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 14px; margin-bottom: 8px; background: var(--surface); }
.adm-faq summary { cursor: pointer; font-weight: 600; padding: 8px 0; color: var(--navy-900); }
.adm-faq details[open] summary { border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.adm-faq p, .adm-faq ul { font-size: .92rem; color: var(--soft); }
.adm-funnel { display: flex; flex-direction: column; gap: 8px; }
.adm-funnel-row { display: grid; grid-template-columns: 190px 1fr 60px; align-items: center; gap: 10px; font-size: .9rem; }
.adm-funnel-bar { height: 22px; background: var(--navy); border-radius: 6px; min-width: 2px; }
.adm-funnel-row .fn-val { text-align: right; font-weight: 700; color: var(--navy-900); }
@media (max-width: 560px) { .adm-funnel-row { grid-template-columns: 130px 1fr 46px; } }

@media (max-width: 980px) {
    .adm-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.35); }
    .adm-nav-check:checked ~ .adm-side { transform: translateX(0); }
    .adm-main-wrap { margin-left: 0; }
    .adm-burger { display: inline-flex; }
    .adm-top-title { display: block; }
}

/* ============================================================================
   Widget de accesibilitate (propriu, fara librarii). #a11y-root e in afara
   wrapperului #a11y-content, deci NU e afectat de filtrele de culoare.
   ============================================================================ */
#a11y-content { display: flex; flex-direction: column; min-height: 100vh; }
#a11y-root { --a11y-fab-bottom: 20px; }

/* link "sari la continut" (bypass blocks) - vizibil doar la focalizare din tastatura */
.skip-link { position: absolute; left: 10px; top: -48px; z-index: 2147483646; background: var(--navy-900); color: #fff; padding: 9px 16px; border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 600; transition: top .15s ease; }
.skip-link:focus { top: 0; }

/* eticheta de grup (ex. set de checkbox-uri), la fel ca .field label */
.field-lbl { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }

/* buton flotant */
.a11y-fab {
    position: fixed; right: 20px; bottom: var(--a11y-fab-bottom, 20px);
    width: 52px; height: 52px; border-radius: 50%;
    background: #c24e00; color: #fff; border: 2px solid #fff;
    box-shadow: 0 4px 16px rgba(93,58,26,.34);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2147483000; padding: 0;
}
.a11y-fab:hover { background: #a83f00; }
.a11y-fab:focus-visible { outline: 3px solid #c24e00; outline-offset: 3px; }
.a11y-ico { display: block; }

/* panou */
.a11y-panel {
    position: fixed; right: 20px; bottom: calc(var(--a11y-fab-bottom, 20px) + 64px);
    width: 304px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px); overflow-y: auto;
    background: #fff; color: #1d2b34; border: 1px solid #d4dbe1; border-radius: 12px;
    box-shadow: 0 12px 44px rgba(0,0,0,.26); padding: 14px; z-index: 2147483001;
    font-family: Arial, 'Segoe UI', system-ui, sans-serif; font-size: 15px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.a11y-panel-head strong { font-size: 16px; color: #0f2f42; }
.a11y-close { width: 32px; height: 32px; border: 1px solid #d4dbe1; border-radius: 8px; background: #f4f6f8; font-size: 20px; line-height: 1; cursor: pointer; color: #33434e; }
.a11y-close:hover { background: #e8edf1; }
.a11y-decl { display: block; margin: 0 0 12px; font-size: 13px; color: #1b4965; text-decoration: underline; }
.a11y-fontrow { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }
.a11y-fontlbl { flex: 1; font-weight: 600; }
.a11y-fontbtn { min-width: 42px; height: 38px; border: 1px solid #cbd3da; border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; font-size: 15px; color: #1d2b34; }
.a11y-fontbtn:hover { background: #f0f3f6; }
.a11y-fsval { min-width: 48px; text-align: center; font-weight: 700; }
.a11y-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.a11y-opt { padding: 10px 8px; border: 1px solid #cbd3da; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; text-align: center; color: #26333c; }
.a11y-opt:hover { background: #f0f3f6; }
.a11y-opt.is-on { background: #1b4965; border-color: #1b4965; color: #fff; }
.a11y-reset { width: 100%; padding: 11px; border: 1px solid #cbd3da; border-radius: 8px; background: #f4f6f8; cursor: pointer; font-weight: 600; color: #1d2b34; }
.a11y-reset:hover { background: #e8edf1; }
.a11y-panel button:focus-visible, .a11y-decl:focus-visible { outline: 3px solid #c24e00; outline-offset: 2px; }

/* masca de lectura */
.a11y-mask { position: fixed; left: 0; right: 0; background: rgba(0,0,0,.72); pointer-events: none; z-index: 2147482000; }
.a11y-mask-top { top: 0; height: 0; }
.a11y-mask-bottom { top: 0; bottom: 0; }
.a11y-mask[hidden] { display: none; }

/* efectele pe continut */
#a11y-content.a11y-links a {
    text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 2px !important;
    background: rgba(255, 214, 0, .30) !important; outline: 1px solid rgba(120, 90, 0, .45); font-weight: 600;
}
#a11y-content.a11y-noimg img { visibility: hidden !important; }
#a11y-content.a11y-readable, #a11y-content.a11y-readable * { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
    .a11y-fab, .a11y-opt, .a11y-close, .a11y-reset, .a11y-fontbtn { transition: none !important; }
}

/* ============================================================================
   e-Factura (vizualizare factura + pasi conectare SPV)
   ============================================================================ */
.ef-steps { margin: 10px 0 16px; padding-left: 20px; line-height: 1.75; }
.ef-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.ef-head > div { background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ef-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.ef-cif { color: var(--soft); font-size: .85rem; }
.ef-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 12px; color: var(--soft); }
.ef-table td, .ef-table th { white-space: normal; }
.ef-tot { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.ef-tot > div { display: flex; gap: 24px; justify-content: space-between; min-width: 280px; }
.ef-tot span { color: var(--soft); }
.ef-tot-big { border-top: 2px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 1.1rem; }
.ef-tot-big strong { color: var(--navy-900); }
@media (max-width: 560px) { .ef-head { grid-template-columns: 1fr; } }

/* ============================================================================
   Inchiderea cercului user<->firma: alegerea contabilului + status
   ============================================================================ */
.choose-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.choose-title { font-weight: 600; margin: 0 0 8px; color: var(--navy-900); }
.choose-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.choose-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; }
.choose-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.choose-name .muted { font-size: .9rem; }
.choose-profil { font-size: .85rem; }
.choose-form { margin: 0; }
.choose-note { color: var(--muted); font-size: .82rem; margin: 10px 0 0; }
.choose-status { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.choose-done { margin: 0; color: var(--ok-tx); font-weight: 600; }
.choose-wait { margin: 0; color: var(--soft); }

.lead-chosen { border-left: 3px solid var(--gold); background: var(--gold-100); }
.badge-chosen { background: var(--gold); color: #fff; border-color: var(--gold); }
.lead-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .92rem; }
.lead-closed { color: var(--muted); font-size: .85rem; font-style: italic; margin-top: 8px; }

/* badge-uri de plata in footer */
.footer-pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.footer-pay-lbl { font-size: .78rem; color: #8ba6b5; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; background: #fff; border-radius: 6px; text-decoration: none; }
.pay-badge img { display: block; height: auto; max-height: 22px; width: auto; }
.pay-text { font-size: .8rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }

/* ============================================================================
   Calendar fiscal
   ============================================================================ */
.cal-nav { display: inline-flex; align-items: center; gap: 10px; }
.cal-luna { font-weight: 600; color: var(--navy-900); text-transform: capitalize; min-width: 130px; text-align: center; }
.cal-sumar { display: flex; gap: 10px; flex-wrap: wrap; }
.cal-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--pill); font-size: .85rem; font-weight: 700; }
.cal-chip-todo { background: var(--info-bg); color: var(--navy); }
.cal-chip-done { background: var(--ok-bg); color: var(--ok-tx); }
.cal-chip-late { background: var(--err-bg); color: var(--err-tx); }

.cal-day { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; overflow: hidden; }
.cal-day-head { background: var(--sand); padding: 8px 14px; font-weight: 600; color: var(--navy-900); font-size: .92rem; border-bottom: 1px solid var(--line); }
.cal-day-today { border-color: var(--gold); }
.cal-day-today .cal-day-head { background: var(--gold-100); }
.cal-day-past .cal-day-head { color: var(--muted); }
.cal-tag { display: inline-block; background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: var(--pill); margin-left: 6px; vertical-align: middle; }

.cal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.cal-row:last-child { border-bottom: none; }
.cal-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-client { font-weight: 600; color: var(--navy-900); }
.cal-obl { font-size: .88rem; color: var(--soft); }
.cal-cod { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; background: var(--sand-2); padding: 1px 6px; border-radius: 4px; color: var(--navy); }
.cal-row-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cal-status-lbl { font-size: .85rem; color: var(--soft); min-width: 74px; }
.cal-late-tag, .cal-firma-st.st-late { color: var(--err-tx); font-weight: 700; }
.cal-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.cal-row.status-depusa { background: var(--ok-bg); }
.cal-row.status-depusa .cal-client { text-decoration: none; }
.cal-row.status-depusa .cal-status-lbl { color: var(--ok-tx); font-weight: 600; }
.cal-row.status-nu_e_cazul { opacity: .6; }
.cal-row.is-late { border-left: 3px solid var(--err-tx); }
.cal-row.is-late .cal-status-lbl { color: var(--err-tx); }
/* butoanele contextuale */
.cal-row.status-depusa .cal-act[data-status="depusa"],
.cal-row.status-nu_e_cazul .cal-act[data-status="nu_e_cazul"] { display: none; }
.cal-row.status-de_depus .cal-reopen { display: none; }

/* profil fiscal (checkboxuri) */
.fiscal-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 760px) { .fiscal-grid { grid-template-columns: 1fr 1fr; } }
.fiscal-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.fiscal-opt input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--navy); }
.fiscal-opt span { display: flex; flex-direction: column; gap: 2px; }
.fiscal-meta { font-size: .8rem; color: var(--muted); }

/* vedere firma (read-only) */
.cal-firma-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cal-firma-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.cal-firma-obl { flex: 1 1 240px; }
.cal-firma-scad { color: var(--muted); font-size: .88rem; }
.cal-firma-st { font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: var(--pill); }
.cal-firma-st.st-done { background: var(--ok-bg); color: var(--ok-tx); }
.cal-firma-st.st-todo { background: var(--info-bg); color: var(--navy); }
.cal-firma-st.st-na { background: #ececec; color: #7a7a7a; }
.cal-firma-st.st-late { background: var(--warn-bg); color: var(--warn-tx); }

/* ============================================================================
   Contracte
   ============================================================================ */
.ct-page { max-width: 1000px; margin: 0 auto; } /* pagina contract = latime confortabila de citit */
.ct-doc { max-width: 80ch; }
.ct-doc h2 { font-size: 1.3rem; }
.ct-doc h3 { font-size: 1.05rem; margin-top: 20px; }
.ct-temei { font-size: .85rem; color: var(--muted); font-style: italic; }
.ct-sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.ct-sign > div { flex: 1 1 200px; }
.ct-print-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.firma-sign-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.firma-sign-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); }
.firma-sign-list li span { font-weight: 600; }

@media print {
    .site-header, .site-footer, .cookie-banner, #a11y-root, .ct-noprint, .dash-side, .dash-nav-toggle,
    .adm-side, .adm-top, .skip-link, .nav-toggle, .subtabs { display: none !important; }
    body, .adm-body, .main, #a11y-content { background: #fff !important; }
    .card, .ct-print-area { box-shadow: none !important; border: none !important; margin: 0 0 10px !important; padding: 0 !important; }
    .ct-doc { max-width: none; }
}

/* ============================================================================
   Extrase bancare
   ============================================================================ */
.ex-totaluri { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.ex-tot { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ex-tot-lbl { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.ex-tot-val { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ex-tot-in { border-left: 3px solid #1c6b39; }
.ex-tot-in .ex-tot-val { color: #1c6b39; }
.ex-tot-out { border-left: 3px solid #b23b3b; }
.ex-tot-out .ex-tot-val { color: #b23b3b; }
.ex-tot-net { border-left: 3px solid var(--navy); }
.ex-tot-sold { font-size: .95rem; font-weight: 600; }

.ex-table td, .ex-table th { vertical-align: top; }
.ex-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-debit { color: #b23b3b; font-weight: 600; }
.ex-credit { color: #1c6b39; font-weight: 600; }
.ex-desc { min-width: 240px; }
.ex-cp { display: block; font-size: .8rem; color: var(--muted); }
.ex-ref { display: block; font-size: .78rem; color: var(--muted); word-break: break-all; }
.ex-cat { min-width: 170px; }
.ex-cat-select { width: 100%; max-width: 210px; font-size: .85rem; }
.ex-cat-select.is-saving { opacity: .6; }
.ex-cat-select.is-saved { border-color: #1c6b39; }
.ex-cat-select.is-error { border-color: #b23b3b; }
.ex-auto { display: inline-block; margin-left: 6px; font-size: .66rem; color: var(--muted); background: var(--sand); border-radius: 3px; padding: 1px 5px; vertical-align: middle; }
.ex-diag { background: var(--navy-900); color: #e8eef2; padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; font-size: .8rem; line-height: 1.5; white-space: pre; }
.ex-ghid { margin-top: 16px; }
.ex-ghid summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.ex-ghid-list { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.ex-filters .field { min-width: 150px; }

/* ============================================================================
   Ajutor / ghid (contabil + firma + admin) - mecanica comuna
   ============================================================================ */
.ajutor-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ajutor-input { flex: 1 1 260px; max-width: 520px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.ajutor-input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.ajutor-count { font-size: .82rem; color: var(--muted); }
.ajutor-noresult { color: var(--muted); padding: 6px 0 16px; }
.ajutor-group { margin-bottom: 18px; }
.ajutor-grup-titlu { font-size: 1.05rem; margin: 0 0 6px; }
.ajutor-item { border-bottom: 1px solid var(--line-2); }
.ajutor-item:last-child { border-bottom: none; }
.ajutor-item > summary { cursor: pointer; padding: 12px 2px; font-weight: 600; list-style: none; display: flex; align-items: baseline; gap: 8px; }
.ajutor-item > summary::-webkit-details-marker { display: none; }
.ajutor-item > summary::before { content: "+"; color: var(--navy); font-weight: 700; width: 1em; flex: none; }
.ajutor-item[open] > summary::before { content: "\2212"; }
.ajutor-item[open] > summary { color: var(--navy); }
.ajutor-a { padding: 0 2px 14px 20px; color: var(--ink, #24303a); line-height: 1.6; }
.ajutor-a p { margin: 0 0 8px; }
/* punte contextuala discreta catre ghid */
.ajutor-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--navy); margin-top: 10px; }
.ajutor-hint a { text-decoration: underline; }

/* ============================================================================
   Sarcini
   ============================================================================ */
.sc-grup { margin-bottom: 16px; }
.sc-grup-urgente { border-left: 3px solid #b23b3b; }
.sc-count { display: inline-block; min-width: 20px; padding: 0 6px; font-size: .78rem; background: var(--sand); border-radius: var(--pill); color: var(--muted); vertical-align: middle; }
.sc-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; transition: opacity .25s ease, transform .25s ease; }
.sc-item.is-inlucru { border-color: var(--info-bd); background: var(--info-bg); }
.sc-item.is-saving { opacity: .6; }
.sc-item.is-done { opacity: 0; transform: translateX(12px); }
.sc-item.is-error { border-color: #b23b3b; }
.sc-ico { flex: none; color: var(--navy); display: inline-flex; margin-top: 2px; }
.sc-ico .ico { width: 20px; height: 20px; }
.sc-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-titlu { font-weight: 600; }
.sc-state, .sc-req, .sc-urg { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 3px; vertical-align: middle; }
.sc-state { background: var(--info-bg); color: var(--info-tx); }
.sc-req { background: var(--warn-bg); color: var(--warn-tx); }
.sc-urg { background: #f6dcdc; color: #b23b3b; }
.sc-meta { font-size: .82rem; color: var(--muted); }
.sc-late { color: #b23b3b; font-weight: 600; }
.sc-due { color: var(--navy); }
.sc-desc { font-size: .88rem; color: var(--ink, #2a343c); }
.sc-cere { margin-top: 6px; }
.sc-cere > summary { cursor: pointer; font-size: .85rem; color: var(--navy); font-weight: 600; width: max-content; }
.sc-cere-form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.sc-cere-form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.sc-actiuni { flex: none; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.sc-actiuni .btn { white-space: nowrap; }
.sc-auto > summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.sc-auto-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.sc-auto-ok { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 3px; background: var(--ok-bg); color: var(--ok-tx); }

/* cardul firmei: "De la contabilul tau" */
.sc-firma-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sc-firma-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-sm); }
.sc-firma-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-firma-titlu { font-weight: 600; }
.sc-firma-mesaj { font-size: .88rem; color: var(--ink, #2a343c); white-space: pre-line; }
.sc-firma-cand { font-size: .8rem; color: var(--muted); }

@media (max-width: 620px) {
    .sc-item { flex-wrap: wrap; }
    .sc-actiuni { flex-direction: row; flex-wrap: wrap; width: 100%; }
}

/* ============================================================================
   Newsletter
   ============================================================================ */
/* formular discret din footer */
.footer-newsletter { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.nl-foot-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 24px; }
.nl-foot-text { flex: 1 1 240px; }
.nl-foot-text strong { display: block; color: #fff; }
.nl-foot-text span { font-size: .85rem; color: rgba(255,255,255,.7); }
.nl-foot-row { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.nl-foot-fields { display: flex; gap: 8px; }
.nl-foot-fields input { flex: 1 1 auto; min-width: 0; padding: 9px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-sm); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.nl-foot-fields input::placeholder { color: rgba(255,255,255,.5); }
.nl-foot-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: rgba(255,255,255,.7); }
.nl-foot-consent input { margin-top: 3px; flex: none; }
.nl-foot-consent a { color: #fff; text-decoration: underline; }

/* CTA de pe pagina de articole */
.nl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.nl-cta-text { flex: 1 1 280px; }
.nl-cta-text h2 { margin: 0 0 6px; }
.nl-cta-text p { margin: 0; color: var(--muted); }
.nl-cta-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.nl-cta-row { display: flex; gap: 8px; }
.nl-cta-row input { flex: 1 1 auto; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; }
.nl-cta-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.nl-cta-consent input { margin-top: 3px; flex: none; }

/* previzualizare continut in admin */
.nl-preview { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 18px; background: #fff; line-height: 1.6; }
.nl-preview h2 { font-size: 1.25rem; margin: 0 0 8px; }
.nl-preview p { margin: 0 0 10px; }

/* ============================================================================
   ONRC (verificare firme + dosare)
   ============================================================================ */
.lookup-row { display: flex; gap: 8px; align-items: center; }
.lookup-row input { flex: 1 1 auto; min-width: 0; }
.lookup-row .btn { flex: none; }
.lookup-result { font-size: .85rem; margin: 6px 0 0; color: var(--muted); min-height: 1.1em; }
.lookup-result.is-ok { color: #1c6b39; }
.lookup-result.is-warn { color: #b23b3b; }

.onrc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; margin: 12px 0; }
.onrc-facts > div { display: flex; flex-direction: column; gap: 2px; }
.onrc-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.onrc-stare { font-weight: 700; }
.onrc-stare-activa { color: #1c6b39; }
.onrc-stare-inactiva, .onrc-stare-radiata { color: #b23b3b; }

.onrc-check { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.onrc-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; background: #fff; }
.onrc-item.is-done { border-color: var(--ok-bd); background: var(--ok-bg); }
.onrc-item-head { display: flex; align-items: flex-start; gap: 8px; }
.onrc-check-mark { flex: none; width: 20px; color: #1c6b39; display: inline-flex; margin-top: 1px; }
.onrc-item-label { font-weight: 600; }
.onrc-item-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .9rem; }
.onrc-item-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.onrc-attach-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.onrc-attach-form select { max-width: 260px; }

/* ============================================================================
   Conectori de facturare
   ============================================================================ */
.conector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 18px; }
.conector-card { display: flex; flex-direction: column; }
.conector-connect { margin-top: 10px; }
.conector-connect > summary { cursor: pointer; font-weight: 600; color: var(--gold-600); width: max-content; }
.conector-connect .field { margin-top: 10px; }
