/* =========================================================
   Cabinet Avocat Badea — Editorial 2026
   Paleta: bone / ink / oxblood. Font: Fraunces + Inter.
   ========================================================= */

:root {
    --bone:        #FAF8F3;
    --bone-2:      #F3EFE6;
    --paper:       #FFFFFF;
    --ink:         #0B0B0C;
    --ink-soft:    #1C1C1F;
    --muted:       #6B6B6E;
    --muted-2:     #97979B;
    --line:        #E7E2D5;
    --line-strong: #D6D0BF;
    --accent:      #6B1416;
    --accent-2:    #4D0E10;
    --accent-soft: #F1E1E1;
    --gold:        #B08A3E;
    --green:       #2E6B3F;
    --red:         #9A2A2A;

    --radius:     14px;
    --radius-sm:  10px;
    --radius-lg:  22px;
    --radius-pill: 999px;

    --shadow-1: 0 1px 2px rgba(11,11,12,.04), 0 1px 1px rgba(11,11,12,.02);
    --shadow-2: 0 4px 18px rgba(11,11,12,.06);
    --shadow-3: 0 12px 40px rgba(11,11,12,.10);

    --font-display: 'Fraunces', 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --container:   1200px;
    --container-wide: 1360px;
    --container-narrow: 840px;

    --ease: cubic-bezier(.2,.7,.2,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

/* Elimina highlight-ul albastru de tap pe mobile (iOS/Android) + selection highlight albastru pe butoane */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
a, button, [role="button"], input[type="submit"], input[type="button"], label, .btn {
    -webkit-tap-highlight-color: transparent;
}
/* Cand un element interactiv primeste focus prin keyboard, pastram outline accesibil;
   la focus prin click/tap il ascundem ca nu e nevoie de el. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    max-width: 100%;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Accentuează mai clar textul ingrosat vs. normal — contrast tipografic mai puternic */
strong, b { font-weight: 650; color: var(--ink); }
p strong, li strong, .text-muted strong { font-weight: 650; }

/* Skip to content — accessibility + SEO */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 100000;
    padding: 10px 20px;
    background: var(--ink);
    color: var(--bone);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
html { overflow-x: clip; }
body { overflow-x: clip; width: 100%; }

img, svg { max-width: 100%; display: block; }

a {
    color: var(--ink);
    text-decoration: none;
    transition: color .18s var(--ease), opacity .18s var(--ease);
}
a:hover { color: var(--accent); }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 48px 0;
}

::selection { background: var(--ink); color: var(--bone); }

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 .4em;
    line-height: 1.05;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 350; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 380; }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 420; }
h4 { font-size: 1.15rem; font-weight: 500; font-family: var(--font-body); letter-spacing: -0.005em; }
h5 { font-size: .95rem; font-weight: 600; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

p { margin: 0 0 1em; }
small, .small { font-size: .85rem; color: var(--muted); }

.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 50;
    letter-spacing: -0.028em;
    line-height: 0.96;
}
.italic { font-style: italic; }
.serif { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .76rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}
/* Hero eyebrow: linie simetrica pentru centrare vizuala perfecta */
.hero .eyebrow,
.page-contact .section-hero .grid > div:first-child .eyebrow {
    justify-content: center;
}
.hero .eyebrow::after,
.page-contact .section-hero .grid > div:first-child .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    display: inline-block;
}

/* Layout — centered on ultra-wide screens */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-hero {
    padding: 120px 28px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.section-hero .display,
.section-hero h1 { margin-left: auto; margin-right: auto; }
.section-hero .lead { margin-left: auto; margin-right: auto; }
.section-hero .audience-switch { margin: 0 auto; }
.section-hero .grid { text-align: left; }

/* Decorative glow behind hero sections */
.section-hero::after,
.hero::after {
    content: '';
    position: absolute;
    width: clamp(320px, 50vw, 700px);
    height: clamp(320px, 50vw, 700px);
    background: radial-gradient(circle, rgba(107,20,22,0.045) 0%, transparent 70%);
    border-radius: 50%;
    top: -20%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
}
.section-hero > *,
.hero > * { position: relative; z-index: 1; }

/* Section intro — centered heading block */
.section-intro {
    text-align: center;
    margin-bottom: 48px;
}
.section-intro p {
    margin-left: auto;
    margin-right: auto;
}
.section-intro::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 28px auto 0;
    border-radius: 2px;
}

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.flex-gap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gap-sm { gap: 8px; }
.gap-lg { gap: 24px; }

