/*
 * VCS.md — stilul site-ului.
 * Culorile vin din tema aplicației (Flutter, ColorScheme din „Midnight Sky”
 * #00296B, butoanele în albastru electric #1B64FF). Pe telefon pagina arată
 * ca aplicația (bara de jos din sticlă mată, carduri 2 pe rând); pe ecran
 * mare: antet complet, grilă largă, subsol cu coloane.
 */

/* ---------- Fonturi: Poppins (latină), Montserrat (chirilică), Assistant (prețuri) ---------- */
@font-face { font-family: "VCS Sans"; src: url("../fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/poppins-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/montserrat-cyr-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/montserrat-cyr-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/montserrat-cyr-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/montserrat-cyr-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VCS Sans"; src: url("../fonts/montserrat-cyr-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "VCS Price"; src: url("../fonts/assistant.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ---------- Culori (tema luminoasă) ---------- */
:root {
  color-scheme: light;
  --bg: #faf8ff;
  --surface-low: #f4f3f9;
  --surface: #eeedf3;
  --surface-high: #e9e7ee;
  --surface-highest: #e3e2e8;
  --card: #ffffff;
  --text: #1a1b20;
  --muted: #444650;
  --subtle: #747781;
  --outline: #747781;
  --outline-variant: #c4c6d2;
  --border: rgb(196 198 210 / 0.6);
  --primary: #1b64ff;
  --primary-hover: #0f52e0;
  --primary-soft: rgb(27 100 255 / 0.1);
  --on-primary: #ffffff;
  --midnight: #00296b;
  --error: #ba1a1a;
  --danger: #ba1a1a;
  --badge: #e63946;
  --logo-blue: #3d8bff;
  --logo-yellow: #ffc72c;
  --logo-red: #e63946;
  --glass: rgb(238 237 243 / 0.72);
  --glass-border: rgb(0 0 0 / 0.08);
  --header-bg: rgb(250 248 255 / 0.82);
  --shadow-sm: 0 1px 2px rgb(16 24 64 / 0.06);
  --shadow-md: 0 8px 24px rgb(16 24 64 / 0.08), 0 2px 6px rgb(16 24 64 / 0.05);
  --shadow-lg: 0 18px 48px rgb(16 24 64 / 0.14);
  --radius: 14px;
  --radius-lg: 18px;
  --container: 1240px;
  --gutter: 24px;
  --header-h: 72px;
}

/* ---------- Tema întunecată: aleasă, sau a sistemului dacă nu s-a ales ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121318;
  --surface-low: #1a1b20;
  --surface: #1e1f24;
  --surface-high: #292a2f;
  --surface-highest: #343439;
  --card: #1a1b20;
  --text: #e3e2e8;
  --muted: #c4c6d2;
  --subtle: #8e909b;
  --outline: #8e909b;
  --outline-variant: #444650;
  --border: rgb(68 70 80 / 0.7);
  --primary-hover: #3a7bff;
  --primary-soft: rgb(27 100 255 / 0.16);
  --error: #ffb4ab;
  --danger: #d32f2f;
  --glass: rgb(30 31 36 / 0.62);
  --glass-border: rgb(255 255 255 / 0.08);
  --header-bg: rgb(18 19 24 / 0.82);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 18px 48px rgb(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121318;
    --surface-low: #1a1b20;
    --surface: #1e1f24;
    --surface-high: #292a2f;
    --surface-highest: #343439;
    --card: #1a1b20;
    --text: #e3e2e8;
    --muted: #c4c6d2;
    --subtle: #8e909b;
    --outline: #8e909b;
    --outline-variant: #444650;
    --border: rgb(68 70 80 / 0.7);
    --primary-hover: #3a7bff;
    --primary-soft: rgb(27 100 255 / 0.16);
    --error: #ffb4ab;
    --danger: #d32f2f;
    --glass: rgb(30 31 36 / 0.62);
    --glass-border: rgb(255 255 255 / 0.08);
    --header-bg: rgb(18 19 24 / 0.82);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 18px 48px rgb(0 0 0 / 0.5);
  }
}

/* Iconițe și texte care apar doar într-o temă (ex.: luna / soarele). */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: inline-flex !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline-flex !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 56px);
  /* Pe telefon pagina are exact lățimea ecranului: nimic nu iese în lateral. */
  overflow-x: clip;
  /* Fără zoom la dublu-tap (atingerile răspund imediat). */
  touch-action: manipulation;
}
body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "VCS Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgb(27 100 255 / 0.25); }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { flex: 1; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Logo „VCS.md” (literele alungite, ca în aplicație) ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  transform: scaleX(0.87);
  transform-origin: left center;
  white-space: nowrap;
  font-family: "VCS Sans", sans-serif;
}
.logo-v { color: var(--logo-blue); }
.logo-c { color: var(--logo-yellow); }
.logo-s { color: var(--logo-red); }
.logo-md { color: var(--text); font-size: 0.6em; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 14px rgb(27 100 255 / 0.28); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-high); }
.btn-outline { background: transparent; border: 1px solid var(--outline-variant); color: var(--text); }
.btn-outline:hover { background: var(--surface-low); }
.btn .icon { width: 19px; height: 19px; stroke-width: 2; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-high); color: var(--text); }
.icon-btn .icon { width: 22px; height: 22px; }

.badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--badge);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  background: var(--surface-high);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { border-color: var(--outline); }
.chip[aria-current="true"] { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.chip .icon { width: 16px; height: 16px; }

/* ---------- Avatar (rama tipului de cont) ---------- */
.avatar {
  --ring: 0px;
  --gap: 0px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-highest);
  color: var(--muted);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar .avatar-placeholder { width: 54%; height: 54%; }
.avatar-seller, .avatar-company {
  --ring: clamp(2px, calc(var(--size) * 0.055), 5px);
  --gap: clamp(1.5px, calc(var(--size) * 0.035), 3.5px);
  padding: var(--ring);
  background: conic-gradient(#ffe07a, #ffc72c, #f5a300, #ffc72c, #ffe07a);
}
.avatar-company { background: conic-gradient(#ff7a82, #e63946, #b3132a, #e63946, #ff7a82); }
.avatar-seller img, .avatar-company img,
.avatar-seller .avatar-placeholder, .avatar-company .avatar-placeholder {
  border: var(--gap) solid var(--bg);
  background: var(--surface-highest);
}
.avatar-seller .avatar-placeholder, .avatar-company .avatar-placeholder {
  width: 100%;
  height: 100%;
  padding: 18%;
  border-radius: 50%;
}

/* ---------- Antet ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.header-logo { flex: none; margin-right: -4px; }

.search {
  flex: 1;
  max-width: 680px;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface-high);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.search:focus-within { border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-field { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 14px; cursor: text; }
.search-icon { color: var(--subtle); width: 20px; height: 20px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}
.search input::placeholder { color: var(--subtle); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search-category {
  height: 38px;
  max-width: 190px;
  padding: 0 30px 0 14px;
  border: 0;
  border-left: 1px solid var(--outline-variant);
  outline: 0;
  background: transparent 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='%23747781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--muted);
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}
.search-category option { background: var(--card); color: var(--text); }
.search-button { height: 40px; padding: 0 22px; border-radius: 999px; box-shadow: none; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.lang-switch:hover { background: var(--surface-high); color: var(--text); }
.lang-switch .icon { width: 18px; height: 18px; }
.btn-add { margin: 0 6px 0 8px; }

/* Meniul contului (deschis fără JavaScript, cu <details>). */
.menu { position: relative; }
/* Meniul deschis (ex.: sortarea) stă deasupra cardurilor de sub el. */
.menu[open] { z-index: 30; }
.menu > summary {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--surface-high); }
.menu-caret { width: 16px; height: 16px; color: var(--subtle); transition: transform 0.2s; }
.menu[open] .menu-caret { transform: rotate(180deg); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 260px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: pop 0.14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.menu-head b { display: block; font-size: 15px; }
.menu-head small { color: var(--subtle); font-size: 12.5px; }
.menu-panel a, .menu-panel button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-high); }
.menu-panel .icon { color: var(--subtle); }
.menu-panel form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--border); }
.menu-danger { color: var(--error); }
.menu-danger .icon { color: var(--error) !important; }

/* Bara categoriilor, sub antet. */
.category-bar { border-top: 1px solid var(--border); }
.category-row { display: flex; gap: 6px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.category-link:hover { background: var(--surface-high); color: var(--text); }
.category-link.is-active { background: var(--primary-soft); color: var(--primary); }
.category-link .icon { width: 18px; height: 18px; }

/* ---------- Prezentarea de pe pagina principală ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(600px 300px at 88% -20%, rgb(61 139 255 / 0.55), transparent 70%),
    radial-gradient(420px 260px at 72% 130%, rgb(255 199 44 / 0.22), transparent 70%),
    radial-gradient(380px 240px at 100% 60%, rgb(230 57 70 / 0.2), transparent 70%),
    linear-gradient(135deg, #001a47 0%, #00296b 45%, #0b3f9e 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 52px;
  padding-bottom: 52px;
}
.hero h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.025em; max-width: 780px; }
.hero p { margin-top: 12px; max-width: 560px; color: rgb(255 255 255 / 0.78); font-size: 17px; }
.hero .hero-stat {
  flex: none;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Secțiuni ---------- */
.section { padding-top: 36px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 22px; font-weight: 700; }
.section-head .section-title { margin-bottom: 18px; }
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.section-icon .icon { width: 18px; height: 18px; stroke-width: 1.8; }
.section-link { display: inline-flex; align-items: center; gap: 2px; margin-bottom: 18px; color: var(--primary); font-size: 14.5px; font-weight: 600; }
.section-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-link .icon { width: 18px; height: 18px; }
.empty { padding: 40px 0; color: var(--subtle); text-align: center; }

/* Categoriile: carduri late pe calculator, pătrate pe telefon (ca în aplicație). */
.category-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-tile {
  --tile: var(--primary);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--tile) 40%, var(--border)); }
