/* ==========================================================================
   style.css — Anunturi.ro
   Design modern, curat, responsive — CSS Grid + Flexbox.
   Tokeni de design (variabile), componente comune (header, butoane, forme,
   carduri, alerte) și stiluri specifice paginilor (index, detalii, cont).
   ========================================================================== */

/* ---------- 1. Tokeni de design ---------- */
:root {
  /* Culori */
  --bg: #F3F4F7;
  --bg-band: #eeeff3; /* aceeași familie ca --bg, puțin mai închisă (banda de căutare) */
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #16202e;
  --text-2: #3d4a5c;
  --muted: #535C73;
  --border: #DBDEE6;
  --border-strong: #cdd5e0;

  /* Accent principal: #353b50 (contrast cu verdele semantic) */
  --primary: #353b50;
  --primary-600: #2a2f40;
  --primary-soft: #edf0f6;
  --ring: rgba(53, 59, 80, 0.22);

  /* Verde: rămâne ca accent de contrast (preț, succes, avatar vânzător) */
  --green: #04c166;
  --green-soft: #e6f9f0;

  --danger: #dc2626;
  --danger-600: #F45B69;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;

  --success-soft: #ecfdf3;
  --success-text: #15803d;
  --success-border: #bbf7d0;

  /* Featured (auriu) — anunț menținut în top de administrator */
  --featured: #b45309;
  --featured-soft: #fef3c7;
  --featured-text: #92400e;
  --featured-border: #fde68a;

  --warn-soft: #fff7e6;
  --warn-text: #92600a;

  /* Umbre */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  /* Forme */
  --radius-sm: 8px;
  --radius: 8px;
  --radius-lg: 8px;

  --font: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Baza de fonturi: 15px — toate fonturile site-ului (exprimate în rem)
     se scot la 15/16 (≈94%) din dimensiunea originală. */
  font-size: 15px;
}

/* ---------- 2. Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.4; }
h1 { font-weight: 800; } /* toate titlurile h1 — supra-ridicat */
h2 { font-weight: 700; } /* toate titlurile h2 */

::selection { background: var(--ring); }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.page-main { padding: 28px 18px 64px; }

.muted { color: var(--muted); }
.label { color: var(--muted); }

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
/* Bandă colorată de semnătură — culorile principale ale site-ului
   (primary → green), aceeași ca pe cardurile de profil. */
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
}

/* Layout simetric desktop: [brand] [nav centrat exact] [acțiuni] —
   coloanele sunt fixate explicit (ordinea din DOM nu contează). */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-auto-rows: 1fr;
  align-items: center;
  gap: 10px 18px;
  padding-block: 11px;
  /* Aliniere exactă cu cutia de conținut a paginii: .container are
     padding 20px, iar .page-main adaugă 18px (total 38px). Header-ul
     primește aceiași 18px suplimentari ca brand/CTA să alinieze perfect
     cu grila de anunțuri și bara de căutare. */
  padding-inline: 18px;
}
.header-inner > .brand { grid-column: 1; grid-row: 1; }
.header-inner > .nav-links { grid-column: 2; grid-row: 1; }
.header-inner > .nav-userzone { grid-column: 3; grid-row: 1; }
/* Pe ecrane largi, nav-ul e centrat EXACT pe mijlocul header-ului
   (două coloane egale 1fr pe flancuri); pe lățimi medii rămâne
   centrat între brand și acțiuni (fără suprapuneri). */
@media (min-width: 1200px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .header-inner > .brand { justify-self: start; }
  .header-inner > .nav-userzone { justify-self: end; }
}

/* Brand: logo fix — înălțime 40px, lățime proporțională cu aspect-ul imaginii. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 35px;
  width: auto;
}
.brand:hover { text-decoration: none; opacity: 0.85; }

/* Nav — centrat exact pe mijlocul header-ului (coloana 1fr din grid) */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
/* Acțiuni — mereu în dreapta; CTA-ul verde e ultimul element */
.nav-userzone {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-links a,
.nav-userzone > a:not(.btn):not(.nav-user) {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-userzone > a:not(.btn):not(.nav-user):hover { background: var(--surface-2); color: var(--text); text-decoration: none; }

/* Pagina curentă: pilula primary-soft + bară verde de jos (culorile principale) */
.nav-links a.is-active {
  background: var(--primary-soft);
  color: var(--primary-600);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 0 var(--green);
}

/* Tabul „Înregistrare" din nav e vizibil DOAR pe mobil (bara de taburi) */
.nav-links .auth-tab { display: none; }

/* Buton din navbar (specificitate peste .nav-userzone > a) */
.nav-userzone a.btn { color: #fff; }
.nav-userzone a.btn:hover { color: #fff; }
.nav-post { height: 38px; }
.nav-post svg { flex: none; }

/* Chip utilizator: avatar cu inițială + nume (click -> Contul meu) —
   fundal light, diferit de fundalul header-ului, ca butonul de log-out;
   aceeași înălțime (36px) și același border ca butonul de log-out. */
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 9px 0 5px; /* încadrare simetrică: 4px uniform în jurul avatarului */
  background: var(--bg-band);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); /* aceeași formă ca butoanele (8px) */
  text-decoration: none;
}
.nav-user:hover { border-color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.nav-user .avatar {
  width: 26px; height: 26px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--green) 100%); color: #fff;
  border-radius: 8px; /* unificat la 8px, aceeași familie ca butoanele */
  font-size: 0.85rem; font-weight: 600;
}
.nav-user-name { color: var(--text-2); font-weight: 600; font-size: 0.95rem; }
.nav-user:hover .nav-user-name { color: var(--primary-600); }

/* Contor de favorite în navbar — aceași formă ca butoanele (radius-sm) */
.nav-count {
  display: inline-block; min-width: 18px;
  padding: 1px 6px; margin-left: 5px;
  border-radius: 5px; /* unificat la 8px */
  background: var(--green); color: #fff;
  font-size: 0.75rem; font-weight: 600; line-height: 1.5;
  text-align: center;
}

/* Buton icon (deconectare) — specificitate .btn.btn-icon ca sa_caste peste .btn;
   fundal light, în aceeași familie ca chip-ul utilizatorului. */
.btn.btn-icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  background: var(--bg-band);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
}
.btn.btn-icon:hover { border-color: var(--danger-600); color: var(--danger-600); background: var(--danger-soft); }
.logout-form { margin: 0; display: inline; }

