/* ФИКС ЛЮФТА ЭКРАНА */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
    margin: 0; padding: 0;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}

/* СТИЛИ ДЛЯ ТАБОВ (ПЕРЕКЛЮЧАТЕЛЕЙ) */
.profile-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    position: sticky; top: 0; background: #0F1520; z-index: 10; /* Липнет к верху */
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.tab-btn.active {
    color: #DCD6E8;
    border-bottom: 2px solid #DCD6E8;
}

/* Скрываем контент неактивных табов */
.tab-content { display: none; padding: 20px 0; }
.tab-content.active { display: block; }
.tab-content { animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* СТИЛИ ДЛЯ АЧИВОК (NV BLOCKS) */
.achieve-card {
    background: #151C29;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.achieve-img {
    width: 100%; height: 150px; object-fit: cover;
}
.achieve-body { padding: 15px; }
.achieve-title { font-weight: bold; color: #fff; margin-bottom: 5px; font-size: 16px; }
.achieve-text { font-size: 13px; color: #aaa; line-height: 1.5; }

:root {
    --bg-main: #0F1520;
    --card-bg: #151C29;
    --accent: #DCD6E8;
    --text: #D1C7B0;
    --text-dim: #8F8876;
    --green: #63756D;
    --gold: #FFD700;
}

body {
    background-color: var(--bg-main);
    color: var(--text);
    font-family: -apple-system, sans-serif;
    margin: 0; padding: 0;
    line-height: 1.5;
}

.container { padding: 16px; max-width: 600px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* Кнопки */
.btn {
    display: block; width: 100%; padding: 15px; border-radius: 10px;
    font-weight: 600; text-align: center; border: none; cursor: pointer;
    background: var(--accent); color: var(--bg-main);
}
.btn-outline { background: transparent; border: 1px solid var(--green); color: var(--text); }
.btn-sm { padding: 8px; font-size: 12px; width: auto; display: inline-block; }

/* Карточки */
.master-card {
    display: flex; gap: 15px; background: var(--card-bg);
    padding: 15px; border-radius: 12px; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}
.master-card.sub-pro_plus { border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(255,215,0,0.1); }

.mc-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.badge-vip { background: var(--gold); color: #000; font-size: 10px; padding: 2px 5px; border-radius: 4px; font-weight: bold; }

/* Галерея */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.gallery-item { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; }

/* NV Block */
.nv-block {
    background-size: cover; background-position: center;
    padding: 40px 20px; border-radius: 12px; margin-top: 30px;
    position: relative; overflow: hidden;
}
.nv-block::before {
    content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.nv-block * { position: relative; z-index: 2; }

/* Формы */
.input-field {
    width: 100%; padding: 15px; background: #252D3A; border: 1px solid #444;
    color: white; border-radius: 8px; margin-bottom: 15px; font-size: 16px;
}