/* GModLab 21.0.2 — полноценный кабинет пользователя. */
.profile-dashboard { padding-top: 42px; padding-bottom: 90px; }
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 28px 30px; background: linear-gradient(120deg,#141b16 0%,#101511 68%,rgba(168,255,62,.08) 100%); overflow: hidden; }
.profile-identity { display: flex; align-items: center; gap: 22px; min-width: 0; }
.profile-avatar-large { width: 86px; height: 86px; flex: 0 0 86px; display: grid; place-items: center; border: 1px solid rgba(168,255,62,.55); border-radius: 18px; background: #0a0e0b; box-shadow: inset 0 0 28px rgba(168,255,62,.06); color: var(--accent); font-family: var(--font-condensed),sans-serif; font-size: 38px; font-weight: 800; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-role,.profile-meta,.profile-verified,.profile-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.profile-verified { color: #c7d0c9; font-size: 12px; }.profile-verified svg,.profile-meta svg { width: 15px; color: var(--accent); }
.profile-identity h1 { margin: 7px 0 5px; font-family: var(--font-condensed),sans-serif; font-size: clamp(34px,4vw,54px); line-height: 1; }
.profile-identity p { max-width: 690px; margin: 0; color: var(--muted); }
.profile-meta { margin-top: 12px; color: #8e9991; font-size: 12px; }.profile-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero-actions { justify-content: flex-end; }.profile-hero-actions .php-button svg { width: 16px; }

.profile-stats { display: grid; grid-template-columns: repeat(5,1fr); margin: 16px 0 0; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow: hidden; }
.profile-stats article { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--border); }
.profile-stats article:last-child { border-right: 0; }.profile-stats article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: rgba(168,255,62,.08); color: var(--accent); }.profile-stats svg { width: 18px; }
.profile-stats strong,.profile-stats small { display: block; }.profile-stats strong { font-size: 21px; line-height: 1.1; }.profile-stats small { margin-top: 3px; color: var(--muted); }

.profile-tabs { position: sticky; top: 58px; z-index: 9; display: flex; gap: 4px; margin: 26px 0 18px; padding: 6px; border: 1px solid var(--border); border-radius: 8px; background: rgba(9,13,10,.94); backdrop-filter: blur(12px); overflow-x: auto; }
.profile-tabs a { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 5px; color: #aeb8b0; white-space: nowrap; }.profile-tabs a:hover,.profile-tabs a.active { background: #202822; color: #fff; }.profile-tabs a.active { box-shadow: inset 0 -2px var(--accent); }.profile-tabs span { color: var(--accent); font-size: 11px; }

.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 18px; align-items: start; }.profile-main-column,.profile-side-column { display: grid; gap: 18px; min-width: 0; }
.profile-block,.profile-completeness,.profile-settings { padding: 24px; scroll-margin-top: 125px; }
.profile-block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }.profile-block-head h2 { margin: 0 !important; font-size: 22px; }.profile-block-head > a:not(.php-button) { color: var(--accent); font-size: 12px; }.profile-block-head .php-kicker { display: block; margin-bottom: 5px; }
.profile-icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; }.profile-icon-button:hover { border-color: var(--accent); color: var(--accent); }.profile-icon-button svg { width: 16px; }