.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.stack > * + * { margin-top: var(--stack, 16px); }
.stack-sm { --stack: 8px; }
.stack-lg { --stack: 32px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .94rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .18s var(--ease);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn-primary {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bone);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.btn-accent {
    background: var(--accent);
    color: var(--bone);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--bone);
    box-shadow: var(--shadow-2);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--bone-2);
}
.btn-sm { padding: 10px 16px; font-size: .85rem; }
.btn-lg { padding: 18px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* Tags/pills */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--muted);
    background: var(--paper);
}
.tag-dot::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.tag-accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.tag-green  { color: var(--green); border-color: #D5E6D8; background: #EEF5EF; }
.tag-gold   { color: var(--gold); border-color: #EADFBE; background: #F8F1DC; }
.tag-red    { color: var(--red); border-color: #E9C9C9; background: #F7E6E6; }
.tag-ink    { color: var(--bone); border-color: var(--ink); background: var(--ink); }

/* Header (public) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(250, 248, 243, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), background .2s var(--ease);
    padding-inline: 28px;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.brand-mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bone);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text strong {
    font-family: var(--font-display);
    font-weight: 450;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.brand-text span {
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 34px;
}
.nav a {
    font-size: .92rem;
    font-weight: 450;
    color: var(--ink-soft);
    position: relative;
}
.nav a:hover { color: var(--accent); }
.nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -8px;
    height: 1px;
    background: var(--ink);
}

.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-toggle span {
    width: 18px; height: 1.5px; background: var(--ink);
    position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }

/* Hero (landing) — editorial bold */
.hero {
    padding: 70px 28px 50px;
    position: relative;
    text-align: center;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Nori albi plutitori in spatele hero-ului — orizontali, lati, albi */
.page-home .hero::before,
.page-home .hero::after {
    content: "";
    position: absolute;
    inset: -10% -25%; /* extins mult pe orizontala ca norii sa aiba unde pluti */
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
/* Stratul A — nori albi lati, directia stanga -> dreapta */
.page-home .hero::before {
    background:
        radial-gradient(58% 22% at 20% 30%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(52% 18% at 72% 22%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(64% 20% at 45% 78%, rgba(255, 255, 255, .9)  0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(50px);
    opacity: 1;
    animation: heroCloudsA 42s linear infinite;
}
/* Stratul B — nori albi lati, directia dreapta -> stanga, mai lenti */
.page-home .hero::after {
    background:
        radial-gradient(60% 20% at 80% 60%, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(50% 16% at 25% 68%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(56% 18% at 55% 15%, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    opacity: .9;
    animation: heroCloudsB 58s linear infinite;
}
.hero > * { position: relative; z-index: 1; }
/* Miscare orizontala continua (left-right) — fara scale sau rotatie pe vertical */
@keyframes heroCloudsA {
    0%   { transform: translate3d(-12%, 0, 0); }
    100% { transform: translate3d(12%, 0, 0); }
}
@keyframes heroCloudsB {
    0%   { transform: translate3d(14%, 0, 0); }
    100% { transform: translate3d(-14%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .page-home .hero::before,
    .page-home .hero::after { animation: none; }
}
@media (max-width: 720px) {
    .page-home .hero::before { filter: blur(40px); }
    .page-home .hero::after  { filter: blur(50px); }
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: end;
}
.hero h1,
.hero .hero-display {
    font-size: clamp(2.5rem, 6.4vw, 5.6rem);
    font-weight: 360;
    letter-spacing: -0.04em;
    line-height: .96;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}
.hero h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.hero .lead {
    font-size: 1.18rem;
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}
.hero .lead strong {
    color: var(--ink);
    font-weight: 650;
}
.hero .flex-gap {
    justify-content: center;
}
.hero-cta { margin-top: 32px; }

/* Hero stats — 2 sau 4 coloane (lățimi egale, centrat) */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, max-content));
    gap: 0 80px;
    height: 88px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 36px;
    justify-content: center;
    align-items: stretch;
}
.hero-meta-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.hero-meta-4 > div + div {
    border-left: 1px solid var(--line);
}
.hero-meta > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 0 12px;
}
.hero-meta > div strong {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    height: 28px;
}
.hero-meta > div strong .unit {
    font-size: 1.05rem;
    font-weight: 400;
    margin-left: 1px;
    color: var(--muted);
}
.hero-meta > div span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    line-height: 1.1;
    white-space: nowrap;
}
.hero-meta .check-stat {
    color: var(--accent);
    align-items: center;
}
.hero-meta .check-stat svg {
    width: 30px;
    height: 30px;
}


/* Billing toggle (Lunar / Anual -20%) */
.billing-toggle-wrap {
    display: flex;
    justify-content: center;
    margin: 28px 0 0;
    width: 100%;
}
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(11,11,12,.02);
}
.billing-toggle button {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .86rem;
    font-weight: 500;
    color: var(--muted);
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.billing-toggle button:hover { color: var(--ink); }
.billing-toggle button.active {
    background: var(--ink);
    color: var(--bone);
}
.billing-toggle-save {
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(107, 20, 22, .12);
    color: var(--accent);
}
.billing-toggle button.active .billing-toggle-save {
    background: rgba(232, 176, 178, .22);
    color: #E8B0B2;
}
.plan-yearly-note {
    font-style: italic;
}

/* Documents page (client/documents.php) — upload form + table layout */
.docs-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 30px;
}
@media (max-width: 880px) {
    .docs-layout { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================
   "Cum lucram" — proces in 5 pasi (ADHD-friendly)
   ============================================ */
.how-section { padding: 110px 0 90px; }
.how-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.how-step {
    --focus: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    transform-origin: center;
    will-change: transform, opacity, filter;
}
/* Specificitate mai mare decat .reveal.in (0,2,0) ca opacity sa fie controlata
   continuu de --focus, nu suprascrisa de .reveal.in { opacity: 1 }. */
.how-step,
.how-step.reveal.in {
    opacity: calc(0.18 + var(--focus) * 0.82);
    transform: scale(calc(0.93 + var(--focus) * 0.08)) translateY(calc(var(--focus) * -12px));
    filter: saturate(calc(0.2 + var(--focus) * 0.8)) blur(calc((1 - var(--focus)) * 1.2px));
    border-color: rgba(11, 11, 12, calc(0.06 + var(--focus) * 0.15));
    box-shadow:
        0 calc(var(--focus) * 42px) calc(var(--focus) * 80px) calc(var(--focus) * -28px)
        rgba(11, 11, 12, calc(var(--focus) * 0.32));
    transition: border-color .4s var(--ease);
}
.how-step .how-step-num {
    transform: scale(calc(0.92 + var(--focus) * 0.12));
    background: linear-gradient(135deg,
        var(--bone-2) 0%,
        rgba(241, 225, 225, calc(var(--focus) * 0.85)) 100%);
    transition: background .5s var(--ease);
}
.how-step:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) {
    .how-step,
    .how-step.reveal.in {
        --focus: 1;
        transform: none;
        filter: none;
        box-shadow: none;
    }
}
.how-step-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bone-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.how-step-body h3 {
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--ink);
}
.how-step-body p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.5;
}
.how-step-body p strong {
    color: var(--ink);
    font-weight: 650;
}
@media (max-width: 720px) {
    .how-section { padding: 56px 0; }
    .how-step { padding: 18px 20px; gap: 16px; }
    .how-step-num { width: 44px; height: 44px; font-size: 1.25rem; }
    .how-step-body h3 { font-size: 1.3rem; }
    .how-step-body p { font-size: .92rem; }
}

/* ============================================
   Dovezi sociale — carduri scrollabile orizontal
   ============================================ */
.proof-section { padding-bottom: 80px; }
.proof-scroller {
    margin-top: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    /* scroll-padding asigura ca primul card NU se lipeste de marginea stanga
       dupa snap — lasa o margine vizibila pana la edge-ul ecranului */
    scroll-padding-left: max(32px, calc((100vw - 1200px) / 2 + 28px));
    -webkit-overflow-scrolling: touch;
    padding: 8px 28px 32px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.proof-scroller::-webkit-scrollbar { height: 8px; }
.proof-scroller::-webkit-scrollbar-track { background: transparent; }
.proof-scroller::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.proof-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* Margine stanga mai ampla pentru a sugera continuarea orizontala */
    padding-left: max(32px, calc((100vw - 1200px) / 2 + 28px));
    padding-right: max(28px, calc((100vw - 1200px) / 2));
}
.proof-card {
    --focus: 0;
    scroll-snap-align: start;
    flex: 0 0 340px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform, opacity, filter;
    opacity: calc(0.4 + var(--focus) * 0.6);
    transform: scale(calc(0.955 + var(--focus) * 0.045)) translateY(calc(var(--focus) * -8px));
    filter: saturate(calc(0.55 + var(--focus) * 0.45));
    box-shadow:
        0 calc(var(--focus) * 28px) calc(var(--focus) * 56px) calc(var(--focus) * -32px)
        rgba(11, 11, 12, calc(var(--focus) * 0.28));
}
.proof-card:hover { border-color: var(--line-strong); }
@media (prefers-reduced-motion: reduce) {
    .proof-card {
        --focus: 1;
        transform: none;
        filter: none;
        box-shadow: none;
    }
}
.proof-tag {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--accent);
    padding: 6px 12px;
    background: rgba(107, 20, 22, .08);
    border-radius: 999px;
    align-self: flex-start;
}
.proof-quote {
    margin: 0;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--ink-soft);
    flex: 1;
}
.proof-quote strong {
    color: var(--accent);
    font-weight: 600;
}
.proof-meta {
    font-family: var(--font-display);
    font-size: .92rem;
    font-style: italic;
    color: var(--muted);
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}
.proof-meta strong {
    color: var(--ink);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
}
@media (max-width: 720px) {
    .proof-scroller { padding: 8px 20px 28px; }
    .proof-card { flex: 0 0 280px; padding: 22px; }
    .proof-quote { font-size: .9rem; }
    .proof-track { padding-inline: 0; }
}

/* ============================================
   Service "Include" details
   ============================================ */
.service-includes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.service-includes h5 {
    font-family: var(--font-body);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin: 0 0 10px;
}
.service-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
}
.service-includes li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: .9rem;
    color: var(--ink-soft);
    line-height: 1.45;
}
.service-includes .check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.service-card {
    display: flex;
    flex-direction: column;
}
.service-card .card-foot { margin-top: auto; }

/* ============================================
   Despre — portrait + povestea
   ============================================ */
.despre-hero { padding-bottom: 40px; }
.despre-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    text-align: left;
}
.despre-hero-text { text-align: left; }
.despre-hero-text h1 { margin-left: 0; }
.despre-hero-text .lead { margin-left: 0; max-width: 46ch; }
.despre-hero-portrait {
    margin: 0;
    position: relative;
}
.despre-hero-portrait img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 60px -28px rgba(11,11,12,.35);
    background: var(--bone-2);
}
.despre-hero-portrait figcaption {
    text-align: center;
}
.despre-story { padding: 60px 0 100px; }
.story-block { padding: 0; }
.story-block h2 {
    font-size: 2.4rem;
    line-height: 1.05;
    font-weight: 380;
    letter-spacing: -0.02em;
    max-width: 22ch;
}
.lead-prose {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 60ch;
}
.lead-prose strong { color: var(--ink); font-weight: 500; }
.lead-prose em { font-style: italic; color: var(--accent); }
@media (max-width: 880px) {
    .despre-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .despre-hero-text { text-align: center; }
    .despre-hero-text h1 { margin-left: auto; margin-right: auto; }
    .despre-hero-text .lead { margin-left: auto; margin-right: auto; }
    .despre-hero-portrait { max-width: 320px; margin: 0 auto; }
    .story-block h2 { font-size: 1.9rem; max-width: 100%; }
    .lead-prose { font-size: 1rem; }
    .despre-story { padding: 40px 0 70px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-cat-title {
    font-size: .76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--accent);
    font-family: var(--font-body);
    margin: 50px 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.faq-cat-title:first-child { margin-top: 0; }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s ease;
}
.faq-item[open] {
    border-color: var(--line-strong);
}
.faq-item summary {
    list-style: none;
    padding: 22px 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 430;
    color: var(--ink);
    line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform .3s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer {
    padding: 0 26px 24px;
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.6;
}
.faq-answer p { margin: 0; }
@media (max-width: 720px) {
    .faq-item summary { padding: 18px 20px; font-size: 1rem; gap: 14px; }
    .faq-answer { padding: 0 20px 20px; font-size: .94rem; }
    .faq-cat-title { margin: 36px 0 14px; }
}

/* ============================================
   Contact lawyer card (mini portrait + nume)
   ============================================ */
.contact-lawyer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.contact-lawyer img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bone-2);
    border: 1px solid var(--line);
}
.contact-lawyer > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.contact-lawyer strong {
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.2;
}
.contact-lawyer span {
    font-size: .82rem;
    color: var(--muted);
}

