.menu-item--user-account { 
    display: none !important; 
}
/* Culoare Buton Principal Ultimate Member */
.um .um-button, 
.um input[type=submit].um-button {
    background: #1F6F4A !important;
}

/* Culoare Buton Principal la Hover */
.um .um-button:hover, 
.um input[type=submit].um-button:hover {
    background: #2E8B57 !important;
}

/* Culoare Buton Secundar (Register/Cancel) */
.um .um-button.um-alt, 
.um input[type=submit].um-button.um-alt {
    background: #EEEEEE !important;
    color: #333333 !important;
}

/* Culoare Buton Secundar la Hover */
.um .um-button.um-alt:hover, 
.um input[type=submit].um-button.um-alt:hover {
    background: #DDDDDD !important;
}
/* Forțează verdele pe butoanele din formulare (ex: wpforms) */
button[type="submit"],
input[type="submit"],
.wpforms-submit {
    background-color: #1F6F4A !important;
    border: none !important;
    color: #FFFFFF !important;
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.wpforms-submit:hover {
    background-color: #2E8B57 !important;
}

/* Butonul de CLOSE din Popup */
.pum-close {
    background-color: #EEEEEE !important;
    color: #333333 !important;
    border: none !important;
    text-shadow: none !important;
}
/* Forțează verdele pe linkurile din Ultimate Member (inclusiv Comunitate) */
.um a,
.um .um-activity-author-name a,
.um-activity-widget a {
    color: #1F6F4A !important;
}

/* Culoarea la hover pentru linkurile din UM */
.um a:hover,
.um .um-activity-author-name a:hover,
.um-activity-widget a:hover {
    color: #2E8B57 !important;
}
/* 1. Toate linkurile secundare din forum devin gri */
#bbpress-forums a {
    color: #555555 !important;
}

/* 2. Culoare la hover pentru linkurile secundare (verde deschis) */
#bbpress-forums a:hover {
    color: #2E8B57 !important;
}

/* 3. Titlurile principale ale categoriilor rămân verzi și ies în evidență */
#bbpress-forums a.bbp-forum-title {
    color: #1F6F4A !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* 4. Titlurile principale la hover */
#bbpress-forums a.bbp-forum-title:hover {
    color: #2E8B57 !important;
}
/* Culoare verde normala pentru butoane */
.um-stripe-checkout-btn, .um-button, input[type="submit"].um-button {
    background-color: #1F6F4A !important;
    border-color: #1F6F4A !important;
    color: #ffffff !important;
}

/* Culoarea la trecerea mouse-ului peste buton (Hover) */
.um-stripe-checkout-btn:hover, .um-button:hover, input[type="submit"].um-button:hover {
    background-color: #2E8B57 !important;
    border-color: #2E8B57 !important;
}
.um-field-password input[type="password"], 
.um-field-password input[type="text"] {
    padding-right: 45px !important; 
}
.um-notification-b {
    display: none !important;
}
/* Meniu fix care coboară pe pagină (Desktop + Mobil) */
#masthead, .ast-mobile-header-wrap {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}
/* Forțează coloanele din footer să stea una sub alta pe telefon */
@media (max-width: 921px) {
    .site-footer .ast-builder-grid-row {
        grid-template-columns: 1fr !important;
        row-gap: 30px !important; /* Adaugă spațiu ca să nu se lipească textele între ele */
    }
    
    /* Centrează siglele ANPC pe mobil ca să arate simetric */
    .site-footer .ast-builder-html-element div {
        justify-content: center !important;
    }
}

/* =========================================
   ASCUNDE MENIUL GRI PE TOATE PAGINILE (EXCEPȚIE HOMEPAGE)
   ========================================= */
body:not(.home):not(.front-page) [data-section="section-primary-footer-builder"],
body:not(.home):not(.front-page) [data-section="section-above-footer-builder"],
body:not(.home):not(.front-page) .site-primary-footer-wrap,
body:not(.home):not(.front-page) .ast-builder-footer-primary-row,
body:not(.home):not(.front-page) .footer-adv {
    display: none !important;
}

