/* Loc de Troc · sistemul vizual al aplicației (brand v3).
   Culorile de text au contrast AA verificat pe Hârtie și pe Alb.
   Ghinda (#B07432) e doar pentru decor; textul folosește --ghinda-text. */

:root {
  --hartie: #F5EFE4;
  --hartie-2: #EDE4D3;
  --alb: #FFFDF8;
  --cerneala: #1F1C18;
  --cerneala-2: #5A5248;
  --cerneala-3: #7A7064;
  --linie: rgba(31, 28, 24, 0.10);
  --linie-2: rgba(31, 28, 24, 0.18);
  --stejar: #2F6B3E;
  --stejar-2: #245431;
  --stejar-ton: #E4EEE5;
  --ghinda: #B07432;
  --ghinda-text: #8A5A22;
  --ghinda-ton: #F3E6D2;
  --kraft: #D8C3A0;
  --kraft-ton: #E8DCC6;
  --maces: #C2513A;
  --maces-text: #A8402B;
  --maces-ton: #F6E1DA;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --umbra: 0 1px 2px rgba(31, 28, 24, 0.05), 0 10px 28px -16px rgba(31, 28, 24, 0.22);
  --umbra-sus: 0 -1px 0 var(--linie), 0 -12px 28px -20px rgba(31, 28, 24, 0.25);
  --tab-h: 0px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--hartie);
  color: var(--cerneala);
  font-family: var(--font-sans), system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
  padding-bottom: var(--tab-h);
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
svg { flex: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--kraft); }
:focus-visible { outline: 2px solid var(--stejar); outline-offset: 2px; border-radius: 4px; }

h1, h2, .display {
  font-family: var(--font-serif), Georgia, serif;
  font-weight: 560;
  font-variation-settings: "SOFT" 60;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: clamp(38px, 6vw, 64px); }
h1 { font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: clamp(21px, 2.6vw, 25px); }
h3 { font-size: 16px; font-weight: 650; margin: 0; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--cerneala-2); }
.faint { color: var(--cerneala-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; color: var(--ghinda-text); }
.lead { font-size: 18px; color: var(--cerneala-2); line-height: 1.6; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Antet ---------- */
.demo-bar { background: var(--cerneala); color: #CFC5B4; font-size: 12.5px; text-align: center; padding: 6px 16px; }
.demo-bar a { color: var(--hartie); }
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--hartie) 90%, transparent); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--linie); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.top .logo img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; color: var(--cerneala-2); }
.nav-link:hover { color: var(--cerneala); background: var(--hartie-2); }
.nav-link.on { color: var(--cerneala); }
.nav-link.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; background: var(--stejar); border-radius: 2px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--maces); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--kraft); color: var(--cerneala); display: inline-grid; place-items: center; font-weight: 650; font-size: 15px; flex: none; text-decoration: none; box-shadow: inset 0 0 0 1px var(--linie); }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; font-family: var(--font-serif), serif; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }

/* Bara de jos pe telefon */
.tabbar { display: none; }

main { padding: 32px 0 96px; min-height: 70vh; }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r); border: 0; cursor: pointer; font: 600 15px var(--font-sans), sans-serif; text-decoration: none; white-space: nowrap; background: var(--stejar); color: var(--alb); transition: background .15s, box-shadow .15s, transform .08s; }
.btn:hover { background: var(--stejar-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.secondary { background: var(--alb); color: var(--cerneala); box-shadow: inset 0 0 0 1px var(--linie-2); }
.btn.secondary:hover { background: var(--hartie-2); }
.btn.quiet { background: transparent; color: var(--cerneala-2); padding: 0 10px; }
.btn.quiet:hover { color: var(--cerneala); background: var(--hartie-2); }
.btn.danger { background: transparent; color: var(--maces-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--maces) 45%, transparent); }
.btn.danger:hover { background: var(--maces-ton); }
.btn.on-dark { background: var(--hartie); color: var(--cerneala); }
.btn.on-dark:hover { background: var(--alb); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }

/* ---------- Câmpuri ---------- */
.field { display: block; }
.field > .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field > .hint { display: block; color: var(--cerneala-2); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=email], input[type=search], textarea, select {
  width: 100%; font: 16px var(--font-sans), sans-serif; padding: 11px 14px; min-height: 46px;
  border-radius: 10px; border: 1px solid var(--linie-2); background: var(--alb); color: var(--cerneala);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--cerneala-3); }
