/* =========================================================
   1. TAB-UL LATERAL (REPARATIE LATIME & STIL NEGRU)
   ========================================================= */
#custom-nl-trigger {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    width: auto !important;        /* Limitează lățimea strict la text */
    height: auto !important;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background-color: #111111;     /* Negru minimalist */
    color: #ffffff;
    padding: 16px 8px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    z-index: 9998;
    box-shadow: -3px 0 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#custom-nl-trigger:hover {
    background-color: #2a2a2a;
    transform: translateY(-50%) translateX(-2px);
}

/* =========================================================
   2. OVERLAY SI POPUP (DESIGN ALB-NEGRU ELEGANT)
   ========================================================= */
#custom-nl-overlay {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);     /* Efect discret de blur pe fundal */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#custom-nl-overlay.custom-nl-hidden {
    opacity: 0;
    pointer-events: none;
}

#custom-nl-modal {
    background-color: #121212;      /* Fundal negru mat */
    border: 1px solid #2e2e2e;      /* Contur fin gri */
    padding: 40px 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Buton de închidere (X) */
#custom-nl-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #222222;
    color: #888888;
    border: 1px solid #333333;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#custom-nl-close:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Tipografie */
.custom-nl-content h2 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.custom-nl-content h2 .highlight {
    color: #ffffff;
    text-decoration: underline;     /* Evidențiere minimalistă pentru 5% */
    text-underline-offset: 4px;
}

.custom-nl-content p {
    margin-bottom: 28px;
    color: #999999;
    font-size: 14px;
    line-height: 1.5;
}

/* Formular */
.custom-nl-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.custom-nl-input-group input {
    flex: 1;
    padding: 13px 16px;
    border: 1px solid #333333;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.custom-nl-input-group input:focus {
    border-color: #ffffff;
}

.custom-nl-input-group button {
    padding: 13px 22px;
    background-color: #ffffff;     /* Buton alb simplu */
    color: #000000;                 /* Text negru */
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-nl-input-group button:hover {
    background-color: #d9d9d9;
}

/* =========================================================
   3. ADAPTARE PENTRU MOBIL (< 768px)
   ========================================================= */
@media (max-width: 768px) {
    /* Transformăm tab-ul vertical într-un buton plutitor orizontal în dreapta-jos */
    #custom-nl-trigger {
        top: auto !important;
        bottom: 20px !important;
        right: 15px !important;
        transform: none !important;
        writing-mode: horizontal-tb !important;
        padding: 10px 18px;
        border-radius: 25px;
        font-size: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }

    #custom-nl-trigger:hover {
        transform: translateY(-2px) !important;
    }

    #custom-nl-modal {
        padding: 30px 20px;
        width: 92%;
    }

    .custom-nl-content h2 {
        font-size: 20px;
    }

    /* Stivuim câmpul de text și butonul vertical pe mobil */
    .custom-nl-input-group {
        flex-direction: column;
    }

    .custom-nl-input-group button {
        width: 100%;
    }
}