/* Ascunde linkurile legale mici DOAR pe prima pagina */
body.home .linkuri-legale-mici,
body.front-page .linkuri-legale-mici {
    display: none !important;
}

/* Culori si Hover pentru linkurile legale mici */
.linkuri-legale-mici a {
    color: #1F6F4A !important; 
    text-decoration: underline !important;
    transition: color 0.3s ease !important; 
}
.linkuri-legale-mici a:hover {
    color: #2E8B57 !important; 
}
@media (max-width: 921px) {
    /* Containerul care tine iconitele - il facem sa ocupe tot randul si il tragem la stanga */
    .site-footer .ast-footer-social-1-wrap {
        display: flex !important;
        flex-direction: row !important; /* Fortam sa stea pe acelasi rand */
        width: 100% !important; 
        justify-content: flex-start !important; 
    }
    
    /* Iconitele in sine (ca sa nu se mai intinda pe tot ecranul) */
    .site-footer .ast-builder-social-element {
        display: inline-flex !important;
        width: auto !important; /* Le readucem la dimensiunea lor normala */
        margin-right: 25px !important;
        margin-left: 0 !important;
    }
    
    /* Taiem spatiul urias de sus si adaugam o linie fina de design */
    .site-footer .ast-footer-social-1-container {
        padding: 15px 0 !important;
        border-bottom: 1px solid #e1e5e8;
        display: flex !important;
        width: 100% !important;
    }
}
/* Fundalul barei de meniu din profil (alb cu o linie fină) */
.um-profile-nav {
    background-color: #ffffff !important; 
    border-bottom: 1px solid #eeeeee !important;
}

/* Culoarea textului normal din meniu (gri închis pentru lizibilitate) */
.um-profile-nav div.um-profile-nav-item a {
    color: #444444 !important; 
}

/* Culoarea butonului ACTIV (ex: Posts) - Verdele din logo */
.um-profile-nav div.um-profile-nav-item.active a {
    background-color: #0d5d3b !important; 
    color: #ffffff !important; 
}

/* La trecerea mouse-ului peste butoane (Hover) */
.um-profile-nav div.um-profile-nav-item a:hover {
    background-color: transparent !important;
    color: #0d5d3b !important;
}
@media (max-width: 921px) {
    
    /* TRUCUL MAGIC: Acest cod se aplică DOAR pe Android/Chrome. iOS-ul este ignorat complet. */
    @supports not (-webkit-touch-callout: none) {
        

        /* =========================================
           2. SUBSOLUL (Texte mai mici + Protecție margini laterale)
           ========================================= */
        .site-footer .widget-title,
        .site-footer p,
        .site-footer a,
        .site-footer li,
        .ast-footer-copyright,
        .site-footer .ast-builder-html-widget {
            font-size: 14px !important; /* Micșorează textele */
            line-height: 1.5 !important;
        }

        /* Împingem textele și săgețile spre interior ca să nu mai fie pe extrema ecranului */
        .site-footer {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }
    }
}

.um-profile .um-meta-text,
.um-profile .um-profile-meta,
.um-profile .um-meta {
    display: none !important;
}

/* --- REPARATIE MENIU ANDROID (Spatiu in partea de sus) --- */
.um-profile-body {
    overflow: visible !important;
}

/* Adaugam un spatiu invizibil de 50px deasupra primei poze ca sa incapa meniul */
.um-gallery-container, 
.um-profile-media,
.lacai-media-gallery {
    padding-top: 55px !important; 
    overflow: visible !important;
}

/* Asiguram meniul ca e mereu in prim-plan */
.um-dropdown {
    z-index: 999999 !important;
}

/* --- REPARATIE COMPLETA MENIU GALERIE MOBIL --- */