/* ============================================
   Confidentiality note (contact form)
   ============================================ */
.confidential-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bone-2);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--ink-soft);
}
.confidential-note svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.confidential-note strong { color: var(--ink); font-weight: 600; }

/* ============================================
   Trust bar — clickable verifiable links
   ============================================ */
.trust-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}
.trust-bar a:hover { color: var(--accent); }
.trust-ext {
    width: 11px;
    height: 11px;
    opacity: .5;
    transition: opacity .2s ease;
}
.trust-bar a:hover .trust-ext { opacity: 1; }

/* ============================================
   Case timeline (client/cases.php)
   ============================================ */
.case-timeline {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    position: relative;
}
.case-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px 0;
    position: relative;
}
.case-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50px;
    bottom: -6px;
    width: 2px;
    background: var(--line);
}
.case-step-done:not(:last-child)::after { background: var(--accent); }
.case-step-dot {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bone-2);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    z-index: 1;
    position: relative;
}
.case-step-dot svg { width: 16px; height: 16px; }
.case-step-done .case-step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bone);
}
.case-step-current .case-step-dot {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bone);
    box-shadow: 0 0 0 6px rgba(11,11,12,.08);
}
.case-step-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
}
.case-step-body strong {
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1.05rem;
    color: var(--ink);
}
.case-step-pending .case-step-body strong { color: var(--muted); }
.case-step-body span {
    font-size: .88rem;
    color: var(--muted);
}
.next-action {
    background: rgba(176, 138, 62, .08);
    border: 1px solid rgba(176, 138, 62, .25);
    border-radius: 12px;
    padding: 16px 20px;
}
.next-action p { margin: 0; }

/* ============================================
   Public AI chat overrides
   ============================================ */
.public-chat .chat-empty h3 { font-size: 1.4rem; }
.public-chat .chat-presets { gap: 10px; }
.public-chat .chat-preset-btn {
    text-align: left;
    padding: 14px 18px;
    font-size: .9rem;
    line-height: 1.4;
    white-space: normal;
    height: auto;
}
@media (max-width: 720px) {
    .public-chat .chat-presets { grid-template-columns: 1fr; }
}

/* Hero pills — promisiunile cabinetului inline in hero */
.hero-pills {
    list-style: none;
    margin: 24px 0 0;
    padding: 16px 0 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
}
.hero-pills li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 8px 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}
.hero-pills svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .hero-pills { gap: 6px 8px; margin-top: 20px; }
    .hero-pills li { font-size: .76rem; padding: 7px 12px; }
    .hero-pills svg { width: 13px; height: 13px; }
}

/* Ticker marquee */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 18px 0;
    background: var(--bone);
    max-width: 100vw;
    position: relative;
}
.ticker-inner {
    display: inline-flex;
    gap: 60px;
    white-space: nowrap;
    animation: tick 40s linear infinite;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--ink-soft);
    will-change: transform;
}
.ticker-inner span { display: inline-flex; align-items: center; gap: 60px; }
.ticker-inner em { font-style: italic; color: var(--accent); }
@keyframes tick {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Section header with editorial numbers */
.section-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 70px;
}
.section-head .meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.section-num {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--accent);
}
.section-head h2 {
    max-width: 14ch;
}
.section-head p {
    color: var(--muted);
    max-width: 56ch;
    font-size: 1rem;
}

/* Cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
}
.card h3 {
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 420;
    line-height: 1.2;
    margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.card .card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--line);
    font-size: .86rem;
}
.card .price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 450;
    color: var(--ink);
}
.card .price em { font-size: .72rem; color: var(--muted); font-style: normal; font-family: var(--font-body); letter-spacing: .05em; text-transform: uppercase; }

.card-editorial {
    border: none;
    padding: 0;
    background: transparent;
}
.card-editorial:hover { box-shadow: none; }
.card-editorial .num {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent);
    font-style: italic;
    display: block;
    margin-bottom: 12px;
}
.card-editorial h3 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 14px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

/* Audience switch (B2C / B2B) */
.audience-switch {
    display: inline-flex;
    padding: 4px;
    background: var(--bone-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    gap: 4px;
}
.audience-switch button,
.audience-switch a {
    border: 0;
    background: transparent;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s var(--ease);
    text-decoration: none;
}
.audience-switch button.active,
.audience-switch a.active {
    background: var(--ink);
    color: var(--bone);
}

/* Quote */
.pull-quote {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    max-width: 20ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.pull-quote em { color: var(--accent); font-style: italic; }
.pull-quote::before {
    content: '\201E';
    display: block;
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: .6;
    color: var(--accent);
    opacity: 0.25;
    margin-bottom: 12px;
}

/* Process steps */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.process .step {
    padding: 40px 28px;
    border-right: 1px solid var(--line);
}
.process .step:last-child { border-right: none; }
.process .step .num {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}
.process .step h4 { margin: 0 0 8px; font-size: 1.15rem; }
.process .step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Trust bar */
.trust-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
    background: var(--bone-2);
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--muted);
}
.trust-items span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.trust-items svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Decorative accent line for card-editorial */
.card-editorial::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 18px;
}

/* Card hover accent border */
.card {
    position: relative;
}
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    opacity: 0;
    transition: opacity .25s var(--ease);
}
.card:hover::after { opacity: 1; }

/* Decorative section divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px 0;
}
.section-divider::before,
.section-divider::after {
    content: '';
    width: 80px;
    height: 1px;
    background: var(--line);
}
.section-divider span {
    color: var(--accent);
    font-size: .75rem;
    font-family: var(--font-display);
    font-style: italic;
}

/* Gradient accent strip on dark sections */
.section-dark {
    position: relative;
}
.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: #B8B8BB;
    padding: 80px 0 36px;
    margin-top: 120px;
}
.site-footer a { color: #D8D8DA; }
.site-footer a:hover { color: var(--bone); }
.site-footer h5 { color: var(--bone); margin-bottom: 14px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #2A2A2E;
}
.site-footer .brand-mark { background: var(--bone); color: var(--ink); }
.site-footer .brand strong { color: var(--bone); }
.footer-about { max-width: 380px; color: #A0A0A3; font-size: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 28px;
    font-size: .82rem;
    color: #888;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}
.form-row.single { grid-template-columns: 1fr; }
label {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="url"], input[type="search"],
select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11,11,12,.06);
}
textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.field-hint { font-size: .78rem; color: var(--muted); margin-top: 6px; }