/* ---------- Header pe ecrane de telefon ----------
   Rând 1: brand (stânga) + acțiuni compacte (dreapta: avatar, buton "+" publicare, deconectare)
   Rând 2: meniul devine bară de taburi full-width (Anunțuri · Favorite · Admin) */
@media (max-width: 859px) {
  .header-inner { display: flex; flex-wrap: wrap; padding-block: 8px; row-gap: 2px; }
  /* Logo flexibil: se micșorează ca să încapă pe un singur rând cu acțiunile din dreapta */
  .brand { flex: 1 1 0px; min-width: 0; }
  .brand-logo { height: 35px; width: auto; }

  .nav-userzone { order: 2; margin-left: auto; gap: 6px; }
  /* Vizitator: „Înregistrare" se mută în bara de taburi (rând 2);
     „Autentificare" rămâne pe rândul 1, alături de logo. */
  .nav-links .auth-tab { display: inline-flex; }
  .nav-userzone .signup-link { display: none; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }
  .nav-links::after { display: none; }
  .nav-links a {
    flex: 1 1 0;
    text-align: center;
    padding: 7px 6px;
    font-size: 0.9rem;
  }
  .nav-links a:hover { background: none; color: var(--text-2); }
  .nav-links a.is-active {
    color: var(--primary-600);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--green);
  }
  .nav-links a.is-active::after { display: none; }
  .nav-links a.is-active:hover { color: var(--primary-600); }
  .nav-links .nav-count { margin-left: 4px; }

  .nav-user { height: 34px; padding: 0 4px; }
  .nav-user .avatar { width: 24px; height: 24px; } /* încadrare exact 4px pe toate laturile, pe mobil */
  .nav-user-name { display: none; }

  .nav-post .btn-label { display: none; }
  .nav-post { width: 38px; height: 38px; padding: 0; justify-content: center; }
  .btn.btn-icon { width: 34px; height: 34px; }
  .nav-userzone a.btn { padding: 9px 12px; font-size: 0.9rem; }
  .nav-userzone > a:not(.btn):not(.nav-user) { padding: 7px 10px; font-size: 0.9rem; }
}

