/* Anunturi – stiluri. Fără build step: fișierul e servit direct. */
:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --ink: #1c1a17;
  --muted: #6b665d;
  --line: #e3ded4;
  --accent: #0f6b5c;
  --accent-ink: #ffffff;
  --accent-soft: #e2f0ec;
  --price: #b4401a;
  --warn-bg: #fff4d6; --warn-ink: #7a5600;
  --ok-bg: #dff3e6;   --ok-ink: #17603a;
  --bad-bg: #fbe3df;  --bad-ink: #9b2a1a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .06), 0 4px 16px rgba(28, 26, 23, .05);
  --line-strong: #d3ccbf;
  --hero-bg: #0f6b5c; --hero-ink: #ffffff;
  --promo: #e0a419; --promo-ink: #2b1d00; --promo-soft: #fffaf0;
  --toast-bg: #1c1a17; --toast-ink: #ffffff; --toast-link: #9fe3d3;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Tema întunecată: urmează setarea sistemului, iar butonul din header o poate forța (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141311;
    --surface: #1d1b18;
    --surface-2: #27241f;
    --ink: #ece7de;
    --muted: #a39c90;
    --line: #36322c;
    --line-strong: #4a453d;
    --accent: #4cc2a7;
    --accent-ink: #06201a;
    --accent-soft: #17332d;
    --price: #f08a5d;
    --warn-bg: #3a2e10; --warn-ink: #f3cf73;
    --ok-bg: #143322;   --ok-ink: #7fd8a4;
    --bad-bg: #3d1c16;  --bad-ink: #f4a294;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
    --hero-bg: #124a40; --hero-ink: #f2fbf8;
    --promo: #e0a419; --promo-ink: #2b1d00; --promo-soft: #2a2416;
    --toast-bg: #ece7de; --toast-ink: #141311; --toast-link: #0f6b5c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141311;
  --surface: #1d1b18;
  --surface-2: #27241f;
  --ink: #ece7de;
  --muted: #a39c90;
  --line: #36322c;
  --line-strong: #4a453d;
  --accent: #4cc2a7;
  --accent-ink: #06201a;
  --accent-soft: #17332d;
  --price: #f08a5d;
  --warn-bg: #3a2e10; --warn-ink: #f3cf73;
  --ok-bg: #143322;   --ok-ink: #7fd8a4;
  --bad-bg: #3d1c16;  --bad-ink: #f4a294;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .35);
  --hero-bg: #124a40; --hero-ink: #f2fbf8;
  --promo: #e0a419; --promo-ink: #2b1d00; --promo-soft: #2a2416;
  --toast-bg: #ece7de; --toast-ink: #141311; --toast-link: #0f6b5c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main { padding: 24px 0 56px; min-height: 60vh; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.03em; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { width: 36px; height: 36px; flex: none; border-radius: 10px; filter: drop-shadow(0 2px 4px rgba(11, 84, 70, .25)); }