.radio-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.radio-cards label {
    display: block;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    transition: all .18s var(--ease);
}
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label:hover { border-color: var(--ink); }
.radio-cards label.selected,
.radio-cards input:checked + label {
    border-color: var(--ink);
    background: var(--bone-2);
}
.radio-cards label strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 450;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.radio-cards label span { font-size: .86rem; color: var(--muted); }

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    border: 1px solid transparent;
    margin-bottom: 16px;
}
.alert-success { background: #EEF5EF; color: var(--green); border-color: #D5E6D8; }
.alert-error   { background: #F7E6E6; color: var(--red); border-color: #E9C9C9; }
.alert-info    { background: var(--bone-2); color: var(--ink); border-color: var(--line-strong); }

/* ============================
   App shell (client + admin)
   ============================ */
.app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
    background: var(--bone);
}
.main { min-width: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sidebar {
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 30px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.sidebar .brand { margin-bottom: 40px; flex-shrink: 0; }
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    flex-shrink: 0;
}
.sidebar nav h6 {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted-2);
    padding: 18px 14px 6px;
    margin: 0;
    font-weight: 600;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: .93rem;
    font-weight: 450;
    transition: all .15s var(--ease);
}
.sidebar nav a:hover { background: var(--bone-2); color: var(--ink); }
.sidebar nav a.active {
    background: var(--ink);
    color: var(--bone);
}
.sidebar nav a.active svg { stroke: var(--bone); }
.sidebar nav a svg { width: 18px; height: 18px; stroke: var(--muted); flex-shrink: 0; }
.nav-badge {
    background: var(--accent);
    color: var(--bone);
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.sidebar nav a.active .nav-badge { background: var(--bone); color: var(--ink); }

.admin-search {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 100%;
}
.admin-search input {
    flex: 1;
    min-width: 0;
    max-width: 320px;
}
@media (max-width: 640px) {
    .admin-search { width: 100%; }
    .admin-search input { max-width: none; }
}

.app-topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 80;
    margin: -36px -44px 24px;
    padding: 12px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}
.app-menu-toggle {
    display: none;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.app-menu-toggle:hover { background: var(--line); }
.app-topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.app-topbar-logout:hover { background: var(--oxblood, #6B1416); border-color: var(--oxblood, #6B1416); color: var(--bone, #FAF8F3); }
.app-topbar-logout span { line-height: 1; }
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .88rem;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.sidebar-logout:hover { background: rgba(107,20,22,0.08); color: var(--oxblood, #6B1416); }
.sidebar-logout svg { flex-shrink: 0; }
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11,11,12,.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.open {
    display: block;
    animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sidebar-foot {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted);
    flex-shrink: 0;
}
.sidebar-foot .user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
}
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bone);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
}

.main {
    padding: 36px 44px 60px;
    max-width: 1900px;
}
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    flex-wrap: wrap;
}
.page-head h1 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 400;
    margin: 0;
}
.page-head .subtitle {
    color: var(--muted);
    margin-top: 4px;
    font-size: .88rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.stat .label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}
.stat .value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-top: 6px;
    color: var(--ink);
}
.stat .delta {
    font-size: .78rem;
    margin-top: 4px;
    color: var(--muted);
}
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }

/* Tables */
.table-wrap {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.table-wrap .table-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.table-wrap h3 { margin: 0; font-family: var(--font-display); font-weight: 430; font-size: 1.2rem; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
table.data th,
table.data td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data thead th {
    background: var(--bone);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
    color: var(--muted);
    padding: 8px 16px;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--bone); }
table.data .num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .82rem; }
table.data a.row-link { color: var(--ink); font-weight: 500; }
table.data a.row-link:hover { color: var(--accent); }

.empty {
    padding: 56px 20px;
    text-align: center;
    color: var(--muted);
}
.empty h3 { margin-bottom: 8px; color: var(--ink); font-family: var(--font-display); font-weight: 430; }

