/* ОБЩИЙ ТЁМНЫЙ СТИЛЬ */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #0d0d0f;
    color: #eee;
}

/* Контейнер страницы — как панель Telegram */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 15px;
    background: #141418;
    min-height: 100vh;
}

/* Заголовки */
h2 {
    margin-top: 0;
    font-size: 20px;
}

/* АВАТАР */
.avatar-box {
    width: 110px;
    height: 110px;
    background: #222;
    border-radius: 50%;
    margin: 15px 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ПОЛЯ ВВОДА (компактные, как Telegram) */
.input-field {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: none;
    border-radius: 6px;
    background: #1e1e22;
    color: #fff;
    font-size: 15px;
    outline: none;
}

/* КНОПКИ */
.save-btn,
.back-btn,
.upload-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.save-btn {
    background: #0a84ff;
    color: #fff;
}

.save-btn:hover {
    background: #0970d4;
}

.back-btn {
    background: #3a3a3f;
    color: #fff;
}

.back-btn:hover {
    background: #4a4a50;
}

/* PRIVACY — список строк */
.block {
    background: #1b1b20;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 12px;
}

.block div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Маленькая кнопка "Изменить" */
.privacy-btn {
    background: #2e2e33;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    color: #4da6ff;
    cursor: pointer;
    font-size: 14px;
}

.privacy-btn:hover {
    background: #3a3a40;
}

/* Модалка (оставил твою, только затемнил фон) */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
}

.modal-content {
    background: #1d1d22;
    padding: 25px;
    width: 280px;
    margin: 20% auto;
    border-radius: 10px;
    text-align: center;
}

.modal-content button {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.modal-content button:hover {
    background: #444;
}

.modal-content .cancel {
    background: #555;
}

@media (min-width: 800px) {
    /* На ПК — узкая панель слева */
    .container {
        margin-left: 0;
        border-right: 1px solid #222;
    }
}