.logo-accent { color: var(--accent); }
.logo-footer { font-size: 1.15rem; margin-bottom: 6px; }
.logo-footer .logo-mark { width: 30px; height: 30px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a, .nav button.linklike { color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 500; position: relative; }
.nav a:hover, .nav button.linklike:hover { background: var(--surface-2); text-decoration: none; }
.nav .badge { position: absolute; top: 2px; right: 0; }
.nav a.nav-cta { margin-left: 6px; color: var(--accent-ink); }
.nav a.nav-cta:hover { background: var(--accent); filter: brightness(1.08); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* Comutator temă */
.site-header .nav { order: 2; }
.theme-toggle { order: 3; }
.nav-toggle { order: 4; }
.theme-toggle { margin-left: 6px; width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Selector de limbă */
.lang-menu { order: 3; position: relative; margin-left: 6px; }
.lang-menu summary { list-style: none; cursor: pointer; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { background: var(--surface-2); }
.lang-list { position: absolute; right: 0; top: 44px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 170px; }
.lang-list a { padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.lang-list a:hover { background: var(--surface-2); text-decoration: none; }
.lang-list a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.translated-note { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; background: var(--warn-bg); color: var(--warn-ink);
  padding: 8px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.translated-note a { color: var(--warn-ink); font-weight: 700; text-decoration: underline; }


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px;
  padding: 10px 16px; font: 600 14px/1 var(--font); cursor: pointer; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--line); }
.btn-danger { background: var(--bad-bg); color: var(--bad-ink); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
button.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--accent); padding: 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=url], input[type=date], input[type=email], input[type=password], input[type=number], input[type=search], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font: 15px/1.4 var(--font); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { min-height: 160px; resize: vertical; }
.check { display: block; position: relative; padding-left: 28px; min-height: 22px; font-weight: 500; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
/* variantele cu conținut aliniat pe un rând (metode 2FA, pachete) */
.tfa-methods .check { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.tfa-methods .check input { position: static; }
.error { color: var(--bad-ink); font-size: 13px; margin-top: 4px; }
.is-invalid { border-color: var(--bad-ink) !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.req { color: var(--price); }

/* Cards / panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.panel-title { font-size: 1.05rem; margin-bottom: 14px; }
.narrow { max-width: 460px; margin: 0 auto; }
.medium { max-width: 820px; margin: 0 auto; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error { background: var(--bad-bg); color: var(--bad-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); border-radius: 18px; padding: 40px 32px; margin-bottom: 28px;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 45%); }
.hero h1 { font-size: 2.1rem; margin-bottom: .3em; }
.hero p { opacity: .88; margin-bottom: 20px; }
.searchbar { display: flex; gap: 8px; background: var(--surface); padding: 6px; border-radius: 14px; max-width: 760px; }
.searchbar input, .searchbar select { border: 0; }
.searchbar input { flex: 1; min-width: 0; }
.searchbar select { width: 190px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 36px; }
.cat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); display: block; }
.cat-tile:hover { border-color: var(--accent); text-decoration: none; }
.cat-tile .icon { font-size: 1.7rem; }
.cat-tile strong { display: block; margin: 6px 0 2px; }
.cat-tile .subs { font-size: 13px; color: var(--muted); }

/* Listing cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); text-decoration: none; border-color: var(--line-strong); }
.card .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-size: 2rem; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .title { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { color: var(--price); font-weight: 800; font-size: 1.1rem; }
.card .meta { font-size: 13px; color: var(--muted); margin-top: auto; }

/* Listing index layout */
.layout-sidebar { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.filters .field { margin-bottom: 12px; }
.filters .range { display: flex; gap: 6px; }
.filters h3 { margin-top: 6px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.chip.active, .chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* Listing show */
.show-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.gallery .main { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: var(--radius); overflow: hidden; }
.gallery .main .no-photo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; color: var(--muted); background: var(--surface-2); }
.gallery .slides { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery { min-width: 0; }
.show-grid > * { min-width: 0; }
.gallery .slide { flex: 0 0 100%; min-width: 0; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.gallery .slide img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.gal-nav, .gal-zoom, .gal-close { position: absolute; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: background .15s; }
.gal-nav:hover, .gal-zoom:hover, .gal-close:hover { background: rgba(0,0,0,.7); }
.gal-nav:focus-visible, .gal-zoom:focus-visible, .gal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gal-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 1.9rem; line-height: 1; padding-bottom: 4px; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.55); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.gal-zoom { right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 10px; font-size: 1.15rem; }
@media (hover: none) { .gallery .main .gal-nav { width: 38px; height: 38px; font-size: 1.6rem; background: rgba(0,0,0,.35); } }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox:focus, .lightbox:focus-visible { outline: none; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox .slide img { cursor: default; }
.lightbox .gal-count { bottom: max(16px, env(safe-area-inset-bottom)); }
.lightbox .gal-nav.prev { left: max(12px, env(safe-area-inset-left)); } .lightbox .gal-nav.next { right: max(12px, env(safe-area-inset-right)); }
.gal-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 44px; height: 44px; border-radius: 50%; font-size: 1.25rem; }
html.lightbox-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gallery .slides { scroll-behavior: auto; } }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; scrollbar-width: thin; }
.gallery .thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; width: 84px; height: 64px; flex: none; cursor: pointer; background: none; opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery .thumbs button:hover { opacity: 1; }
.gallery .thumbs button.active { border-color: var(--accent); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.big-price { font-size: 1.9rem; color: var(--price); font-weight: 800; margin: 4px 0 2px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; padding-right: 16px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.description { white-space: pre-line; }
.seller { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; flex: none; }
.sticky { position: sticky; top: 84px; }
.stack > * + * { margin-top: 10px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.mini-thumb { width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-actions form { margin: 0; }

/* Status badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge-count { background: var(--price); color: var(--surface); min-width: 18px; text-align: center; padding: 1px 5px; font-size: 11px; }
.status-pending { background: var(--warn-bg); color: var(--warn-ink); }
.status-active { background: var(--ok-bg); color: var(--ok-ink); }
.status-rejected { background: var(--bad-bg); color: var(--bad-ink); }
.status-sold, .status-expired { background: var(--surface-2); color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--ink); }

/* Messages */
.conv-list a { display: flex; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.conv-list a:hover { background: var(--surface-2); text-decoration: none; }
.conv-list .unread { font-weight: 700; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.bubble { max-width: 75%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }

/* Image manager in form */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.img-grid label { position: relative; font-weight: 500; font-size: 12px; margin: 0; }
.img-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; width: 100%; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav a { padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.admin-nav a.active, .admin-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: 14px; }
.cat-row-child td:first-child { padding-left: 34px; }
details.reject summary { cursor: pointer; list-style: none; }
details.reject summary::-webkit-details-marker { display: none; }
details.reject[open] form { display: flex; gap: 6px; margin-top: 6px; }
details.reject input { min-width: 180px; padding: 6px 8px; font-size: 13px; }

/* Pagination */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 24px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pagination .active span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pagination .disabled span { opacity: .45; }

/* Promovări */
.card { position: relative; }
.card-highlight { border: 2px solid var(--promo); background: var(--promo-soft); }
.promo-tag { position: absolute; top: 10px; left: 10px; background: var(--promo); color: var(--promo-ink); font-size: 11px; font-weight: 800;
  letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; z-index: 1; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.package { position: relative; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 14px; cursor: pointer; font-weight: 400; margin: 0; }
.package:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.package input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.package-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.package-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.package-price { color: var(--price); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.package-features { display: flex; flex-wrap: wrap; gap: 4px; }
.promo-now { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

/* Preț redus, vânzător, județe, rapoarte */
.old-price { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: 4px; }
.discount { display: inline-block; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.verified { display: inline-block; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.seller-profile { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.8rem; }
.seller-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.seller-badges .verified { margin-left: 0; }
.seller-stats { display: flex; gap: 24px; }
.seller-stats div { text-align: center; }
.seller-stats strong { display: block; font-size: 1.5rem; }
.seller-stats span { font-size: 13px; color: var(--muted); }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.county { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
.county:hover { border-color: var(--accent); text-decoration: none; }
.county small { color: var(--muted); font-weight: 700; }
.saved-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.saved-row:last-child { border-bottom: 0; }
.report-box summary { list-style: none; cursor: pointer; font-size: 14px; }
.report-box summary::-webkit-details-marker { display: none; }
.legal h2 { font-size: 1.1rem; margin-top: 22px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { margin: 10px 0 16px; font-size: 14px; }
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 50; background: var(--toast-bg); color: var(--toast-ink);
  border-radius: 12px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; box-shadow: 0 8px 30px rgba(0,0,0,.25); font-size: 14px; }
.cookie-notice[hidden] { display: none; }
.cookie-notice a { color: var(--toast-link); }
.footer-grid { display: grid !important; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid div { display: flex; flex-direction: column; gap: 6px; }
.footer-grid strong { color: var(--ink); }
.footer-grid a { color: var(--muted); }
.footer-grid p { margin: 0; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .seller-stats { width: 100%; justify-content: space-around; } }

/* Regiuni și orașe UK */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.region-grid .panel + .panel { margin-top: 0; }
.region-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); margin-bottom: 10px; }
.region-head small { color: var(--muted); }
.region-cities { display: flex; flex-wrap: wrap; gap: 6px; }
.region-cities a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.region-cities a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.region-cities a.empty-city { color: var(--muted); }
.region-cities small { color: var(--accent); font-weight: 700; }

.transport-intro { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.transport-intro > div:first-child { flex: 1; min-width: 240px; }
.transport-intro p { margin: 4px 0 0; color: var(--muted); }
.transport-cta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.uppercase-input { text-transform: uppercase; }
.uppercase-input::placeholder { text-transform: none; }

/* Asistent (chat) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hb { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.hb-launcher { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 700 15px var(--font); box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.hb-launcher:hover { filter: brightness(1.06); }
.hb.is-open .hb-launcher { display: none; }
.hb-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden; }
.hb-panel[hidden] { display: none; }
.hb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--hero-bg); color: var(--hero-ink); }
.hb-head small { display: block; color: inherit; opacity: .85; font-size: 12px; }
.hb-close { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.hb-close:hover { background: rgba(255,255,255,.15); }
.hb-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.hb-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; white-space: pre-line; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.hb-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.hb-msg.user { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.hb-msg.user a { color: inherit; }
.hb-msg.typing { color: var(--muted); font-style: italic; }
.hb-link { font-weight: 700; }
.hb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hb-chips[hidden] { display: none; }
.hb-chip { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 6px 11px; font: 13px var(--font); cursor: pointer; text-align: left; }
.hb-chip:hover { background: var(--accent-soft); }
.hb-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.hb-form input { flex: 1; min-width: 0; }
.hb-foot { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: var(--muted); background: var(--surface); }
.cookie-notice { right: 150px; }
@media (max-width: 720px) {
  .hb-launcher-text { display: none; }
  .hb-launcher { padding: 14px; font-size: 18px; }
  .hb-panel { height: calc(100vh - 100px); }
  .cookie-notice { right: 84px; }
}

/* Logare socială */
.social-login { display: grid; gap: 10px; margin-bottom: 4px; }
.social-btn { padding: 12px 16px; font-size: 15px; background: var(--surface); }
.social-btn:hover { background: var(--surface-2); filter: none; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.social-row:last-child { border-bottom: 0; }
.social-row form { margin: 0; }

.danger-zone summary { cursor: pointer; color: var(--bad-ink); }
.legal ol { padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--surface); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .layout-sidebar, .show-grid, .admin-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .filters-panel { display: none; }
  .filters-panel.open { display: block; }
  .admin-nav { flex-direction: row; overflow-x: auto; }
}
@media (min-width: 901px) { .filters-toggle { display: none; } }
@media (max-width: 720px) {
  .hero { padding: 28px 18px; }
  .hero h1 { font-size: 1.6rem; }
  .searchbar { flex-direction: column; }
  .searchbar select { width: 100%; }
  .grid-2, .grid-3, .specs { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile .subs { display: none; }
  .card .body { padding: 10px; }
  h1 { font-size: 1.45rem; }
}

@media (max-width: 720px) { .lang-menu + .theme-toggle { margin-left: 6px; } }

/* Securitate cont / verificare în doi pași */
.security-list { list-style: none; margin: 0 0 14px; padding: 0; }
.security-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.security-list li:last-child { border-bottom: 0; }
.tfa-methods { display: grid; gap: 8px; margin: 8px 0 14px; }
.tfa-methods .check { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.tfa-methods .check small { margin-left: auto; font-weight: 400; }
.tfa-methods .check.disabled { opacity: .55; cursor: not-allowed; }
.tfa-alt { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.tfa-alt-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.tfa-alt-buttons form { margin: 0; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; cursor: pointer; text-decoration: underline; }
.lightbox .gal-nav { background: rgba(255,255,255,.14); }
.lightbox .gal-nav:hover { background: rgba(255,255,255,.28); }

/* Abonament Business */
.plans-hero { max-width: 720px; margin-bottom: 20px; }
.plans-hero p { font-size: 1.05rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plan-card h2 { margin: 0; font-size: 1.15rem; }
.plan-card .muted { margin: 0; }
.plan-featured { border: 2px solid var(--accent); box-shadow: 0 10px 30px -18px var(--accent); }
.plan-flag { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.plan-benefits { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan-benefits li { position: relative; padding-left: 26px; }
.plan-benefits li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.plan-benefits li::after { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012.5%204.5%204.5L19%207.5%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012.5%204.5%204.5L19%207.5%22/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-free .plan-benefits li::before { background: var(--muted); color: var(--surface); }
.plan-form { display: grid; gap: 10px; }
.plan-terms { align-items: flex-start; font-weight: 400; font-size: .88rem; }
.plan-terms input { margin-top: 2px; flex: none; }
.plan-pay { display: grid; gap: 8px; }
.btn-paypal { background: #ffc439; color: #111; border: 0; }
.btn-paypal:hover { background: #f2b52a; }
.faq dt { font-weight: 700; margin-top: 12px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--muted); }
.badge-business { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px; vertical-align: middle; align-self: flex-start; justify-self: start; width: max-content; }
.badge-business::before { content: ""; width: .8em; height: .8em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22m12%202.5%202.9%205.9%206.5.9-4.7%204.6%201.1%206.5L12%2017.3l-5.8%203.1%201.1-6.5-4.7-4.6%206.5-.9z%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22m12%202.5%202.9%205.9%206.5.9-4.7%204.6%201.1%206.5L12%2017.3l-5.8%203.1%201.1-6.5-4.7-4.6%206.5-.9z%22/%3E%3C/svg%3E") center / contain no-repeat; }
.sub-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sub-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sub-actions form { margin: 0; }
.btn-danger-outline { background: none; border: 1px solid var(--bad-ink); color: var(--bad-ink); }
.btn-danger-outline:hover { background: var(--bad-bg); }
.company-box { margin-top: 12px; }
.company-box p { white-space: pre-line; margin: 6px 0 0; }
.card-business { font-size: .62rem; padding: 1px 7px; margin: 2px 0 4px; }

/* Iconițele categoriilor (cerc colorat + desen) și meniul de categorii de pe prima pagină */
.cat-icon { --ci-size: 76px; width: var(--ci-size); height: var(--ci-size); flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ci-bg, #efe9df); transition: transform .15s ease; }
.cat-icon svg { width: calc(var(--ci-size) * .78); height: calc(var(--ci-size) * .78); display: block; overflow: visible; }
.cat-icon-sm { --ci-size: 40px; }
.cat-icon-lg { --ci-size: 96px; }
.cat-icon-xl { --ci-size: 150px; }
:root[data-theme="dark"] .cat-icon { background: color-mix(in srgb, var(--ci-bg) 22%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cat-icon { background: color-mix(in srgb, var(--ci-bg) 22%, var(--surface)); } }
.cat-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 8px; margin: 6px 0 14px; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--ink); text-decoration: none; padding: 4px; border-radius: 14px; }
.cat-circle:hover .cat-icon, .cat-circle[aria-expanded="true"] .cat-icon { transform: translateY(-3px) scale(1.04); }
.cat-circle[aria-expanded="true"] .cat-icon { box-shadow: 0 0 0 3px var(--accent); }
.cat-circle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-name { font-size: .88rem; font-weight: 600; line-height: 1.25; max-width: 120px; }
.cat-panel { margin-bottom: 12px; animation: cat-in .18s ease; }
.cat-panel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-panel-list { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 24px; }
.cat-panel-list li { break-inside: avoid; }
.cat-panel-list a { display: block; padding: 7px 0; color: var(--ink); }
.cat-panel-list a:hover { color: var(--accent); }
@keyframes cat-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.panel-title-icon { display: flex; align-items: center; gap: 10px; }
.card .thumb .cat-icon, .gallery .no-photo .cat-icon { box-shadow: none; }
@media (max-width: 640px) {
  /* pe telefon: două rânduri care se derulează orizontal, ca în aplicațiile de anunțuri */
  .cat-circles { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-template-columns: none; grid-auto-columns: 92px; overflow-x: auto; scroll-snap-type: x proximity; gap: 14px 6px; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .cat-circles::-webkit-scrollbar { display: none; }
  .cat-circle { scroll-snap-align: start; }
  .cat-icon { --ci-size: 64px; }
  .cat-icon-sm { --ci-size: 36px; }
  .cat-icon-lg { --ci-size: 72px; }
  .cat-name { font-size: .8rem; }
}

/* Publicitate */
.ad { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: var(--ad-ratio, 4 / 1); color: var(--ink); text-decoration: none; border: 1px solid var(--line); }
.ad img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-label { position: absolute; top: 8px; left: 8px; font-size: .68rem; font-weight: 600; letter-spacing: .02em; color: #fff; background: rgba(0,0,0,.55); padding: 2px 8px; border-radius: 999px; }
.ad-spaced { margin: 0 0 32px; }
.ad-house { display: grid; place-items: center; text-align: center; border-style: dashed; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.ad-house:hover { border-color: var(--accent); text-decoration: none; }
.ad-house .ad-label { background: var(--muted); }
.ad-house-body { display: grid; gap: 6px; justify-items: center; padding: 18px; max-width: 420px; }
.ad-house-body strong { font-size: 1.15rem; }
.ad-house-body span { color: var(--muted); font-size: .9rem; }
.ad-house-body .btn { color: var(--accent); }
.ad-home_banner { max-height: 260px; }
@media (max-width: 640px) { .ad-home_banner { aspect-ratio: 2 / 1; max-height: none; } }
.ad.ad-card { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--surface); }
.ad.ad-card img { aspect-ratio: 4 / 3; height: auto; flex: none; }
.ad.ad-card .body { display: grid; gap: 4px; padding: 12px 14px; }
.ad.ad-card .title { font-weight: 600; line-height: 1.3; }
.ad.ad-card .meta { color: var(--muted); font-size: .8rem; }
.ad.ad-card.ad-house { min-height: 100%; display: grid; }
.ad-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ad-slot-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ad-slot-card h2 { margin: 6px 0 0; font-size: 1.1rem; }
.ad-slot-card .muted { margin: 0; }
/* schiță mică a paginii, cu locul reclamei evidențiat */
.ad-slot-preview { position: relative; height: 120px; border-radius: 10px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line);
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 60% 8px, 40% 8px, 50% 8px; background-position: 12px 12px, 12px 26px, 12px 104px; background-repeat: no-repeat; }
.ad-slot-mock { position: absolute; background: var(--accent); opacity: .85; border-radius: 6px; }
.ad-slot-preview-home_banner .ad-slot-mock { left: 12px; right: 12px; top: 44px; height: 46px; }
.ad-slot-preview-results_inline .ad-slot-mock { left: 50%; width: 28%; top: 40px; height: 56px; }
.ad-slot-preview-results_inline { background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)); background-size: 28% 56px, 28% 56px, 28% 56px; background-position: 12px 40px, 33% 40px, 96% 40px; }
.ad-slot-preview-listing_sidebar .ad-slot-mock { right: 12px; width: 28%; top: 54px; height: 54px; }
.ad-slot-preview-listing_sidebar { background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)); background-size: 58% 92px, 28% 32px; background-position: 12px 14px, 96% 14px; }
.ad-form .plan-terms { margin-top: 8px; }
.admin-ad { display: flex; gap: 16px; align-items: flex-start; }
.admin-ad-img { width: 220px; max-width: 40%; border-radius: 8px; object-fit: cover; background: var(--surface-2); }
.admin-ad-body { flex: 1; min-width: 0; }
.admin-ad details summary { list-style: none; cursor: pointer; }

/* AdminCP */
.admin-nav { padding: 10px; position: sticky; top: 76px; }
.admin-brand { font-weight: 800; letter-spacing: .02em; padding: 4px 12px 8px; }
.admin-nav-section { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 12px 4px; }
.admin-nav a { display: flex; align-items: center; gap: 8px; }
.admin-nav a .badge { margin-left: auto; }
.admin-nav-back { margin-top: 10px; border-top: 1px solid var(--line); border-radius: 0 !important; padding-top: 12px !important; color: var(--muted) !important; }
.badge-off { background: var(--surface-2); color: var(--muted); font-size: .68rem; }
.admin-main { min-width: 0; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.settings-form { max-width: 760px; }
.settings-heading { margin: 22px 0 4px; font-size: 1rem; padding-top: 16px; border-top: 1px solid var(--line); }
.settings-list { display: grid; gap: 6px; }
.secret-row { display: flex; gap: 10px; align-items: center; }
.secret-row input { flex: 1; min-width: 0; }
.secret-clear { flex: none; font-weight: 400; font-size: .85rem; }
.settings-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) {
  .admin-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav a { flex: none; white-space: nowrap; padding: 8px 10px; }
  .admin-brand, .admin-nav-section { display: none; }
  .admin-nav-back { margin: 0; border: 0; padding-top: 8px !important; }
  .settings-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .settings-tabs .chip { flex: none; white-space: nowrap; }
}
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-pill { padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; border: 1px solid var(--line); }
.feature-pill.on { color: var(--accent); border-color: var(--accent); }
.feature-pill.off { color: var(--muted); background: var(--surface-2); }

/* Meniul de sus: pe ecrane sub 900px trece în butonul ☰ */
.account-menu { position: relative; }
.account-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 500; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.account-toggle:hover { background: var(--surface-2); }
.avatar-xs { width: 26px; height: 26px; font-size: .78rem; flex: none; }
.account-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.account-list.open { display: grid; }
.account-list a, .account-list .linklike { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.account-list a:hover, .account-list .linklike:hover { background: var(--surface-2); text-decoration: none; }
.account-list form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.account-list .account-admin { color: var(--accent); }
@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; margin-left: 8px; min-width: 40px; min-height: 38px; }
  .lang-menu { margin-left: auto; }
  .lang-menu + .theme-toggle { margin-left: 6px; }
  .theme-toggle { margin-left: auto; }
  .lang-menu ~ .theme-toggle { margin-left: 6px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px); overflow-y: auto; background: var(--surface); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a, .nav .account-toggle, .nav button.linklike { padding: 12px 10px; }
  .nav .badge { position: static; margin-left: 6px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .account-toggle { display: none; }
  .account-list { display: grid; position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 0; margin-top: 4px; min-width: 0; }
  .account-list a, .account-list .linklike { padding: 12px 10px; }
}
@media (max-width: 380px) {
  .site-header .container { gap: 8px; }
  .logo { font-size: 1.15rem; }
  .lang-menu summary { padding: 0 8px; }
  .lang-menu, .theme-toggle { margin-left: 4px; }
  .nav-toggle { margin-left: 4px; }
}

/* Ținte de atingere mai mari pe telefon */
@media (pointer: coarse), (max-width: 600px) {
  .btn-sm { min-height: 36px; padding: 8px 12px; }
  .btn { min-height: 40px; }
  .cookie-notice .btn { min-height: 40px; }
  .linklike { min-height: 32px; }
  input[type=checkbox], input[type=radio] { min-width: 20px; min-height: 20px; }
}
/* rânduri de butoane și titluri de secțiune: trec pe rândul următor pe ecrane înguste */
.section-head { flex-wrap: wrap; }
.row-actions { flex-wrap: wrap; }
/* tabelele din paginile legale devin carduri pe telefon */
@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
  .legal td { border: 0; padding: 3px 0; }
  .legal td:first-child { font-weight: 700; }
}
/* orice tabel în afara .table-wrap nu mai împinge pagina */
.panel > table, .admin-main table { max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Tabele pe telefon: fiecare rând devine un card (etichetele vin din capul tabelului, prin app.js) */
@media (max-width: 700px) {
  .table-wrap:has(table.stackable) { overflow: visible; background: none; border: 0; box-shadow: none; padding: 0 !important; }
  .table-wrap table:not(.stackable) td { word-break: break-word; }
  table.stackable, table.stackable tbody, table.stackable tr, table.stackable td { display: block; width: 100%; }
  table.stackable thead { display: none; }
  table.stackable tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  table.stackable td { border: 0; padding: 5px 0; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: flex-start; text-align: right; overflow-wrap: anywhere; }
  table.stackable td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  table.stackable td:not([data-label]) { display: block; text-align: left; }
  table.stackable td:empty { display: none; }
  table.stackable td .row-actions { justify-content: flex-start; }
  table.stackable td:has(> .row-actions), table.stackable td:has(> .mini-thumb) { display: block; text-align: left; }
  table.stackable td:has(> .row-actions)::before { display: none; }
  /* coloana principală (titlul) ocupă tot rândul, fără etichetă */
  table.stackable td:has(> a > strong), table.stackable td:has(> div > img), table.stackable td:has(> strong:first-child) { display: block; text-align: left; font-size: 1rem; }
  table.stackable td:has(> a > strong)::before, table.stackable td:has(> div > img)::before, table.stackable td:has(> strong:first-child)::before { display: none; }
}

@media (max-width: 380px) { .logo-mark { width: 30px; height: 30px; } .logo { gap: 7px; } }

/* Iconițe de interfață */
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.i-lg { width: 1.5em; height: 1.5em; }
.i-xl { width: 3rem; height: 3rem; }
.i-fill { fill: currentColor; }

/* iconițe în butoane, meniuri și titluri */
.btn, .nav a, .account-list a, .account-list .linklike, .chip, .admin-nav a, .account-toggle, summary.btn { display: inline-flex; align-items: center; gap: 7px; }
.btn-block { display: flex; justify-content: center; }
.account-list a, .account-list .linklike { display: flex; }
.account-list .i, .admin-nav .i { color: var(--muted); width: 1.2em; height: 1.2em; }
.account-list a:hover .i, .admin-nav a.active .i, .admin-nav a:hover .i { color: var(--accent); }
.h-icon { display: flex; align-items: center; gap: 8px; }
.h-icon .i { color: var(--accent); }
.lang-menu summary .i { width: 1.15em; height: 1.15em; }
.theme-toggle .i { width: 20px; height: 20px; }
.listing-meta .i { color: var(--accent); }
.tip { display: flex; gap: 8px; align-items: flex-start; }
.tip .i { color: var(--accent); margin-top: 2px; width: 1.25em; height: 1.25em; }
.verified .i { width: 1em; height: 1em; }
.translated-note .i { margin-right: 4px; }
.result-icon { display: grid; place-items: center; margin-bottom: 6px; }
.result-icon.ok { color: var(--accent); } .result-icon.wait { color: var(--warn-ink); } .result-icon.bad { color: var(--bad-ink); }
.gal-nav .i { width: 26px; height: 26px; }
.gal-zoom .i, .gal-close .i { width: 20px; height: 20px; }
.hb-launcher .i { width: 22px; height: 22px; }
.cat-row { display: inline-flex; align-items: center; gap: 8px; }
.feature-pill { display: inline-flex; align-items: center; gap: 6px; }
.cat-icon-img img { width: 78%; height: 78%; object-fit: contain; display: block; }
.cat-image-now { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
@media (max-width: 340px) {
  .lang-menu summary .i { display: none; }
  .logo { font-size: 1.05rem; gap: 6px; }
  .theme-toggle, .nav-toggle { min-width: 36px; width: 36px; }
}

/* ---------- Harta Google Maps din anunț ---------- */
.map-fields { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 4px; margin: 6px 0 0; min-width: 0; }
.map-fields legend { font-weight: 700; padding: 0 6px; display: inline-flex; align-items: center; gap: 6px; }
.map-choice { display: grid; gap: 8px; margin: 4px 0 12px; }
.map-choice .check { align-items: flex-start; }
.map-choice .check span { display: flex; flex-wrap: wrap; gap: 2px 8px; }
@supports selector(:has(*)) { .map-fields:not(:has(input[value="exact"]:checked)) .map-address { display: none; } }
.map-box { position: relative; aspect-ratio: 16 / 9; max-height: 360px; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); margin-top: 8px; }
.map-box iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-load { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px; text-align: center; color: var(--ink);
  background: repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--line) 70%, transparent) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--line) 70%, transparent) 39px 40px), var(--surface-2); }
.map-load .i { color: var(--accent); }
.map-load strong { font-size: 1.05rem; }
.map-load small { color: var(--muted); max-width: 34ch; }
.map-load:hover strong, .map-load:focus-visible strong { color: var(--accent); text-decoration: underline; }
.map-load:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.map-open { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }
@media (max-width: 600px) { .map-box { aspect-ratio: 4 / 3; } }
.code-copy { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: .85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; margin: 6px 0 0; }
