/* Dashboard-ul nou: o singură coloană lizibilă pe telefon, aceeași pe calculator (lățime maximă), temă deschisă sau închisă după
   telefon. Culorile stărilor sunt aceleași peste tot: Disponibilă gri, Adoptată galben, Anunțată albastru, Primită verde. */
:root {
  --fundal: #f4f5f8; --card: #ffffff; --text: #1b2230; --text-2: #5a6475; --linie: #e2e5eb; --apasat: #eef1f6;
  --accent: #1f6feb; --accent-text: #ffffff; --rosu: #c62828; --rosu-f: #fdecea;
  --s-disponibila: #6b7280; --s-disponibila-f: #eef0f3;
  --s-adoptata: #9a6200; --s-adoptata-f: #fff3d6;
  --s-anuntata: #1d5fbf; --s-anuntata-f: #e5efff;
  --s-primita: #1e7a46; --s-primita-f: #e3f4ea;
  --verde-buton: #1e8e4e; --umbra: 0 1px 2px rgba(20, 30, 50, .06), 0 2px 10px rgba(20, 30, 50, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundal: #0f1116; --card: #181b22; --text: #e7e9ee; --text-2: #9aa3b2; --linie: #272b35; --apasat: #20242d;
    --accent: #4c8dff; --rosu: #ff7a70; --rosu-f: #3a1c1a;
    --s-disponibila: #a3aab6; --s-disponibila-f: #252a33;
    --s-adoptata: #f2c14e; --s-adoptata-f: #3a2e10;
    --s-anuntata: #7fb0ff; --s-anuntata-f: #17263f;
    --s-primita: #5fd38d; --s-primita-f: #15301f;
    --verde-buton: #2ea765; --umbra: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundal); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Antet și navigare */
.antet { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--linie); }
.antet-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 6px 16px; }
.antet h1 { margin: 0; font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.antet .marca { width: auto; height: 30px; display: block; flex-shrink: 0; }   /* sigla Love2Share, fond transparent (tools/sigla-transparenta.js) */
@media (prefers-color-scheme: dark) { .antet .marca { background: #f6f2ea; border-radius: 8px; padding: 2px 4px; height: 34px; margin: -2px 0; } }   /* contur și text negre: pe un fundal deschis */
.prospetime { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.prospetime::before { content: '● '; color: var(--s-primita); }
.prospetime.vechi::before { color: var(--rosu); }
.prospetime.vechi { color: var(--rosu); }
.btn-icon { border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; font-size: 20px; display: grid; place-items: center; }
#buton-mai-mult { width: 48px; height: 48px; font-size: 26px; color: var(--text); margin: -6px -8px -6px 0; }   /* ☰: zonă de apăsare 48 px, fără să înalțe antetul */
.btn-icon:hover { background: var(--apasat); }
.nav-sus { display: none; }
.nav-jos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--linie); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.nav-jos a, .nav-sus a { flex: 1; text-decoration: none; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11.5px; position: relative; }
.nav-jos a .i { font-size: 21px; line-height: 1.1; padding: 2px 14px; border-radius: 999px; }
.nav-jos a.activ { color: var(--accent); font-weight: 700; }
.nav-jos a.activ .i { background: var(--apasat); }
.nr { position: absolute; top: 3px; left: calc(50% + 8px); background: var(--rosu); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
main { max-width: 980px; margin: 0 auto; padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .nav-jos { display: none; }
  .nav-sus { display: flex; gap: 4px; max-width: 980px; margin: 0 auto; padding: 0 12px; }
  .nav-sus a { flex: 0 0 auto; flex-direction: row; font-size: 14px; padding: 10px 12px; border-bottom: 2px solid transparent; gap: 6px; }
  .nav-sus a.activ { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
  .nav-sus .nr { position: static; }
  main { padding-bottom: 40px; }
}

/* Meniul «Mai mult» */
.foaie-fundal { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 40; }
.foaie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--card); border-radius: 16px 16px 0 0; padding: 0 8px calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; max-height: 85vh; max-height: 85dvh; display: flex; flex-direction: column; }
.foaie[hidden] { display: none; }
.foaie a, .foaie button { display: flex; align-items: center; gap: 14px; width: 100%; text-decoration: none; color: var(--text); padding: 14px 12px; border-radius: 10px; border: 0; background: none; text-align: left; }
.foaie a:hover, .foaie button:hover { background: var(--apasat); }
.foaie small { display: block; color: var(--text-2); font-size: 13px; }
.foaie .i { font-size: 22px; width: 28px; text-align: center; }

/* Elemente comune */
h2.titlu { font-size: 22px; margin: 4px 0 2px; }
p.sub { margin: 0 0 14px; color: var(--text-2); }
.card { background: var(--card); border: 1px solid var(--linie); border-radius: 14px; padding: 14px; box-shadow: var(--umbra); }
.card + .card { margin-top: 10px; }
.sectiune { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); margin: 20px 2px 8px; display: flex; justify-content: space-between; }
.sectiune.urgent { color: var(--s-anuntata); } .sectiune.rosu { color: var(--rosu); }
.gol { text-align: center; color: var(--text-2); padding: 28px 10px; }
.buton { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; background: var(--accent); color: var(--accent-text); text-decoration: none; }
.buton.mare { width: 100%; padding: 15px; font-size: 17px; }
.buton.verde { background: var(--verde-buton); color: #fff; }
label.buton { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.buton.poza-noua { padding: 26px 15px; font-size: 19px; margin-top: 12px; }
.buton.secundar { background: var(--apasat); color: var(--text); }
.buton.mic { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.buton:disabled { opacity: .45; cursor: default; }
.link-buton { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 8px 0; }
.camp { width: 100%; border: 1.5px solid var(--linie); background: var(--card); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.camp:focus { outline: none; border-color: var(--accent); }
.camp.mare { font-size: 19px; padding: 14px 16px; }
label.eticheta { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 12px 2px 4px; }
.cip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.s-disponibila { color: var(--s-disponibila); background: var(--s-disponibila-f); }
.s-adoptata { color: var(--s-adoptata); background: var(--s-adoptata-f); }
.s-anuntata { color: var(--s-anuntata); background: var(--s-anuntata-f); }
.s-primita { color: var(--s-primita); background: var(--s-primita-f); }
.cip.rosu { color: var(--rosu); background: var(--rosu-f); }
.cip.neutru { color: var(--text-2); background: var(--apasat); }

/* Filtre ca pastile, derulabile pe orizontală */
.pastile { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.pastile::-webkit-scrollbar { display: none; }
.pastila { flex: 0 0 auto; border: 1.5px solid var(--linie); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--text); text-decoration: none; }
.pastila.activ { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pastila b { margin-left: 5px; }
.comutator { display: flex; background: var(--apasat); border-radius: 12px; padding: 3px; margin: 10px 0; }
.comutator a { flex: 1; text-align: center; text-decoration: none; padding: 8px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.comutator a.activ { background: var(--card); color: var(--text); box-shadow: var(--umbra); }
.comutator button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 10px; font-weight: 600; color: var(--text-2); }
.comutator button.activ { background: var(--card); color: var(--text); box-shadow: var(--umbra); }

/* Rânduri de listă */
.lista { background: var(--card); border: 1px solid var(--linie); border-radius: 14px; overflow: hidden; }
.rand { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--linie); text-decoration: none; color: inherit; }
.rand:last-child { border-bottom: 0; }
a.rand:hover { background: var(--apasat); }
.rand .mij { flex: 1; min-width: 0; }
.rand .t { font-weight: 650; }
.rand .t { display: block; }
.actiuni-rand { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.rand.confirmata { background: var(--s-primita-f); }
.rand .t .suma { font-weight: 400; white-space: nowrap; font-size: 13.5px; color: var(--text-2); }
.rand.confirmata .t .suma { color: var(--s-primita); }
.actiuni-rand .link-buton.mic { font-size: 12.5px; font-weight: 500; padding: 2px 0; }
.actiuni-rand .camp.mic { width: 84px; padding: 6px 8px; font-size: 16px; }
.rand .t .cod-normal { font-weight: 400; color: var(--text-2); font-size: 13.5px; }
.doua-coloane { display: flex !important; justify-content: space-between; align-items: baseline; gap: 8px; }
.doua-coloane > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doua-coloane > :last-child { flex-shrink: 0; }
.rand .d { display: block; color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rand input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }

/* Azi */
.actiune { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.actiune .i { width: 46px; height: 46px; border-radius: 12px; background: var(--apasat); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.actiune.urgent .i { background: var(--s-anuntata-f); }
.actiune .t { font-weight: 700; } .actiune .d { color: var(--text-2); font-size: 14px; }
.actiune .sageata { color: var(--text-2); font-size: 22px; margin-left: auto; }
.drum { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--apasat); margin: 10px 0 8px; }
.drum span { display: block; height: 100%; }
/* Legenda drumului: un rând de cinci coloane, numărul mare în culoarea stării și eticheta scurtă dedesubt */
.drum-legenda { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; }
.drum-legenda a { text-decoration: none; color: inherit; border-radius: 8px; padding: 4px 0; }
.drum-legenda a:hover { background: var(--apasat); }
.drum-legenda b { display: block; font-size: 19px; line-height: 1.2; }
.drum-legenda small { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.drum-legenda .n-disponibila { color: var(--s-disponibila); } .drum-legenda .n-adoptata { color: var(--s-adoptata); } .drum-legenda .n-anuntata { color: var(--s-anuntata); }
.drum-legenda .n-primita { color: var(--s-primita); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px; }
.termene { display: flex; justify-content: center; gap: 28px; }

/* Recepție */
.cautare-mare { position: sticky; top: 58px; z-index: 5; background: var(--fundal); padding: 4px 0 8px; }
@media (min-width: 900px) { .cautare-mare { top: 104px; } }
.centru-mare { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.centru-mare .g { font-size: 38px; font-weight: 800; line-height: 1; background: var(--s-anuntata-f); color: var(--s-anuntata); border-radius: 12px; padding: 8px 12px; }
.centru-mare small { display: block; color: var(--text-2); }
.bifa { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.bifa input { width: 20px; height: 20px; accent-color: var(--accent); }
.bifa.gata { color: var(--s-primita); }
.suma-asteptata { display: flex; justify-content: space-between; align-items: center; background: var(--apasat); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; }
.succes { text-align: center; }
.succes .bif { width: 58px; height: 58px; border-radius: 50%; background: var(--s-primita-f); color: var(--s-primita); font-size: 30px; display: grid; place-items: center; margin: 4px auto 8px; }
.succes .g { display: inline-block; margin: 10px 0; font-size: 50px; font-weight: 800; background: var(--s-anuntata-f); color: var(--s-anuntata); border-radius: 14px; padding: 4px 18px; }

/* Fișa scrisorii */
.fisa-cap { display: flex; gap: 14px; align-items: flex-start; }
.fisa-cap .poza { width: 96px; height: 120px; border-radius: 10px; background: var(--apasat); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; color: var(--text-2); font-size: 28px; }
.fisa-cap .poza img { width: 100%; height: 100%; object-fit: cover; }
.fisa-cap h2 { margin: 0; font-size: 22px; }
.dorinta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.dorinta .camp { padding: 10px 12px; }
.dorinta button { flex-shrink: 0; }
.istoric { font-size: 13.5px; color: var(--text-2); }
.istoric div { padding: 6px 0; border-bottom: 1px solid var(--linie); }
.istoric b { color: var(--text); font-weight: 600; }
.bara-salvare[data-gol] { display: none; }
.bara-salvare { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); margin-top: 14px; display: flex; gap: 10px; background: var(--fundal); padding: 8px 0; }
@media (min-width: 900px) { .bara-salvare { bottom: 0; } }

/* Notificarea de jos (cu «Anulează») */
/* Notificarea: mică și discretă, cu «Anulează» ca link; dispare singură */
.notificare { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); max-width: min(440px, calc(100% - 32px)); z-index: 30;
  background: rgba(27, 34, 48, .92); color: #e8ecf3; border-radius: 999px; padding: 7px 14px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); white-space: nowrap; }
.notificare span { overflow: hidden; text-overflow: ellipsis; }
.notificare button { border: 0; background: none; padding: 0; color: #9cc2ff; font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; }
.notificare.eroare { background: #7a1f1a; white-space: normal; border-radius: 12px; }
@media (min-width: 900px) { .notificare { bottom: 24px; } }
.local { background: var(--s-adoptata-f); color: var(--s-adoptata); font-size: 13px; text-align: center; padding: 6px 12px; }

/* Butonul «Scrisoare nouă»: rotund, jos-dreapta pe telefon; cu text, în colț, pe calculator */
.fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 15; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 28px; display: grid; place-items: center; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fab span { display: none; }
@media (min-width: 900px) {
  .fab { position: static; float: right; width: auto; height: auto; border-radius: 12px; font-size: 15px; font-weight: 700; padding: 10px 16px; margin: 0 0 10px 10px; display: inline-flex; box-shadow: none; }
  .fab span { display: inline; }
}


/* Termenele într-un singur calendar (Azi): intervalele colorate pe zile, serbările ca punct mov, azi încercuit */
.cal-unic { display: block; text-decoration: none; color: inherit; padding: 10px 10px 8px; }
.cal-grila { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; text-align: center; font-size: 13px; }
.cal-cap { color: var(--text-2); font-size: 11px; font-weight: 600; padding-bottom: 2px; }
.cal-luna-rand { grid-column: 1 / -1; text-align: left; font-weight: 700; font-size: 13px; margin: 8px 4px 2px; }
.cal-zi { position: relative; padding: 4px 0; line-height: 1.25; }
.cal-zi small { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; line-height: 1; margin-top: -2px; }
.cal-zi.trecut { color: var(--text-2); opacity: .5; }
.cal-zi.in { font-weight: 700; }
.cal-zi.st { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.cal-zi.dr { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.cal-zi.c-adoptata { background: var(--s-adoptata-f); color: var(--s-adoptata); }
.cal-zi.c-anuntata { background: var(--s-anuntata-f); color: var(--s-anuntata); }
.cal-zi.c-primita { background: var(--s-primita-f); color: var(--s-primita); }
.cal-zi.azi { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.cal-leg { margin-top: 10px; border-top: 1px solid var(--linie); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cal-leg div { display: flex; align-items: center; gap: 8px; }
.cal-leg b { width: 14px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.cal-leg b.c-adoptata { background: var(--s-adoptata); } .cal-leg b.c-anuntata { background: var(--s-anuntata); } .cal-leg b.c-primita { background: var(--s-primita); }
.cal-leg .ce { font-weight: 700; } .cal-leg .cand { color: var(--text-2); } .cal-leg .cat { margin-left: auto; color: var(--text-2); white-space: nowrap; }

/* Fișa scrisorii, compactă, cu editare pe loc */
:root { --ai-f: #fff4bf; }
@media (prefers-color-scheme: dark) { :root { --ai-f: #3a3210; } }
.fisa-cap.mic { gap: 12px; }
.fisa-cap.mic h2 { font-size: 19px; line-height: 1.25; }
.poza-loc { position: relative; flex-shrink: 0; }
.fisa-cap.mic .poza { width: 66px; height: 86px; font-size: 22px; border-radius: 8px; }
.poza-schimba { position: absolute; right: -8px; bottom: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--linie); display: grid; place-items: center; font-size: 14px; cursor: pointer; box-shadow: var(--umbra); }
.drum-mic { display: flex; align-items: center; gap: 3px; margin: 8px 0 6px; max-width: 220px; }
.drum-mic b { width: 9px; height: 9px; border-radius: 50%; background: var(--linie); flex-shrink: 0; }
.drum-mic b.g { background: var(--s-primita); } .drum-mic b.a { background: var(--accent); box-shadow: 0 0 0 3px var(--s-anuntata-f); }
.drum-mic i { flex: 1; height: 3px; background: var(--linie); } .drum-mic i.g { background: var(--s-primita); }
.fisa-donator { margin: 0; font-size: 13px; }
.de-verificat { margin-top: 10px; background: var(--ai-f); border-radius: 10px; padding: 6px 10px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.de-verificat .link-buton { padding: 0; font-size: 13.5px; white-space: nowrap; }
.date-scrisoare { padding-top: 8px; padding-bottom: 6px; }
.buton-ai { display: block; width: 100%; margin: 4px 0 6px; border: 1.5px solid var(--accent); background: none; color: var(--accent); border-radius: 10px; padding: 8px; font-weight: 600; font-size: 14.5px; }
.buton-ai.nou { background: var(--accent); color: var(--accent-text); }
.buton-ai:disabled { opacity: .7; }
.observatii { font-size: 13px; color: var(--text-2); margin: 4px 0 6px; display: grid; gap: 2px; }
.transcriere { font-size: 13px; margin: 0 0 6px; } .transcriere summary { color: var(--accent); cursor: pointer; } .transcriere div { white-space: pre-wrap; color: var(--text-2); margin-top: 4px; }
.rand-date { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--linie); cursor: pointer; min-height: 22px; }
.rand-date:last-child { border-bottom: 0; }
.rand-date .et { font-size: 13px; color: var(--text-2); flex-shrink: 0; }
.rand-date .val { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.rand-date.deschis { cursor: default; } .rand-date.deschis .val { flex: 1; max-width: 70%; }
.rand-date.bloc { display: block; } .rand-date.bloc .et { display: block; margin-bottom: 4px; }
.rand-date.ai { background: var(--ai-f); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.creion { color: var(--accent); font-size: 13px; margin-left: 2px; }
.gol-mic { color: var(--text-2); }
.cipuri-dorinte { display: flex; flex-wrap: wrap; gap: 6px; }
.cip-dorinta { border: 1px solid var(--linie); background: var(--card); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: 14px; }
.cip-dorinta.plus { color: var(--accent); font-weight: 700; padding: 5px 12px; }
.camp.mic-dorinta { width: auto; flex: 1 1 100%; padding: 7px 10px; }
.poveste { display: block; white-space: pre-wrap; }
.poveste.scurta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rand-date .link-buton { padding: 2px 0 0; font-size: 13.5px; }
.propunere { font-size: 13px; color: var(--text-2); padding: 4px 0 8px; border-bottom: 1px solid var(--linie); margin-top: -1px; }
.propunere .link-buton { padding: 0 0 0 4px; font-size: 13px; }

/* Azi → «Bani» */
.card.bani { display: block; text-decoration: none; color: inherit; }
.bani .r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.bani .r b { white-space: nowrap; }
.bani .r.mic { font-size: 12.5px; color: var(--text-2); padding-top: 0; }
.bani .r.total { border-top: 1px solid var(--linie); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.bani .r.total b { color: var(--s-primita); font-size: 17px; } .bani .r.total.minus b { color: var(--rosu); }

/* Daruri → Cumpărături: coșul și bonurile */
.rand.in-cos { background: var(--s-primita-f); }
.bifa-gata { width: 22px; text-align: center; color: var(--s-primita); font-weight: 800; flex-shrink: 0; }
.bara-cos { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); margin-top: 14px; z-index: 5; }
.bara-cos.deschisa { background: var(--card); border: 1px solid var(--linie); border-radius: 14px; padding: 12px; box-shadow: var(--umbra); }
.bonuri summary { cursor: pointer; }
.rand-bon { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--linie); }
.actiuni-bon { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.actiuni-bon .link-buton { padding: 0; font-size: 13.5px; }
@media (min-width: 900px) { .bara-cos { bottom: 12px; } }

/* Cumpărături «Pe produse»: rânduri compacte */
.rand.compact { padding: 7px 12px; gap: 10px; min-height: 0; }
.rand.compact .mij { font-size: 14.5px; line-height: 1.35; }
.rand.compact.produs-nou:not(:first-child) { border-top: 2px solid var(--linie); }
.rand.compact .taiat { text-decoration: line-through; color: var(--text-2); }
.rand.compact .sageata { text-decoration: none; padding: 0 4px; }
.cip-dorinta.cumparat { background: var(--s-primita-f); border-color: var(--s-primita); color: var(--s-primita); }
label.rand.compact { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Setări site */
.i-setare { width: 28px; text-align: center; font-size: 18px; flex-shrink: 0; }
.setare + .setare { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--linie); }
.setare .eticheta { margin-top: 0; }
.setare .ajutor { margin: 4px 2px 0; font-size: 13px; }
.jos-setare { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.jos-setare .variabile { display: flex; flex-wrap: wrap; gap: 4px; }
.jos-setare .cip { cursor: pointer; border: 0; font-weight: 600; }
.jos-setare .link-buton { padding: 2px 0; font-size: 13px; }
.camp.camp-ai { background: var(--ai-f); }
#poza-citeste { margin-top: 8px; }
.log { white-space: pre-wrap; font-size: 12px; max-height: 420px; overflow: auto; background: var(--apasat); padding: 10px; border-radius: 8px; margin: 0; }

/* Documentație (preluată din dashboard-ul vechi) */
.documentatie .card.doc h3 { margin: 0 0 8px; font-size: 17px; }
.documentatie p, .documentatie li, .documentatie td { font-size: 14px; line-height: 1.6; }
.documentatie .doc-nota { color: var(--text-2); font-size: 13px; }
.documentatie ul, .documentatie ol { padding-left: 20px; }
.documentatie table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.documentatie td, .documentatie th { border-bottom: 1px solid var(--linie); padding: 4px 6px; text-align: left; vertical-align: top; }
.documentatie code { background: var(--apasat); border-radius: 4px; padding: 0 4px; font-size: 12.5px; }
.doc-flux { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.doc-flux span { background: var(--s-anuntata-f); color: var(--s-anuntata); border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 700; }
.doc-flux i { color: var(--text-2); font-size: 11px; font-style: normal; }

/* «Server» (doar administrator) */
.grila-server { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.grila-server .card + .card { margin-top: 0; }
.stare-server { border-radius: 0 14px 14px 0; }
.stare-cap { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); }
.stare-val { font-size: 22px; font-weight: 700; margin: 6px 0 2px; }
.rand-server { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.rand-server:last-child { border-bottom: 0; }
.grafic-server + .grafic-server { margin-top: 14px; }
.grafic-cap { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.grafic-server svg { width: 100%; height: 70px; display: block; background: var(--apasat); border-radius: 8px; }

/* Editorul pozei scrisorii (views/editor-poza.js): ecran întreg, unelte jos */
button.poza { border: 0; padding: 0; cursor: pointer; }
.poza-schimba { pointer-events: none; }
.editor-poza { position: fixed; inset: 0; z-index: 60; background: var(--fundal); display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.ep-cap { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--linie); }
.ep-zoom { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.ep-zoom button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--linie); background: var(--card); color: var(--text); font-size: 18px; }
.ep-scena { flex: 1; overflow: auto; position: relative; background: var(--apasat); touch-action: pan-x pan-y; }
.ep-loc { min-height: 100%; min-width: 100%; display: grid; place-items: center; padding: 8px; position: relative; width: max-content; }
.ep-loc canvas { display: block; background: #fff; box-shadow: var(--umbra); touch-action: none; }
.ep-crop { position: absolute; border: 2px dashed var(--accent); background: rgba(31,111,235,.12); cursor: move; touch-action: none; }
.ep-maner { position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: nwse-resize; }
.ep-gol { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--text-2); }
.ep-unelte { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--linie); background: var(--card); }
.ep-unelte button, .ep-buton { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 6px 8px; border: 1px solid var(--linie); border-radius: 10px; background: var(--card); color: var(--text); font-size: 12px; cursor: pointer; }
.ep-unelte button span, .ep-buton span { font-size: 18px; }
.ep-unelte button i { font-style: normal; }
.ep-unelte button.activ { border-color: var(--accent); color: var(--accent); }
.ep-ajustari { display: grid; gap: 8px; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--linie); font-size: 13px; }
.ep-ajustari label { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; }
.ep-ajustari .ep-bifa { display: flex; gap: 8px; }
.ep-stare { min-height: 18px; padding: 0 14px; font-size: 13px; color: var(--text-2); background: var(--card); }
.ep-jos { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 14px; background: var(--card); }
body.fara-derulare { overflow: hidden; }

.ep-inclinare { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border-top: 1px solid var(--linie); font-size: 13px; }
.ep-inclinare input { flex: 1; }
.ep-inclinare button { min-width: 44px; height: 34px; border-radius: 8px; border: 1px solid var(--linie); background: var(--card); color: var(--text); font-size: 13px; }
.ep-inclinare #ep-unghi-val { min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.ep-grila { position: absolute; pointer-events: none; background-image: linear-gradient(rgba(31,111,235,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(31,111,235,.35) 1px, transparent 1px); background-size: 100% 40px, 40px 100%; }

/* Meniul paginii (☰ pe fișa scrisorii): rândul roșu, confirmarea, lista din foaie (istoricul) */
.foaie button.rosu { color: var(--rosu); }
.foaie button.sigur { background: var(--rosu-f); color: var(--rosu); font-weight: 700; }
.foaie .foaie-continut { max-height: 60vh; overflow: auto; padding: 4px 12px 8px; }

/* Foaia de jos: capul cu liniuța de prindere și «✕ Închide» rămâne sus; lista se derulează */
.foaie-cap { display: flex; align-items: center; justify-content: flex-end; position: relative; padding: 14px 4px 4px; flex-shrink: 0; }
.foaie-maner { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: var(--linie); }
.foaie .foaie-inchide { width: auto; padding: 8px 12px; border-radius: 999px; background: var(--apasat); color: var(--text); font-weight: 600; font-size: 14px; }
.foaie-lista { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

/* Fișa scrisorii: ‹ › între scrisorile listei din care ai venit; intrarea din lateral la trecere */
.nav-scrisori { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nav-sageti { display: flex; align-items: center; gap: 4px; }
.nav-sageata { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--linie); background: var(--card); font-size: 26px; line-height: 1; color: inherit; cursor: pointer; }
.nav-sageata[data-capat] { opacity: .35; }
.nav-poz { min-width: 74px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.15; }
.nav-poz small { display: block; font-weight: 500; font-size: 11px; color: var(--text-2); max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes intra-dreapta { from { transform: translateX(40px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes intra-stanga { from { transform: translateX(-40px); opacity: .3; } to { transform: none; opacity: 1; } }
#app.intra-dreapta { animation: intra-dreapta .18s ease-out; }
#app.intra-stanga { animation: intra-stanga .18s ease-out; }
@media (prefers-reduced-motion: reduce) { #app.intra-dreapta, #app.intra-stanga { animation: none; } }

/* Fișa donatorului: inițialele în cerc, în locul pozei */
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--s-anuntata-f); color: var(--s-anuntata); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