input:hover, textarea:hover, select:hover { border-color: rgba(31, 28, 24, .3); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--stejar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stejar) 18%, transparent); }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A5248' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--stejar); flex: none; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cerneala-3); pointer-events: none; }
.search input { padding-left: 42px; }

.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--linie-2); border-radius: var(--r); background: var(--hartie); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--stejar); background: var(--stejar-ton); }
.dropzone .dz-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--alb); display: grid; place-items: center; color: var(--stejar); box-shadow: inset 0 0 0 1px var(--linie); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--stejar); outline-offset: 2px; }

/* ---------- Mesaje ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 15px; line-height: 1.45; }
.alert svg { margin-top: 2px; }
.alert.err { background: var(--maces-ton); color: #6E2618; }
.alert.ok { background: var(--stejar-ton); color: #1C4527; }
.alert.info { background: var(--hartie-2); color: var(--cerneala); }
.alert.warn { background: var(--ghinda-ton); color: #5E3C14; }

/* ---------- Suprafețe ---------- */
.card { background: var(--alb); border: 1px solid var(--linie); border-radius: var(--r-lg); padding: 22px; }
.card.flat { box-shadow: none; }
.card.pad-lg { padding: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head .count { font-family: var(--font-sans), sans-serif; font-size: 14px; color: var(--cerneala-3); font-weight: 500; margin-left: 8px; }
.divider { height: 1px; background: var(--linie); border: 0; margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--hartie-2); color: var(--cerneala-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.plain::before { display: none; }
.pill.stejar { background: var(--stejar-ton); color: var(--stejar-2); }
.pill.ghinda { background: var(--ghinda-ton); color: var(--ghinda-text); }
.pill.maces { background: var(--maces-ton); color: var(--maces-text); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--alb); color: var(--cerneala-2); text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--linie); transition: background .15s, color .15s; }
.chip:hover { color: var(--cerneala); box-shadow: inset 0 0 0 1px var(--linie-2); }
.chip.on { background: var(--cerneala); color: var(--hartie); box-shadow: none; }
.chip.tag { height: 30px; font-size: 13.5px; background: var(--hartie-2); box-shadow: none; color: var(--cerneala); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chip-row::-webkit-scrollbar { display: none; }

/* ---------- Ghinde: clasa de valoare ---------- */
.meter { display: inline-flex; align-items: center; gap: 8px; color: var(--ghinda); }
.meter .acorns { display: inline-flex; gap: 1px; }
.meter .acorn { color: var(--kraft); }
.meter .acorn.on { color: var(--ghinda); }
.meter .name { color: var(--ghinda-text); font-weight: 600; font-size: 13.5px; }

/* ---------- Anunțuri ---------- */
.grid { display: grid; gap: 20px 18px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.lcard { display: block; text-decoration: none; color: inherit; }
.lcard-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--kraft-ton); box-shadow: inset 0 0 0 1px var(--linie); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lcard:hover .lcard-media img { transform: scale(1.03); }
.lcard:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lcard-media .flag { position: absolute; left: 10px; top: 10px; }
.lcard-body { padding: 12px 2px 0; }
.lcard h3 { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .meta { display: flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--cerneala-2); margin-top: 4px; }
.lcard .lfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--cerneala-2); }

/* Fără poză: o „ștampilă” cu iconița categoriei, pe hârtie kraft. */
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--cerneala) 55%, transparent);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 253, 248, .55), transparent 55%),
    repeating-linear-gradient(115deg, rgba(31, 28, 24, .025) 0 2px, transparent 2px 7px),
    var(--kraft-ton); }
.placeholder .ring { width: 46%; aspect-ratio: 1; max-width: 120px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed color-mix(in srgb, var(--cerneala) 30%, transparent); }
.placeholder .note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11.5px; letter-spacing: .04em; color: var(--cerneala-3); }

