/* Unified profile (Steam-like) */

.u-profile {
    padding: 36px 0 64px;
}

.u-profile-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.u-profile-hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(11, 11, 11, 0.65);
    box-shadow: 0 14px 50px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

.u-profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 260px at 20% 0%, rgba(159, 44, 28, 0.35) 0%, rgba(0,0,0,0) 60%),
        radial-gradient(700px 240px at 80% 40%, rgba(255, 243, 215, 0.10) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    filter: blur(0px);
    transform: scale(1.02);
    pointer-events: none;
}

.u-profile-hero-inner {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.u-profile-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.u-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.65);
    background: rgba(0,0,0,0.25);
    flex: 0 0 auto;
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.u-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.u-profile-head {
    min-width: 0;
}

.u-profile-nickname {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.u-profile-title {
    color: rgba(255,255,255,0.72);
    margin-top: 6px;
    font-size: 12px;
}

.u-profile-subline {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.u-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,0,0,0.35);
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    white-space: nowrap;
}

.u-pill-primary {
    background: rgba(159, 44, 28, 0.88);
    border-color: rgba(159, 44, 28, 0.25);
}

.u-profile-hero-right {
    display: grid;
    gap: 10px;
    justify-items: end;
}
.u-profile-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.u-profile-hero-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.u-hero-mini {
    min-width: 140px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
}
.u-hero-mini-label {
    color: rgba(255,255,255,0.62);
    font-size: 11px;
    font-weight: 800;
}
.u-hero-mini-value {
    margin-top: 6px;
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    font-weight: 900;
}

.u-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.u-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.u-tab {
    border: 1px solid rgba(0,0,0,0.35);
    background: rgba(11,11,11,0.55);
    color: rgba(255,255,255,0.8);
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.u-tab.is-active {
    background: rgba(159, 44, 28, 0.35);
    border-color: rgba(159, 44, 28, 0.6);
    color: #fff;
}

.u-panel {
    display: none;
}
.u-panel.is-active {
    display: block;
}

.u-card,
.u-side-card {
    border-radius: 10px;
    background: rgba(11, 11, 11, 0.60);
    box-shadow: 0 10px 34px rgba(0,0,0,0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
    padding: 16px;
}

.u-card + .u-card {
    margin-top: 12px;
}

.u-card-title {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
}

.u-card-text {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    line-height: 1.6;
}

.u-card-actions {
    margin-bottom: 12px;
}

.u-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.u-stat {
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,0,0,0.35);
    padding: 12px;
}

.u-stat-num {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.u-stat-label {
    margin-top: 6px;
    color: rgba(255,255,255,0.62);
    font-size: 11px;
}

.u-list {
    display: grid;
    gap: 10px;
}

.u-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
}

.u-row-title {
    color: rgba(255,255,255,0.95);
    font-weight: 800;
    font-size: 13px;
}

.u-row-sub {
    margin-top: 3px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}

.u-row-actions {
    display: flex;
    gap: 10px;
}

.u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.35);
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    white-space: nowrap;
}

.u-btn-primary {
    background: linear-gradient(180deg, #be4633 0%, #9f2c1c 100%);
    color: #fff;
}

.u-btn-secondary {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}

.u-btn-danger {
    background: rgba(190, 70, 51, 0.15);
    border-color: rgba(159, 44, 28, 0.5);
    color: rgba(255,255,255,0.9);
}

.u-empty {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.u-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.u-subtitle {
    color: rgba(255,255,255,0.9);
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 8px;
}

/* Wallet */
.u-wallet-balance {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,0,0,0.35);
}
.u-wallet-balance-num {
    color: #fff;
    font-weight: 900;
    font-size: 22px;
}
.u-wallet-balance-sub {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}
.u-wallet-note {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.35);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
}
.u-wallet-note-success {
    border-color: rgba(46, 160, 67, 0.55);
    background: rgba(46, 160, 67, 0.12);
}
.u-wallet-note-error {
    border-color: rgba(159, 44, 28, 0.6);
    background: rgba(159, 44, 28, 0.18);
}
.u-wallet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.u-wallet-box {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,0,0,0.35);
}
.u-wallet-form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}
.u-field span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 700;
}
.u-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.35);
    background: rgba(11,11,11,0.45);
    color: rgba(255,255,255,0.9);
    padding: 10px 12px;
    outline: none;
    font-size: 12px;
}
.u-input:focus {
    border-color: rgba(159, 44, 28, 0.6);
    box-shadow: 0 0 0 2px rgba(159, 44, 28, 0.15);
}
.u-hint {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.4;
}
.u-wallet-amount {
    color: rgba(255,255,255,0.9);
    font-weight: 900;
    font-size: 12px;
}

.u-profile-side {
    display: grid;
    gap: 12px;
}

.u-side-title {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 12px;
}

.u-side-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.u-side-row:last-child { border-bottom: none; }

.u-link {
    color: rgba(255,243,215,0.9);
    text-decoration: none;
}
.u-link:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .u-profile-grid {
        grid-template-columns: 1fr;
    }
    .u-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .u-split { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .u-wallet-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .u-profile-shell { padding: 0 16px; }
    .u-profile-hero-inner { flex-direction: column; align-items: flex-start; }
    .u-profile-hero-right { justify-items: start; width: 100%; }
    .u-profile-hero-actions { justify-content: flex-start; width: 100%; }
    .u-profile-hero-meta { justify-content: flex-start; width: 100%; }
}