/* 1. Oprim "foarfeca" - lasam meniul sa iasa in afara pozei */
#lacai-media-grid .media-item {
    overflow: visible !important;
}

/* 2. Pastram colturile rotunjite pentru poze si video (pentru ca am oprit foarfeca mai sus) */
#lacai-media-grid .media-item img,
#lacai-media-grid .media-item iframe {
    border-radius: 8px !important;
}

/* 3. Asiguram meniul ca sta in fata de tot */
.lacai-options-menu {
    z-index: 999999 !important;
    width: 140px !important; /* Putin mai ingust pentru ecrane mici */
}

/* 4. Asezam meniul corect in functie de coloana pe telefon */
@media screen and (max-width: 768px) {
    /* Pozele de pe prima coloana (stanga) deschid meniul spre dreapta */
    #lacai-media-grid .media-item:nth-child(3n+1) .lacai-options-menu {
        left: 0 !important;
        right: auto !important;
    }
    
    /* Pozele de pe coloana din mijloc deschid meniul fix pe centru */
    #lacai-media-grid .media-item:nth-child(3n+2) .lacai-options-menu {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    /* Pozele de pe ultima coloana (dreapta) deschid meniul spre stanga */
    #lacai-media-grid .media-item:nth-child(3n+3) .lacai-options-menu {
        right: 0 !important;
        left: auto !important;
    }
}

/* Marim zona de atingere pentru butonul cu 3 puncte ca sa fie usor de apasat pe mobil */
.lacai-options-btn {
    width: 38px !important;
    height: 38px !important;
}
.lacai-options-btn i {
    font-size: 18px !important;
}

/* =========================================
   ASCUNDE ELEMENTE NEFOLOSITE DIN MENIUL CONTULUI
   ========================================= */

/* Ascunde secțiunea "My Orders" */
.woocommerce-MyAccount-navigation-link--orders {
    display: none !important;
}

/* Ascunde secțiunea "Manager magazin" 
(Am pus cele mai frecvente clase folosite de modulele de tip Marketplace) */
.woocommerce-MyAccount-navigation-link--wcfm-store-manager,
.woocommerce-MyAccount-navigation-link--dokan,
.woocommerce-MyAccount-navigation-link--vendor-dashboard,
.woocommerce-MyAccount-navigation-link--store-manager {
    display: none !important;
}

/* =========================================
   REPARARE DUBLU-CLICK PE TELEFOANE (ANULARE HOVER)
   ========================================= */
@media (max-width: 921px) {
    /* Forțează linkurile să rămână la culoarea normală la atingere */
    a:hover {
        color: #1F6F4A !important;
    }

    /* Forțează butoanele de cont și plată să ignore hover-ul pe mobil */
    .um-button:hover, 
    .woocommerce-Button:hover, 
    .woocommerce-form-register__submit:hover,
    button:hover,
    input[type="submit"]:hover,
    input[type="button"]:hover {
        background-color: #1F6F4A !important; /* Presupunând că butoanele au fundalul verde */
        color: #ffffff !important; /* Păstrăm textul alb */
        transition: none !important;
        transform: none !important;
    }
}

/* Adauga spatiu sub ultimul buton din meniu pentru a face loc iconitelor */
.buton-final {
    margin-bottom: 150px !important;
}