/* ---------- Acasă ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 20px 0 56px; }
.hero .insigna { justify-self: center; width: min(360px, 90%); aspect-ratio: 1; border-radius: 50%; background: var(--alb); box-shadow: var(--umbra); display: grid; place-items: center; }
.hero .insigna img { width: 82%; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin-bottom: 56px; }
.steps3 > div { padding: 24px 24px 26px 0; }
.steps3 > div + div { padding-left: 24px; border-left: 1px solid var(--linie); }
.steps3 .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie); color: var(--stejar); margin-bottom: 14px; }
.steps3 p { color: var(--cerneala-2); font-size: 15px; margin-top: 4px; }
.greet { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--r); background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie), inset 4px 0 0 var(--maces); text-decoration: none; margin-bottom: 28px; }
.notice:hover { background: var(--hartie-2); }
.toolbar { display: grid; gap: 12px; margin: 4px 0 26px; }
.toolbar .row2 { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.toolbar select { min-height: 40px; height: 40px; padding-top: 0; padding-bottom: 0; font-size: 14.5px; border-radius: 999px; padding-left: 16px; }

.empty { text-align: center; padding: 56px 20px; color: var(--cerneala-2); }
.empty img { width: 120px; margin: 0 auto 18px; opacity: .5; }
.empty h2 { color: var(--cerneala); margin-bottom: 8px; }

/* ---------- Pagina anunțului ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--cerneala-2); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.listing-page { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "g p" "d p"; gap: 40px 44px; align-items: start; }
.listing-page > .g { grid-area: g; }
.listing-page > .d { grid-area: d; }
.listing-page > .panel { grid-area: p; }
.gallery .main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--kraft-ton); box-shadow: inset 0 0 0 1px var(--linie); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.gallery .thumbs a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); }
.gallery .thumbs a.on { box-shadow: 0 0 0 2px var(--stejar); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.defect-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: var(--alb); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; box-shadow: var(--umbra); }
.panel { position: sticky; top: 92px; }
.panel h1 { font-size: clamp(28px, 3.4vw, 36px); margin: 8px 0 6px; }
.facts { margin: 20px 0; border-top: 1px solid var(--linie); }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--linie); font-size: 14.5px; align-items: center; }
.facts dt { color: var(--cerneala-2); }
.facts dd { margin: 0; }
.facts .sub { display: block; font-size: 13px; color: var(--cerneala-2); }
.owner { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--linie); margin-top: 14px; }
.owner:hover { background: var(--hartie); }
.prose { font-size: 16.5px; line-height: 1.65; white-space: pre-wrap; max-width: 62ch; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: repeating-linear-gradient(to bottom, var(--linie-2) 0 4px, transparent 4px 8px); }
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 10px 0; }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie-2); display: grid; place-items: center; color: var(--stejar); z-index: 1; }
.timeline .quote { font-family: var(--font-serif), serif; font-style: italic; color: var(--cerneala-2); margin-top: 2px; }

/* ---------- Cântarul ---------- */
.cantar { background: var(--alb); border: 1px solid var(--linie); border-radius: var(--r-lg); padding: 20px; }
.cantar-art { display: block; width: 100%; max-width: 420px; height: 96px; margin: 0 auto 6px; overflow: visible; }
.cantar-art .beam-g { transition: transform .55s cubic-bezier(.3, 1.35, .5, 1); transform-box: view-box; transform-origin: 210px 30px; }
.trays { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tray { min-width: 0; background: var(--hartie); border-radius: var(--r); padding: 12px; transition: transform .55s cubic-bezier(.3, 1.35, .5, 1); min-height: 132px; }
.tray-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0 2px; }
.tray-head .who { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cerneala-2); font-weight: 650; }
.pick { display: flex; gap: 12px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 10px; background: var(--alb); margin-top: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--linie); font-size: 14px; transition: box-shadow .15s; }
.pick:hover { box-shadow: inset 0 0 0 1px var(--linie-2); }
.pick.on { box-shadow: inset 0 0 0 1.5px var(--stejar); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--linie-2); display: grid; place-items: center; color: transparent; flex: none; transition: background .15s; }
.pick.on .box { background: var(--stejar); color: var(--alb); box-shadow: none; }
.pick:focus-within { outline: 2px solid var(--stejar); outline-offset: 2px; }
.pick .mini { position: relative; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--kraft-ton); flex: none; }
.pick .mini img { width: 100%; height: 100%; object-fit: cover; }
.pick .t { flex: 1; min-width: 0; line-height: 1.3; }
.pick .t b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .wish { color: var(--ghinda-text); font-weight: 600; }
.verdict { margin-top: 14px; padding: 12px 14px; border-radius: var(--r); display: flex; gap: 10px; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.verdict svg { margin-top: 2px; }
.verdict.echilibru { background: var(--stejar-ton); color: #1C4527; }
.verdict.inclinat { background: var(--ghinda-ton); color: #5E3C14; }
.verdict.dezechilibrat, .verdict.gol { background: var(--maces-ton); color: #6E2618; }

/* ---------- Fișa de troc (document) ---------- */
.doc { position: relative; background: var(--alb); border-radius: 4px var(--r-lg) var(--r-lg) 4px; box-shadow: var(--umbra), inset 0 0 0 1px var(--linie); padding: 34px 34px 28px 46px; overflow: hidden; }
.doc::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 6px; background: radial-gradient(circle, var(--hartie) 3px, transparent 3.5px) 0 10px / 6px 18px repeat-y; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--linie); }
.doc-head h1 { font-size: 34px; margin-top: 4px; }
.stamp { display: inline-grid; place-items: center; padding: 8px 14px; border: 2.5px solid currentColor; border-radius: 6px; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-6deg); opacity: .9; box-shadow: inset 0 0 0 2px var(--alb), inset 0 0 0 3.5px currentColor; white-space: nowrap; }
.stamp.incheiat { color: var(--stejar); }
.stamp.in_asteptare { color: var(--ghinda-text); }
.stamp.in_mediere { color: var(--maces-text); }
.stamp.desfacut { color: var(--cerneala-2); }
.progress { display: flex; gap: 0; margin: 22px 0 6px; list-style: none; padding: 0; counter-reset: s; }
.progress li { flex: 1; position: relative; font-size: 13px; color: var(--cerneala-3); padding-top: 28px; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--linie-2); background: var(--alb); z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 9.5px; left: 20px; right: 4px; height: 1.5px; background: var(--linie-2); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--cerneala-2); }
.progress li.done::before { background: var(--stejar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFDF8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.progress li.done::after { background: var(--stejar); }
.progress li.now { color: var(--cerneala); font-weight: 600; }
.progress li.now::before { box-shadow: inset 0 0 0 6px var(--stejar); }
.progress li.alert.now::before { box-shadow: inset 0 0 0 6px var(--maces); }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--linie); }
.doc-cols h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cerneala-2); margin-bottom: 10px; }
.doc-item { display: flex; gap: 12px; align-items: center; padding: 6px 0; text-decoration: none; }
.doc-item .mini { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--kraft-ton); flex: none; }
.doc-item .mini img { width: 100%; height: 100%; object-fit: cover; }
.doc-item b { display: block; font-weight: 600; font-size: 15px; }
.leaders > div { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; font-size: 15px; }
.leaders > div > span:first-child { color: var(--cerneala-2); }
.leaders > div::after { content: none; }
.leaders .fill { flex: 1; border-bottom: 1.5px dotted var(--linie-2); transform: translateY(-4px); min-width: 20px; }
.leaders .v { text-align: right; }
.fine { font-size: 12.5px; color: var(--cerneala-2); margin-top: 16px; line-height: 1.5; }