/* Onboarding stepper */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 50px;
    max-width: 640px;
}
.stepper .step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 8px;
}
.stepper .step::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--line-strong);
    z-index: 0;
}
.stepper .step:last-child::after { display: none; }
.stepper .step .circle {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: .94rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    z-index: 1;
    transition: all .2s var(--ease);
}
.stepper .step.done .circle { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.stepper .step.current .circle { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px rgba(11,11,12,.07); }
.stepper .step .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stepper .step.current .label, .stepper .step.done .label { color: var(--ink); }

/* Login/Register layout */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-visual {
    background: var(--ink);
    color: var(--bone);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1000px 500px at 20% 30%, rgba(107,20,22,.35), transparent 60%);
    pointer-events: none;
}
.auth-visual .brand { position: relative; z-index: 1; }
.auth-visual .brand .brand-mark { background: var(--bone); color: var(--ink); }
.auth-visual .brand strong { color: var(--bone); }
.auth-visual .visual-quote {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 18ch;
}
.auth-visual .visual-quote em { color: #E8B0B2; font-style: italic; }
.auth-visual .visual-foot {
    position: relative;
    z-index: 1;
    color: #A0A0A3;
    font-size: .84rem;
}
.auth-form {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}
.auth-form h1 {
    font-family: var(--font-display);
    font-weight: 380;
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.auth-form .subtitle {
    color: var(--muted);
    margin-bottom: 38px;
}

/* Invoice row specific */
.invoice-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    transition: background .15s var(--ease);
}
.invoice-row:last-child { border-bottom: 0; }
.invoice-row:hover { background: var(--bone); }
.invoice-row .info { flex: 1; }
.invoice-row .info strong { display: block; font-family: var(--font-display); font-weight: 430; font-size: 1.1rem; }
.invoice-row .info small { color: var(--muted); }
.invoice-row .amount {
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

/* Utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 60px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 60px; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* img, video, iframe, canvas, svg { max-width: 100%; height: auto; } */

/* Responsive */
@media (max-width: 1100px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 50px; }
    .process { grid-template-columns: repeat(2, 1fr); }
    .process .step:nth-child(2) { border-right: none; }
    .process .step:nth-child(1), .process .step:nth-child(2) { border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .app { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .25s var(--ease);
        z-index: 100;
        box-shadow: var(--shadow-3);
    }
    .sidebar.open { transform: none; }
    .app-topbar { margin: -20px -20px 20px; justify-content: space-between; }
    .app-menu-toggle { display: inline-flex; }
    .main { padding: 20px 20px 60px; position: relative; }
    .main .page-head { padding-top: 8px; }
    .main .page-head h1 { padding-left: 0; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { padding: 40px 28px; min-height: 200px; }
    .auth-form { padding: 40px 28px; }
    /* Compact tables for tablets */
    table.data th, table.data td { padding: 8px 12px; font-size: .84rem; }
}
@media (max-width: 720px) {
    html, body { font-size: 16px; }
    .nav { display: none; }
    .menu-toggle { display: inline-flex; }

    .container, .container-wide, .container-narrow { padding: 0 20px; }

    .section { padding: 56px 0; }
    .section-sm { padding: 44px 0; }
    /* Fix: pe mobile section-hero pierdea padding-ul orizontal (text lipit de margine) */
    .section-hero { padding: 72px 20px 32px; }
    .section-hero::after, .hero::after { display: none; }
    .section-intro { margin-bottom: 32px; }
    .trust-items { gap: 16px; font-size: .76rem; }
    .trust-items span { gap: 6px; }
    .trust-items svg { width: 15px; height: 15px; }
    .section-divider { padding: 24px 0; }
    .section-divider::before, .section-divider::after { width: 48px; }

    .grid { gap: 18px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .process .step { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 20px; }
    .process .step:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .stats { grid-template-columns: 1fr; }
    .radio-cards { grid-template-columns: 1fr; }
    table.data th:nth-child(3), table.data td:nth-child(3) { display: none; }
    table.data th:nth-child(4), table.data td:nth-child(4) { display: none; }
    table.data th, table.data td { padding: 8px 10px; font-size: .82rem; white-space: nowrap; }
    .hero-meta {
        grid-template-columns: 1fr 1fr;
        gap: 0;
        height: auto;
        margin-top: auto; /* impinge cifrele in josul hero-ului */
        width: 100%;
    }
    .hero-meta > div { padding: 18px 8px; }
    .hero-meta > div strong { font-size: 2rem; }
    .hero-meta-4 {
        grid-template-columns: 1fr 1fr;
    }
    .hero-meta-4 > div { border-left: none !important; }
    .hero-meta-4 > div:nth-child(2) { border-left: 1px solid var(--line) !important; }
    .hero-meta-4 > div:nth-child(4) { border-left: 1px solid var(--line) !important; }
    .hero-meta-4 > div:nth-child(3),
    .hero-meta-4 > div:nth-child(4) {
        border-top: 1px solid var(--line);
    }
    .hero-meta .check-stat svg { width: 30px; height: 30px; }
    .hero-meta > div strong .unit { font-size: 1.1rem; }
    .stepper .step .label { display: none; }

    /* Header mai compact */
    .site-header { padding-inline: 16px; }
    .site-header .wrap { padding: 14px 20px; gap: 10px; }
    .brand-text strong { font-size: .95rem; }
    .brand-text span { font-size: .66rem; }
    .brand-mark { width: 32px; height: 32px; font-size: 1rem; }
    .header-cta .btn { padding: 9px 14px; font-size: .8rem; }
    .header-cta .btn-ghost { display: none; }

    /* Tipografie mobil: headline mai mici, line-height mai confortabil */
    h1 { font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.02em; }
    h2 { font-size: 2.5rem; line-height: 1.15; }
    h3 { font-size: 1.25rem; }
    .hero h1,
    .hero .hero-display { font-size: 3.6rem; line-height: .94; letter-spacing: -0.035em; font-weight: 360; }
    .page-servicii .section-hero h1,
    .page-servicii .section-hero .display,
    .page-despre .section-hero h1,
    .page-despre .section-hero .display { font-size: 2.8rem; line-height: 1; letter-spacing: -0.025em; }
    .hero {
        padding: 88px 20px 28px;
        min-height: calc(100vh - 80px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    /* Pe mobile, butoanele + pills + cifrele formeaza un "cluster" lipit de baza hero-ului */
    .hero .flex-gap { margin-top: auto; }
    .hero .hero-pills { margin-top: 20px; }
    .hero .lead { font-size: 1.05rem; max-width: 80%; }
    .page-servicii .section-hero .lead,
    .page-despre .section-hero .lead { font-size: 1rem; max-width: 100%; }

    /* Eyebrow ca flex item: align-self center pe mobile (mostenire flex column din .hero) */
    .hero .eyebrow,
    .page-contact .section-hero .grid > div:first-child .eyebrow {
        align-self: center;
    }

    /* Contact: hero centrat pe mobile (titlu, lead, info contact) */
    .page-contact .section-hero .grid > div:first-child {
        text-align: center;
    }
    .page-contact .section-hero .grid > div:first-child h1,
    .page-contact .section-hero .grid > div:first-child .lead {
        margin-left: auto;
        margin-right: auto;
    }

    .section-head { margin-bottom: 32px; gap: 10px; }
    .section-head h2 { max-width: none; }

    .card { padding: 22px; border-radius: 12px; }
    .card h3 { font-size: 1.15rem; }
    .card p { font-size: .92rem; }

    .ticker-inner { font-size: 1.05rem; gap: 36px; }
    .ticker { padding: 14px 0; }

    .pull-quote { font-size: 1.6rem; }

    .btn { padding: 13px 20px; font-size: .9rem; }
    .btn-lg { padding: 15px 24px; font-size: .95rem; }
    .flex-gap { gap: 10px; }

    /* Footer mai aerisit */
    .site-footer { padding: 50px 0 24px; margin-top: 60px; }
    .site-footer h5 { font-size: .72rem; }

    /* Auth pages */
    .auth-form h1 { font-size: 1.9rem; }
    .auth-form { padding: 32px 20px; }
    .auth-visual { padding: 32px 20px; min-height: 140px; }
    .auth-visual .visual-quote { font-size: 1.3rem; }
    .auth-visual .visual-foot { display: none; }

    /* App shell */
    .main { padding: 18px 18px 50px; position: relative; }
    .page-head { flex-direction: column; align-items: flex-start; margin-bottom: 22px; padding-bottom: 18px; padding-top: 4px; }
    .page-head h1 { font-size: 1.7rem; }

    /* Inputs friendly to tap */
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
    input[type="number"], input[type="date"], input[type="url"], input[type="search"],
    select, textarea { font-size: 16px; padding: 14px 14px; } /* 16px prevents iOS zoom */

    label { font-size: .72rem; }

    /* Alerts & cards au padding mai mic */
    .alert { padding: 12px 14px; font-size: .88rem; }
}

@media (max-width: 420px) {
    .container, .container-wide, .container-narrow { padding: 0 16px; }
    .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.5rem; }
    .card { padding: 20px; }
    .header-cta .btn-sm { padding: 8px 12px; font-size: .78rem; }
}

/* Mobile nav drawer styles — definite mai jos, in sectiunea de polish */

/* ===== Thread / Messaging ===== */
.thread { display: flex; flex-direction: column; gap: 22px; margin-top: 10px; }
.thread-msg { display: flex; gap: 14px; align-items: flex-start; }
.thread-msg.is-mine { flex-direction: row-reverse; }
.thread-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bone);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
}
.is-client .thread-avatar { background: var(--accent); }
.is-admin .thread-avatar { background: var(--ink); }
.thread-bubble {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 72%;
    box-shadow: var(--shadow-1);
}
.thread-msg.is-mine .thread-bubble {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
    border-top-right-radius: 4px;
}
.thread-msg.is-other .thread-bubble {
    border-top-left-radius: 4px;
}
.thread-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .78rem;
    margin-bottom: 8px;
}
.thread-meta strong { font-weight: 500; }
.thread-meta span { opacity: .55; }
.thread-msg.is-mine .thread-meta span { opacity: .65; }
.thread-body { font-size: .95rem; line-height: 1.55; white-space: pre-wrap; }

/* ===== Ticket rows ===== */
.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    gap: 16px;
    transition: background .15s var(--ease);
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--bone); color: var(--ink); }
.ticket-main { flex: 1; min-width: 0; }
.ticket-head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ticket-head strong {
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1.08rem;
}
.ticket-sub { font-size: .82rem; color: var(--muted); }
.ticket-arrow {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--muted);
    font-size: 1.3rem;
}
.ticket-info { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.ticket-info > div { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ticket-info > div:last-child { border-bottom: 0; }
.ticket-info span { color: var(--muted); font-size: .78rem; }
.ticket-info strong { font-weight: 500; font-size: .88rem; }

/* Small ticket rows (admin dashboard) */
.ticket-row-sm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    color: var(--ink);
    transition: background .12s var(--ease);
}
.ticket-row-sm:last-child { border-bottom: 0; }
.ticket-row-sm:hover { background: var(--bone); color: var(--ink); }
.ticket-row-sm > div:first-child { flex: 1; min-width: 0; }
.ticket-row-sm strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 430;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ticket-row-sm small { color: var(--muted); font-size: .8rem; }

/* ===== Filter tabs (admin tickets) ===== */
.filter-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.filter-tabs a {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    font-size: .88rem;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.filter-tabs a:hover { border-color: var(--ink); color: var(--ink); }
.filter-tabs a.active { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.filter-tabs a span {
    background: rgba(255,255,255,.12);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
}
.filter-tabs a:not(.active) span { background: var(--bone-2); }

/* ===== Admin Dashboard Chart ===== */
.chart-6m {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    align-items: end;
    height: 180px;
    padding: 10px 0;
}
.chart-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}
.chart-val {
    font-size: .7rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
    min-height: 14px;
}
.chart-bar {
    width: 100%;
    max-width: 46px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height .5s var(--ease);
}
.chart-lbl {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Quick KPI (admin dashboard) */
.quick-kpi {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quick-kpi > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.quick-kpi > div:last-child { border-bottom: 0; padding-bottom: 0; }
.quick-kpi span { font-size: .84rem; color: var(--muted); }
.quick-kpi strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 430; }

/* Activity feed (admin dashboard) */
.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    transition: background .12s var(--ease);
}
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: var(--bone); color: var(--ink); }
.feed-dot {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bone-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}
.feed-item > div { flex: 1; }
.feed-item strong { font-weight: 500; }
.feed-item small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }

