Загрузка данных


                <?php if ($is_logged_in): ?>
                    <a class="navimg" style="cursor: pointer;" id="openAccountsBtn"><img src="icons/icon-icons-profil-white.svg" alt="Профиль"></a>
                <?php else: ?>
                    <a class="navimg" href="register.html"><img src="icons/icon-icons-profil-white.svg" alt="Регистрация"></a>
                <?php endif; ?>


            <div id="accountsModal" class="modal">
                <div class="modal-content">
                    <button id="closeAccountsBtn" class="close-btn">&times;</button>
                    <div class="modal-content-div">
                        <h3>Ваши аккаунты</h3>
                        <div class="accounts-list">
                            <div class="account-item active">
                                <div class="account-info">
                                    <div class="acc-avatar placeholder">A</div>
                                    <div>
                                        <h5>Основной аккаунт</h5>
                                        <small class="neon-text">В сети</small>
                                    </div>
                                </div>
                                <button class="btn-go" onclick="window.location.href='profil.php'">В профиль</button>
                            </div>
                            <div class="account-item">
                                <div class="account-info">
                                    <div class="acc-avatar placeholder" style="background: #333;">C</div>
                                    <div>
                                        <h5>Компания ООО</h5>
                                        <small>Офлайн</small>
                                    </div>
                                </div>
                                <button class="btn-delete" title="Удалить аккаунт">&times;</button>
                            </div>
                        </div>
                        <button class="btn-add-account" onclick="window.location.href='register.html'">+ Добавить аккаунт</button>
                        <button class="btn-logout" onclick="window.location.href='vendor/logout.php'">Выйти из системы</button>
                    </div>
                </div>
            </div>

.accounts-modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px); /* Размытие заднего фона */
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.accounts-modal-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.accounts-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: 0.3s;
}

.accounts-close-x:hover { color: #fff; }

.accounts-header h3 {
    margin: 0 0 15px 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
    color: #ccc;
}

.divider {

    height: 1px;

    background: linear-gradient(90deg, #00ffcc 0%, transparent 100%);

    margin-bottom: 25px;

}



/* Карточка аккаунта */

.acc-card {

    display: flex;

    align-items: center;

    background: rgba(255,255,255,0.03);

    padding: 15px;

    margin-bottom: 15px;

    border: 1px solid transparent;

}

.acc-card.active {

    border-color: rgba(0, 255, 204, 0.3);

}



.acc-avatar {

    width: 45px;

    height: 45px;

    background: #00ffcc;

    color: #000;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: bold;

    margin-right: 15px;

}



.acc-details { flex-grow: 1; }

.acc-name { margin: 0; font-weight: 600; color: #fff; }

.acc-status { margin: 0; font-size: 0.75rem; color: #00ffcc; }



.acc-btn-enter {

    background: none;

    border: 1px solid #444;

    color: #fff;

    padding: 5px 12px;

    cursor: pointer;

    font-size: 0.8rem;

}

.acc-btn-enter:hover { border-color: #00ffcc; }



/* Кнопка добавить */

.acc-add-new {

    width: 100%;

    background: none;

    border: 1px dashed #333;

    color: #888;

    padding: 12px;

    cursor: pointer;

    margin-top: 10px;

    transition: 0.3s;

}

.acc-add-new:hover { border-color: #00ffcc; color: #fff; }



/* Футер */

.accounts-footer { margin-top: 25px; text-align: center; }

.acc-logout-link {

    background: none;

    border: none;

    color: #ff4b4b;

    text-decoration: underline;

    cursor: pointer;

    font-size: 0.85rem;
    opacity: 0.7;
}

.acc-logout-link:hover { opacity: 1; }