/* ---------- Liste ---------- */
.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list > * { min-width: 0; }
.list-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 14px 16px; background: var(--alb); border-radius: var(--r); text-decoration: none; box-shadow: inset 0 0 0 1px var(--linie); transition: box-shadow .15s, background .15s; }
a.list-item:hover, button.list-item:hover { box-shadow: inset 0 0 0 1px var(--linie-2); background: color-mix(in srgb, var(--alb) 60%, var(--hartie)); }
button.list-item { width: 100%; border: 0; cursor: pointer; text-align: left; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .sub { font-size: 14px; color: var(--cerneala-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-thumbs { display: flex; flex: none; }
.stack-thumbs > span { position: relative; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--kraft-ton); box-shadow: 0 0 0 2px var(--alb); }
.stack-thumbs > span + span { margin-left: -14px; }
.stack-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Profil ---------- */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { font-size: clamp(30px, 4vw, 40px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--r-lg); background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie); overflow: hidden; }
.stats > div { padding: 18px 20px; }
.stats > div + div { border-left: 1px solid var(--linie); }
.stats b { display: block; font-family: var(--font-serif), serif; font-size: 30px; font-weight: 560; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13.5px; color: var(--cerneala-2); }
.review { padding: 16px 0; border-bottom: 1px solid var(--linie); }
.review:last-child { border-bottom: 0; }

/* ---------- Mesaje ---------- */
.msgs { display: grid; gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 16px 6px; background: var(--hartie-2); font-size: 15px; }
.msg.me { margin-left: auto; background: var(--stejar-ton); border-radius: 16px 16px 6px 16px; }
.msg .who { font-size: 12px; color: var(--cerneala-2); margin-bottom: 2px; }
.composer { display: flex; gap: 8px; align-items: center; }
.composer input { flex: 1; }

/* ---------- Formular anunț ---------- */
.photo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.photo-picker .ph { border-radius: var(--r); overflow: hidden; background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie); }
.photo-picker .ph.defect { box-shadow: 0 0 0 2px var(--ghinda); }
.photo-picker img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-picker label { display: flex; gap: 7px; align-items: center; font-size: 12.5px; padding: 8px 10px; cursor: pointer; }
.class-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.class-pick label { position: relative; cursor: pointer; display: grid; gap: 6px; justify-items: center; text-align: center; background: var(--alb); border-radius: var(--r); padding: 14px 8px 12px; box-shadow: inset 0 0 0 1px var(--linie-2); transition: box-shadow .15s, background .15s; }
.class-pick label:hover { background: var(--hartie); }
.class-pick input { position: absolute; opacity: 0; pointer-events: none; }
.class-pick label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--stejar); background: var(--stejar-ton); }
.class-pick label:has(input:focus-visible) { outline: 2px solid var(--stejar); outline-offset: 2px; }
.class-pick b { font-size: 14px; }
.class-pick .tiny { color: var(--cerneala-2); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.form-section { padding: 24px 0; border-top: 1px solid var(--linie); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section > h2 { font-size: 20px; margin-bottom: 4px; }
.form-section > .muted { margin-bottom: 16px; font-size: 14.5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Status ---------- */
.status-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Subsol ---------- */
.foot { border-top: 1px solid var(--linie); padding: 40px 0 48px; font-size: 14px; color: var(--cerneala-2); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot img { height: 36px; width: auto; margin-bottom: 12px; }
.foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cerneala); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- Intrare ---------- */
.auth { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.auth-aside { position: sticky; top: 100px; padding: 32px; border-radius: var(--r-lg); background: var(--stejar); color: var(--alb); }
.auth-aside img { width: 140px; margin-bottom: 22px; }
.auth-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; color: #D7E5D9; font-size: 15px; }
.auth-aside li { display: flex; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .listing-page, .hero, .auth { grid-template-columns: 1fr; }
  .listing-page { grid-template-areas: "g" "p" "d"; gap: 24px; }
  .panel, .auth-aside { position: static; }
  .hero .insigna { display: none; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .wrap > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --tab-h: calc(66px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  main { padding: 20px 0 48px; }
  .top .wrap { height: 58px; }
  .top .logo img { height: 30px; }
  .nav .nav-link, .nav .btn:not(.keep) { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--alb) 94%, transparent); backdrop-filter: blur(12px); box-shadow: var(--umbra-sus); }
  .tabbar a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 500; color: var(--cerneala-3); }
  .tabbar a.on { color: var(--stejar); font-weight: 650; }
  .tabbar .badge { position: absolute; top: 8px; left: calc(50% + 6px); }
  .tabbar .plus { width: 46px; height: 46px; border-radius: 14px; background: var(--stejar); color: var(--alb); display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(47, 107, 62, .7); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .lcard h3 { font-size: 14.5px; }
  .list-item { padding: 12px; gap: 10px; }
  .list-item .pill { font-size: 11.5px; padding: 0 8px; }
  .list-item .pill::before { display: none; }
  .stack-thumbs > span { width: 40px; height: 40px; }
  .lcard .lfoot .cond { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 > div, .steps3 > div + div { padding: 18px 0; border-left: 0; }
  .steps3 > div + div { border-top: 1px solid var(--linie); }
  .toolbar .row2 { grid-template-columns: 1fr 1fr; }
  .toolbar .row2 .search { grid-column: 1 / -1; }
  .class-pick { grid-template-columns: repeat(3, 1fr); }
  .two, .doc-cols { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 26px 20px 22px 34px; }
  .doc::before { left: 10px; }
  .doc-head h1 { font-size: 28px; }
  .stats b { font-size: 24px; }
  .stats > div { padding: 14px; }
  .facts > div { grid-template-columns: 96px 1fr; }
  .foot { padding-bottom: 24px; }
}
@media (max-width: 520px) {
  .trays { grid-template-columns: minmax(0, 1fr); }
  .cantar-art { height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Ghid ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.rules li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.rules .n { font-family: var(--font-serif), serif; font-size: 26px; font-weight: 560; color: var(--ghinda); line-height: 1.1; }
.forbidden { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.forbidden li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--cerneala-2); }
.forbidden svg { color: var(--maces); margin-top: 3px; }
@media (max-width: 760px) { .forbidden { grid-template-columns: 1fr; } }

/* ---------- Comutatorul de identitate (doar în versiunea de test) ---------- */
.demo-bar { display: flex; justify-content: center; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.vswitch { display: inline-flex; gap: 4px; align-items: center; }
.vswitch a { text-decoration: none; padding: 1px 8px; border-radius: 6px; color: #CFC5B4; }
.vswitch a[aria-current] { background: var(--hartie); color: var(--cerneala); font-weight: 650; }
.vswitch a:last-child { text-decoration: underline; color: var(--hartie); }
.v2-only { display: none !important; }

/* ---------- Comunitate: încredere, Mâini de ajutor, zone și hartă ---------- */
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--linie); }
.stats > div { background: var(--alb); }
.stats > div + div { border-left: 0; }
.profile-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bio { margin-top: 10px; max-width: 580px; font-family: var(--font-serif), serif; font-style: italic; font-size: 17px; line-height: 1.5; color: var(--cerneala-2); }

.lvl { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-family: var(--font-sans), sans-serif; font-size: 12.5px; font-weight: 650; white-space: nowrap; vertical-align: middle; letter-spacing: 0; }
.lvl-ghinda { background: var(--kraft-ton); color: var(--ghinda-text); }
.lvl-puiet { background: var(--stejar-ton); color: var(--stejar-2); }
.lvl-stejar { background: var(--stejar); color: #fff; }
.lvl-sub { font-weight: 500; opacity: .88; }
.lvl.compact { width: 20px; height: 20px; padding: 0; justify-content: center; margin-left: 2px; }

.badge-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie-2); font-size: 13px; font-weight: 600; color: var(--cerneala); white-space: nowrap; }
.badge-chip svg { color: var(--stejar); flex: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge-row .badge-chip { height: 24px; padding: 0 8px; font-size: 12px; }
.owner-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.trust { display: grid; gap: 20px; }
.trust-level { display: flex; gap: 16px; align-items: flex-start; }
.trust-level .lvl { height: 34px; padding: 0 14px; font-size: 15px; flex: none; }
.trust-level .next { margin-top: 6px; color: var(--stejar-2); font-weight: 600; }
.badge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.badge-list > div { display: grid; gap: 6px; align-content: start; justify-items: start; }
.badge-list .locked { opacity: .5; }
.badge-list .locked .badge-chip svg { color: var(--cerneala-3); }
.top-cats svg { vertical-align: -2px; }
.level-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.level-row .lvl { min-width: 150px; justify-content: center; flex: none; }

.help-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--stejar-2); }
.help-tag .unit { font-weight: 500; color: var(--cerneala-2); }
.lcard.help .lcard-media { background: var(--stejar-ton); }
.help-ic { color: var(--stejar); flex: none; }
.verdict.ajutor { background: var(--stejar-ton); color: #1C4527; }
.chip.help:not(.on) { color: var(--stejar-2); }
button.chip { border: 0; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
button.chip:disabled { opacity: .7; cursor: progress; }

.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind-pick button { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border: 0; border-radius: var(--r); background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie-2); font: inherit; color: var(--cerneala); cursor: pointer; }
.kind-pick button svg { color: var(--stejar); margin-bottom: 4px; }
.kind-pick button.on { background: var(--stejar-ton); box-shadow: inset 0 0 0 2px var(--stejar); }

.recent { margin-bottom: 44px; }
.recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.recent-row::-webkit-scrollbar { display: none; }
.recent-card { display: grid; gap: 3px; align-content: start; text-decoration: none; color: inherit; }
.recent-card .rc-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--kraft-ton); }
.recent-card .rc-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.recent-card .stamp { position: absolute; right: 8px; bottom: 8px; transform: rotate(-6deg); padding: 2px 8px; border: 2px solid var(--stejar); border-radius: 6px; background: rgba(255, 253, 248, .92); color: var(--stejar); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recent-card b { margin-top: 7px; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card .tiny svg { vertical-align: -2px; }

.section-head:has(.view-toggle) { align-items: center; }
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hartie-2); flex: none; }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--cerneala-2); text-decoration: none; }
.view-toggle a.on { background: var(--alb); color: var(--cerneala); box-shadow: var(--umbra); }

.map-wrap { isolation: isolate; }
.map { height: 580px; border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--linie); background: var(--hartie-2); }
.leaflet-container { font-family: var(--font-sans), sans-serif; }
.map-pin span { display: grid; place-items: center; border-radius: 50%; background: var(--stejar); color: #fff; font-weight: 700; font-size: 14px; border: 3px solid var(--alb); box-shadow: 0 6px 14px -6px rgba(31, 28, 24, .55); }
.map-pop { display: grid; gap: 8px; min-width: 200px; }
.map-pop > b { font-size: 14px; }
.map-pop a { display: flex; gap: 10px; align-items: center; color: var(--cerneala); text-decoration: none; font-size: 13px; line-height: 1.3; }
.map-pop a:hover span { text-decoration: underline; }
.map-pop img, .map-pop i { display: block; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--kraft-ton); flex: none; }
.map-pop .more { margin: 0; font-size: 12px; color: var(--cerneala-3); }