/* ---------- 4. Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 500 0.95rem/1.4 var(--font);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-align: center;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #039e55; border-color: #039e55; }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb857; border-color: #1eb857; }

.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Buton „Favorite" (inimioară): neutru când e nesalvat, roșu-soft când e salvat */
.btn-fav { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-fav:hover { border-color: var(--danger-600); color: var(--danger-600); }
.btn-fav.active { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-600); }
.btn-fav.active:hover { background: #fee2e2; border-color: var(--danger-600); color: var(--danger-600); }
.fav-hint { margin: 6px 0 0; font-size: 0.82rem; }

.btn-danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger-600); }
.btn-danger:hover { background: #fee2e2; border-color: var(--danger); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 0.88rem; border-radius: 8px; }

/* ---------- 5. Carduri și alerte ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 14px; /* compactă: nu ocupă mult spațiu vertical */
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.alert ul { margin: 0; padding-left: 20px; }
.alert li + li { margin-top: 4px; }
/* Fondalul success NU e verde: nuanță neutră mai închisă decât fundalul
   paginii (--bg: #f6f8f9), text #E55934 și contur gri apropiat de fundal. */
.alert-success { background: #e8ecf1; color: #e55934; border-color: #d9dfe8; }
.alert-error { background: var(--danger-soft); color: var(--danger-600); border-color: var(--danger-border); }

/* ---------- 6. Formulare ---------- */
.form-card, .auth-card { max-width: 520px; margin-inline: auto; }
.form-card-wide { max-width: 780px; }

.form-card h1, .auth-card h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea,
.ads-toolbar input,
.ads-toolbar select {
  width: 100%;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.ads-toolbar input:focus,
.ads-toolbar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.field textarea { resize: vertical; min-height: 120px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.checkbox-field { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-field label { margin: 0; font-weight: 500; }

.image-preview { margin-top: 10px; }
.image-preview:empty { margin-top: 0; }
.image-preview img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Editare anunț: titlul cardului, acțiunile și imaginea curentă */
.form-card h2.form-card-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.edit-image-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  margin-top: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.edit-image-current img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.edit-image-current strong { font-weight: 600; }

/* ---------- 7. Antet de pagină / secțiuni / goluri ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0 0 2px; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.page-head .muted { margin: 0; }

.section-title { margin: 34px 0 14px; font-size: 1.2rem; font-weight: 600; }

.hero { text-align: center; padding: 64px 16px; }
.hero h1 { margin: 0 0 8px; font-size: 2rem; }

.empty { text-align: center; padding: 56px 24px; }
.empty h1 { font-size: 1.5rem; margin: 0 0 8px; }
.empty h3 { margin: 8px 0; font-size: 1.15rem; }
.empty p { margin: 0 0 18px; color: var(--muted); }
.empty-icon { font-size: 3rem; line-height: 1; margin: 0 0 8px; }

/* ---------- 8. Index: bară de filtrare, grilă de anunțuri, paginare ---------- */
.ads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--bg-band);
  border: 0px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 0;
  margin-bottom: 22px;
}

/* Bandă de căutare + filtre (prima pagină): secțiune full-width, deci
   fondalul ei acoperă întreaga lățime a paginii; bara din interior
   (.ads-toolbar) păstrează aceeași lățime de conținut ca mai înainte,
   oglindind exact cutia orizontală a lui main (.container + .page-main). */
.ads-search-band {
  background: var(--bg-band);
  border-bottom: 1px solid var(--border);
  padding-block: 7px;
}
.ads-search-band-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 18px; /* identic cu .page-main -> bara e la fel de lată ca înainte */
}
.ads-search-band .ads-toolbar {
  margin-bottom: 0; /* spațiul e dat de padding-ul bânzii */
}

/* Bandă full-width generică sub header — folosită de filărie (pagina de
   detalii și pagina vânzătorului). Același tipar ca .ads-search-band:
   fondalul acoperă toată lățimea paginii, conținutul e centrat pe aceeași
   lățime cu main. */
.page-band {
  background: var(--bg-band);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}
.page-band-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 18px; /* identic cu .page-main -> filăria e la fel de lată ca restul conținutului */
}
.page-band .breadcrumb { margin-bottom: 0; /* spațiul e dat de padding-ul bânzii */ }
.ads-toolbar input[type="search"] { flex: 2 1 220px; min-width: 0; }
/* Placeholder mai sters decât griul implicit al browserului (rgb 117 117 117) */
.ads-toolbar input[type="search"]::placeholder { color: #9ca3af; }
.ads-toolbar select { flex: 1 1 200px; min-width: 0; padding:11px; }
.ads-toolbar .btn { flex: 0 0 auto; }

/* Contor de rezultate + filtre active: linie compactă deasupra barei de căutare */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; line-height: 1.2; }
.ads-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.filter-chip {
  padding: 3px 10px;
  background: var(--primary-soft);
  color: var(--primary-600);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1.4;
}
.filter-chip strong { font-weight: 600; }
.reset-filters { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.reset-filters:hover { color: var(--danger-600); text-decoration: none; }

/* Utilitar: vizibil doar pentru screen-readere */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0px;
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.ad-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
/* Toată suprafața cardului e clickabilă — deschide anunțul (butonul de favorite e deasupra) */
.ad-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}
.ad-card-link:hover { text-decoration: none; }

.ad-card-media { display: block; aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; }
.ad-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Buton de favorite — colțul dreapta-jos al cardului, clickabil direct din card */
.ad-card-fav {
  position: absolute; bottom: 12.5px; right: 16px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--border);
  border-radius: 50%; box-shadow: var(--shadow-sm);
  font-size: 1.5rem; line-height: 1; padding: 0; cursor: pointer;
  color: var(--muted); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ad-card-fav:hover { transform: scale(1.08); box-shadow: var(--shadow-md); text-decoration: none; }
.ad-card-fav.active { color: var(--danger-600); border-color: var(--border); background: #fff; }
.ad-card-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

.ad-card-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 12px; flex: 1; }
.ad-card-cat { font-size: 0.78rem; font-weight: 500; color: var(--muted); padding-bottom:2px; }
.ad-card-title { margin: 2px 0 10px; font-size: 0.9rem; font-weight: 500; line-height: 1.4; color: var(--text); }
.price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  margin: 0;
  color: var(--green);
}
.price .price-value {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.price .price-neg {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}
.ad-card-meta {
  margin: 5px 0 0;
  font-size: 0.8rem;
  line-height: 34px;
  min-height: 34px;
  padding-right: 36px; /* spatiu pentru inima */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 3px 20px 20px 8px;
  border: 1px solid #DBDEE6;
  background: #F3F4F7;
  font-weight:500;
}
.ads-toolbar select {
  border;none;

}
.ad-card-body .price { margin-top: auto; }

.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- 9. Detalii anunț ---------- */
/* Filărie: Acasă › Categorie — rând scurt și simetric, cu spațiere uniformă.
   Titlul anunțului nu se repetează aici (e deja H1-ul de mai jos). */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 10px;
  row-gap: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.breadcrumb a:hover { color: var(--primary-600); }
.breadcrumb [aria-hidden] {
  color: #a9b5c6;
  font-size: 0.92rem;
  line-height: 1;
  user-select: none;
}
.breadcrumb-current {
  color: var(--text-2);
  font-weight: 600;
}

.anunt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.anunt-main h1 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; border-bottom: 1px solid var(--border);padding-bottom: 5px; }
/* Preț: rând curat, aliniat la bază — valoare mare și întunecată,
   moneda mai mică și discretă, „negociabil” ca etichetă neutră. */