.profile-material-list { display: grid; gap: 7px; }.profile-material-list > a { display: grid; grid-template-columns: 38px minmax(0,1fr) auto auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid transparent; border-radius: 6px; background: #1b231d; color: inherit; }.profile-material-list > a:hover { border-color: #506044; background: #202a22; }
.profile-item-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 5px; background: #101511; color: var(--accent); }.profile-item-icon svg { width: 19px; }.profile-material-list strong,.profile-material-list small { display: block; }.profile-material-list small { margin-top: 3px; color: var(--muted); }.profile-item-metrics { display: flex; align-items: center; color: #89948c; font-size: 11px; white-space: nowrap; }.profile-item-metrics svg { width: 13px; margin-right: 4px; }

.profile-favorites-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.profile-favorites-grid a { display: grid; grid-template-columns: 70px minmax(0,1fr); align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; color: inherit; }.profile-favorites-grid a:hover { border-color: #59694d; }.profile-favorites-grid img { width: 70px; height: 52px; object-fit: cover; border-radius: 4px; }.profile-favorites-grid strong,.profile-favorites-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-favorites-grid small { margin-top: 4px; color: var(--muted); }

.profile-empty { display: grid; justify-items: center; padding: 38px 18px; border: 1px dashed #354138; border-radius: 7px; text-align: center; }.profile-empty > svg { width: 34px; height: 34px; color: #6e7c71; }.profile-empty h3 { margin: 12px 0 3px !important; }.profile-empty p { margin: 0 0 15px !important; color: var(--muted); }.profile-empty.compact { padding: 25px 15px; }

.profile-completeness .profile-block-head { margin-bottom: 13px; }.profile-completeness .profile-block-head strong { color: var(--accent); }.profile-progress { height: 7px; border-radius: 10px; background: #090d0a; overflow: hidden; }.profile-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#72be21,var(--accent)); }.profile-completeness ul { display: grid; gap: 9px; margin: 16px 0 !important; padding: 0 !important; list-style: none; }.profile-completeness li { display: flex; align-items: center; gap: 8px; margin: 0 !important; color: #7d8980; font-size: 12px; }.profile-completeness li.done { color: #c5cec7; }.profile-completeness li svg { width: 14px; color: var(--accent); }.profile-completeness > a { color: var(--accent); font-size: 12px; }

.profile-server-list,.profile-activity { display: grid; gap: 8px; }.profile-server-list article,.profile-activity a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 5px; background: #1a211c; color: inherit; }.profile-server-list article > div,.profile-activity a > div { min-width: 0; flex: 1; }.profile-server-list strong,.profile-server-list small,.profile-activity strong,.profile-activity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-server-list small,.profile-activity small { margin-top: 3px; color: var(--muted); }.server-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #69736b; }.server-dot.online { background: var(--accent); box-shadow: 0 0 8px rgba(168,255,62,.55); }.profile-server-list details { position: relative; }.profile-server-list summary { display: grid; place-items: center; cursor: pointer; color: #88938b; list-style: none; }.profile-server-list summary svg { width: 15px; }.profile-server-list details code { position: absolute; z-index: 2; right: 0; top: 26px; width: 270px; padding: 10px; border: 1px solid var(--border); border-radius: 5px; background: #090d0a; overflow-wrap: anywhere; }.profile-activity a:hover { background: #202922; }.profile-activity a > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 4px; background: #0f1511; color: var(--accent); }.profile-activity svg { width: 15px; }

.profile-settings { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 36px; margin-top: 18px; }.profile-settings h2 { margin: 5px 0 8px !important; }.profile-settings .php-form { max-width: none; }.profile-settings textarea { min-height: 105px; }

@media (max-width: 1050px) { .profile-stats { grid-template-columns: repeat(3,1fr); }.profile-stats article:nth-child(3) { border-right: 0; }.profile-stats article:nth-child(n+4) { border-top: 1px solid var(--border); }.profile-layout { grid-template-columns: minmax(0,1fr) 300px; }.profile-hero { align-items: flex-start; }.profile-hero-actions { max-width: 230px; } }
@media (max-width: 800px) { .profile-dashboard { padding-top: 24px; }.profile-hero { display: grid; padding: 22px; }.profile-hero-actions { max-width: none; justify-content: flex-start; }.profile-layout,.profile-settings { grid-template-columns: 1fr; }.profile-side-column { grid-template-columns: repeat(2,minmax(0,1fr)); }.profile-side-column > :last-child { grid-column: 1/-1; }.profile-tabs { top: 54px; }.profile-settings { gap: 18px; } }
@media (max-width: 580px) { .profile-identity { align-items: flex-start; }.profile-avatar-large { width: 62px; height: 62px; flex-basis: 62px; border-radius: 12px; font-size: 28px; }.profile-meta { display: grid; }.profile-stats { grid-template-columns: repeat(2,1fr); }.profile-stats article { border-top: 1px solid var(--border); }.profile-stats article:first-child,.profile-stats article:nth-child(2) { border-top: 0; }.profile-stats article:nth-child(2n) { border-right: 0; }.profile-stats article:nth-child(3) { border-right: 1px solid var(--border); }.profile-stats article:last-child { grid-column: 1/-1; }.profile-side-column { grid-template-columns: 1fr; }.profile-side-column > :last-child { grid-column: auto; }.profile-material-list > a { grid-template-columns: 34px minmax(0,1fr) auto; }.profile-item-metrics { display: none; }.profile-favorites-grid { grid-template-columns: 1fr; }.profile-block,.profile-completeness,.profile-settings { padding: 18px; }.profile-block-head { align-items: flex-start; }.profile-hero-actions .php-button { flex: 1; justify-content: center; }.profile-identity p { display: none; } }