.city-list { list-style: none; margin: 0; padding: 0; background: var(--alb); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--linie); }
.city-list li { display: grid; grid-template-columns: 1fr 180px 70px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--linie); }
.city-list li:first-child { border-top: 0; }
.city-list li.open { grid-template-columns: 1fr auto; }
.city-list li > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.city-list li .num { text-align: right; }
.progress { display: block; height: 8px; border-radius: 999px; background: var(--hartie-2); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: 999px; background: var(--ghinda); }
.city-note { margin-top: 30px; text-align: center; }
.profile-edit summary { cursor: pointer; list-style: none; }
.profile-edit summary::-webkit-details-marker { display: none; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:last-child { grid-column: span 2; }
  .kind-pick { grid-template-columns: 1fr; }
  .map { height: 470px; }
  .city-list li { grid-template-columns: 1fr 64px; }
  .city-list li .progress { grid-column: 1 / -1; grid-row: 2; }
  .view-toggle a { padding: 0 10px; }
  .recent-row { grid-auto-columns: 150px; }
}
.map .leaflet-tile-pane { filter: grayscale(.55) sepia(.25) brightness(1.03) contrast(.92); }
@media (max-width: 760px) { .trust-level { flex-direction: column; gap: 10px; } .level-row { flex-direction: column; gap: 8px; } .level-row .lvl { min-width: 0; } }