.tile-blue { --tile: #1b64ff; }
.tile-green { --tile: #16a34a; }
.tile-amber { --tile: #f59e0b; }
.category-tile-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tile) 14%, transparent);
  color: var(--tile);
}
.category-tile-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.category-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.category-tile-text b { font-size: 16.5px; font-weight: 600; overflow-wrap: anywhere; }
.category-tile-text small { color: var(--subtle); font-size: 13.5px; }
.category-tile-arrow { color: var(--subtle); transition: transform 0.18s; }
.category-tile:hover .category-tile-arrow { transform: translateX(3px); color: var(--tile); }

/* ---------- Cardul unui anunț ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); gap: 18px; }
.lcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.lcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lcard-link { display: flex; flex-direction: column; height: 100%; }
.lcard-media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-high); overflow: hidden; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lcard:hover .lcard-media img { transform: scale(1.04); }
.lcard-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--subtle); opacity: 0.6; }
.lcard-noimg .icon { width: 30px; height: 30px; }
.lcard-type {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgb(27 100 255 / 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.lcard-chips { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.lcard-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg) 66%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.lcard-chip .icon { width: 12px; height: 12px; stroke-width: 2; }
.lcard-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.lcard-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}
.lcard-price {
  margin-top: 6px;
  color: var(--primary);
  font-family: "VCS Price", "VCS Sans", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lcard-date { margin-top: auto; padding-top: 2px; color: color-mix(in srgb, var(--muted) 60%, transparent); font-size: 12px; text-align: right; }

/* ---------- Banda aplicației ---------- */
.app-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(400px 200px at 90% 0%, rgb(61 139 255 / 0.5), transparent 70%),
    linear-gradient(135deg, #001a47, #00296b 60%, #0b3f9e);
  box-shadow: var(--shadow-md);
}
.app-band h2 { font-size: 24px; font-weight: 700; }
.app-band p { margin-top: 6px; color: rgb(255 255 255 / 0.78); max-width: 520px; }
.app-band-logo { font-size: 56px; transform-origin: right center; }
.app-band-logo .logo-md { color: #fff; }

/* ---------- Pagina de eroare ---------- */
.error-page { max-width: 560px; padding-top: 80px; padding-bottom: 80px; text-align: center; }
.error-code {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--logo-blue), var(--primary) 50%, var(--midnight));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-page h1 { margin-top: 14px; font-size: 26px; }
.error-page p:not(.error-code) { margin: 10px 0 28px; color: var(--muted); }