/* ===== Onboarding ===== */
.main:has(.ob-wrap) { max-width: none; padding: 0; }
.ob-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}
.ob-progress {
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ob-progress-bar {
    height: 100%;
    background: var(--ink);
    transition: width .3s var(--ease);
}
.ob-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 40px;
}
.ob-card { }
.ob-q {
    font-family: var(--font-display);
    font-weight: 380;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    max-width: 20ch;
}
.ob-h {
    color: var(--muted);
    font-size: 1rem;
    margin: 0 0 36px;
    max-width: 46ch;
    line-height: 1.55;
}
.ob-form input[type="text"],
.ob-form input[type="tel"],
.ob-form textarea {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 18px 18px;
    font-size: 1.1rem;
    width: 100%;
}
.ob-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ob-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    cursor: pointer;
    transition: all .15s var(--ease);
    font-size: 1rem;
    color: var(--ink);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 450;
    margin-bottom: 0;
}
.ob-opt input { position: absolute; opacity: 0; }
.ob-opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.ob-opt.selected,
.ob-opt:has(input:checked) {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bone);
}
.ob-opt-check {
    opacity: .3;
    transition: all .15s var(--ease);
    font-family: var(--font-display);
    font-style: italic;
}
.ob-opt:hover .ob-opt-check { opacity: .8; transform: translateX(4px); }
.ob-opt.selected .ob-opt-check,
.ob-opt:has(input:checked) .ob-opt-check { opacity: 1; color: #E8B0B2; }

/* Variantă "rich": titlu + sub-text descriptiv (folosit la scenariu/urgență) */
.ob-opt-rich { align-items: flex-start; padding: 18px 22px; }
.ob-opt-rich .ob-opt-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    text-align: left;
}
.ob-opt-rich .ob-opt-text strong {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.35;
}
.ob-opt-rich .ob-opt-sub {
    font-size: .85rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.45;
}
.ob-opt-rich.selected .ob-opt-sub,
.ob-opt-rich:has(input:checked) .ob-opt-sub {
    color: rgba(250,248,243,.7);
}
.ob-opt-rich .ob-opt-check {
    margin-top: 2px;
    flex-shrink: 0;
}
.ob-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 14px;
}
.ob-actions > span:first-child { flex: 0; }
.ob-summary {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-top: 28px;
}
.ob-sum-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    gap: 18px;
}
.ob-sum-row:last-child { border-bottom: none; }
.ob-sum-row span {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 2px;
}
.ob-sum-row strong {
    text-align: right;
    color: var(--ink);
    font-weight: 500;
}
.ob-sum-row.ob-sum-story {
    flex-direction: column;
    gap: 8px;
}
.ob-sum-row.ob-sum-story p {
    text-align: left;
    margin: 0;
    color: var(--ink-soft);
    font-size: .94rem;
    line-height: 1.5;
}

/* ===== Component responsive overrides ===== */
@media (max-width: 900px) {
    .grid[style*="2fr 1fr"] { grid-template-columns: 1fr !important; }
    .chart-6m { gap: 8px; height: 140px; }
}
@media (max-width: 640px) {
    .thread-bubble { max-width: 82%; padding: 14px 16px; }
    .thread-avatar { width: 36px; height: 36px; font-size: .88rem; }
    .ticket-row { padding: 18px 18px; }
    .ticket-head strong { font-size: 1rem; }
    .filter-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
    .filter-tabs a { flex-shrink: 0; }
    .ob-wrap { padding: 28px 18px 60px; }
    .ob-opt { padding: 16px 18px; font-size: .94rem; }
    .ob-actions { flex-direction: column-reverse; align-items: stretch; }
    .ob-actions .btn { width: 100%; }
    .chart-6m { gap: 6px; }
    .chart-val { font-size: .62rem; }
    .chart-lbl { font-size: .62rem; }
}

/* ===== Utility classes (reduce inline styles) ===== */
.p-card      { padding: 36px; }
.p-card-sm   { padding: 24px; }
.p-card-lg   { padding: 40px; }
.max-w-form  { max-width: 720px; }
.gap-lg      { gap: 80px; }
.gap-md      { gap: 24px; }
.items-start { align-items: start; }
.items-stretch { align-items: stretch; }
.text-right  { text-align: right; }
.inline-form { display: inline; }

/* ===== Chat AI shared component ===== */
.chat-card {
    padding: 0;
    overflow: hidden;
}
.chat-messages {
    padding: 30px;
    min-height: 300px;
    max-height: 520px;
    overflow-y: auto;
    background: var(--bone-2);
}
.chat-empty { padding: 20px; }
.chat-presets {
    gap: 10px;
    max-width: 640px;
    margin: 20px auto 0;
}
.chat-preset-btn {
    text-align: left;
    padding: 14px;
    white-space: normal;
    line-height: 1.4;
    height: 100%;
}
.chat-preset-title {
    display: block;
    margin-bottom: 4px;
}
.chat-msg {
    display: flex;
    margin-bottom: 18px;
}
.chat-msg-user { justify-content: flex-end; }
.chat-msg-ai   { justify-content: flex-start; }

.chat-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
}
.chat-bubble-user {
    background: var(--ink);
    color: var(--bone);
    border-bottom-right-radius: 4px;
}
.chat-bubble-ai {
    background: var(--paper);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}
.chat-sender {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--accent);
    margin-bottom: 6px;
}
.chat-text {
    white-space: pre-wrap;
    font-size: .94rem;
    line-height: 1.55;
}
.chat-input {
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
}
.chat-input textarea {
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    flex: 1;
}

/* ===== Profile tabs ===== */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}
.profile-tabs button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.profile-tabs button.active,
.profile-tabs button:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}
.profile-panel { display: none; }
.profile-panel.active { display: block; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--ink);
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.pagination a:hover { background: var(--bone-2); border-color: var(--line-strong); }
.pagination a.active {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
    pointer-events: none;
}

/* ===== GDPR Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s var(--ease), opacity .35s var(--ease);
    pointer-events: none;
}
.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    background: var(--ink);
    color: rgba(250, 248, 243, .85);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -4px 30px rgba(11,11,12,.15);
    font-size: .88rem;
    line-height: 1.5;
    backdrop-filter: blur(16px);
}
.cookie-consent-text p {
    margin: 0;
    color: rgba(250, 248, 243, .78);
}
.cookie-consent-text a {
    color: #E8B0B2;
    text-decoration: underline;
    text-decoration-color: rgba(232, 176, 178, .3);
    text-underline-offset: 2px;
}
.cookie-consent-text a:hover {
    color: #fff;
    text-decoration-color: #fff;
}
.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-consent-actions .btn {
    white-space: nowrap;
    font-size: .82rem;
}
.cookie-consent-actions .btn-ghost {
    color: rgba(250, 248, 243, .7);
    border-color: rgba(250, 248, 243, .2);
}
.cookie-consent-actions .btn-ghost:hover {
    color: #fff;
    border-color: rgba(250, 248, 243, .5);
    background: rgba(250, 248, 243, .08);
}
@media (max-width: 640px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .cookie-consent-actions {
        justify-content: stretch;
    }
    .cookie-consent-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== Footer Legal Links ===== */
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .82rem;
}
.footer-legal a {
    color: var(--muted-2);
    transition: color .15s;
}
.footer-legal a:hover {
    color: var(--accent);
}
.footer-legal-sep {
    color: var(--muted-2);
    opacity: .4;
}