.anunt-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 2px 0 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}
.anunt-price .price-value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.anunt-price .price-currency {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.anunt-price .price-neg {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

.anunt-meta {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.93rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 7px;
}
.anunt-edit-link { margin: -12px 0 20px; }
.anunt-edit-link a { color: var(--primary-600); font-weight: 600; }
.anunt-edit-link a:hover { color: var(--primary); }

.anunt-photo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.anunt-photo img { display: block; width: 100%; }
.anunt-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 3.2rem;
}

.anunt-desc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.anunt-desc h2 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.anunt-desc p { margin: 0; white-space: normal; }

/* Card vânzător (sticky pe desktop) */
.seller-card { position: sticky; top: 84px; }
.seller-card h2 { margin: 0 0 16px; font-size: 1.08rem; font-weight: 800; }
.seller-name { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
/* Identitate vânzător: nume + link „vezi toate anunțurile” în coloană,
   aliniate stânga, centrate vertical față de avatar. */
.seller-identity { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; }
/* Avatar vânzător — UNIFICAT pe tot site-ul: pătrat cu radius 8px,
   fundal identic cu avatarul din cont (navbar): gradient primary → green.
   Variantele de mărime (.seller-avatar-lg) moștenesc fundal și formă. */
.seller-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--green) 100%);
  border-radius: 8px;
}
.seller-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.seller-row a { color: var(--primary); font-weight: 600; }
.seller-card .btn { margin-top: 10px; }

/* Numele vânzătorului e link spre vanzator.php (toate anunțurile lui) */
.seller-link { color: inherit; text-decoration: none; cursor: pointer; font-weight: 600; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.seller-link:hover { color: var(--primary-600); text-decoration: underline; }
.seller-ads-link {
  display: inline-block;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  text-decoration: none;
}
.seller-ads-link:hover { color: var(--primary-600); text-decoration: underline; }

/* Antetul paginii de vânzător (vanzator.php) */
.seller-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 22px;
  margin: 14px 0 26px;
}
.seller-avatar-lg { width: 56px; height: 56px; font-size: 1.45rem; }
.seller-head-id { flex: 1 1 auto; min-width: 180px; }
.seller-head-id h1 { margin: 0 0 2px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.seller-head-id .muted { margin: 0; }
.seller-head-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.seller-count {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- 10. Contul meu: profil, statistici, lista anunțurilor ----------
   Compact + simetric: două carduri egale, aceleași padding-uri, aceeași bandă
   colorată de sus (culorile principale ale site-ului), puncte colorate pe
   etichete și tile-uri colorate egale pe statistici. */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}
.profile-card, .stats-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
}
/* Bandă colorată de sus — identică pe ambele carduri (simetrie) */
.profile-card::before,
.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
}

/* Profil — compact: nume + buton pe același rând (avatarul moștenește stilul unificat .seller-avatar) */
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.profile-name .btn { margin-left: auto; flex: 0 0 auto; }
.profile-name strong { display: block; font-size: 1.05rem; line-height: 1.3; }

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.profile-row:last-child { border-bottom: none; padding-bottom: 0; }
.profile-rows .profile-row:last-child { border-bottom: none; padding-bottom: 0; }
/* Puncte colorate lângă etichete — aceeași ordine de culori pe ambele pagini */
.profile-row .label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 600;
}
.profile-row .label::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.profile-row:nth-child(2) .label::before { background: var(--green); }
.profile-row:nth-child(3) .label::before { background: var(--warn-text); }

/* Statistici — tile-uri colorate egale, centrate vertical */
.stats-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.stat {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.stat-num { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: 0.8rem; }
.stat-link { color: inherit; text-decoration: none; }
.stat-link:hover { color: var(--danger-600); text-decoration: underline; }
/* Tile colorate — pe culorile principale ale site-ului, în ordine stabilă */
.stat:nth-child(1) { background: var(--primary-soft); }
.stat:nth-child(1) .stat-num { color: var(--primary-600); }
.stat:nth-child(2) { background: var(--green-soft); }
.stat:nth-child(2) .stat-num { color: var(--success-text); }
.stat:nth-child(3) { background: var(--warn-soft); }
.stat:nth-child(3) .stat-num { color: var(--warn-text); }
.stat:nth-child(4) { background: var(--danger-soft); }
.stat:nth-child(4) .stat-num { color: var(--danger-600); }
.stat:nth-child(4) .stat-label,
.stat:nth-child(4) .stat-link { color: var(--danger-600); }

.ad-list { display: grid; gap: 14px; }

.ad-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
}
.ad-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.ad-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.ad-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ad-body h2, .ad-row h2 { margin: 0; font-size: 1.06rem; font-weight: 500; }
.ad-body h2 a, .ad-row h2 a { color: var(--text); }
.ad-body h2 a:hover, .ad-row h2 a:hover { color: var(--primary); }
.ad-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.ad-meta .mi { white-space: nowrap; }
.ad-meta .sep { margin: 0 7px; }

/* Rândul de titlu: titlu + badge status + preț (dreapta) */
.ad-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ad-head h2 { margin: 0; font-size: 1.06rem; font-weight: 600; min-width: 0; }
.ad-head h2 a { color: var(--text); text-decoration: none; }
.ad-head h2 a:hover { color: var(--primary); }
.ad-head .price { margin: 0; margin-left: auto; white-space: nowrap; }
.ad-head .price .price-value { font-size: 1.15rem; }
/* Badge-ul de status la aceeași scară cu badge-ul „negociabil” — simetrie cu prețul */
.ad-head .badge { font-size: 0.7rem; padding: 1px 8px; line-height: 1.5; }