/* ---------- Predare și mărimi ---------- */
.lcard .meta .courier { display: inline-grid; place-items: center; color: var(--stejar); margin-left: 2px; }
.size-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hartie-2); color: var(--cerneala); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.size-row { align-items: center; }
.size-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--cerneala-2); margin-right: 4px; white-space: nowrap; }
.chip.sm { height: 32px; padding: 0 12px; font-size: 13.5px; }
.chip.mine:not(.on) { background: var(--stejar-ton); color: var(--stejar-2); box-shadow: inset 0 0 0 1px var(--stejar); }
.hand-pick { display: grid; gap: 10px; margin-top: 6px; }
.hand-pick .check span svg { vertical-align: -3px; color: var(--stejar); }
fieldset.field { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.kind-pick label { position: relative; display: grid; gap: 4px; justify-items: start; padding: 16px; border-radius: var(--r); background: var(--alb); box-shadow: inset 0 0 0 1px var(--linie-2); cursor: pointer; }
.kind-pick label svg { color: var(--stejar); margin-bottom: 4px; }
.kind-pick label.on { background: var(--stejar-ton); box-shadow: inset 0 0 0 2px var(--stejar); }
.kind-pick label[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.kind-pick label input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick label:has(input:focus-visible) { outline: 2px solid var(--stejar); outline-offset: 2px; }
.courier-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--cerneala-2); }
