/* Единый современный стиль профиля и настроек */
.profile-wrapper, .profile-settings-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 92px 18px 60px;
}
.profile-header {
    background: linear-gradient(135deg, rgba(28,38,58,.82), rgba(12,18,30,.86));
    border-color: rgba(148,163,184,.16);
    border-radius: 18px;
    padding: 24px;
    align-items: flex-start;
    box-shadow: 0 24px 65px rgba(0,0,0,.32);
}
.profile-header::before { height: 3px; background: linear-gradient(90deg,#4cc2ff,#a855f7,#4cc2ff); }
.profile-avatar { width: 92px; height: 92px; font-size: 2.1rem; border-width: 2px; box-shadow: 0 10px 30px rgba(76,194,255,.2); }
.profile-info h1 { font-size: 1.7rem; letter-spacing: -.02em; }
.profile-info .bio { color: #94a3b8; line-height: 1.55; }
.profile-stats { gap: 8px; flex-wrap: wrap; }
.stat-item { min-width: 84px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(148,163,184,.1); }
.stat-value { color: #fff; font-size: 1.1rem; }
.stat-label { color: #94a3b8; font-size: .67rem; }
.profile-actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: flex-end; }
.profile-actions .btn { border-radius: 9px; }
.tabs-container { border-radius: 16px; border-color: rgba(148,163,184,.13); background: rgba(10,16,27,.68); }
.tabs-header { padding: 12px 16px; }

/* Настройки */
.settings-hero {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 18px; padding: 20px 22px; border: 1px solid rgba(148,163,184,.14); border-radius: 16px;
    background: linear-gradient(135deg, rgba(28,38,58,.72), rgba(12,18,30,.82));
}
.settings-eyebrow { color: #7dd3fc; font-size: .67rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.settings-hero h1 { margin: 6px 0 4px; color: #fff; font-size: 1.65rem; }
.settings-hero p { margin: 0; color: #94a3b8; font-size: .82rem; }
.settings-profile-link { color: #c4b5fd; text-decoration: none; font-size: .78rem; padding: 8px 11px; border: 1px solid rgba(167,139,250,.25); border-radius: 8px; }
.settings-profile-link:hover { background: rgba(167,139,250,.1); color: #fff; }
.settings-container { min-height: 0; border-radius: 16px; border-color: rgba(148,163,184,.14); background: rgba(10,16,27,.68); }
.settings-layout { grid-template-columns: 225px minmax(0,1fr); }
.settings-nav { padding: 12px; }
.settings-nav .nav-item { border-left: 0; border-radius: 8px; margin-bottom: 3px; padding: 10px 12px; font-size: .82rem; }
.settings-nav .nav-item.active { background: rgba(76,194,255,.1); color: #7dd3fc; }
.settings-content { padding: 24px; min-width: 0; }
.section-title { font-size: 1.15rem; margin-bottom: 18px; padding-bottom: 11px; }
.avatar-upload { border-radius: 13px; border-color: rgba(148,163,184,.16); background: rgba(255,255,255,.025); padding: 16px; }
.form-grid { gap: 14px; }
.form-input { background: rgba(4,9,17,.45); border-color: rgba(148,163,184,.18); border-radius: 9px; }
.form-input:focus { border-color: rgba(76,194,255,.55); box-shadow: 0 0 0 3px rgba(76,194,255,.1); }
.btn-sm { border-radius: 8px; }
#section-integrations > div { align-items: stretch; }
#section-integrations .btn-sm, #section-integrations .btn-sm.btn-primary, #section-integrations .btn-sm.btn-ghost {
    background: rgba(255,255,255,.035); border: 1px solid rgba(148,163,184,.18); color: #cbd5e1;
    padding: 9px 12px; border-radius: 9px;
}
#section-integrations .btn-sm:hover { border-color: rgba(76,194,255,.4); color: #fff; background: rgba(76,194,255,.07); }
@media (max-width: 760px) {
    .profile-wrapper, .profile-settings-wrapper { padding-top: 118px; }
    .profile-header { flex-direction: column; }
    .profile-actions { justify-content: flex-start; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-nav { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(148,163,184,.1); }
    .settings-nav .nav-item { white-space: nowrap; margin-bottom: 0; }
}

/* Профиль: статистика в строку, аккуратная шапка */
.profile-header { flex-wrap: wrap; row-gap: 16px; }
.profile-info { flex: 1 1 340px; }
.profile-stats { flex-wrap: nowrap; gap: 7px; }
.profile-stats .stat-item { min-width: 72px; padding: 7px 9px; }
.profile-actions { flex: 0 0 auto; }
.dev-level-widget { max-width: 340px !important; flex: 0 1 340px; }
@media (max-width: 980px) {
    .profile-wrapper, .profile-settings-wrapper { padding-top: calc(var(--site-header-bottom, 98px) + 12px); }
    .profile-stats { flex-wrap: wrap; }
    .dev-level-widget { flex-basis: 100%; }
}

.account-danger { margin-top: 26px; padding: 15px; border: 1px solid rgba(248,113,113,.25); border-radius: 12px; background: rgba(248,113,113,.05); }
.account-danger strong { color: #fca5a5; font-size: .9rem; }
.account-danger p { margin: 4px 0 11px; color: #94a3b8; font-size: .76rem; line-height: 1.5; }
.account-danger form { display: flex; gap: 7px; flex-wrap: wrap; }
.account-danger input { flex: 1 1 160px; min-width: 0; padding: 9px 10px; border-radius: 8px; border: 1px solid rgba(248,113,113,.22); background: rgba(4,9,17,.55); color: #e5edf9; font: inherit; font-size: .78rem; }
.btn-danger { background: rgba(248,113,113,.16); border: 1px solid rgba(248,113,113,.3); color: #fca5a5; }