.antet-iconite-aplicatie {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.antet-iconite-aplicatie a {
    font-size: 16px !important;
    color: inherit !important;
    text-decoration: none !important;
    display: inline-block !important;
}

@media (max-width: 768px) {
    .antet-iconite-aplicatie a {
        font-size: 22px !important;
    }
    .antet-iconite-aplicatie {
        gap: 15px !important;
    }
}

/* =========================================
   ASCUNDERE POZE ÎN FUNCȚIE DE DISPOZITIV (Gutenberg)
   ========================================= */
@media (max-width: 768px) {
    .ascunde-pe-mobil { 
        display: none !important; 
    }
}

@media (min-width: 769px) {
    .ascunde-pe-laptop { 
        display: none !important; 
    }
}

/* =========================================
   ASCUNDE TEXTUL "RO" (PĂSTREAZĂ DOAR STEAGUL WEGLOT)
   ========================================= */

/* Face textul literelor complet invizibil */
.weglot-language a,
li[class*="weglot"] a,
.wg-default a,
.wg-default .wg-li a {
    font-size: 0 !important; 
    color: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Protejează steagul să rămână vizibil și la dimensiunea corectă */
.weglot-language a img,
li[class*="weglot"] a img,
.wg-default a img,
.wg-default .wg-li a img {
    display: inline-block !important;
    width: 25px !important; /* Dimensiunea optimă pentru steag */
    height: auto !important;
    margin: 0 !important;
}

/* =========================================
   SOLUȚIA SUPREMĂ: AFIȘEAZĂ STRICT STEAGUL WEGLOT PE MOBIL
   ========================================= */

/* 1. Ascunde ABSOLUT TOATE elementele din interiorul linkului de traducere (texte, span-uri Astra) */
.ast-mobile-header-wrap li[class*="weglot"] a *,
.ast-mobile-header-wrap .weglot-language a *,
.ast-mobile-header-wrap .ast-builder-menu li[class*="weglot"] a span {
    display: none !important;
}

/* 2. Face textul liber (dacă există fără etichetă) invizibil */
.ast-mobile-header-wrap li[class*="weglot"] a,
.ast-mobile-header-wrap .weglot-language a {
    font-size: 0 !important;
    color: transparent !important;
    padding: 0 !important;
}

/* 3. Aduce înapoi la viață STRICT doar imaginea steagului */
.ast-mobile-header-wrap li[class*="weglot"] a img,
.ast-mobile-header-wrap .weglot-language a img {
    display: inline-block !important;
    width: 25px !important;
    height: auto !important;
    margin: 0 !important;
}

/* =========================================
   REPARARE SUPREMĂ MOBIL (ANTET + FOOTER)
   ========================================= */

html {
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

@media (max-width: 921px) {
    
    /* 1. REPARĂ FOOTER-UL PE iOS */
    .site-footer, 
    .site-footer *, 
    .ast-small-footer,
    .ast-small-footer * {
        font-size: 15px !important;
    }

    /* 2. REPARĂ ANTETUL PE ANDROID */
    .ast-mobile-header-wrap .site-branding img, 
    .ast-mobile-header-wrap .custom-logo-link img {
        width: 70px !important;
        max-width: 70px !important;
    }

    .ast-mobile-header-wrap svg, 
    .ast-mobile-header-wrap img:not([src*="logo"]) {
        width: 16px !important;
        height: auto !important;
    }

    .ast-mobile-header-wrap .site-header-section-right > *,
    .ast-mobile-header-wrap .ast-builder-menu-secondary {
        margin-left: 2px !important;
        margin-right: 2px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


/* Face alb textul pe butoanele de încărcare documente (fix-ul anterior) */
.um-field-type_file .um-button,
.um-field-type_image .um-button {
    color: #ffffff !important;
}

/* Face alb textul pe butoanele din directorul de membri (fix-ul pentru extensia Followers, așa cum apare în 16.07_2.jpg) */
.um-members .um-button {
    color: #ffffff !important;
}


/* Aliniere și stilizare pentru iconițele din antet */
.antet-iconite-aplicatie {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important; /* Aici reglezi distanța: cu cât crești numărul (ex: 35px, 40px), cu atât se depărtează */
}

/* Ascundem orice spațiu sau rând nou băgat de WordPress */
.antet-iconite-aplicatie br, 
.antet-iconite-aplicatie p {
    display: none !important;
}

.antet-iconite-aplicatie a {
    text-decoration: none !important;
    color: inherit !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    transition: transform 0.2s ease;
}

.antet-iconite-aplicatie a:hover {
    transform: scale(1.1);
    color: #0073aa !important;
}