/* ---------- Subsol ---------- */
.site-footer { margin-top: 64px; border-top: 1px solid var(--border); background: var(--surface-low); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer-logo { font-size: 30px; }
.footer-about p { margin: 14px 0 18px; max-width: 380px; font-size: 14px; }
.footer-prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer h2 { margin-bottom: 14px; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 22px;
  /* Linia de deasupra, cât conținutul (fără marginile laterale). */
  background: linear-gradient(var(--border), var(--border)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--subtle);
  font-size: 13px;
}

/* ---------- Bara de jos (doar pe telefon, ca în aplicație) ---------- */
.bottom-nav { display: none; }

/* ---------- Ecrane medii ---------- */
@media (max-width: 1080px) {
  .btn-add span, .header-actions .btn-ghost span { display: none; }
  .btn-add, .header-actions .btn-ghost { width: 44px; padding: 0; }
  .search-category { display: none; }
  .header-row { gap: 16px; }
}
@media (max-width: 900px) {
  .category-tiles { gap: 12px; }
  .category-tile { padding: 14px; gap: 12px; }
  .category-tile-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Telefon: exact ca aplicația ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 14px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  .header-row { gap: 12px; height: var(--header-h); }
  .header-logo { font-size: 27px; }
  .header-actions, .search-category, .search-button, .category-bar { display: none; }
  .search { height: 40px; padding: 0; background: var(--surface-high); }
  .search-field { padding-left: 12px; gap: 8px; }
  .search-icon { width: 19px; height: 19px; }
  /* 16px: Safari nu mărește pagina la atingerea câmpului. */
  .search input { height: 40px; font-size: 16px; }

  .hero { display: none; }
  .section { padding-top: 22px; }
  .section-title, .section-head .section-title { margin-bottom: 12px; font-size: 18px; gap: 10px; }
  .section-link { margin-bottom: 12px; font-size: 13.5px; }
  .section-icon { width: 28px; height: 28px; border-radius: 9px; }
  .section-icon .icon { width: 16px; height: 16px; }

  .category-tiles { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-tile {
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1;
    gap: 10px;
    padding: 6px;
    text-align: center;
    box-shadow: none;
    border-color: var(--border);
    background: var(--surface-low);
  }
  .category-tile:hover { transform: none; }
  .category-tile-icon { width: 52px; height: 52px; }
  .category-tile-icon .icon { width: 26px; height: 26px; }
  .category-tile-text { flex: none; max-width: 100%; }
  .category-tile-text b { hyphens: auto; overflow-wrap: break-word; }
  .category-tile-text b { font-size: 12px; line-height: 1.25; }
  .category-tile-text small { display: none; }

  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lcard { background: var(--surface-low); }
  .lcard:hover { transform: none; box-shadow: none; }
  .lcard:hover .lcard-media img { transform: none; }
  .lcard-type { top: 4px; right: 4px; padding: 1.5px 5px; border-radius: 6px; font-size: 10px; }
  .lcard-chips { left: 4px; right: 4px; bottom: 4px; gap: 3px; }
  .lcard-chip { padding: 1.5px 5px; border-radius: 6px; font-size: 10px; }
  .lcard-chip .icon { width: 10.5px; height: 10.5px; }
  .lcard-body { padding: 8px 10px 12px; }
  .lcard-title { font-size: 13.5px; line-height: 1.3; min-height: calc(2 * 1.3em); }
  .lcard-price { font-size: 16px; }
  .lcard-date { font-size: 11px; }

  .app-band { flex-direction: column; align-items: flex-start; margin-top: 32px; padding: 24px; border-radius: 18px; }
  .app-band h2 { font-size: 19px; }
  .app-band-logo { font-size: 40px; transform-origin: left center; }

  .site-footer { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-top: 32px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }

  /* Bara plutitoare din sticlă mată (GlassNavBar din aplicație). */
  .bottom-nav {
    position: fixed;
    left: 28px;
    right: 28px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 56px;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  }
  :root[data-theme="dark"] .bottom-nav { box-shadow: 0 8px 24px rgb(0 0 0 / 0.45); }
  .bottom-nav-item {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 56px;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item .icon { width: 24px; height: 24px; stroke-width: 1.5; }
  .bottom-nav-item.is-active { color: var(--primary); }
  .bottom-nav-item.is-active .icon { stroke-width: 2.1; }
  .bottom-nav-item .badge { top: 8px; right: 4px; box-shadow: none; }
  .bottom-nav-add {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgb(27 100 255 / 0.5);
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-add .icon { width: 28px; height: 28px; stroke-width: 2; }
}

/* ---------- Utilitare ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-block { width: 100%; }
.btn-lg { height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.85; }
.btn[aria-busy="true"]::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid rgb(255 255 255 / 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Antetul simplu (paginile de cont) ---------- */
.bare-header { position: relative; z-index: 10; }
.bare-row { display: flex; align-items: center; gap: 12px; height: 68px; }
.bare-back { display: none; margin-left: -8px; color: var(--text); }
.bare-back .icon { width: 26px; height: 26px; }
.bare-logo { font-size: 28px; }
.bare-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.is-bare .site-main { display: flex; }

/* ---------- Autentificare / Înregistrare ---------- */
.auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px var(--gutter) 48px;
}
.auth-single { grid-template-columns: minmax(0, 1fr); }
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: 48px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(520px 320px at 100% 0%, rgb(61 139 255 / 0.55), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgb(255 199 44 / 0.18), transparent 70%),
    radial-gradient(320px 240px at 100% 100%, rgb(230 57 70 / 0.18), transparent 70%),
    linear-gradient(150deg, #001a47 0%, #00296b 50%, #0b3f9e 100%);
  box-shadow: var(--shadow-md);
}
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.auth-brand-inner { position: relative; max-width: 460px; }
.auth-brand-logo { font-size: 64px; pointer-events: none; }
.auth-brand-logo .logo-md { color: #fff; }
.auth-brand-tagline { margin-top: 6px; color: rgb(255 255 255 / 0.7); letter-spacing: 0.04em; font-weight: 500; }
.auth-brand h2 { margin-top: 56px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.auth-brand-text { margin-top: 10px; color: rgb(255 255 255 / 0.78); font-size: 16px; }
.auth-benefits { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.auth-benefits li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.auth-benefits span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
}
.auth-benefits .icon { width: 19px; height: 19px; stroke-width: 1.8; }

.auth-main { display: flex; align-items: center; justify-content: center; }
.auth-column { width: 100%; max-width: 440px; padding: 24px 0; }
.auth-head { display: none; text-align: center; margin-bottom: 28px; }
.auth-head p { margin-top: 10px; color: var(--muted); font-size: 16px; font-weight: 500; letter-spacing: 0.03em; }
.auth-logo { font-size: 60px; transform-origin: center; pointer-events: none; }

.auth-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-low) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(16 24 64 / 0.06);
}
:root[data-theme="dark"] .auth-card { box-shadow: 0 8px 24px rgb(0 0 0 / 0.35); }

/* Comutatorul Autentificare / Înregistrare (AuthModeSwitch din aplicație). */
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 48px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 24px;
  background: var(--surface-highest);
}
.segmented a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.25s;
}
.segmented a[aria-current="page"] { color: #fff; }
.segmented-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 20px;
  background: var(--primary);
  box-shadow: 0 2px 8px rgb(27 100 255 / 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.segmented-thumb.is-right { transform: translateX(100%); }

.form { display: grid; gap: 14px; }
.form .btn-block { margin-top: 6px; }
.form-link-right { justify-self: end; margin: -4px 2px 0; color: var(--primary); font-size: 14px; font-weight: 600; }
.form-link-right:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-alert, .form-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.form-alert { border: 1px solid color-mix(in srgb, var(--error) 35%, transparent); background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--error); font-weight: 500; }
.form-note { border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: var(--primary-soft); color: var(--text); }
.form-alert .icon, .form-note .icon { margin-top: 1px; }
.form-note .icon { color: var(--primary); }
.auth-switch { margin-top: 16px; color: var(--muted); font-size: 14.5px; text-align: center; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-terms { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.auth-terms a { color: var(--primary); font-weight: 600; }

.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 18px; height: 18px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
}
.card-icon .icon { width: 26px; height: 26px; }
.card-title { font-size: 24px; font-weight: 700; }
.card-text { margin: 8px 0 18px; color: var(--muted); font-size: 14.5px; }
.card-title + .form-note { margin-top: 16px; }
.resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.link-button .icon { width: 17px; height: 17px; }
.link-muted { color: var(--muted); font-size: 14px; }
.link-muted:hover { color: var(--text); }

/* ---------- Câmpurile (InputDecoration din aplicație) ---------- */
.field-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-highest);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.has-error .field-box { border-color: var(--error); }
.has-error .field-box:focus-within { box-shadow: 0 0 0 1px var(--error); }
.field-icon { position: absolute; left: 14px; width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.field-box:focus-within .field-icon { color: var(--primary); }
.has-error .field-icon { color: var(--error); }
.field-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 20px 14px 4px 48px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 16px;
}
.field-box input[type="password"] { letter-spacing: 0.08em; }
.field-box input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--surface-highest) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
}
.field-box label {
  position: absolute;
  left: 48px;
  top: 50%;
  max-width: calc(100% - 96px);
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  transform-origin: left center;
  pointer-events: none;
  transition: top 0.15s ease, transform 0.15s ease, color 0.15s;
}
.field-box input:focus + label,
.field-box input:not(:placeholder-shown) + label,
.field-box input:-webkit-autofill + label,
.has-prefix .field-box label {
  top: 15px;
  transform: translateY(-50%) scale(0.76);
}
.field-box input:focus + label { color: var(--primary); }
.has-error .field-box label { color: var(--error); }
.field-prefix {
  position: absolute;
  left: 48px;
  bottom: 9px;
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}
.has-prefix .field-box input { padding-left: 92px; }
.has-prefix .field-box label { left: 48px; }
.field-eye {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.field-eye:hover { background: var(--surface-high); color: var(--text); }
.field-eye .eye-hide { display: none; }
.field-eye[aria-pressed="true"] .eye-show { display: none; }
.field-eye[aria-pressed="true"] .eye-hide { display: block; }
.field-error, .field-hint { margin: 6px 4px 0 16px; font-size: 12.5px; line-height: 1.4; }
.field-error { color: var(--error); }
.field-hint { color: var(--subtle); }
.code-input { letter-spacing: 0.4em; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Mesajul scurt (toast) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 10px 12px 16px;
  border-radius: 14px;
  background: #1f2937;
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
:root[data-theme="dark"] .toast { background: #e3e2e8; color: #1a1b20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #e3e2e8; color: #1a1b20; } }
.toast.is-hiding { opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.25s, transform 0.25s; }
.toast-icon { color: #22c55e; width: 20px; height: 20px; stroke-width: 2.4; }
.toast-close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: none; color: inherit; opacity: 0.7; cursor: pointer; }
.toast-close:hover { opacity: 1; }
.toast-close .icon { width: 18px; height: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } }

@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { display: none; }
  .auth-head { display: block; }
  .bare-logo { display: none; }
  .bare-back { display: inline-grid; }
}
@media (max-width: 760px) {
  .is-bare { padding-bottom: 0; }
  .bare-row { height: 56px; }
  .auth { padding: 0 20px 24px; }
  .auth-column { padding-top: 8px; }
  .auth-logo { font-size: 52px; }
  .auth-card { padding: 20px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .is-bare .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Profil ---------- */
.profile-page {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 28px;
}
.profile-side {
  position: sticky;
  top: calc(var(--header-h) + 64px);
  display: grid;
  gap: 14px;
}
.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.identity-avatar { position: relative; }
.avatar-edit {
  position: absolute;
  right: 0;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid var(--card);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s;
}
.avatar-edit:hover { transform: scale(1.08); }
.avatar-edit .icon { width: 16px; height: 16px; stroke-width: 2; }
.identity-name { margin-top: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; word-break: break-all; }
.plan-chip {
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.plan-seller { background: rgb(255 199 44 / 0.18); color: #b77c00; }
.plan-company { background: rgb(230 57 70 / 0.14); color: #c62834; }
:root[data-theme="dark"] .plan-seller { color: #ffd257; }
:root[data-theme="dark"] .plan-company { color: #ff7a82; }
.identity-counts { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; width: 100%; }
.identity-counts a { flex: 1; display: grid; padding: 6px 4px; border-radius: 12px; }
.identity-counts a:hover { background: var(--surface-high); }
.identity-counts b { font-size: 19px; font-weight: 800; line-height: 1.2; }
.identity-counts span { color: var(--muted); font-size: 13px; }
.identity-counts i { width: 1px; height: 30px; background: var(--outline-variant); }

.side-nav {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}
.side-nav a:hover { background: var(--surface-high); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav span { flex: 1; }
.side-nav small { color: var(--subtle); font-size: 12.5px; font-weight: 500; }
.side-nav a[aria-current="page"] small { color: var(--primary); }
.side-add { height: 48px; }

.profile-tabs { display: none; }
.profile-main { min-width: 0; }
.profile-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 18px; }
.profile-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.block-title { margin: 28px 2px 12px; font-size: 17px; font-weight: 600; }
.profile-head + .block-title, .verify-banner + .block-title { margin-top: 4px; }
.profile-head + .verify-banner + .block-title { margin-top: 24px; }

/* Plăcile cu informații (ca _InfoTile din aplicație). */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile, .setting {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.tile-icon { width: 22px; height: 22px; color: var(--primary); stroke-width: 1.8; }
.tile-text { display: grid; flex: 1; min-width: 0; }
.tile-text small { color: var(--muted); font-size: 12px; }
.tile-text b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-chip {
  flex: none;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-chip.is-green { background: rgb(34 160 107 / 0.15); color: #1e8f5f; }
.status-chip.is-amber { background: rgb(255 176 32 / 0.18); color: #b77800; }
.status-chip.is-blue { background: var(--primary-soft); color: var(--primary); }
:root[data-theme="dark"] .status-chip.is-green { color: #4cd39a; }
:root[data-theme="dark"] .status-chip.is-amber { color: #ffc35a; }

.settings { display: grid; gap: 10px; }
.setting { width: 100%; padding-top: 15px; padding-bottom: 15px; font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; transition: background-color 0.15s; }
a.setting:hover, button.setting:hover { background: var(--surface-low); }
div.setting { cursor: default; flex-wrap: wrap; }
.setting > span { flex: 1; }
.setting-arrow { width: 18px; height: 18px; color: var(--subtle); }
.setting.is-danger, .setting.is-danger .tile-icon { color: var(--error); }
.setting-form { margin: 0; }
.mini-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-high); }
.mini-seg a, .mini-seg button {
  padding: 6px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.mini-seg [aria-current="true"] { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 1px 4px rgb(27 100 255 / 0.3); }

/* Banda „Confirmă adresa de email”. */
.verify-banner {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgb(255 176 32 / 0.45);
  border-radius: 18px;
  background: rgb(255 176 32 / 0.1);
}
.verify-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: rgb(255 176 32 / 0.2); color: #b77800; }
:root[data-theme="dark"] .verify-icon { color: #ffc35a; }
.verify-body h2 { font-size: 16px; font-weight: 700; }
.verify-body p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.verify-deadline { color: var(--error) !important; font-weight: 500; }
.verify-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.verify-actions .btn { height: 40px; }

/* Stări goale. */
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 64px 24px; color: var(--muted); text-align: center; }
.empty-state.is-small { padding: 28px 16px; }
.empty-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--surface-high); color: var(--subtle); }
.empty-icon .icon { width: 32px; height: 32px; }
.empty-state p { max-width: 420px; }

/* Anunțurile mele. */
.filter-chips { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-chips .chip { flex: none; }
.chip-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-highest); font-size: 12px; font-weight: 600; text-align: center; }
.chip[aria-current="true"] .chip-count { background: rgb(255 255 255 / 0.25); }
.my-listings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.my-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: opacity 0.25s, transform 0.25s;
}
.my-card[hidden] { display: none; }
.my-card-main { display: flex; gap: 12px; padding: 12px; flex: 1; }
.my-card-main:hover .my-card-title { color: var(--primary); }
.my-card-img {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-highest);
  color: var(--subtle);
  overflow: hidden;
}
.my-card-img img { width: 100%; height: 100%; object-fit: cover; }
.my-card-img.is-dim img { opacity: 0.5; }
.my-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.my-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.35; transition: color 0.15s; }
.my-card-price { color: var(--primary); font-family: "VCS Price", "VCS Sans", sans-serif; font-size: 17px; font-weight: 700; }
.my-card-text small { color: var(--muted); font-size: 12px; }
.my-card-status { font-weight: 600; }
.my-card-status.is-green { color: #1e8f5f !important; }
.my-card-status.is-amber { color: #c98200 !important; }
.my-card-status.is-red { color: var(--error) !important; }
:root[data-theme="dark"] .my-card-status.is-green { color: #4cd39a !important; }
:root[data-theme="dark"] .my-card-status.is-amber { color: #ffc35a !important; }
.my-card-views { display: inline-flex; align-items: center; gap: 4px; }
.my-card-views .icon { width: 14px; height: 14px; }
.my-card-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.action {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 9px 4px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
}
.action:hover:not(:disabled) { background: var(--surface-low); }
.action .icon { width: 20px; height: 20px; }
.action:disabled { color: color-mix(in srgb, var(--muted) 40%, transparent); cursor: default; }
.action.is-danger { color: var(--error); }
.action[aria-busy="true"] { opacity: 0.5; pointer-events: none; }
.is-removing { opacity: 0; transform: scale(0.96); }
.head-add { height: 42px; }

/* Favorite: inimioara de pe card. */
.profile-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lcard { position: relative; }
.lcard.is-removing { opacity: 0; transform: scale(0.96); }
.lcard-fav {
  position: absolute;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.35);
  backdrop-filter: blur(6px);
  color: #ff4d5e;
  cursor: pointer;
}
.lcard-fav .icon { width: 19px; height: 19px; fill: currentColor; stroke-width: 1.8; }
.lcard-fav:hover { background: rgb(0 0 0 / 0.5); }

/* Portofel. */
.wallet-top { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: end; }
.bank-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  aspect-ratio: 1.586;
  padding: 20px 22px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  text-shadow: 0 1px 6px rgb(0 0 0 / 0.25);
  background: linear-gradient(135deg, #4d8eff 0%, #9db4cf 55%, #ebd28c 100%);
  box-shadow: 0 10px 30px rgb(235 210 140 / 0.25);
}
.bank-card::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(rgb(255 255 255 / 0.25), transparent 65%);
}
.bank-card-label { font-size: 13px; font-weight: 500; opacity: 0.9; }
.bank-card-balance { align-self: center; font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -0.01em; }
.bank-card-number { font-size: 19px; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.bank-card-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 14px; }
.bank-card-foot b:last-child { font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}
.plan.is-active { border: 1.6px solid var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-head h3 { font-size: 19px; font-weight: 700; }
.plan-is-seller .plan-head h3 { color: #c98a00; }
.plan-is-company .plan-head h3 { color: #d62f3c; }
.plan-price { color: var(--muted); font-size: 14px; }
.plan-price b { color: var(--text); font-family: "VCS Price", "VCS Sans", sans-serif; font-size: 24px; font-weight: 700; }
.plan-lines { margin: 0; padding: 0; list-style: none; display: grid; align-content: start; gap: 7px; color: var(--muted); font-size: 14px; flex: 1; }
.plan-lines li { display: flex; gap: 8px; }
.plan-lines .icon { width: 17px; height: 17px; margin-top: 2px; color: #22a06b; stroke-width: 2.2; }
.plan-usage { padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 4px; font-size: 13.5px; font-weight: 500; }
.transactions { display: grid; gap: 8px; }
.transaction { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.transaction-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface-high); color: var(--muted); }
.transaction-icon.is-in { background: rgb(34 160 107 / 0.14); color: #22a06b; }
.transaction-icon .icon { width: 18px; height: 18px; }
.transaction-text { display: grid; flex: 1; min-width: 0; }
.transaction-text b { font-weight: 500; }
.transaction-text small { color: var(--muted); font-size: 12px; }
.transaction-amount { font-weight: 600; white-space: nowrap; }
.transaction-amount.is-in { color: #22a06b; }

/* Abonați / Abonări. */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 14px; background: var(--surface-high); }
.seg-tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg-tabs a span { margin-left: 4px; opacity: 0.7; }
.seg-tabs a[aria-current="page"] { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
.people { display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); transition: opacity 0.25s, transform 0.25s; }
.person-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.person-main span { display: grid; min-width: 0; }
.person-main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.person-main small { color: var(--muted); font-size: 12.5px; }
.person-main:hover b { color: var(--primary); }

/* Formulare din profil (parola, ștergerea contului). */
.form-card { max-width: 520px; padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); }
.form-foot-link { display: block; margin-top: 16px; color: var(--primary); font-size: 14px; font-weight: 600; text-align: center; }
.danger-box { display: flex; gap: 14px; margin-bottom: 18px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--error) 9%, transparent); border: 1px solid color-mix(in srgb, var(--error) 30%, transparent); }
.danger-box > .icon { width: 26px; height: 26px; color: var(--error); flex: none; }
.danger-box h2 { font-size: 16px; color: var(--error); }
.danger-box p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--error); flex: none; }
.delete-confirm { margin-top: 4px; }
.delete-confirm .form-note { margin-bottom: 0; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .btn-danger { color: #690005; }
.btn-danger:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Fereastra de confirmare (AlertDialog). */
.dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgb(0 0 0 / 0.45); backdrop-filter: blur(2px); }
.dialog[open] { animation: pop 0.16s ease-out; }
.dialog-title { font-size: 20px; font-weight: 700; }
.dialog-text { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.dialog-actions .btn { width: 100%; padding: 0 10px; white-space: normal; line-height: 1.2; text-align: center; }
.cropper { width: min(380px, calc(100vw - 32px)); }
.cropper-stage { position: relative; margin-top: 16px; border-radius: 16px; overflow: hidden; background: #000; touch-action: none; }
.cropper-stage canvas { display: block; width: 100%; height: auto; cursor: grab; }
.cropper-stage canvas:active { cursor: grabbing; }
.cropper-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle closest-side, transparent calc(100% - 1px), rgb(0 0 0 / 0.55) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
}
.cropper-zoom { width: 100%; margin-top: 14px; accent-color: var(--primary); }

@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr; }
  .my-listings { grid-template-columns: 1fr; }
  .profile-page { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 860px) {
  .tile-grid { grid-template-columns: 1fr; }
  .wallet-top { grid-template-columns: 1fr; }
}

/* Telefon: profilul ca în aplicație. */
@media (max-width: 760px) {
  .is-profile .site-header { display: none; }
  .profile-page { display: flex; flex-direction: column; align-items: stretch; padding-top: 0; }
  .profile-tabs { order: -1; }
  .profile-tabs {
    position: sticky;
    top: 8px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 66px;
    margin: 8px 0 0;
    padding: 4px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  }
  .profile-tabs a {
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 3px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
  }
  .profile-tabs a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
  .profile-tabs .icon { width: 22px; height: 22px; stroke-width: 1.8; }
  .profile-side { display: none; position: static; }
  .profile-side.show-on-mobile { display: block; margin-top: 24px; }
  .profile-side .identity { padding: 0; border: 0; background: none; box-shadow: none; }
  .profile-side .side-nav, .profile-side .side-add { display: none; }
  .profile-head { margin: 18px 0 12px; min-height: 0; }
  .profile-head h1 { display: none; }
  .profile-head.is-subpage h1 { display: block; font-size: 20px; }
  .profile-head:not(.is-subpage) .head-add span { display: none; }
  .profile-head:not(.is-subpage) { justify-content: flex-end; margin: 12px 0 0; }
  .profile-head:not(.is-subpage):empty, .profile-head:not(.is-subpage):not(:has(a, button)) { display: none; }
  .profile-head.is-subpage .btn-ghost span { display: none; }
  .profile-head.is-subpage { flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
  /* „+” din bara de jos deschide deja adăugarea. */
  .head-add { display: none; }
  .block-title { margin-top: 22px; }
  .verify-banner { margin-top: 16px; }
  .setting { flex-wrap: wrap; }
  .mini-seg { width: 100%; }
  .mini-seg a, .mini-seg button { flex: 1; text-align: center; }
  .my-card-img { width: 92px; height: 92px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-chips { margin-top: 12px; }
  .form-card { padding: 18px; border-radius: 20px; }
  .bank-card { max-width: none; }
  .wallet-top { margin-top: 16px; }
  .seg-tabs { display: flex; }
  .seg-tabs a { flex: 1; text-align: center; }
  .dialog { padding: 20px; }
}

/* ---------- Adaugă anunț ---------- */
.add-choose { max-width: 880px; padding-top: 32px; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.page-lead { margin: 8px 0 22px; color: var(--muted); font-size: 15.5px; }
.add-choose .verify-banner { margin-bottom: 6px; }
.add-tiles { grid-template-columns: 1fr; }
.add-tiles .category-tile { padding: 20px 22px; }
.add-tiles.is-disabled .category-tile { opacity: 0.45; pointer-events: none; }

.wizard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  max-width: 1100px;
  padding-top: 28px;
}
.wizard-side { position: sticky; top: calc(var(--header-h) + 64px); }
.wizard-title { margin: 6px 0 20px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.wizard-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wizard-steps button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.wizard-steps button:disabled { cursor: default; color: var(--subtle); }
.wizard-steps .is-done button:hover { background: var(--surface-high); color: var(--text); }
.wizard-steps .is-current button { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.step-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--outline-variant);
  font-size: 13px;
  font-weight: 700;
}
.is-current .step-num { border-color: var(--primary); background: var(--primary); color: #fff; }
.is-done .step-num { border-color: #22a06b; background: #22a06b; color: #fff; }
.step-num .icon { width: 15px; height: 15px; stroke-width: 2.6; }

.wizard-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.wizard-head { display: none; }
.wizard-progress { height: 5px; border-radius: 3px; background: var(--surface-highest); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; border-radius: 3px; background: var(--primary); transition: width 0.3s ease; }
.wizard-step-title { margin: 22px 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.wizard-body { display: grid; gap: 18px; flex: 1; align-content: start; }
.wizard-loading { display: grid; place-items: center; min-height: 240px; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--surface-highest); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.wizard-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.wizard-terms { margin-bottom: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.wizard-terms a { color: var(--primary); font-weight: 600; }
.wizard-buttons { display: flex; gap: 10px; justify-content: flex-end; }
.wizard-buttons [data-back] { min-width: 140px; }
.wizard-buttons [data-next] { min-width: 220px; }

/* Câmpurile formularului. */
.wf-label { margin: 0 0 9px 2px; font-size: 14.5px; font-weight: 600; }
.wf-heading { margin: 10px 0 -4px; font-size: 17px; font-weight: 700; }
.field-box.no-icon input, .field-box.no-icon textarea { padding-left: 16px; }
.field-box.no-icon label { left: 16px; }
.field-box textarea {
  flex: 1;
  min-width: 0;
  min-height: 150px;
  padding: 26px 16px 12px;
  border: 0;
  outline: 0;
  border-radius: 14px;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  overflow: hidden;
}
.field-box.is-area { height: auto; align-items: stretch; }
.field-box.is-area label { top: 26px; }
.field-box textarea:focus + label, .field-box textarea:not(:placeholder-shown) + label { top: 15px; transform: translateY(-50%) scale(0.76); }
.field-box textarea:focus + label { color: var(--primary); }
.field-box.has-unit input { padding-right: 70px; }
.field-unit { position: absolute; right: 16px; color: var(--muted); font-size: 15px; pointer-events: none; }
.field-box.is-readonly { opacity: 0.85; }
.field-box.is-readonly input { color: var(--text); }
.readonly-lock { width: 18px; height: 18px; margin-right: 16px; color: var(--subtle); }
.counter { display: block; margin: 5px 6px 0 0; color: var(--subtle); font-size: 12px; text-align: right; }
.wf .field-error, .wf .field-hint { margin-left: 4px; }

.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  background: var(--surface-high);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choice:hover { border-color: var(--outline); }
.choice[aria-checked="true"], .choice[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }
.choice .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.choice-row.is-multi .choice { min-height: 38px; padding: 6px 13px; font-size: 14px; }
.has-error .choice:not([aria-checked="true"]) { border-color: var(--error); }

.picker {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  padding: 0 14px 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-highest);
  color: var(--muted);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.picker.has-value { color: var(--text); font-weight: 500; }
.picker:hover:not(:disabled) { border-color: var(--outline-variant); }
.picker:disabled { opacity: 0.5; cursor: not-allowed; }
.has-error .picker { border-color: var(--error); }
.picker-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-caret { color: var(--subtle); }
.swatch { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1px solid var(--outline-variant); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px; font-size: 15px; font-weight: 500; cursor: pointer; }
.switch {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  margin: 0;
  border-radius: 15px;
  background: var(--surface-highest);
  border: 2px solid var(--outline);
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--outline);
  transition: transform 0.2s, width 0.2s, height 0.2s, top 0.2s, background-color 0.2s;
}
.switch:checked { background: var(--primary); border-color: var(--primary); }
.switch:checked::after { top: 2px; width: 22px; height: 22px; background: #fff; transform: translateX(20px); }

.price-row { display: flex; gap: 10px; align-items: stretch; }
.price-row .field-box { flex: 1; }
.currency { display: flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--surface-highest); }
.currency button { min-width: 62px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.currency button[aria-checked="true"] { background: var(--primary); color: #fff; }
.price-note { margin: 8px 0 0 4px; color: var(--muted); font-size: 13.5px; }
.price-note:empty { display: none; }

.photos-hint { margin: -4px 0 12px 2px !important; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; border-radius: 16px; transition: box-shadow 0.15s; }
.photo-grid.is-drop { box-shadow: 0 0 0 3px var(--primary-soft), 0 0 0 1px var(--primary); }
.photo, .photo-add { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.photo { background: var(--surface-high); cursor: grab; touch-action: pan-y; user-select: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.photo.is-dragging { opacity: 0.35; }
.photo.is-target { box-shadow: inset 0 0 0 3px var(--primary); }
.photo-ghost { position: fixed; left: 0; top: 0; z-index: 100; border-radius: 14px; overflow: hidden; pointer-events: none; opacity: 0.92; box-shadow: var(--shadow-lg); transform-origin: center; }
.photo-ghost img { width: 100%; height: 100%; object-fit: cover; }
.photo-ghost .photo-main { position: absolute; left: 6px; bottom: 6px; }
.photo-main { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600; }
.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  cursor: pointer;
}
.photo-remove .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.photo-add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  border: 1.5px dashed var(--outline);
  background: var(--surface-low);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.photo-add:hover { background: var(--primary-soft); border-color: var(--primary); }
.photo-add .icon { width: 26px; height: 26px; }
.wf.has-error .photo-add { border-color: var(--error); }

/* Lista cu căutare (PickerFormField). */
.picker-dialog { display: flex; flex-direction: column; width: min(480px, calc(100vw - 32px)); max-height: min(640px, 85vh); padding: 18px; }
.picker-dialog:not([open]) { display: none; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.picker-head .dialog-title { font-size: 18px; }
.picker-search {
  width: 100%;
  height: 46px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: 0;
  background: var(--surface-highest);
  font-size: 16px;
}
.picker-search:focus { border-color: var(--primary); }
.picker-list { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.picker-item:hover { background: var(--surface-high); }
.picker-item span:not(.swatch) { flex: 1; }
.picker-item[aria-selected="true"] { color: var(--primary); font-weight: 600; }
.picker-item.is-pinned { font-weight: 600; }
.picker-item.is-pinned + .picker-item:not(.is-pinned) { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; }
.picker-empty { padding: 24px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; }
  .wizard-side { display: none; }
}

/* Telefon: formularul pe tot ecranul, ca în aplicație (bara de sus cu
   pasul și progresul, butoanele fixate jos). */
@media (max-width: 760px) {
  .is-wizard .site-header, .is-wizard .site-footer, .is-wizard .bottom-nav { display: none; }
  .is-wizard { padding-bottom: 0; }
  .wizard { padding: 0; }
  .wizard-card { min-height: 100vh; min-height: 100dvh; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
  .wizard-head {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 6px 6px;
    background: var(--bg);
  }
  .wizard-head-text { min-width: 0; }
  .wizard-mobile-title { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wizard-progress-text { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wizard-progress { position: sticky; top: 64px; z-index: 5; margin: 0 16px; }
  .wizard-step-title { display: none; }
  .wizard-body { padding: 18px 16px 24px; gap: 16px; }
  .wizard-foot {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
  }
  .wizard-buttons [data-back] { flex: 1; min-width: 0; }
  .wizard-buttons [data-next] { flex: 2; min-width: 0; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .picker-dialog { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .picker-dialog[open] { animation: sheet-up 0.22s ease-out; }
  .add-choose { padding-top: 20px; }
  .page-title { font-size: 26px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } }

/* ---------- Pagina anunțului ---------- */
.detail-topbar { display: none; }
.round-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.15);
  cursor: pointer;
}
.round-btn .icon { width: 22px; height: 22px; stroke-width: 2; }
.round-btn.is-ghost { visibility: hidden; }
.detail { padding-top: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--primary); }
.crumbs .icon { width: 14px; height: 14px; color: var(--subtle); flex: none; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.status-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 16px; border-radius: 14px; background: rgb(255 176 32 / 0.12); border: 1px solid rgb(255 176 32 / 0.4); font-size: 14px; }
.status-banner .icon { color: #c98200; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "gallery info" "thumbs info" "body info";
  grid-template-rows: auto auto 1fr;
  gap: 16px 32px;
  align-items: start;
}
.gallery { grid-area: gallery; position: relative; aspect-ratio: 16 / 10; max-height: 480px; width: 100%; border-radius: 22px; overflow: hidden; background: var(--surface-high); }
.gallery-track, .lightbox-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar, .lightbox-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: none; scroll-snap-align: start; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide.is-empty { display: grid; place-items: center; color: var(--subtle); cursor: default; }
.gallery-slide.is-empty .icon { width: 48px; height: 48px; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.88);
  color: #1a1b20;
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.2);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery:hover .gallery-arrow, .lightbox .gallery-arrow, .gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow.is-prev { left: 14px; }
.gallery-arrow.is-next { right: 14px; }
.gallery-arrow .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.gallery-count { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 13px; font-weight: 600; }
.fav-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.18);
  cursor: pointer;
  transition: transform 0.15s, color 0.15s;
}
.fav-btn:active { transform: scale(0.92); }
.fav-btn .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.fav-btn.is-on { color: #ff3b4e; }
.fav-btn.is-on .icon { fill: currentColor; }
.thumbs { grid-area: thumbs; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.thumbs button { flex: none; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--surface-high); cursor: pointer; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s; }
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--primary); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { grid-area: info; position: sticky; top: calc(var(--header-h) + 64px); display: grid; gap: 14px; }
.info-card { padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-sm); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 12.5px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.detail-meta .icon { width: 14px; height: 14px; }
.detail-title { margin-top: 10px; font-size: 24px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.detail-price { color: var(--primary); font-family: "VCS Price", "VCS Sans", sans-serif; font-size: 32px; font-weight: 700; line-height: 1.15; }
.offer-type { flex: none; padding: 4px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.per-sqm { margin-top: 4px; color: var(--muted); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { padding: 3px 10px; border-radius: 8px; background: rgb(34 160 107 / 0.12); color: #1e8f5f; font-size: 12.5px; font-weight: 600; }
:root[data-theme="dark"] .tag { color: #4cd39a; }
.detail-actions { display: grid; gap: 10px; margin-top: 20px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-row .btn { padding: 0 10px; }
.danger-text { color: var(--error) !important; }
.own-note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 14px; }
.own-note .icon { color: var(--primary); }
.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); transition: border-color 0.15s, box-shadow 0.15s; }
.seller-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.seller-text { display: grid; flex: 1; min-width: 0; }
.seller-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-text small { color: var(--muted); font-size: 12.5px; }
.seller-link { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seller-link .icon { width: 16px; height: 16px; }

.detail-body { grid-area: body; min-width: 0; }
.key-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.key-spec { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); text-align: center; }
.key-spec .icon { width: 24px; height: 24px; color: var(--primary); }
.key-spec small { color: var(--muted); font-size: 12px; }
.key-spec b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.detail-heading { margin: 28px 0 12px; font-size: 18px; font-weight: 700; }
.description { padding: 18px; border-radius: 16px; background: var(--surface-low); border: 1px solid var(--border); line-height: 1.65; overflow-wrap: anywhere; }
.spec-list { margin: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; }
.spec-list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; padding: 12px 16px; }
.spec-list div + div { border-top: 1px solid var(--border); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; overflow-wrap: anywhere; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.contact-box p { display: flex; align-items: center; gap: 8px; flex: 1; font-weight: 500; }
.contact-box .icon { color: var(--primary); }
.detail-bar { display: none; }

/* Galeria pe tot ecranul. */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #08090c; color: #fff; }
.lightbox::backdrop { background: #08090c; }
.lightbox-slide { flex: 0 0 100%; display: grid; place-items: center; scroll-snap-align: start; }
.lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 2; background: rgb(255 255 255 / 0.14); color: #fff; }
.lightbox .gallery-count { left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); }

/* Ferestrele Scrie mesaj / Raportează. */
.sheet-dialog { width: min(520px, calc(100vw - 32px)); padding: 20px; }
.sheet-dialog .field-box.is-area { margin-top: 4px; }
.sheet-dialog .dialog-text { margin: 0 0 12px; }
.dialog-actions.is-single { grid-template-columns: 1fr; margin-top: 16px; }
.radio-list { display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.radio-row:hover { background: var(--surface-high); }
.radio-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex: none; }
.report-other { margin-top: 8px; }
.sheet-dialog .field-error { margin: 8px 4px 0; }

/* ---------- Profilul public ---------- */
.user-page { padding-top: 24px; }
.user-card { position: relative; border: 1px solid var(--border); border-radius: 24px; background: var(--card); overflow: hidden; box-shadow: var(--shadow-sm); }
.user-cover {
  height: 120px;
  background:
    radial-gradient(420px 180px at 85% 0%, rgb(61 139 255 / 0.55), transparent 70%),
    radial-gradient(300px 160px at 15% 120%, rgb(255 199 44 / 0.25), transparent 70%),
    linear-gradient(135deg, #001a47, #00296b 55%, #0b3f9e);
}
.user-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "avatar text stats" "avatar actions actions"; align-items: center; gap: 8px 22px; padding: 0 28px 24px; }
.user-main > .avatar { grid-area: avatar; margin-top: -48px; box-shadow: 0 0 0 5px var(--card); }
.user-text { grid-area: text; padding-top: 14px; min-width: 0; }
.user-text h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.user-text p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); }
.user-text .plan-chip { margin: 0; }
.user-stats { grid-area: stats; display: flex; align-items: center; gap: 22px; padding-top: 14px; }
.user-stats div { display: grid; justify-items: center; }
.user-stats b { font-size: 22px; font-weight: 800; line-height: 1.2; }
.user-stats span { color: var(--muted); font-size: 13px; }
.user-stats i { width: 1px; height: 32px; background: var(--outline-variant); }
.user-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px; }
.user-actions .btn { min-width: 150px; }
.title-count { margin-left: 4px; color: var(--subtle); font-size: 16px; font-weight: 600; }

@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 16px 24px; }
  .key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "gallery" "thumbs" "info" "body"; }
  .detail-info { position: static; }
  .user-main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "avatar text" "stats stats" "actions actions"; }
  .user-stats { padding-top: 4px; }
}

/* Telefon: ca în aplicație. */
@media (max-width: 760px) {
  .is-detail .site-header, .is-detail .bottom-nav, .is-detail .site-footer { display: none; }
  .is-detail { padding-bottom: 0; }
  .detail-topbar {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .detail-topbar.is-solid {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .detail-topbar.is-solid .round-btn { background: none; box-shadow: none; backdrop-filter: none; }
  .topbar-title { flex: 1; overflow: hidden; text-align: center; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .detail { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
  .crumbs, .thumbs { display: none; }
  .status-banner { margin: 70px 16px 12px; }
  .gallery { aspect-ratio: 4 / 3.2; max-height: none; border-radius: 0; }
  .gallery-arrow { display: none; }
  .gallery-count { left: auto; right: 74px; bottom: 16px; }
  .detail-grid { gap: 0; }
  .detail-info { padding: 0 16px; gap: 12px; }
  .info-card { padding: 14px 0 0; border: 0; background: none; box-shadow: none; }
  .detail-title { font-size: 21px; margin-top: 8px; }
  .detail-price { font-size: 26px; }
  .detail-actions { margin-top: 14px; }
  .detail-actions > [data-message-open] { display: none; }
  .seller-card { background: var(--surface-low); }
  .detail-body { padding: 18px 16px 0; }
  .key-specs { gap: 8px; }
  .key-spec { background: var(--surface-low); }
  .detail .section { padding: 24px 16px 0; }
  .detail-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .detail-bar .btn { flex: 1; }
  .fav-btn.is-bar { position: static; width: 52px; height: 52px; flex: none; border-radius: 14px; box-shadow: none; border: 1px solid var(--outline-variant); }
  .lightbox .gallery-arrow { display: none; }
  .sheet-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .sheet-dialog[open] { animation: sheet-up 0.22s ease-out; }
  .user-page { padding: 0 0 24px; }
  .user-card { border-radius: 0; border-width: 0 0 1px; box-shadow: none; }
  .user-cover { height: 96px; }
  .user-main { padding: 0 16px 18px; gap: 6px 16px; }
  .user-main > .avatar { --size: 92px !important; width: 92px; height: 92px; margin-top: -40px; }
  .user-text h1 { font-size: 21px; }
  .user-stats { justify-content: center; padding: 8px 0 4px; }
  .user-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .user-actions .btn { min-width: 0; padding: 0 10px; }
  .user-page .section { padding: 22px 16px 0; }
  .desktop-only { display: none !important; }
}

/* ---------- Căutarea și categoriile ---------- */
.search-page { padding-top: 26px; }
.search-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.search-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.search-head p { margin-top: 2px; color: var(--muted); }
.search-head-icon {
  --tile: var(--primary);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tile) 14%, transparent);
  color: var(--tile);
}
.search-head-icon .icon { width: 28px; height: 28px; }
.search-layout { display: block; }

/* Panoul de filtre: deschis cu butonul „Filtre”, deasupra anunțurilor. */
.filters { display: none; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-md); }
body.filters-open .filters { display: block; animation: pop 0.16s ease-out; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); }
.filters-head h2 { font-size: 17px; font-weight: 700; margin-right: auto; }
.filters-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 4px 28px; padding: 8px 20px 12px; }
.fgroup { margin: 0; padding: 12px 0; border: 0; min-width: 0; }
.fgroup legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.fgroup legend + * { clear: both; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finput, .fselect {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: 0;
  background: var(--surface-highest);
  font-size: 15px;
}
.finput:focus, .fselect:focus { border-color: var(--primary); }
.fselect {
  padding-right: 34px;
  appearance: none;
  background: var(--surface-highest) 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='%23747781' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}
.fselect + .fselect { margin-top: 8px; }
.fselect:disabled { opacity: 0.5; cursor: not-allowed; }
.seg-mini { display: flex; gap: 4px; margin-top: 8px; padding: 3px; border-radius: 12px; background: var(--surface-highest); }
.seg-mini label { flex: 1; }
.seg-mini input { position: absolute; opacity: 0; pointer-events: none; }
.seg-mini span { display: block; padding: 6px 0; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.seg-mini input:checked + span { background: var(--primary); color: #fff; }
.seg-mini input:focus-visible + span { outline: 2px solid var(--primary); }
.choice-pill { position: relative; }
.choice-pill input { position: absolute; opacity: 0; pointer-events: none; }
.choice-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  background: var(--surface-high);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.choice-pill span:hover { border-color: var(--outline); }
.choice-pill input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }
.choice-pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.filters .choice-row { gap: 6px; }
.fgroup.is-wide { grid-column: span 2; }
@media (max-width: 1080px) { .fgroup.is-wide { grid-column: auto; } }
.filters-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--border); }
.filters-foot .btn-lg { min-width: 220px; }
.filters-backdrop { display: none; }
.filters-btn[aria-expanded="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.results { min-width: 0; }
.results-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.count-dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; line-height: 20px; }
.sort-menu > summary.btn { height: 40px; padding: 0 14px; font-weight: 500; }
.sort-menu > summary b { font-weight: 600; }
.sort-short { display: none; }
.sort-menu .menu-panel { left: 0; right: auto; width: 250px; }
.sort-menu .menu-panel a { justify-content: space-between; }
.sort-menu .menu-panel a[aria-current="true"] { color: var(--primary); font-weight: 600; }
.sort-menu .menu-panel a .icon { color: var(--primary); }
.layout-toggle { gap: 2px; margin-left: auto; padding: 3px; border-radius: 12px; background: var(--surface-high); }
.layout-toggle .icon-btn { width: 36px; height: 34px; border-radius: 9px; }
.layout-toggle .icon-btn[aria-pressed="true"] { background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px 0 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
}
.active-chip.is-guess { background: var(--surface-high); color: var(--text); border: 1px dashed var(--outline); }
.active-chip .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.active-chip:hover { filter: brightness(0.96); }
.results .form-note { margin-bottom: 16px; }
.results-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.empty-state h2 { color: var(--text); font-size: 19px; }

/* Pe calculator anunțurile sunt doar în grilă; lista există doar pe telefon. */
.layout-toggle { display: none; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
.page-btn { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 600; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn[aria-current="page"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.page-btn .icon { width: 18px; height: 18px; }

/* Sugestiile căutării din antet. */
.search { position: relative; z-index: 3; }
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: pop 0.12s ease-out;
}
.suggest-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; color: var(--subtle); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.suggest-head button { border: 0; background: none; color: var(--primary); font-size: 12.5px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
.suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.suggest-item::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  opacity: 0.45;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.suggest-item.is-recent::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.suggest-item.is-listing::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E"); }
.suggest-item:hover, .suggest-item.is-active { background: var(--surface-high); }

@media (max-width: 1080px) {
  .sort-label { display: none; }
  .sort-short { display: inline; }
}
@media (max-width: 860px) {
  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    max-height: 88dvh;
    margin: 0;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    transform: translateY(105%);
    transition: transform 0.25s ease;
    visibility: hidden;
  }
  body.filters-open .filters { display: flex; transform: none; visibility: visible; animation: none; }
  .filters-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
  .filters-body { display: block; overflow-y: auto; flex: 1; padding: 6px 18px 12px; }
  .filters-body .fgroup { border-bottom: 1px solid var(--border); }
  .filters-foot { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
  .filters-foot .btn-lg { flex: 1; min-width: 0; }
  body.filters-open .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgb(0 0 0 / 0.45); }
  body.filters-open { overflow: hidden; }
}
@media (max-width: 760px) {
  .search-page { padding-top: 14px; }
  .search-head { gap: 12px; margin-bottom: 14px; }
  .search-head h1 { font-size: 22px; }
  .search-head-icon { width: 46px; height: 46px; border-radius: 14px; }
  .search-head-icon .icon { width: 24px; height: 24px; }
  .results-bar { gap: 8px; }
  .results-bar .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .layout-toggle { display: flex; }
  .listing-grid.is-list { grid-template-columns: 1fr; gap: 12px; }
  .is-list .lcard-link { flex-direction: row; }
  .is-list .lcard-media { width: 128px; flex: none; aspect-ratio: 1; }
  .is-list .lcard-title { -webkit-line-clamp: 2; min-height: 0; }
  .is-list .lcard-date { text-align: left; margin-top: auto; }
  .is-list .lcard-body { padding: 8px 12px; }
  .is-list .lcard-title { font-size: 14px; }
  .is-list .lcard-price { font-size: 17px; }
  .sort-menu[open] { z-index: 70; }
  .sort-menu .menu-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 22px 22px 0 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; }
  .suggest { position: fixed; top: calc(var(--header-h) + 4px); left: 12px; right: 12px; }
  .pagination { margin-top: 22px; }
}

/* ---------- Mesageria ---------- */
.is-messages .site-footer { display: none; }
.messenger {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  height: calc(100vh - var(--header-h) - 49px - 48px);
  height: calc(100dvh - var(--header-h) - 49px - 48px);
  min-height: 480px;
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.conv-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.conv-title { padding: 18px 18px 10px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.conv-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 14px 10px; padding: 0 14px; border-radius: 20px; background: var(--surface-high); color: var(--subtle); }
.conv-search:focus-within { box-shadow: 0 0 0 1.5px var(--primary); }
.conv-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--text); }
.conv-search .icon { width: 18px; height: 18px; }
.conv-list { flex: 1; overflow-y: auto; padding: 0 8px 12px; scrollbar-width: thin; }
.conv {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 14px;
  background: none;
  text-align: left;
  cursor: pointer;
}
.conv:hover { background: var(--surface-low); }
.conv.is-active { background: var(--primary-soft); }
.conv.is-support { margin-bottom: 8px; background: var(--surface-high); border: 1px solid var(--border); }
.conv.is-support.is-active { background: var(--primary-soft); }
.conv-text { display: grid; flex: 1; min-width: 0; }
.conv-text b { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.is-support .conv-text b { font-weight: 700; }
.conv-text small { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-text small.is-link { color: var(--primary); }
.conv.is-unread .conv-text small { color: var(--text); font-weight: 600; }
.conv-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.conv-meta time { color: var(--subtle); font-size: 11.5px; }
.conv.is-unread .conv-meta time { color: var(--primary); }
.conv-badge { min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; text-align: center; }
.conv.is-new .icon { color: var(--primary); }
.conv-empty { padding: 28px 16px; color: var(--muted); text-align: center; font-size: 14px; }

.chat-pane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-empty { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; padding: 24px; color: var(--muted); text-align: center; }
.chat-empty h2 { color: var(--text); font-size: 19px; }
.chat-empty p { max-width: 360px; font-size: 14.5px; }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.chat-back { display: none; }
.chat-who { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 12px; }
a.chat-who:hover { background: var(--surface-low); }
.chat-who > span:last-child { display: grid; min-width: 0; }
.chat-who b { font-size: 16.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-who small { color: var(--muted); font-size: 12.5px; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 12px 18px; background: var(--bg); scrollbar-width: thin; }
.chat-list { display: flex; flex-direction: column; gap: 4px; }
.day-sep { display: flex; justify-content: center; margin: 10px 0; }
.day-sep span { padding: 3px 10px; border-radius: 10px; background: var(--surface-high); color: var(--muted); font-size: 12px; font-weight: 500; }
.bubble {
  align-self: flex-start;
  max-width: min(75%, 520px);
  border-radius: 18px 18px 18px 4px;
  background: var(--surface-high);
  color: var(--text);
  overflow: hidden;
}
.bubble.is-mine { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--primary); color: #fff; }
.bubble-photo { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bubble-photo img { display: block; width: 240px; max-width: 100%; max-height: 320px; object-fit: cover; }
.bubble-text { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 2px 8px; padding: 7px 10px 6px 12px; }
.bubble-body { flex: 1 1 auto; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { margin-left: auto; font-size: 10.5px; opacity: 0.7; }
.bubble.is-photo-only { position: relative; background: var(--surface-high); }
.bubble.is-photo-only .bubble-text { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 10px; background: rgb(0 0 0 / 0.5); color: #fff; }
.bubble.is-photo-only time { opacity: 1; }
.bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 6px; }
.bubble-wrap.is-mine { align-items: flex-end; }
.bubble-wrap .bubble { max-width: 100%; }
.story-ref { display: grid; justify-items: start; gap: 4px; }
.story-ref.is-mine { justify-items: end; }
.story-ref small { color: var(--muted); font-size: 11.5px; }
.story-ref img { width: 96px; height: 170px; border-radius: 14px; object-fit: cover; }
.story-expired { display: grid; justify-items: center; gap: 6px; width: 110px; padding: 14px 10px; border: 1px solid var(--outline-variant); border-radius: 14px; background: var(--surface-high); color: var(--muted); font-size: 11.5px; text-align: center; }
.story-expired .icon { width: 22px; height: 22px; }
.msg-status { align-self: flex-end; margin: 2px 4px 0 0; color: var(--subtle); font-size: 11.5px; }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--border); background: var(--card); }
.composer textarea {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  padding: 10px 16px;
  border: 0;
  border-radius: 22px;
  outline: 0;
  background: var(--surface-high);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
}
.composer textarea:focus { box-shadow: 0 0 0 1.5px var(--primary); }
.composer-photo { color: var(--primary); }
.composer-photo .icon { width: 26px; height: 26px; stroke-width: 2; }
.composer-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
.composer-send .icon { width: 20px; height: 20px; stroke-width: 2; margin-left: -2px; }
.composer-send:disabled, .composer-photo:disabled { opacity: 0.5; cursor: default; }
.composer.is-sending .composer-send { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.lightbox-slide.is-single { height: 100%; }

@media (max-width: 960px) {
  .messenger { grid-template-columns: 300px minmax(0, 1fr); }
}
/* Telefon: ca în aplicație — lista ca pagină, chatul pe tot ecranul. */
@media (max-width: 760px) {
  .messenger {
    display: block;
    height: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .conv-pane { border: 0; }
  .conv-title { padding: 14px 4px 10px; font-size: 28px; }
  .conv-search { margin: 0 0 14px; }
  .conv-list { padding: 0 0 12px; overflow: visible; }
  .chat-pane { display: none; }
  .has-chat .site-header, .has-chat .bottom-nav { display: none; }
  body.has-chat { padding-bottom: 0; }
  .messenger.has-chat .conv-pane { display: none; }
  .messenger.has-chat .chat-pane {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    height: 100dvh;
    background: var(--bg);
  }
  .chat-head { padding: calc(6px + env(safe-area-inset-top)) 8px 6px 4px; background: var(--bg); }
  .chat-back { display: inline-grid; color: var(--text); }
  .chat-back .icon { width: 26px; height: 26px; }
  .chat-scroll { padding: 8px 12px; }
  .bubble { max-width: 80%; }
  .composer { padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Notificări (ca în aplicație: containere mate, iconița tipului) ---------- */
.notifs { max-width: 760px; padding-top: 24px; padding-bottom: 40px; }
.is-notifications .site-footer { display: none; }
.notifs-title { margin-bottom: 14px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.notif-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--outline-variant) 50%, transparent);
  border-radius: 16px;
  background: var(--surface-high);
  color: var(--text);
  font: inherit;
  text-align: left;
}
.notif.is-link { cursor: pointer; transition: background-color 0.15s; }
.notif.is-link:hover { background: var(--surface-highest); }
.notif.is-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.notif.is-unread { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.notif { --tone: var(--primary); }
.tone-green { --tone: #16a34a; }
.tone-amber { --tone: #f59e0b; }
.tone-red { --tone: var(--error); }
.tone-blue { --tone: #1b64ff; }
.notif-lead {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  color: var(--tone);
}
.notif-lead > .icon { width: 24px; height: 24px; }
.notif-lead.has-avatar { background: none; }
.notif-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--tone);
  color: #fff;
}
.notif-badge .icon { width: 11px; height: 11px; stroke-width: 2.5; }
.notif-body { display: grid; flex: 1; align-content: start; gap: 2px; min-width: 0; }
.notif-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.notif.is-unread .notif-title { font-weight: 700; }
.notif-listing { overflow: hidden; color: var(--muted); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.notif-extra { margin-top: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.notif-extra.is-clamped { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.notif-extra.is-price { color: var(--primary); font-family: "VCS Price", "VCS Sans", sans-serif; font-size: 14px; font-weight: 700; }
.notif-meta { display: grid; flex: none; justify-items: end; gap: 6px; }
.notif-meta time { display: flex; align-items: center; gap: 5px; color: var(--outline); font-size: 11.5px; white-space: nowrap; }
.notif.is-unread .notif-meta time { color: var(--primary); }
.notif.is-unread .notif-meta time::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.notif-thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 10px; background: var(--surface-highest); color: var(--muted); }
.notif-thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif-thumb .icon { width: 20px; height: 20px; }
.notifs-empty { display: grid; justify-items: center; gap: 12px; padding: 70px 16px; color: var(--muted); text-align: center; font-size: 14.5px; }
.notifs-empty[hidden], .notif-list[hidden] { display: none; }
.announcement-dialog { width: min(480px, calc(100vw - 32px)); max-height: min(80vh, 640px); overflow-y: auto; }
.announcement-head { display: flex; align-items: center; gap: 12px; }
.announcement-head .notif-lead { width: 40px; height: 40px; border-radius: 12px; }
.announcement-head .notif-lead .icon { width: 20px; height: 20px; }
.announcement-head .dialog-title { flex: 1; min-width: 0; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.announcement-head .icon-btn { align-self: flex-start; margin: -6px -8px 0 0; }
.announcement-body { margin-top: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; user-select: text; }
.announcement-link { display: flex; width: 100%; height: 50px; margin-top: 20px; gap: 8px; }
.announcement-link[hidden] { display: none; }
.announcement-link .icon { width: 20px; height: 20px; }

@media (max-width: 760px) {
  .notifs { padding-top: 14px; padding-bottom: 24px; }
  /* Pe telefon, anunțul se deschide de jos, ca foaia din aplicație. */
  .announcement-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}

/* ---------- Codul panoului de admin ---------- */
.adm-unlock { display: grid; place-items: center; min-height: calc(100dvh - 140px); padding-top: 24px; padding-bottom: 40px; }
.adm-unlock-card { display: grid; gap: 16px; width: min(420px, 100%); padding: 32px 28px; border: 1px solid var(--border); border-radius: 24px; background: var(--card); box-shadow: var(--shadow-md); text-align: center; }
.adm-unlock-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; background: var(--primary-soft); color: var(--primary); }
.adm-unlock-icon .icon { width: 28px; height: 28px; }
.adm-unlock-card h1 { font-size: 22px; font-weight: 800; }
.adm-unlock-card p { margin-top: -8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.adm-unlock-card .field { text-align: left; }
.adm-unlock-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 14px; }
.adm-unlock-back:hover { color: var(--text); }
.adm-unlock-back .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .adm-unlock-card { padding: 24px 18px; border: 0; box-shadow: none; background: none; }
}

/* ---------- Paginile de informații (Termeni, Despre noi…) ---------- */
.content-page { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 40px; justify-content: center; padding-top: 32px; padding-bottom: 56px; }
.content-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; align-content: start; gap: 2px; height: fit-content; }
.content-nav a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.content-nav a:hover { background: var(--surface-low); color: var(--text); }
.content-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.prose { min-width: 0; padding: 32px 36px; border: 1px solid var(--border); border-radius: 24px; background: var(--card); font-size: 15.5px; line-height: 1.7; overflow-wrap: anywhere; }
.prose h1 { margin-bottom: 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.prose h2 { margin: 28px 0 8px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.prose p { margin: 10px 0; color: var(--text); }
.prose ul { margin: 10px 0; padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: var(--primary); }
.prose strong { font-weight: 700; }
@media (max-width: 760px) {
  .content-page { display: block; padding-top: 12px; padding-bottom: 32px; }
  .content-nav { position: static; display: flex; gap: 6px; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .content-nav a { flex: none; padding: 8px 14px; border: 1px solid var(--border); border-radius: 18px; font-size: 13.5px; white-space: nowrap; }
  .prose { padding: 4px 0; border: 0; background: none; font-size: 15px; }
  .prose h1 { font-size: 25px; }
}

/* ---------- Mentenanța ---------- */
.maintenance { display: grid; place-items: center; min-height: calc(100dvh - 140px); padding-top: 24px; padding-bottom: 48px; }
.maintenance-card { display: grid; justify-items: center; gap: 14px; width: min(480px, 100%); padding: 40px 32px; border: 1px solid var(--border); border-radius: 28px; background: var(--card); box-shadow: var(--shadow-md); text-align: center; }
.maintenance-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--primary-soft); color: var(--primary); }
.maintenance-icon .icon { width: 36px; height: 36px; }
.maintenance-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.maintenance-text { color: var(--muted); font-size: 15.5px; line-height: 1.6; white-space: pre-line; }
.maintenance-until { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--surface-high); font-size: 14px; font-weight: 600; }
.maintenance-until .icon { width: 18px; height: 18px; color: var(--primary); }
.maintenance-card .btn { margin-top: 6px; min-width: 220px; }
.maintenance-admin { color: var(--subtle); font-size: 13px; }
.maintenance-admin:hover { color: var(--text); text-decoration: underline; }
.maintenance-banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; background: #f59e0b; color: #1f1300; font-size: 14px; font-weight: 600; text-align: center; }
.maintenance-banner .icon { width: 18px; height: 18px; flex: none; }
.maintenance-banner a { text-decoration: underline; }
.maintenance-banner.is-admin { border-radius: 14px; justify-content: flex-start; text-align: left; }
@media (max-width: 760px) {
  .maintenance-card { padding: 28px 18px; border: 0; box-shadow: none; background: none; }
  .maintenance-banner { font-size: 13px; }
}

/* ---------- Cookie-uri: banda de jos și setările ---------- */
.cookie-bar {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 14px;
  width: min(440px, calc(100vw - 48px));
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease-out;
}
.cookie-bar p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.cookie-bar p a, .cookie-dialog .dialog-text a { color: var(--primary); font-weight: 600; white-space: nowrap; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { flex: 1 1 auto; height: 42px; padding: 0 14px; font-size: 14px; }
.cookie-dialog { width: min(480px, calc(100vw - 32px)); }
.cookie-cats { display: grid; gap: 10px; margin-top: 16px; }
.cookie-cat { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; }
label.cookie-cat { cursor: pointer; }
.cookie-cat > span { display: grid; gap: 2px; }
.cookie-cat b { font-size: 15px; }
.cookie-cat small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.cookie-cat em { flex: none; color: var(--subtle); font-size: 12.5px; font-style: normal; font-weight: 600; }
@media (max-width: 760px) {
  .cookie-bar { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; padding: 16px; border-radius: 20px; }
  /* Paginile fără bara de jos (chat, formular, anunț, autentificare). */
  body.is-bare .cookie-bar, body.has-chat .cookie-bar, body.is-wizard .cookie-bar, body.is-detail .cookie-bar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cookie-actions .btn { flex-basis: calc(50% - 4px); }
  .cookie-actions .btn-ghost { flex-basis: 100%; height: 36px; }
}