/* Rând de statistici + stări. admin.php are 4 .ad-stat direct (aliniere stânga);
   contul-meu.php are .ad-stats-list + .ad-stats-state (distribuție echilibrată) */
.ad-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
/* contul-meu: statisticele în stânga, pastilele de stare în dreapta */
.ad-stats:has(.ad-stats-state) {
  gap: 6px 16px;
  justify-content: space-between;
}
.ad-stats-list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
}
.ad-stat { white-space: nowrap; }
.ad-stat strong { color: var(--text-2); font-weight: 600; }
.ad-stats-state {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  /* Când nu încap pe rândul statisticilor, pastilele se pliaz pe un
     rând propriu dar rămân aliniate la marginea dreaptă — simetrie
     constantă între carduri */
  margin-left: auto;
}

/* Pastile de stare — sistem coerent:
   activă/disponibilă = verde; expirată/în așteptare = neutră */
.promo-status,
.renew-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.promo-status.promo-on,
.renew-note.renew-note-ok {
  background: var(--green-soft);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  font-weight: 600;
}
.promo-status.promo-on strong { font-weight: 700; }
.promo-status.promo-off,
.renew-note.renew-note-wait {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Bara de acțiuni: contul-meu.php — primare în stânga, administrare în
   dreapta; admin.php — grupuri cu etichete, aliniate la stânga */
.ad-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ad-actions:has(.ad-actions-main) { justify-content: space-between; }
.ad-actions-main,
.ad-actions-manage {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ad-actions-manage form { margin: 0; }
.delete-form { margin: 0; display: inline; }

/* admin.php: grupuri cu etichetă (Featured: / Promoție:) — structura proprie
   a paginii de administrare, separată de .ad-actions-main din contul-meu */
.ad-promo-line { margin: 0; }
.ad-actions-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-group-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-right: 2px; }
.ad-actions-group form { margin: 0; }

/* ---------- Favorite (favorite.php) — structură proprie .fav-* ----------
   NU atinge .ad-row (admin) sau .ad-mine (Contul meu): reutilizează doar
   primitivele partajate (.price, .btn, .empty). Paletă și font identice. */
.fav-page-head { align-items: center; }
/* Pila de contor din dreapta antetului: număr mare + context, pe o pastilă */
.fav-count {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.fav-count strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.fav-count-sep { color: var(--border-strong); }

/* Secțiuni Active / Neactive: titlu + pastilă de număr + linie fină */
.fav-section { display: grid; gap: 14px; }
.fav-section + .fav-section { margin-top: 34px; }
.fav-section-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.fav-section-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.fav-section-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.fav-sec-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fav-sec-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.fav-sec-dot.off { background: #B4BCCA; }
.fav-section-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}

/* Card: thumbnail 128px + corp (top-row, titlu, meta, acțiuni cu divider) */
.fav-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
/* Hover: aceeași limbaj ca .ad-card (umbrelă soft, fără deplasare pe listă) */
.fav-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.fav-thumb {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  overflow: hidden;
}
.fav-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.fav-card:hover .fav-thumb img { transform: scale(1.04); }
.fav-thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.4rem; }

.fav-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Top-row: pastilă de categorie (stânga) · status · preț (dreapta) */
.fav-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.fav-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-cat-ico { font-size: 0.85rem; line-height: 1; }
.fav-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.fav-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fav-status.is-off { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.fav-top .price { margin: 0; margin-left: auto; white-space: nowrap; }
.fav-top .price .price-value { font-size: 1.14rem; }

.fav-title { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.fav-title a { display: block; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-title a:hover { color: var(--primary); }
.fav-title a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 4px; }

/* Meta: 📍 locația · ❤️ data salvării · 👁 vizualizări */
.fav-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 9px; margin: 0; font-size: 0.85rem; color: var(--muted); }
.fav-meta .mi { white-space: nowrap; }
.fav-meta .sep { color: var(--border-strong); }

/* Acțiuni: „Vezi anunțul” / nota (stânga) · „Înlătură” (dreapta), divider */
.fav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.fav-actions form { margin: 0; display: inline-flex; }
.fav-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
.fav-actions .fav-ico { flex: none; }
.fav-note { font-size: 0.82rem; color: var(--muted); }

/* Card nefuncțional: imagine stinsă, preț și titlu neutre, fără link */
.fav-card.is-off .fav-thumb img { filter: grayscale(0.9); opacity: 0.72; }
.fav-card.is-off .fav-top .price { color: var(--muted); }
.fav-card.is-off .fav-top .price .price-value { color: var(--muted); }
.fav-card.is-off .fav-title { color: var(--text-2); }

/* Stare goală: inimioță într-un disc soft roșu, CTA clar */
.fav-empty { padding: 46px 24px 42px; }
.fav-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  color: var(--danger-600);
}
.fav-empty h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.fav-empty p { margin: 0 auto 20px; max-width: 46ch; color: var(--muted); line-height: 1.55; }

/* Badge-uri de status */
.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge-active { background: var(--success-soft); color: var(--success-text); }
.badge-pending { background: var(--warn-soft); color: var(--warn-text); }
.badge-expired { background: var(--surface-2); color: var(--muted); }
.badge-hidden { background: var(--danger-soft); color: var(--danger-600); }
.badge-suspended { background: var(--warn-soft); color: var(--warn-text); }
.badge-role { background: var(--primary-soft); color: var(--primary-600); }
.badge-id { background: var(--surface-2); color: var(--muted); padding: 1px 8px; font-weight: 600; }

/* Formularul de suspendare din panoul admin (select + buton pe același rând) */
.suspend-form { margin: 0; display: flex; gap: 6px; align-items: center; }
.suspend-form select {
  width: auto; min-width: 92px;
  padding: 6px 8px;
  font: inherit; font-size: 0.88rem;
  color: inherit; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
}

/* ---------- Admin — carduri de utilizatori (moderne, compacte) ---------- */
.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 14px;
}
.user-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.user-card:hover { border-color: var(--border-strong); box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07); }
.user-card-suspended { border-color: var(--border-strong); }

