/* Biblioteca noastra — stil dupa macheta aprobata (2026-11-27). Fara stiluri inline (CSP style-src 'self'). */
:root {
  --bg: #F4F4F0; --card: #FFFFFF; --ink: #1B1F1D; --ink2: #3E4441; --muted: #5C6360;
  --line: #E3E4DF; --line2: #EEEFEA; --line3: #C9CCC5; --seg: #E8E9E3;
  --acc: #1F6B57; --acc-ink: #FFFFFF; --acc-2: #174F41; --acc-soft: #E4F0EB; --acc-on-dark: #DCEBE5;
  --warn: #8A3F06; --warn-soft: #FBEEDC; --warn-line: #EBCFA8;
  --info: #23395B; --info-soft: #EAEEF5; --star: #B7832F; --danger: #A8321F;
  --serif: Literata, Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px; --r-l: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513; --card: #1A1F1D; --ink: #E7ECE9; --ink2: #C9D1CD; --muted: #A2ABA6;
    --line: #2B322F; --line2: #252B28; --line3: #3D4642; --seg: #242A27;
    --acc: #2A7D66; --acc-ink: #FFFFFF; --acc-2: #6FD3B0; --acc-soft: #1D3A31; --acc-on-dark: #DCEBE5;
    --warn: #F2B37A; --warn-soft: #3A2A1A; --warn-line: #5C4128;
    --info: #A9C0E8; --info-soft: #1F2A3D; --star: #E0B25A; --danger: #F08C7A;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--bg); }
body.cu-nav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.pagina { max-width: 640px; margin: 0 auto; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 18px; }
body.simplu .pagina { min-height: 100vh; justify-content: center; }
a { color: var(--acc); text-decoration: none; }
@media (prefers-color-scheme: dark) { a { color: var(--acc-2); } }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, p { margin: 0; }
strong { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .fara-js { display: none; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- text ---------- */
.titlu-mare { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.titlu-mediu { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.2; }
.titlu-carte { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.titlu-carte-mare { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.12; overflow-wrap: anywhere; }
.sub { font-size: 14px; color: var(--muted); }
.sub-alerta { font-size: 13px; color: var(--warn); font-weight: 600; }
.ok-mic { font-size: 13px; color: var(--acc); font-weight: 600; }
@media (prefers-color-scheme: dark) { .ok-mic { color: var(--acc-2); } }
.lipseste { font-size: 13px; color: var(--muted); font-weight: 600; }
.eticheta { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.acc { color: var(--acc); font-weight: 600; }
@media (prefers-color-scheme: dark) { .acc { color: var(--acc-2); } }
.link-tare { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--acc); }
@media (prefers-color-scheme: dark) { .link-tare { color: var(--acc-2); } }
.text-lung { white-space: pre-line; line-height: 1.5; font-size: 15px; }
.centrat { text-align: center; }
.centrat-bloc { align-self: center; padding: 10px 16px; }
.cu-icon { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; line-height: 18px; }
.ic { flex: none; }
.ic-acc { color: var(--acc); }
@media (prefers-color-scheme: dark) { .ic-acc { color: var(--acc-2); } }
.ic-gri { color: var(--muted); }

/* ---------- antet ---------- */
.cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-jos { align-items: baseline; }
.cap-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bara-sus { display: flex; align-items: center; justify-content: space-between; margin: -6px 0 -6px -8px; }
.link-inapoi { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; font-weight: 600; font-size: 15px; }
.btn-icon { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.btn-icon:hover { background: var(--seg); }

/* ---------- avatare ---------- */
.av { flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #FFFFFF; text-decoration: none; }
.av:hover { text-decoration: none; }
.av-s { width: 28px; height: 28px; font-size: 12px; }
.av-m { width: 36px; height: 36px; font-size: 14px; }
.av-l { width: 44px; height: 44px; font-size: 16px; }
.av-0 { background: #23395B; } .av-1 { background: #9A4A25; } .av-2 { background: #2F6F73; } .av-3 { background: #5A3E6B; }
.av-4 { background: #5B6B2F; } .av-5 { background: #7A2E3A; } .av-6 { background: #2E2E33; } .av-7 { background: #8A5A12; }
.avatare { display: flex; gap: 6px; }
.avatare .av { width: 44px; height: 44px; border: 3px solid transparent; }
.avatare .av.ales { border-color: var(--acc); box-shadow: 0 0 0 2px var(--bg) inset; }

/* ---------- coperti (imagine sau desenate) ---------- */
.cv { display: flex; flex-direction: column; justify-content: space-between; flex: none; overflow: hidden;
  border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 rgba(0,0,0,0.18); color: #FFFFFF; object-fit: cover; background: var(--seg); }
img.cv { box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.cv-t { font-family: var(--serif); font-weight: 600; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cv-a { line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-xs { width: 36px; height: 52px; border-radius: 2px 5px 5px 2px; box-shadow: inset 2px 0 0 rgba(0,0,0,0.22); }
.cv-s { width: 76px; height: 110px; padding: 9px 7px 8px 10px; } .cv-s .cv-t { font-size: 12px; } .cv-s .cv-a { font-size: 9px; }
.cv-g { width: 100%; aspect-ratio: 2 / 3; height: auto; padding: 10px 8px 9px 12px; } .cv-g .cv-t { font-size: 14px; } .cv-g .cv-a { font-size: 10px; }
.cv-m { width: 96px; height: 140px; padding: 12px 9px 10px 13px; } .cv-m .cv-t { font-size: 15px; } .cv-m .cv-a { font-size: 10px; }
.cv-l { width: 118px; height: 172px; padding: 14px 10px 12px 15px; box-shadow: inset 5px 0 0 rgba(0,0,0,0.18), 0 8px 20px rgba(27,31,29,0.12); }
.cv-l .cv-t { font-size: 20px; } .cv-l .cv-a { font-size: 11px; }
img.cv-l { box-shadow: 0 8px 20px rgba(27,31,29,0.18); }
.cv-lung .cv-t { font-size: 0.8em; }
.cv-s.cv-lung .cv-t { font-size: 10px; } .cv-g.cv-lung .cv-t { font-size: 11.5px; } .cv-m.cv-lung .cv-t { font-size: 12.5px; } .cv-l.cv-lung .cv-t { font-size: 16px; }
.cv-c0 { background: #5B6B2F; } .cv-c1 { background: #7A2E3A; } .cv-c2 { background: #2E2E33; } .cv-c3 { background: #9A4A25; }
.cv-c4 { background: #E9D8A6; color: #2B2418; } .cv-c5 { background: #23395B; } .cv-c6 { background: #2F6F73; } .cv-c7 { background: #5A3E6B; }

/* ---------- cautare ---------- */
.camp-cautare { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.camp-cautare input { border: 0; outline: none; flex: 1; min-width: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.camp-cautare:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }

/* ---------- card scanare ---------- */
.card-scan { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-l); background: var(--acc); color: var(--acc-ink); }
.card-scan:hover { text-decoration: none; background: var(--acc-2); }
@media (prefers-color-scheme: dark) { .card-scan, .card-scan:hover { color: #FFFFFF; } .card-scan:hover { background: #2F8C72; } }
.card-scan-ic { width: 52px; height: 52px; flex: none; border-radius: var(--r); background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; }
.card-scan-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-scan-text strong { font-size: 17px; }
.card-scan-text span { font-size: 14px; line-height: 1.35; color: var(--acc-on-dark); }

/* ---------- alerte si mesaje ---------- */
.alerta { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-l); background: var(--warn-soft); }
.alerta-rand { display: flex; gap: 12px; align-items: flex-start; color: var(--warn); }
.alerta-text-bloc { display: flex; flex-direction: column; gap: 2px; }
.alerta-text-bloc strong { font-size: 15px; color: var(--ink); }
.alerta-text-bloc span { font-size: 14px; color: var(--warn); }
.alerta-text { padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-weight: 500; font-size: 15px; }
.confirmare { padding: 12px 14px; border-radius: var(--r); background: var(--acc-soft); color: var(--acc); font-weight: 500; font-size: 15px; }
@media (prefers-color-scheme: dark) { .confirmare { color: var(--acc-2); } }
.nota-gri { padding: 12px 14px; border-radius: var(--r); background: var(--bg); font-size: 14px; color: var(--ink2); }
.nota-alerta { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); font-size: 14px; }
.nota-alerta .ic { color: var(--warn); fill: currentColor; stroke: none; }
.bula { align-self: flex-start; max-width: 92%; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--bg); font-size: 14px; line-height: 1.4; color: var(--ink2); }

/* ---------- sectiuni si randuri ---------- */
.sectiune { display: flex; flex-direction: column; gap: 10px; }
.sectiune-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lista-card, .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.card { padding: 16px; }
.card.ingust { max-width: 420px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.lista-card { display: flex; flex-direction: column; overflow: hidden; }
.rand { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); border-bottom: 1px solid var(--line2); min-height: 56px; }
.rand:last-child { border-bottom: 0; }
a.rand:hover { text-decoration: none; background: var(--bg); }
.rand-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rand-text input { width: 100%; }
.rand-nume { font-size: 15px; font-weight: 600; }
.rand-serie .nr { width: 24px; text-align: center; font-size: 13px; color: var(--muted); flex: none; }
.rand-serie.curent { background: var(--acc-soft); }
.rand.oprit { opacity: 0.6; }
.rand-form { flex-wrap: wrap; }
.rand-form input { height: 40px; padding: 0 10px; border: 1px solid var(--line3); border-radius: 10px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); }
.camp-tel { width: 9.5em; }
.rand-link { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); border-bottom: 1px solid var(--line2); }
.rand-link span { flex: 1; font-weight: 500; }
.rand-link:last-child { border-bottom: 0; }
.rand-link:hover { text-decoration: none; background: var(--bg); }
.card-link { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); border-bottom: 1px solid var(--line); }
.legaturi-cont { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.gol { padding: 24px 16px; text-align: center; display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px dashed var(--line3); border-radius: var(--r-l); }
.gol-in-card { border: 0; border-radius: 0; }

/* ---------- raft orizontal (acasa) si grila (catalog) ---------- */
.raft { display: flex; gap: 12px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
.raft::-webkit-scrollbar { display: none; }
.raft-item { flex: none; }
.raft-item:hover { text-decoration: none; transform: translateY(-2px); }
.grila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 560px) { .grila { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grila-item { display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-width: 0; }
.grila-item:hover { text-decoration: none; }
.grila-item:hover .grila-titlu { text-decoration: underline; }
.grila-titlu { font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grila-autor { font-size: 12px; color: var(--muted); margin-top: -4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- etichete de stare ---------- */
.eticheta-stare { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 9px; border-radius: 13px; font-size: 12px; font-weight: 600; }
.eticheta-stare.mare { min-height: 32px; padding: 4px 12px; border-radius: 16px; font-size: 14px; }
.st-ok { background: var(--acc-soft); color: var(--acc); }
@media (prefers-color-scheme: dark) { .st-ok { color: var(--acc-2); } }
.st-alerta { background: var(--warn-soft); color: var(--warn); }
.st-gri { background: var(--seg); color: var(--ink2); }
.st-info { background: var(--info-soft); color: var(--info); }
.rand-eticheta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- filtre ---------- */
.cipuri { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.cipuri::-webkit-scrollbar { display: none; }
.cip { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--line3);
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.cip:hover { text-decoration: none; border-color: var(--acc); }
.cip[aria-current] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.rand-selectii { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.selectie { display: inline-flex; align-items: center; gap: 4px; color: var(--ink2); }
.selectie select { height: 40px; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink2); padding: 0 4px; max-width: 10.5em; }

/* ---------- butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line3); background: var(--card); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn-p { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
a.btn-p, a.btn-p:hover { color: var(--acc-ink); }
.btn-p:hover { background: var(--acc-2); border-color: var(--acc-2); }
@media (prefers-color-scheme: dark) { .btn-p:hover { background: #2F8C72; border-color: #2F8C72; } }
.btn-mic { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-pastila { min-height: 44px; border-radius: 22px; padding: 0 14px; font-size: 14px; white-space: nowrap; flex: none; }
.btn-alerta { min-height: 44px; background: var(--card); border-color: var(--warn-line); color: var(--warn); font-size: 14px; }
a.btn-alerta:hover { color: var(--warn); }
.btn-text { border: 0; background: transparent; color: var(--acc); font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 8px; cursor: pointer; }
.pericol { color: var(--danger); }
.lat { flex: 1; }
.doua-butoane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doua-butoane form, .doua-butoane .btn { width: 100%; }
.doua-butoane form .btn { width: 100%; }
.rand-butoane { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.rand-butoane form { display: contents; }
.pliabil { position: relative; }
.pliabil > summary { list-style: none; width: 100%; }
.pliabil > summary::-webkit-details-marker { display: none; }
.pliabil[open] { grid-column: 1 / -1; }
.pliabil[open] > summary { display: none; }
.pliabil-text > summary { list-style: none; }
.pliabil-text > summary::-webkit-details-marker { display: none; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
.panou { margin-top: 12px; }

/* ---------- formulare ---------- */
.stiva { display: flex; flex-direction: column; gap: 14px; }
.stiva-mica { display: flex; flex-direction: column; gap: 12px; }
.camp { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink2); }
.camp input, .camp select, .camp textarea, .link-camp { min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line3);
  background: var(--card); font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.camp textarea { resize: vertical; }
.camp input:focus, .camp select:focus, .camp textarea:focus, .rand-form input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.camp-scurt input { width: 7em; }
.camp-creste { flex: 1; min-width: 12em; }
.doua-coloane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grup { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.grup legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.camp-fisier, .camp-fisier-buton { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border-radius: var(--r); font-size: 15px; font-weight: 600; cursor: pointer; }
.camp-fisier { border: 1px dashed var(--muted); background: var(--card); color: var(--ink); }
.camp-fisier input, .camp-fisier-buton input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.camp-fisier:focus-within, .camp-fisier-buton:focus-within { outline: 3px solid var(--acc); outline-offset: 2px; }
.bifa { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; cursor: pointer; flex: 1; }
.bifa input { width: 22px; height: 22px; accent-color: var(--acc); flex: none; }
.rand-setare { display: flex; align-items: center; gap: 10px; padding: 14px; border-top: 1px solid var(--line2); }
.link-camp { font-size: 14px; }

/* ---------- segmente (taburi) ---------- */
.segment { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--seg); }
.segment a, .segment button { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 4px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.15; }
.segment-4 a { font-size: 13px; }
.segment a:hover { text-decoration: none; color: var(--ink); }
.segment a[aria-current], .segment button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(27,31,29,0.15); }

/* ---------- note (stele) ---------- */
.stele { display: flex; align-items: center; gap: 2px; margin-top: 12px; }
.stele .sub { margin-right: 6px; }
.stea-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--line3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.stea-btn .ic { fill: currentColor; stroke: none; }
.stea-btn.aprinsa { color: var(--star); }
.stea-btn:hover { color: var(--star); }
.nota { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nota .stea { color: var(--star); fill: currentColor; stroke: none; }
.progres { width: 100%; height: 8px; }
meter.progres { -webkit-appearance: none; appearance: none; background: var(--seg); border-radius: 4px; border: 0; }
meter.progres::-webkit-meter-bar { background: var(--seg); border-radius: 4px; border: 0; height: 8px; }
meter.progres::-webkit-meter-optimum-value, meter.progres::-webkit-meter-suboptimum-value, meter.progres::-webkit-meter-even-less-good-value { background: var(--acc); border-radius: 4px; }
meter.progres::-moz-meter-bar { background: var(--acc); border-radius: 4px; }

/* ---------- fisa cartii ---------- */
.erou { display: flex; gap: 18px; align-items: flex-start; }
.erou-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 2px; }
.erou-autor { font-size: 15px; color: var(--ink2); margin-top: -2px; }
.erou-mic { align-items: center; gap: 14px; }

/* ---------- imprumuturi ---------- */
.card-impr { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.card-impr.intarziat { border-color: var(--warn-line); }
.rand-impr { display: flex; gap: 12px; align-items: center; color: var(--ink); }
a.rand-impr:hover { text-decoration: none; }
a.rand-impr:hover .titlu-carte { text-decoration: underline; }
.rand-impr .cv-xs { width: 44px; height: 64px; }
.rand-impr .rand-text { font-size: 14px; gap: 3px; }
.rand-impr .titlu-carte { font-size: 17px; }

/* ---------- scanare ---------- */
body.pagina-scan { background: #101413; }
body.pagina-scan .pagina { padding: 0; gap: 0; max-width: 640px; }
.camera { background: #101413; color: #FFFFFF; padding: 16px 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.camera-sus { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.camera-titlu { font-size: 16px; font-weight: 600; }
.btn-rotund, .btn-rotund-loc { width: 44px; height: 44px; border-radius: 22px; flex: none; }
.btn-rotund { background: rgba(255,255,255,0.12); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
a.btn-rotund:hover { background: rgba(255,255,255,0.22); color: #FFFFFF; }
.vizor { position: relative; width: 290px; max-width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; }
.vizor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.colt { position: absolute; width: 28px; height: 28px; border: 3px solid #FFFFFF; z-index: 1; }
.c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.linie-scan { position: absolute; left: 18px; right: 18px; top: 50%; height: 2px; border-radius: 1px; background: #6FD3B0; box-shadow: 0 0 12px rgba(111,211,176,0.8); z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .linie-scan { animation: scan 2.2s ease-in-out infinite alternate; }
  @keyframes scan { from { top: 22%; } to { top: 78%; } }
}
.vizor-gata { height: 72px; }
.cod-citit { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #6FD3B0; }
.camera-indiciu { font-size: 14px; color: #C9D1CD; text-align: center; }
.btn-contur { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.foaie { background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 20px 28px; display: flex; flex-direction: column; gap: 16px; min-height: 60vh; }
.maner { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line3); }
.camp-fisier-buton { color: #FFFFFF; }

/* ---------- fisierele cartilor electronice, paginare ---------- */
.rand-fisier { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rand-butoane-dreapta { margin-left: auto; display: flex; gap: 8px; }
.paginare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.paginare > :last-child { justify-self: end; }
.qr { align-self: center; background: #FFFFFF; border-radius: 8px; padding: 6px; width: 220px; height: 220px; }
.coduri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.coduri code { font-size: 17px; letter-spacing: 0.05em; }
.cheie-totp { word-break: break-all; font-size: 15px; }
code { font-size: 0.92em; background: var(--seg); padding: 1px 4px; border-radius: 4px; }

/* ---------- import ---------- */
.rezumat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.rezumat div { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; border-radius: var(--r); background: var(--bg); }
.rezumat strong { font-family: var(--serif); font-size: 26px; }
.rezumat span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.lista-simpla { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink2); }
.rand-import { align-items: flex-start; }
.rand-import.st-deja, .rand-import.st-dublura { opacity: 0.7; }
.categorii { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- meniul de jos ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(80px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
@media (min-width: 680px) { .nav { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; } }
.nav a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--muted); padding-bottom: 8px; }
.nav a:hover { text-decoration: none; color: var(--ink); }
.nav a[aria-current] { color: var(--acc); font-weight: 600; }
@media (prefers-color-scheme: dark) { .nav a[aria-current] { color: var(--acc-2); } }
.nav a.nav-scan > span { width: 58px; height: 58px; border-radius: 29px; background: var(--acc); color: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 6px 16px rgba(31,107,87,0.35); }
.nav a.nav-scan:hover > span { background: var(--acc-2); }
@media (prefers-color-scheme: dark) { .nav a.nav-scan:hover > span { background: #2F8C72; } }
body.pagina-scan .nav { display: none; }
body.pagina-scan.cu-nav { padding-bottom: 0; }