/* ===== Legal Pages ===== */
.legal-page .legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 420;
    margin-top: 2.5em;
    margin-bottom: .6em;
    padding-bottom: .4em;
    border-bottom: 1px solid var(--line);
}
.legal-page .legal-content h2:first-child {
    margin-top: 0;
}
.legal-page .legal-content ul {
    padding-left: 1.5em;
    margin: .5em 0 1.2em;
}
.legal-page .legal-content li {
    margin-bottom: .5em;
    line-height: 1.6;
}
.legal-page .legal-content p {
    line-height: 1.7;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.5em;
    font-size: .9rem;
}
.legal-table th,
.legal-table td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: var(--bone-2);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.legal-table code {
    font-family: var(--font-mono);
    font-size: .82rem;
    background: var(--bone-2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ================================================================
   2026-04-21 — Homepage polish: butoane animate, drawer, stagger, etc.
   ================================================================ */

/* --- Butoane hero: micro-animatie pe primary + sageata alunecatoare --- */
.btn.btn-pulse,
.btn.btn-slide { position: relative; overflow: hidden; }
.btn .btn-arrow {
    width: 16px; height: 16px; flex-shrink: 0;
    transition: transform .35s var(--ease);
}
.btn.btn-pulse:hover .btn-arrow { transform: translateX(4px); }
.btn.btn-slide:hover .btn-arrow { transform: translateY(3px); }
.btn.btn-pulse::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
    transform: skewX(-18deg);
    pointer-events: none;
}
.btn.btn-pulse:hover::after { animation: btnShine 1.05s var(--ease) forwards; }
@keyframes btnShine {
    0%   { left: -60%; }
    100% { left: 120%; }
}
.hero-cta .btn-pulse { animation: btnBreathe 3.6s ease-in-out infinite; }
@keyframes btnBreathe {
    0%, 100% { box-shadow: 0 4px 16px rgba(11,11,12,.06); }
    50%      { box-shadow: 0 10px 28px rgba(107, 20, 22, .22); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-cta .btn-pulse { animation: none; }
    .btn.btn-pulse::after { display: none; }
}

/* --- Section backgrounds mai distincte (usor translucide ca lava sa patrunda) --- */
.how-section {
    background: rgba(243, 239, 230, .78); /* bone-2 @ 78% */
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.how-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(107, 20, 22, .035) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 100%, rgba(107, 20, 22, .025) 0%, transparent 55%);
    pointer-events: none;
}
.how-section > .container { position: relative; z-index: 1; }
.proof-section {
    background: rgba(255, 255, 255, .82); /* paper @ 82% */
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.section-plans {
    background: linear-gradient(180deg,
        rgba(250, 248, 243, .7) 0%,
        rgba(243, 239, 230, .82) 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.trust-bar {
    background: rgba(243, 239, 230, .8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* --- Plan cards: stagger + perks staggered --- */
.plan-card {
    --plan-delay: 0ms;
    transition:
        opacity .7s var(--ease) var(--plan-delay),
        transform .7s var(--ease) var(--plan-delay),
        border-color .25s var(--ease),
        box-shadow .3s var(--ease);
}
.plan-card.reveal { opacity: 0; transform: translateY(28px) scale(.985); }
.plan-card.reveal.in { opacity: 1; transform: translateY(0) scale(1); }
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px -28px rgba(11, 11, 12, .25);
    border-color: var(--line-strong);
}
.plan-card-featured {
    position: relative;
    border-color: var(--ink) !important;
}
.plan-card-featured:hover {
    box-shadow: 0 28px 60px -30px rgba(107, 20, 22, .3);
}
.plan-perks {
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
    font-size: .9rem;
}
.plan-perks li {
    --perk-delay: 0ms;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink-soft);
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity .55s var(--ease) var(--perk-delay),
        transform .55s var(--ease) var(--perk-delay);
}
.plan-card.reveal.in .plan-perks li { opacity: 1; transform: none; }
.plan-perk-check {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transform: scale(.85);
    transition: transform .35s var(--ease);
}
.plan-perk-check svg { width: 12px; height: 12px; }
.plan-card.reveal.in .plan-perk-check { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
    .plan-perks li,
    .plan-card.reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Nav drawer: close button + animatie smooth + stagger pe links --- */
.nav-drawer {
    position: fixed;
    inset: 0;
    background: var(--bone);
    z-index: 80;
    padding: 80px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
        opacity .32s var(--ease),
        transform .42s var(--ease),
        visibility 0s linear .42s;
    pointer-events: none;
}
.nav-drawer.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity .32s var(--ease),
        transform .42s var(--ease),
        visibility 0s linear 0s;
    pointer-events: auto;
}
.nav-drawer-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 46px; height: 46px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.nav-drawer-close:hover {
    background: var(--bone-2);
    transform: rotate(90deg);
}
.nav-drawer-close svg { width: 22px; height: 22px; }
.nav-drawer-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 36px;
}
.nav-drawer-inner a {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 380;
    color: var(--ink);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateX(-16px);
    transition:
        opacity .4s var(--ease),
        transform .4s var(--ease),
        color .2s ease;
}
.nav-drawer.open .nav-drawer-inner a { opacity: 1; transform: none; }
.nav-drawer.open .nav-drawer-inner a:nth-child(1) { transition-delay: .06s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(2) { transition-delay: .12s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(3) { transition-delay: .18s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(4) { transition-delay: .24s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(5) { transition-delay: .3s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(6) { transition-delay: .36s; }
.nav-drawer.open .nav-drawer-inner a:nth-child(7) { transition-delay: .42s; }
.nav-drawer-cta {
    margin-top: 24px !important;
    background: var(--ink) !important;
    color: var(--bone) !important;
    border-radius: var(--radius-pill) !important;
    text-align: center !important;
    padding: 18px !important;
    font-size: 1.05rem !important;
    border-bottom: 0 !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
}

/* --- Animatii subtile suplimentare pe homepage --- */
.hero h1 em.italic.serif,
.hero .hero-display em.italic.serif {
    display: inline-block;
    animation: accentFloat 6s ease-in-out infinite;
    transform-origin: center;
}
@keyframes accentFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50%      { transform: translateY(-3px) rotate(-.4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero h1 em.italic.serif,
    .hero .hero-display em.italic.serif { animation: none; }
}

.trust-items > * {
    opacity: 0;
    transform: translateY(8px);
    animation: trustIn .55s var(--ease) forwards;
}
.trust-items > *:nth-child(1) { animation-delay: .08s; }
.trust-items > *:nth-child(2) { animation-delay: .18s; }
.trust-items > *:nth-child(3) { animation-delay: .28s; }
.trust-items > *:nth-child(4) { animation-delay: .38s; }
@keyframes trustIn {
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .trust-items > * { opacity: 1; transform: none; animation: none; }
}

.hero-meta > div {
    opacity: 0;
    transform: translateY(10px);
    animation: heroMetaIn .6s var(--ease) forwards;
}
.hero-meta > div:nth-child(1) { animation-delay: .4s; }
.hero-meta > div:nth-child(2) { animation-delay: .5s; }
.hero-meta > div:nth-child(3) { animation-delay: .6s; }
.hero-meta > div:nth-child(4) { animation-delay: .7s; }
@keyframes heroMetaIn {
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-meta > div { opacity: 1; transform: none; animation: none; }
}

/* --- Mobile login: padding ca tastatura sa nu acopere field-urile --- */
@media (max-width: 720px) {
    .auth-form { padding-bottom: 40vh !important; }
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="text"] {
        scroll-margin-top: 100px;
        scroll-margin-bottom: 40vh;
    }
}

/* --- Proof scroller pe mobil: margine stanga clara + scroll-padding potrivit --- */
@media (max-width: 720px) {
    .proof-scroller { scroll-padding-left: 24px; }
    .proof-track {
        padding-left: 24px;
        padding-right: 20px;
    }
}

/* --- Fundal "lava" animat pe homepage — blob-uri mari, blurate, foarte subtile ---
   body.page-home are background transparent → lava (body::before/::after) se vede
   printre el, avand html (cu background bone) dedesubt. */
body.page-home { position: relative; background: transparent; }
.page-home::before,
.page-home::after {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}
.page-home::before {
    background:
        radial-gradient(40% 35% at 20% 30%, rgba(107, 20, 22, .22) 0%, transparent 65%),
        radial-gradient(45% 40% at 80% 70%, rgba(176, 138, 62, .12) 0%, transparent 65%),
        radial-gradient(35% 30% at 50% 85%, rgba(107, 20, 22, .10) 0%, transparent 65%);
    filter: blur(70px);
    opacity: .55;
    animation: lavaDriftA 38s ease-in-out infinite alternate;
}
.page-home::after {
    background:
        radial-gradient(42% 40% at 70% 25%, rgba(107, 20, 22, .16) 0%, transparent 65%),
        radial-gradient(38% 34% at 15% 75%, rgba(243, 239, 230, .5) 0%, transparent 65%),
        radial-gradient(36% 32% at 90% 55%, rgba(176, 138, 62, .10) 0%, transparent 65%);
    filter: blur(80px);
    opacity: .45;
    animation: lavaDriftB 52s ease-in-out infinite alternate;
}
@keyframes lavaDriftA {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(-4%, 3%, 0) scale(1.08); }
    100% { transform: translate3d(3%, -2%, 0) scale(1.04); }
}
@keyframes lavaDriftB {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4%, -3%, 0) scale(1.1); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}
/* Asigura ca toate sectiunile pastreaza background-ul lor pe deasupra */
.page-home .site-header,
.page-home main,
.page-home .site-footer { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .page-home::before,
    .page-home::after { animation: none; }
}
@media (max-width: 720px) {
    .page-home::before { filter: blur(50px); opacity: .4; }
    .page-home::after  { filter: blur(60px); opacity: .3; }
}
/* ─── Loading UI ────────────────────────────────────────── */
.app-loading {
    position: fixed; inset: 0; z-index: 9999;
    pointer-events: none; opacity: 0;
    transition: opacity 180ms ease-out;
}
.app-loading.is-visible { opacity: 1; pointer-events: auto; }
.app-loading__backdrop {
    position: absolute; inset: 0;
    background: rgba(245, 240, 230, .6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.app-loading__panel {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--cream, #faf6ee);
    border: 1px solid var(--line, #e6dfd1);
    border-radius: 12px;
    padding: 18px 26px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    min-width: 220px;
    font-size: .96rem; font-weight: 500;
    color: var(--ink, #1a1715);
}
.app-loading__spinner {
    display: inline-block;
    width: 22px; height: 22px;
    border: 2.5px solid rgba(120, 30, 35, .18);
    border-top-color: var(--oxblood, #781e23);
    border-radius: 50%;
    animation: app-spin 720ms linear infinite;
    flex-shrink: 0;
}
.app-loading__spinner--inline {
    width: 13px; height: 13px;
    border-width: 2px;
    vertical-align: -2px;
    margin-right: 4px;
}
.btn.is-loading,
button.is-loading { opacity: .7; cursor: progress; }
@keyframes app-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .app-loading__spinner { animation-duration: 1.6s; }
}


/* ── Signup centrat, minimalist (register.php) ─────────────────── */
.signup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 40px;
    background: var(--bone);
    position: relative;
    gap: 20px;
}
.signup-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.signup-brand-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--bone);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
}
.signup-card-wrap {
    width: 100%;
    max-width: 460px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 36px;
    box-shadow: 0 1px 2px rgba(11,11,12,.04), 0 12px 40px rgba(11,11,12,.06);
}
@media (max-width: 520px) {
    .signup-card-wrap { padding: 28px 22px; border-radius: 14px; }
}

.signup-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.signup-step {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 500;
    color: var(--muted);
    background: var(--paper);
    transition: all .2s var(--ease);
}
.signup-step.is-active {
    background: var(--ink);
    color: var(--bone);
    border-color: var(--ink);
}
.signup-progress-line {
    flex: 1; height: 2px;
    background: var(--line);
    border-radius: 100px;
    overflow: hidden;
}
.signup-progress-line span {
    display: block; height: 100%;
    background: var(--ink);
    transition: width .35s var(--ease);
}

.signup-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--ink);
}
.signup-sub {
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 24px;
    line-height: 1.5;
}

.signup-form { display: flex; flex-direction: column; gap: 16px; }
.signup-field { display: flex; flex-direction: column; }
.signup-field label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 500;
}
.signup-field-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.signup-field-row label { margin-bottom: 0; }
.signup-field-link {
    font-size: .78rem;
    color: var(--muted);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    transition: color .15s var(--ease);
}
.signup-field-link:hover { color: var(--ink); text-decoration: underline; }
.signup-form input[type=text],
.signup-form input[type=email],
.signup-form input[type=password],
.signup-form input[type=tel] {
    width: 100%;
    font-size: 1rem;
    padding: 13px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bone);
    color: var(--ink);
    font-family: inherit;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.signup-form input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11,11,12,.08);
}
.signup-form input.has-error,
.signup-radio-cards.has-error,
.signup-consent.has-error {
    border-color: #b94545 !important;
}
.field-error {
    color: #b94545;
    font-size: .8rem;
    margin-top: 6px;
    line-height: 1.4;
}

/* Ochiul în input */
.pwd-input { position: relative; }
.pwd-input input { padding-right: 46px; }
.pwd-eye {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s var(--ease), background .15s var(--ease);
    padding: 0;
}
.pwd-eye:hover { color: var(--ink); background: rgba(11,11,12,.04); }
.pwd-eye:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.signup-submit { margin-top: 8px; }

.signup-radio-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 4px;
}
.signup-card {
    display: flex; gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bone);
    cursor: pointer;
    transition: all .15s var(--ease);
    /* Reset moșteniri de la label global */
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0;
    font-size: 1rem;
}
.signup-card:hover { border-color: var(--ink); }
.signup-card input { margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.signup-card-body { display: flex; flex-direction: column; gap: 3px; }
.signup-card-body strong { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.signup-card-body span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.signup-card:has(input:checked) {
    border-color: var(--ink);
    background: var(--paper);
    box-shadow: 0 0 0 1px var(--ink) inset;
}

.signup-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bone);
    cursor: pointer;
    line-height: 1.5;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: 8px;
    margin-bottom: 0;
    /* Reset uppercase global de pe label */
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.signup-consent input { margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.signup-consent a { text-decoration: underline; color: var(--ink); }

.signup-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}
.signup-actions .btn-primary { flex: 1; }
@media (max-width: 480px) {
    .signup-actions { flex-direction: column-reverse; }
    .signup-actions .btn { width: 100%; }
}

.signup-foot {
    text-align: center;
    margin-top: 22px;
    color: var(--muted);
    font-size: .85rem;
}
.signup-foot a { color: var(--ink); text-decoration: underline; }
.signup-foot-note {
    margin-top: 14px;
    font-size: .78rem;
}
.signup-back {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .82rem;
}
.signup-back a { color: var(--muted); text-decoration: none; }
.signup-back a:hover { color: var(--ink); }