.user-head { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 42px; height: 42px; font-size: 1.1rem; }
.user-id { min-width: 0; flex: 1 1 auto; }
.user-name {
  margin: 0;
  font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.3;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.user-sub {
  margin: 3px 0 0;
  font-size: 0.82rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-status {
  flex: none;
  font-size: 0.73rem; font-weight: 600; line-height: 1.4;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.user-status.status-active { background: var(--success-soft); color: var(--success-text); border: 1px solid var(--success-border); }
.user-status.status-suspended { background: var(--warn-soft); color: var(--warn-text); border: 1px solid var(--border-strong); }

.user-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ud-cell { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 0.84rem; color: var(--text-2); }
.ud-ico { flex: none; font-size: 0.82rem; }
.ud-val { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ud-cell.ud-credits .ud-val strong { color: var(--success-text); font-size: 0.95rem; }

.user-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 2px;
}
.user-foot .credits-form,
.user-foot .suspend-form { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; }
.user-foot .credits-form select { min-width: 88px; }
.user-admin-note { font-size: 0.8rem; color: var(--muted); font-style: italic; }

@media (max-width: 460px) {
  .user-details { grid-template-columns: 1fr; }
  .user-head { flex-wrap: wrap; }
  .user-status { order: 3; width: 100%; text-align: center; }
}

/* ---------- 11. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 48px; }
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding-block: 18px;
  font-size: 0.9rem;
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 960px) {
  .anunt-layout { grid-template-columns: 1fr; }
  .seller-card { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-card { flex-wrap: wrap; }
  .stats-card .stat { flex: 1 1 45%; }
}

@media (max-width: 640px) {
  .container { padding-inline: 14px; }
  .page-main { padding-top: 20px; }
  .ads-search-band-inner, .page-band-inner { padding-inline: 14px; } /* la fel de late ca în main */
  .card, .auth-card, .form-card { padding: 18px 16px; }

  .grid-2 { grid-template-columns: 1fr; }

  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 1.45rem; }

  .ads-toolbar input[type="search"],
  .ads-toolbar select { flex-basis: 100%; }

  .ads-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

  .anunt-main h1 { font-size: 1.5rem; }
  .anunt-price { margin-bottom: 12px; }
  .anunt-price .price-value { font-size: 1.6rem; }
  .anunt-price .price-currency { font-size: 0.95rem; }
  .anunt-desc { padding: 18px 16px; }

  .ad-row { grid-template-columns: 1fr; gap: 12px; }
  .ad-thumb { width: 100%; height: 180px; }

  /* Favorite: thumb full-width, acțiuni 2×1, prețul cade sub pastila de categorie */
  .fav-card { grid-template-columns: 1fr; gap: 12px; }
  .fav-thumb { width: 100%; height: 170px; }
  .fav-top .price { margin-left: 0; }
  .fav-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .fav-actions > .btn,
  .fav-actions form { width: 100%; }
  .fav-actions .btn { width: 100%; justify-content: center; }

  /* Statistici: grilă 2×2 (admin.php — 4 .ad-stat directe) / statistice +
     pastile pe lățime totală (contul-meu.php — .ad-stats-list + .ad-stats-state) */
  .ad-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
    align-items: center;
  }
  .ad-stats:has(.ad-stats-state) { gap: 8px; }
  .ad-stats-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
  }
  .ad-stats:has(.ad-stats-state) .ad-stat { white-space: normal; }
  .ad-stats-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ad-stats-state .promo-status,
  .ad-stats-state .renew-note {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* Acțiuni — contul-meu.php: două rânduri egale, fiecare buton la lățime egală */
  .ad-actions { display: grid; gap: 12px; }
  .ad-actions:has(.ad-actions-main) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ad-actions-main {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ad-actions-main .btn { flex: 1 1 0; min-width: 0; }
  .ad-actions-manage {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ad-actions-manage > a,
  .ad-actions-manage > form { flex: 1 1 auto; min-width: 84px; }
  .ad-actions-main ~ .ad-actions-manage > a,
  .ad-actions-main ~ .ad-actions-manage > form { flex: 1 1 calc(33.333% - 6px); }
  .ad-actions-manage form .btn { width: 100%; }
  .ad-actions .btn { font-size: 0.8rem; padding: 7px 9px; }

  /* Acțiuni — admin.php: grupuri cu etichetă (Featured: / Promoție:) */
  .ad-actions-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .ad-group-label { flex-basis: 100%; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
  .ad-actions-group > form { flex: 1 1 calc(50% - 3px); }
  .ad-actions-group > form .btn { width: 100%; }

  .stats-card { gap: 8px; }
  .stat-num { font-size: 1.35rem; }

  .pagination a,
  .pagination span { min-width: 36px; padding: 7px 10px; }
}

/* ---------- 13. Accesibilitate mișcare ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .ad-card:hover { transform: none; }
}

/* ---------- 14. Credite & promovare (UI) ---------- */

/* Buton dezactivat (ex: sold insuficient) — opacitate + cursor, fără hover activ */
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-green:disabled, .btn-green:disabled:hover { background: var(--green); border-color: var(--green); color: #fff; opacity: 0.45; }
.btn-ghost:disabled, .btn-ghost:disabled:hover { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); opacity: 0.45; }

/* Card „Credite” — sold + costuri Reînnoire / Promovare, în 3 panouri */
.credits-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.05fr 1.05fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
/* Bandă colorată de semnătură (identică cu profile-card / stats-card) */
.credits-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
}

/* Panou sold (hero) — simetrie perfectă: același layout centrat pe desktop și mobil */
.cc-balance {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
/* rânduri de titlu cu înălțime egală — topul aliniat pe toate cele 3 panouri */
.cc-balance-top, .cc-plan-head { display: flex; align-items: center; gap: 8px; height: 26px; }
.cc-balance-top { gap: 9px; justify-content: center; }
.cc-balance-icon { font-size: 1.45rem; line-height: 1; }
.cc-balance-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cc-balance-num {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cc-balance-unit { font-size: 0.88rem; color: var(--muted); }

/* Panouri de costuri */
.cc-plan {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.cc-plan-icon { font-size: 1.05rem; line-height: 1; }
.cc-plan-title { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--text); }
.cc-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.cc-plan-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.88rem;
  color: var(--text-2);
}
/* pastila de cost */
.cc-cost {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--border-strong);
  font-variant-numeric: tabular-nums;
}
.cc-cost-free { background: var(--green-soft); color: var(--success-text); border-color: var(--success-border); }
/* explicarea fiecărei acțiuni */
.cc-plan-note {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Responsive: 2 coloane (sold deasupra, identic simetric cu desktopul), apoi o singură coloană */
@media (max-width: 960px) {
  .credits-card { grid-template-columns: 1fr 1fr; }
  .cc-balance { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .credits-card { grid-template-columns: 1fr; }
}

/* rândul de acțiuni credite pe cardul de anunț din Contul Meu */
.credits-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.credits-actions .credits-form { margin: 0; display: inline; }
.free-note { color: var(--muted); font-size: 0.85rem; }
.badge-promoted { background: var(--green-soft); color: var(--success-text); border: 1px solid var(--success-border); }
.badge-featured { background: var(--featured-soft); color: var(--featured-text); border: 1px solid var(--featured-border); font-weight: 700; }

/* Ribbon diagonal „FEATURED” (același colț ca PROMOVTAT; featured are prioritate) */
.featured-ribbon {
  position: absolute;
  top: 32px;
  right: -35px;
  z-index: 3;
  transform: rotate(45deg);
  width: 150px;
  text-align: center;
  padding: 4px 0;
  background: var(--featured);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}
/* Ribbon diagonal „PROMOVAT” în colțul din dreapta-sus al cardului din catalog */
.promo-ribbon {
  position: absolute;
  top: 32px;
  right: -35px;
  z-index: 3;
  transform: rotate(45deg);
  width: 150px;
  text-align: center;
  padding: 4px 0;
  background: var(--green);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  pointer-events: none;
}

/* Eticheta „Promovat” din meta anunțului (pagina de detalii) */
.anunt-meta .anunt-meta-featured {
  background: var(--featured-soft);
  color: var(--featured-text);
  border: 1px solid var(--featured-border);
  padding: 1px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.anunt-meta .anunt-meta-promo {
  background: var(--green-soft);
  color: var(--success-text);
  border: 1px solid var(--success-border);
  padding: 1px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* Formular „Acordă credite” din cardul de utilizator (Admin) */
.credits-form { margin: 0; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.credits-form select {
  width: auto; min-width: 96px;
  padding: 6px 8px;
  font: inherit; font-size: 0.88rem;
  color: inherit; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 8px;
}

/* ---------- 15. Pagini dedicate — promovare & reînnoire ----------
   Concept: „alegere de plan + confirmare". Rezumatul anunțului (bandă
   de tip „comandă"), două carduri de opțiuni cu radio-uri native (fără
   JavaScript) și o bară de confirmare cu rezumat live (CSS :has, cu
   text generic ca fallback pe browserele fără :has). Paletă, fonturi și
   componente identice cu restul site-ului. */

.opt-page { max-width: 880px; }

/* Link de întoarcere, deasupra antetului */
.opt-back {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 16px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--muted);
}
.opt-back:hover { color: var(--primary); text-decoration: none; }
.opt-back svg { flex: none; }

/* Rezumat anunț — banda „ceea ce se modifică" */
.opt-summary {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 22px;
}
.os-thumb {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.os-thumb-ph { display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.os-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.os-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.os-title { margin: 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; min-width: 0; }
.os-price { margin: 0 0 0 auto; white-space: nowrap; font-weight: 700; }
.os-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 0.85rem; color: var(--muted); }
.os-status { display: flex; flex-wrap: wrap; gap: 6px; }
.os-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; line-height: 1.5;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border);
}
.os-pill.on { background: var(--green-soft); color: var(--success-text); border-color: var(--success-border); }

/* Grila de opțiuni (2 carduri) */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.plan-card {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.plan-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
/* Radio-ul nativ e ascuns vizual, dar rămâne în DOM (accesibilitate,
   săgeți pe tastatură). Selectia se vede pe card. */
.plan-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked),
.plan-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
}
.plan-card:has(input:checked) .plan-name,
.plan-card.is-selected .plan-name { color: var(--primary-600); }
/* Focus vizibil (tastatură) pe cardul ale cărui radio e focusat */
.plan-card:has(input:focus-visible) {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.plan-top { display: flex; align-items: center; gap: 10px; }
.plan-ico {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  font-size: 1.2rem; line-height: 1;
}
.plan-name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.plan-tag {
  margin-left: auto;
  padding: 2px 9px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--green-soft); color: var(--success-text);
  border: 1px solid var(--success-border);
  white-space: nowrap;
}
.plan-tag-soft { background: var(--primary-soft); color: var(--primary-600); border-color: var(--border-strong); }

.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price-num {
  font-size: 2.3rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.plan-price-unit { color: var(--muted); font-size: 0.92rem; }
.plan-price-for { color: var(--muted); font-size: 0.8rem; margin-left: auto; white-space: nowrap; }
.plan-price.is-free .plan-price-num { color: var(--success-text); }

.plan-feats {
  list-style: none; margin: 0; padding: 12px 0 0;
  border-top: 1px dashed var(--border-strong);
  display: flex; flex-direction: column; gap: 8px;
}
.plan-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.88rem; line-height: 1.45; color: var(--text-2); }
.pf-check {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-soft); color: var(--success-text);
  border: 1px solid var(--success-border);
}

/* Pastila de disponibilitate a opțiunii (gratuită: disponibilă / revine în X zile) */
.plan-state {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 3px 11px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; line-height: 1.5;
}
.plan-state-ok { background: var(--success-soft); color: var(--success-text); border: 1px solid var(--success-border); }
.plan-state-wait { background: var(--warn-soft); color: var(--warn-text); border: 1px solid var(--border-strong); }

.plan-note { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.plan-note-err { color: var(--danger-600); }

/* Card blocat (opțiune indisponibilă) */
.plan-card.is-disabled { cursor: not-allowed; }
.plan-card.is-disabled:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.plan-card.is-disabled .plan-name,
.plan-card.is-disabled .plan-price-num { color: var(--muted); }

/* Notă de prelungire (promoție deja activă, pe pagina de promovare) */
.opt-extend-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  border: 1px solid var(--border-strong);
  color: var(--warn-text);
  font-size: 0.9rem; line-height: 1.55;
}

/* Bara de confirmare */
.confirm-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 20px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.cb-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cb-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.cb-val { display: none; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.cb-fallback { font-size: 0.92rem; color: var(--text-2); }

/* Rezumatul live — CSS :has (fără JS). Pe browserele fără :has,
   selectorii invalidi se ignoră și rămâne textul generic afișat. */
.opt-form:has(input[name="plan"][value="10_days"]:checked) .cb-val-10_days,
.opt-form:has(input[name="plan"][value="30_days"]:checked) .cb-val-30_days,
.opt-form:has(input[name="renewal"][value="free"]:checked) .cb-val-free,
.opt-form:has(input[name="renewal"][value="paid"]:checked) .cb-val-paid { display: block; }
.opt-form:has(input[name="plan"]:checked) .cb-fallback,
.opt-form:has(input[name="renewal"]:checked) .cb-fallback { display: none; }

.btn-cta { padding: 11px 22px; font-size: 0.98rem; font-weight: 600; white-space: nowrap; }
.confirm-bar.is-off .btn-cta { opacity: 0.45; cursor: not-allowed; }

/* Sold credite — bandă compactă în Contul meu (costurile stau pe
   paginile dedicate; aici rămâne doar soldul, context pentru acțiuni) */
.balance-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.bs-ico { font-size: 1.15rem; line-height: 1; }
.bs-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bs-num {
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.bs-unit { color: var(--muted); font-size: 0.88rem; }
.bs-hint { margin-left: auto; font-size: 0.82rem; color: var(--muted); }

/* Stări de reînnoire gratuită în rândul de acțiuni din Contul meu */
/* Stări de reînnoire gratuită — pastilele .renew-note* sunt definite odată
   cu .promo-status, mai sus (sistem coerent de pastile de stare) */

/* ---------- 15.1 Responsive (pagini dedicate + rânduri de acțiuni noi) */
@media (max-width: 640px) {
  .opt-page { max-width: none; }
  .opt-summary { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px 16px; }
  .os-thumb, .os-thumb-ph { width: 60px; height: 60px; font-size: 1.4rem; }
  .os-title { font-size: 1.02rem; }
  .os-price { margin-left: 0; width: 100%; }
  .plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-price-num { font-size: 2rem; }
  /* Bara de confirmare lipsește de josul ecranului — întotdeauna la îndemână */
  .confirm-bar { position: sticky; bottom: 10px; flex-direction: column; align-items: stretch; }
  .btn-cta { width: 100%; }
  /* Sold credite — pe mobil: două rânduri echilibrate:
     rândul 1: eticheta stânga, valoarea dreapta (distribuție space-between);
     rândul 2: indicația, separată vizual de o linie */
  .balance-strip { padding: 12px 16px; gap: 6px 10px; }
  .bs-ico { font-size: 1.05rem; }
  .bs-num { margin-left: auto; font-size: 1.5rem; white-space: nowrap; }
  .bs-unit { white-space: nowrap; }
  .bs-hint {
    margin-left: 0; flex-basis: 100%; order: 20;
    margin-top: 2px; padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-size: 0.8rem;
  }
  /* Rândurile de statistici/acțiuni din Contul meu sunt definite în blocul
     de mai sus (grilă 2×2 + rânduri egale de butoane) */
}
