/*
 * Tema ÎNCHISĂ — texte care rămăseseră închise pe fundal închis (sau deschise pe fundal deschis).
 * Găsite cu un audit automat de contrast pe telefon (toate paginile principale + taburile din profil).
 * Doar html[data-user-theme="dark"]; tema albă nu e atinsă. Se încarcă ultimul în <head>.
 * `!important` doar unde stilul paginii e încărcat mai târziu în <body> sau e scris inline.
 */

/* Profil → Datele mele: etichetele câmpurilor (Poza, Semnătura, Nume, Email…) */
html[data-user-theme="dark"] label.profile-detail-field > span {
    color: rgba(226, 232, 240, 0.88) !important;
}
/* linkul „TERMENI SI CONDITII” din avertismentul roșu (culoare scrisă inline) */
html[data-user-theme="dark"] .profile-details-warning__text a {
    color: #93c5fd !important;
}

/* Profil → Comenzi / Anunțurile mele / Mesaje: titluri și etichetele de sus */
html[data-user-theme="dark"] .profile-order-card__title,
html[data-user-theme="dark"] .profile-order-card__metric strong,
html[data-user-theme="dark"] .profile-ads-empty strong {
    color: #f1f5f9 !important;
}
html[data-user-theme="dark"] .profile-orders-panel__copy span,
html[data-user-theme="dark"] .profile-ads-toolbar__content span,
html[data-user-theme="dark"] .profile-messages-hero__copy span {
    color: #94a3b8 !important;
}

/* Profil → Prieteni: „Cereri primite” / „Cereri trimise” */
html[data-user-theme="dark"] .cad-profile-friends h3 {
    color: #f1f5f9 !important;
}

/* Profil → Moștenire */
html[data-user-theme="dark"] .tmt-hero-title {
    color: #f1f5f9 !important;
}
html[data-user-theme="dark"] .tmt-hero-desc strong {
    color: #e2e8f0 !important;
}

/* Coș (titlul „Coș” și „Coșul tău este gol”) */
html[data-user-theme="dark"] main.commerce-page > h1 {
    color: #f1f5f9 !important;
}
html[data-user-theme="dark"] main.commerce-page > p {
    color: #cbd5e1 !important;
}

/* Postează anunț: fereastra „Alege tipul de anunt” are fundal alb → titlul închis */
html[data-user-theme="dark"] .cad-mode-dialog h3 {
    color: #0f172a !important;
}

/* Home: butonul „Vezi anunț” din carduri (alb pe gri deschis) */
html[data-user-theme="dark"] .hm-btn-view {
    background: #334155 !important;
    color: #ffffff !important;
}
/* Home: eticheta „ORIGINAL” de pe carduri (verde închis pe fundal închis) */
html[data-user-theme="dark"] .home-auth-pill--original {
    color: #86efac !important;
}
/* Home: „Afla mai multe” (buton alb) */
html[data-user-theme="dark"] .hm-spot-btn {
    color: #b91c1c !important;
}

/* Anunțuri: antetul și paginarea stau pe fundal alb și în tema închisă → gri mai închis, ca să se citească */
html[data-user-theme="dark"] .classified-ads-header .classified-ads-kicker {
    color: #2563eb !important;
}
html[data-user-theme="dark"] .classified-ads-header .classified-ads-subtitle,
html[data-user-theme="dark"] .cad-listpager__info,
html[data-user-theme="dark"] .cad-seller-rating__count,
html[data-user-theme="dark"] .tmt-hero-card .tmt-hero-lock {
    color: #64748b !important;
}

/* Pagina unui anunț */
/* titlul anunțului stă pe antetul deschis → închis (era alb pe alb) */
html[data-user-theme="dark"] .cad-hero-header .cad-hero-title {
    color: #0f172a !important;
}
/* „Alte anunturi de la …” / „Alte anunturi care te-ar putea interesa” */
html[data-user-theme="dark"] .cad-related__title {
    color: #f1f5f9 !important;
}
/* textele mărunte de pe cardul închis: Locație, Postat, explicațiile de la plata cu DAC */
html[data-user-theme="dark"] .cad-section .cad-muted-sm,
html[data-user-theme="dark"] .cad-section .cad-meta-line,
html[data-user-theme="dark"] .cad-section .cad-meta-line span,
html[data-user-theme="dark"] .cad-wallet-pay .cad-contact-sub,
html[data-user-theme="dark"] .cad-wallet-pay .cad-wallet-pay__hint {
    color: #94a3b8 !important;
}
html[data-user-theme="dark"] .cad-wallet-pay .cad-wallet-pay__terms {
    color: #a5b4fc !important;
}
