/* Profile — extends network.css hero + cards */

body.page-user-profile .wrap:has(.net-hero) {
    max-width: 1320px;
}

/* Avatar: round but same net-logo frame */
.up-profile-av {
    border-radius: 50%;
    position: relative;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--ac), #5a67b5);
}

.up-profile-av img {
    border-radius: 50%;
}

.up-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 8px;
    border-radius: 5px;
    line-height: 1;
    vertical-align: middle;
}

.up-tag.admin { background: #e84848; color: #fff; }
.up-tag.mod { background: var(--ac); color: #fff; }

.page-user-profile .net-owner strong {
    color: var(--ac);
    font-weight: 800;
}

.page-user-profile .net-kpi-link {
    text-decoration: none;
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s;
}

.page-user-profile .net-kpi-link:hover {
    color: var(--ac);
    border-color: rgba(101, 116, 205, 0.25);
}

.page-user-profile button.net-kpi-link {
    font-family: inherit;
}

.up-kpi-live strong {
    color: var(--green);
}

.up-bio {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text2);
    max-width: 640px;
}

/* Narrower left column */
.up-profile-grid {
    grid-template-columns: 228px minmax(0, 1fr);
}

@media (max-width: 960px) {
    .up-profile-grid {
        grid-template-columns: 1fr;
    }
}

.up-streak-body .sc-val {
    color: #e06c6c;
}

.up-streak-d {
    font-size: 1.2rem;
    color: #e06c6c;
    margin-left: 2px;
}

/* XP + rings */
.up-xp-bar {
    height: 5px;
    background: var(--bg3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.up-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ac), var(--green));
    border-radius: 4px;
}

.up-xp-hint {
    margin: 0 0 12px;
    font-size: 0.68rem;
    color: var(--muted);
    font-weight: 600;
}

.up-rings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.up-ring-wrap {
    position: relative;
    text-align: center;
}

.up-ring {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    display: block;
    transform: rotate(-90deg);
}

.up-ring-bg {
    fill: none;
    stroke: var(--bg3);
    stroke-width: 3.5;
}

.up-ring-fg {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.up-ring-votes { stroke: var(--green); }
.up-ring-comments { stroke: var(--ac); }

.up-ring-n {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
}

.up-ring-l {
    display: block;
    margin-top: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.up-badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.up-badge-pill {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bc) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--bc) 28%, transparent);
    cursor: default;
    flex-shrink: 0;
}

.page-user-profile .net-actions .btn svg {
    color: var(--ac);
}

/* Right column lists (home-style rows) */
.up-list-card {
    padding: 0;
}

.up-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.up-list-head h2 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
}

.up-list-tag {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg2);
    white-space: nowrap;
}

.up-list-empty {
    padding: 16px;
}

.up-list-empty p {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.page-user-profile .up-list-empty .btn svg {
    color: var(--ac);
}

.page-user-profile .srv-r {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.page-user-profile .srv-r:last-of-type {
    border-bottom: none;
}

.page-user-profile a.srv-r:hover {
    background: var(--bg2);
}

.page-user-profile .srv-mid {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.page-user-profile .srv-line1 {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.page-user-profile .srv-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.page-user-profile .srv-dot.on { background: var(--green); }
.page-user-profile .srv-dot.off { background: var(--red); }

.page-user-profile .srv-nm {
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.page-user-profile a.srv-r:hover .srv-nm {
    color: var(--ac);
}

.page-user-profile .srv-line2 {
    font-family: var(--mono);
    font-size: 0.58rem;
    color: var(--text2);
    margin-top: 2px;
    padding-left: 12px;
}

.page-user-profile .srv-right {
    flex-shrink: 0;
    text-align: right;
}

.page-user-profile .srv-pl {
    font-family: var(--mono);
    font-size: 0.72rem;
}

.page-user-profile .srv-pl b {
    font-weight: 700;
    color: var(--text);
}

.page-user-profile .srv-pl span {
    color: var(--text2);
}

.page-user-profile .srv-sc {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--ac);
}

/* Server row with copy */
.up-srv-line {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.up-srv-line:last-child {
    border-bottom: none;
}

.up-srv-line .up-srv-r {
    flex: 1;
    border-bottom: none;
}

.up-srv-game {
    border-radius: 4px;
    flex-shrink: 0;
}

.up-srv-line .up-copy {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.up-srv-line .up-copy:hover {
    background: var(--bg2);
    color: var(--ac);
}

/* Network rows (homepage style) */
.page-user-profile .up-net-r {
    align-items: center;
    padding-top: 9px;
    padding-bottom: 9px;
}

.page-user-profile .up-net-r .srv-line1 {
    gap: 4px;
}

.page-user-profile .up-net-r .srv-nm {
    flex-shrink: 0;
    max-width: 58%;
}

.page-user-profile .up-net-r .srv-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.up-net-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg2);
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-net-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-net-pts {
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--ac);
    white-space: nowrap;
    flex-shrink: 0;
}

.up-net-motto {
    color: var(--text2);
    font-size: 0.62rem;
    line-height: 1.4;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-net-games {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.up-gc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px 4px 5px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.58rem;
    line-height: 1;
}

.up-gc img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}

.up-gc b {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text);
    font-size: 0.64rem;
}

/* Toast */
.up-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    padding: 10px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--mono);
    background: var(--bg1);
    border: 1px solid var(--ac);
    border-radius: 8px;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
}

.up-toast.show {
    opacity: 1;
    transform: translateY(0);
}
