/* Portalul de conturi Prospecting. Aceleasi culori si litere ca site-ul de prezentare. */
/* Literele, aceleasi ca pe site-ul de prezentare, gazduite aici (licenta SIL Open Font). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url("/fonts/bricolage-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-stretch: 100%; font-display: swap; src: url("/fonts/bricolage-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/atkinson-next-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/atkinson-next-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --sticla: #0a4f3f;
  --sticla-inchis: #073a2e;
  --ceata: #eef5f0;
  --marker: #ffdd4a;
  --mesaj: #dcf3e3;
  --text: #22322c;
  --text-slab: #56665f;
  --linie: #d3ddd7;
  --rosu: #a32020;
  --titlu: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --corp: "Atkinson Hyperlegible Next", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--ceata); color: var(--text); font-family: var(--corp); font-size: 1.0625rem; line-height: 1.55; }
a { color: var(--sticla); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid #2f8fdb; outline-offset: 2px; border-radius: 6px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 4vw, 2.5rem); background: #fff; border-bottom: 1px solid var(--linie); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--titlu); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 2rem; height: 2rem; }
.out { display: flex; align-items: center; gap: 0.9rem; margin: 0; font-size: 0.95rem; color: var(--text-slab); }
.out span { overflow: hidden; text-overflow: ellipsis; max-width: 40vw; white-space: nowrap; }

main { flex: 1; width: min(100% - 2rem, 60rem); margin: clamp(2rem, 7vw, 5rem) auto; }
main.roomy { width: min(100% - 2rem, 70rem); margin-top: clamp(1.5rem, 4vw, 3rem); }
.card { max-width: 27rem; margin-inline: auto; background: #fff; border-radius: 22px; padding: clamp(1.5rem, 5vw, 2.5rem); box-shadow: 0 30px 60px -35px rgba(10, 79, 63, 0.45), 0 0 0 1px var(--linie); }
.wide { background: #fff; border-radius: 22px; padding: clamp(1.5rem, 5vw, 2.75rem); box-shadow: 0 0 0 1px var(--linie); }
h1 { font-family: var(--titlu); color: var(--sticla); font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h2 { font-family: var(--titlu); color: var(--sticla); font-size: 1.35rem; letter-spacing: -0.01em; margin: 2.5rem 0 0.4rem; }
.sub { margin: 0 0 1.25rem; color: var(--text-slab); }

form { margin: 0; }
label { display: block; font-weight: 600; margin: 1.1rem 0 0.35rem; }
input[type=email], input[type=password], input[type=text] { width: 100%; font: inherit; color: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; }
input:focus { border-color: var(--sticla); outline: none; box-shadow: 0 0 0 3px rgba(10, 79, 63, 0.18); }
button, .button { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 0.9rem 1.4rem; background: var(--sticla); color: #fff; text-decoration: none; }
form > button { width: 100%; margin-top: 1.6rem; }
button:hover, .button:hover { background: var(--sticla-inchis); }
.ghost { background: transparent; color: var(--sticla); box-shadow: inset 0 0 0 1.5px var(--linie); padding: 0.55rem 1rem; }
.ghost:hover { background: var(--ceata); }
.inline > button { width: auto; margin-top: 0; }
.alt { margin: 1.4rem 0 0; text-align: center; }

.notice { margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 12px; font-weight: 600; }
.notice.err { background: #fdecec; color: var(--rosu); }
.notice.ok { background: var(--ceata); color: var(--sticla); }

.apps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.apps li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; border-radius: 16px; background: var(--ceata); }
.apps b { display: block; font-family: var(--titlu); font-size: 1.2rem; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.apps span { color: var(--text-slab); font-size: 0.95rem; }

footer { padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem; text-align: center; font-size: 0.9rem; color: var(--text-slab); }
footer p { margin: 0 auto; max-width: 46rem; }

/* Comanda si abonamentul */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hint { margin: 0 0 0.45rem; font-size: 0.95rem; color: var(--text-slab); }
.fielderr { margin: 0.4rem 0 0; font-size: 0.95rem; font-weight: 600; color: var(--rosu); }
input[aria-invalid="true"] { border-color: var(--rosu); }
input[type=tel] { width: 100%; font: inherit; color: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; }
.suffix { display: flex; align-items: stretch; }
.suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.suffix span { display: flex; align-items: center; padding: 0 0.9rem; border: 1.5px solid var(--linie); border-left: 0; border-radius: 0 12px 12px 0; background: var(--ceata); color: var(--text-slab); white-space: nowrap; }
/* CUI + butonul de completare din ANAF */
.with-action { display: flex; gap: 0.6rem; align-items: stretch; }
.with-action input { min-width: 0; flex: 1; }
.with-action button { margin: 0; white-space: nowrap; }
/* Pe cardul ingust (datele de facturare) butonul ANAF sta sub camp, ca CUI-ul sa se vada intreg. */
.card .with-action { flex-direction: column; }
/* Butonul implicit la Enter: există pentru tastatură, nu se vede și nu se citește. */
.hidden-default { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.fixed { margin: 0; padding: 0.8rem 0.9rem; border-radius: 12px; background: var(--ceata); overflow-wrap: anywhere; }
.bill { width: 100%; max-width: 40rem; border-collapse: collapse; margin: 1rem 0; }
.bill th, .bill td { padding: 0.8rem 0; border-bottom: 1px solid var(--linie); text-align: left; font-weight: 400; vertical-align: baseline; }
.bill td { text-align: right; white-space: nowrap; font-family: var(--titlu); font-weight: 650; }
.bill .sum th, .bill .sum td { border-bottom: 0; font-family: var(--titlu); font-weight: 700; font-size: 1.35rem; color: var(--sticla); }
.bill.small { max-width: none; font-size: 0.98rem; }
.bill.small th span, .bill.small td span { display: block; color: var(--text-slab); font-size: 0.92rem; font-family: var(--corp); font-weight: 400; }
.bill.small td + td { padding-left: 1rem; text-align: left; white-space: normal; }
.alt.left { text-align: left; }
.apps .actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.apps .warn { color: var(--rosu); font-weight: 600; }
.apps .credits { display: block; margin-top: 0.3rem; color: var(--text-slab); font-size: 0.95rem; }
.apps form.credits { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.renew { display: flex; gap: 0.4rem; align-items: center; }
select { font: inherit; color: inherit; padding: 0.5rem 0.7rem; border: 1.5px solid var(--linie); border-radius: 999px; background: #fff; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
.card form > button + button { margin-top: 0.75rem; }
@media (max-width: 36rem) {
  .two { grid-template-columns: minmax(0, 1fr); }
  .suffix { flex-direction: column; }
  .with-action { flex-direction: column; }
  .suffix input { border-radius: 12px 12px 0 0; }
  .suffix span { border: 1.5px solid var(--linie); border-top: 0; border-radius: 0 0 12px 12px; padding: 0.5rem 0.9rem; }
}

/* Dupa „Completeaza din ANAF" pagina ramane la datele firmei */
#firma { scroll-margin-top: 1rem; }

/* ---------- Comanda: pasi in stanga, bonul in dreapta ---------- */
.trail { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0; margin: 0 0 1.25rem; padding: 0; font-size: 0.95rem; color: var(--text-slab); }
.trail li { display: flex; align-items: center; }
.trail li + li::before { content: ""; width: 1.75rem; height: 1.5px; margin: 0 0.6rem; background: var(--linie); }
.trail .now { color: var(--sticla); font-weight: 700; }
.trail .done { color: var(--sticla); }
.trail .done::after { content: ""; width: 0.95rem; height: 0.95rem; margin-left: 0.35rem; background: var(--sticla); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 70%); }

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 22.5rem; gap: 2rem; align-items: start; margin-top: 1.75rem; }
.sheet { background: #fff; border-radius: 22px; padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: 0 0 0 1px var(--linie); }
.step + .step { margin-top: 2.75rem; }
.step legend { display: flex; align-items: center; gap: 0.7rem; width: 100%; padding: 0; margin-bottom: 0.35rem; font-family: var(--titlu); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.015em; color: var(--sticla); }
.no { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mesaj); color: var(--sticla); font-size: 1.05rem; }
.hint.after { margin-top: 0.6rem; }

/* Cartonasele de ales: planul, perioada, configurarea */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 0.9rem; }
.pick { position: relative; display: block; margin: 0; padding: 1.15rem 1.2rem 1.2rem; border: 1.5px solid var(--linie); border-radius: 18px; background: #fff; font-weight: 400; cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.pick:hover { border-color: #9fb8ad; }
.pick input { position: absolute; top: 1.15rem; right: 1.1rem; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--sticla); }
.pick:has(input:checked) { border-color: var(--sticla); background: var(--mesaj); box-shadow: 0 0 0 1.5px var(--sticla); }
.pick:has(input:focus-visible) { outline: 3px solid #2f8fdb; outline-offset: 2px; }
.pick-title { display: block; padding-right: 2rem; font-family: var(--titlu); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--sticla); }
.pick-price { display: block; margin-top: 0.35rem; color: var(--text-slab); }
.pick-price b { font-family: var(--titlu); font-size: 1.85rem; letter-spacing: -0.02em; color: var(--text); }
.pick-note { display: block; margin-top: 0.3rem; color: var(--text-slab); }
.pick-points { display: grid; gap: 0.4rem; margin-top: 0.85rem; font-size: 0.98rem; }
.pick-points span { position: relative; padding-left: 1.5rem; }
.pick-points span::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.95rem; height: 0.95rem; background: var(--sticla); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 70%); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.three .pick { padding: 1.05rem 1rem 1.1rem; }
.cards.three .pick-price b { display: block; font-size: 1.7rem; }
.cards.three .pick-points { font-size: 0.94rem; }
.addon { margin-top: 0.9rem; }
.addon.full { cursor: default; background: var(--ceata); border-style: dashed; }
.addon.full:hover { border-color: var(--linie); }
.plus { font-family: var(--corp); font-weight: 600; font-size: 1rem; color: var(--text); white-space: nowrap; }
mark { padding: 0.05em 0.4em; border-radius: 6px; background: var(--marker); color: #2b2400; font-family: var(--corp); font-size: 0.85rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }

/* Bonul */
.summary { position: sticky; top: 1.25rem; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -38px rgba(10, 79, 63, 0.55), 0 0 0 1px var(--linie); }
.receipt { padding: 1.5rem 1.5rem 1.35rem; background: var(--sticla); color: #fff; }
.receipt h2 { margin: 0 0 1rem; color: #fff; font-size: 1.15rem; overflow-wrap: anywhere; }
.ln, .tot { display: none; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; }
.ln { padding: 0.55rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); color: #d5e8df; }
.ln b { color: #fff; font-weight: 600; white-space: nowrap; }
.tot { padding-top: 1rem; font-size: 1.05rem; color: #d5e8df; }
.tot b { font-family: var(--titlu); font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; color: #fff; white-space: nowrap; }
.ln.shown, .tot.shown { display: flex; }
.vat { margin: 0.9rem 0 0; font-size: 0.85rem; color: #b9d3c8; }
.static-prices { display: none; margin: 0; padding: 0 0 0 1.1rem; color: #d5e8df; }
.static-prices li + li { margin-top: 0.3rem; }
.go { padding: 1.35rem 1.5rem 1.5rem; }
.go button, .go .button { width: 100%; margin-top: 1.1rem; padding: 1rem 1.4rem; font-size: 1.08rem; }
.go form + .calm { margin-top: 1.1rem; }
.accept { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.accept input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; accent-color: var(--sticla); }
.calm { list-style: none; display: grid; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; font-size: 0.92rem; color: var(--text-slab); }
.calm li { position: relative; padding-left: 1.4rem; }
.calm li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 0.85rem; height: 0.85rem; background: var(--sticla); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 26%, 86% 12%, 38% 70%); }
.np { display: block; width: 168px; height: 30px; margin-top: 0.55rem; }
.billto { margin: 0; font-size: 0.95rem; color: var(--text-slab); }
.billto b { color: var(--text); }

/* Totalul care se schimba singur: fiecare suma posibila e in pagina, iar aici se alege cea care se potriveste cu ce e bifat. */
.checkout:has([name=configurare]:checked) .ln-setup { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=lunar]:checked) .ln-standard-lunar { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=lunar]:checked):not(:has([name=configurare]:checked)) .tot-standard-lunar-0 { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=lunar]:checked):has([name=configurare]:checked) .tot-standard-lunar-1 { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=anual]:checked) .ln-standard-anual { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=anual]:checked):not(:has([name=configurare]:checked)) .tot-standard-anual-0 { display: flex; }
.checkout:has([name=plan][value=standard]:checked):has([name=perioada][value=anual]:checked):has([name=configurare]:checked) .tot-standard-anual-1 { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=lunar]:checked) .ln-plus-lunar { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=lunar]:checked):not(:has([name=configurare]:checked)) .tot-plus-lunar-0 { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=lunar]:checked):has([name=configurare]:checked) .tot-plus-lunar-1 { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=anual]:checked) .ln-plus-anual { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=anual]:checked):not(:has([name=configurare]:checked)) .tot-plus-anual-0 { display: flex; }
.checkout:has([name=plan][value=plus]:checked):has([name=perioada][value=anual]:checked):has([name=configurare]:checked) .tot-plus-anual-1 { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=lunar]:checked) .ln-ai-lunar { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=lunar]:checked):not(:has([name=configurare]:checked)) .tot-ai-lunar-0 { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=lunar]:checked):has([name=configurare]:checked) .tot-ai-lunar-1 { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=anual]:checked) .ln-ai-anual { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=anual]:checked):not(:has([name=configurare]:checked)) .tot-ai-anual-0 { display: flex; }
.checkout:has([name=plan][value=ai]:checked):has([name=perioada][value=anual]:checked):has([name=configurare]:checked) .tot-ai-anual-1 { display: flex; }
@supports not selector(:has(*)) {
  .live { display: none; }
  .static-prices { display: block; }
  .pick input:checked ~ .pick-title { text-decoration: underline; text-decoration-thickness: 2px; }
}

/* Panoul de administrare */
.warn { color: var(--rosu); font-weight: 600; }
.admin { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.98rem; }
.admin th, .admin td { padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.admin th { font-family: var(--titlu); font-weight: 650; color: var(--sticla); }
.admin td span { white-space: nowrap; }
@media (max-width: 48rem) {
  .admin thead { display: none; }
  .admin tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--linie); }
  .admin td { display: block; padding: 0.15rem 0; border: 0; }
  .admin td[data-l]::before { content: attr(data-l) ": "; color: var(--text-slab); }
}

/* Pagina de plata: doar bonul, pe mijloc */
.pay { max-width: 30rem; margin-inline: auto; }
.summary.solo { position: static; margin-top: 1.5rem; }

@media (max-width: 60rem) {
  .checkout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 48rem) { .cards.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 36rem) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .trail li + li::before { width: 1rem; margin: 0 0.4rem; }
}
@media (prefers-reduced-motion: reduce) { .pick { transition: none; } }

/* Actiunile administratorului pe un cont */
.acts details { border-bottom: 1px solid var(--linie); padding: 0.5rem 0; }
.acts summary { cursor: pointer; padding: 0.4rem 0; }
.acts summary span { color: var(--text-slab); margin-left: 0.5rem; }
.acts form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.6rem 0; }
.acts form.inline input:not([type=hidden]) { width: auto; flex: 1 1 14rem; padding: 0.5rem 0.8rem; border: 1.5px solid var(--linie); border-radius: 999px; font: inherit; color: inherit; background: #fff; }
.acts form.inline input[type=date] { flex: 0 1 11rem; }
.acts form.inline input[type=number] { flex: 0 0 7.5rem; }
.acts form.inline label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.acts .danger { color: var(--rosu); }
.acts .danger:hover { background: #fdecec; }
.code { word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; padding: 0.8rem 1rem; background: var(--ceata); border-radius: 12px; }

/* Recomandari: cine a venit prin codul contului */
.refs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.refs li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; align-items: baseline; font-size: 0.95rem; }
.refs li span { color: var(--text-slab); }
