.profile-page {
    background:
        linear-gradient(180deg, rgba(1, 4, 9, 0.76), rgba(1, 5, 11, 0.94)),
        url("/assets/images/backgrounds/store-cosmos-preview.png") center top / cover fixed,
        #03070d;
}

.profile-page .profile-panel .panel-body {
    padding: 0;
    line-height: 1.45;
}

.profile-dossier-shell {
    display: grid;
    gap: 14px;
}

.profile-dossier-shell .profile-dossier-hero,
.profile-dossier-shell .profile-command-dock,
.profile-dossier-shell .profile-intel-card,
.profile-dossier-shell .profile-visible-intel,
.profile-dossier-shell .profile-street-talk,
.profile-dossier-shell .profile-public-panel,
.profile-dossier-shell .profile-edit-tools,
.profile-dossier-shell .profile-expand {
    border: 1px solid rgba(74, 163, 255, 0.24);
    background: rgba(3, 8, 15, 0.78);
    box-shadow: 0 0 0 1px rgba(74, 163, 255, 0.04) inset, 0 18px 46px rgba(0, 0, 0, 0.32);
}

.profile-dossier-shell .profile-dossier-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    overflow: hidden;
    min-height: 420px;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(3, 8, 15, 0.98) 0%, rgba(3, 8, 15, 0.74) 50%, rgba(3, 8, 15, 0.9) 100%),
        radial-gradient(circle at 74% 42%, rgba(74, 163, 255, 0.2), transparent 36%),
        radial-gradient(circle at 74% 42%, #234d86 0 15%, #102947 25%, #061424 42%, transparent 43%),
        radial-gradient(ellipse at 78% 72%, rgba(60, 190, 255, 0.14), transparent 44%),
        #02060c;
}

.profile-dossier-shell.profile-planet-earth .profile-dossier-hero {
    background:
        linear-gradient(90deg, rgba(3, 8, 15, 0.99) 0%, rgba(3, 8, 15, 0.84) 42%, rgba(3, 8, 15, 0.38) 72%, rgba(3, 8, 15, 0.64) 100%),
        url("/assets/images/backgrounds/profiles/earth-profile-bg.png") right center / cover no-repeat,
        #02060c;
}

.profile-dossier-shell.profile-planet-mars .profile-dossier-hero {
    background:
        linear-gradient(90deg, rgba(3, 8, 15, 0.99) 0%, rgba(3, 8, 15, 0.84) 42%, rgba(3, 8, 15, 0.38) 72%, rgba(3, 8, 15, 0.64) 100%),
        url("/assets/images/backgrounds/profiles/mars-profile-bg.png") right center / cover no-repeat,
        #02060c;
}

.profile-dossier-shell.profile-planet-venus .profile-dossier-hero {
    background:
        linear-gradient(90deg, rgba(3, 8, 15, 0.99) 0%, rgba(3, 8, 15, 0.86) 42%, rgba(3, 8, 15, 0.42) 72%, rgba(3, 8, 15, 0.68) 100%),
        url("/assets/images/backgrounds/profiles/venus-profile-bg.png") right center / cover no-repeat,
        #02060c;
}

.profile-dossier-shell .profile-dossier-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(transparent 0 31px, rgba(74, 163, 255, 0.055) 32px),
        linear-gradient(90deg, transparent 0 31px, rgba(74, 163, 255, 0.045) 32px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 82%);
}

.profile-dossier-shell .profile-dossier-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 0 58%, rgba(255, 255, 255, 0.04) 58.2%, transparent 58.8%),
        linear-gradient(102deg, transparent 0 66%, rgba(74, 163, 255, 0.08) 66.2%, transparent 66.8%);
    opacity: 0.72;
}

.profile-dossier-shell .profile-planet-band,
.profile-dossier-shell .profile-dossier-grid,
.profile-dossier-shell .profile-command-dock,
.profile-dossier-shell .profile-intel-layout,
.profile-dossier-shell .profile-public-panel {
    position: relative;
    z-index: 1;
}

.profile-dossier-shell .profile-planet-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
    color: #8db8e8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.profile-dossier-shell .profile-planet-band strong,
.profile-dossier-shell .profile-kicker {
    color: #4aa3ff;
}

.profile-dossier-shell .profile-dossier-grid {
    display: block;
    max-width: 1060px;
    margin: 0 auto;
    text-align: center;
}

.profile-dossier-shell .profile-title-row {
    display: block;
}

.profile-dossier-shell .player-name {
    margin: 0;
    color: #f2f7ff;
    font-size: clamp(52px, 7vw, 96px);
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow: 0 0 22px rgba(74, 163, 255, 0.22);
}

.profile-dossier-shell .profile-warpaint-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.profile-dossier-shell .profile-warpaint {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 900;
    text-transform: none;
}

.profile-dossier-shell .profile-warpaint.is-positive {
    color: #ffd86b;
    text-shadow: 0 0 12px rgba(255, 216, 107, 0.18);
}

.profile-dossier-shell .profile-warpaint.is-negative {
    color: #ff5f8d;
    text-shadow: 0 0 12px rgba(255, 95, 141, 0.2);
}

.profile-dossier-shell .profile-tagline {
    margin: 18px 0 0;
    color: #f5dd75;
    font-size: 20px;
    font-style: italic;
    font-weight: 800;
    text-align: center;
}

.profile-dossier-shell .profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 22px;
}

.profile-dossier-shell .profile-chip-row span {
    border: 1px solid rgba(74, 163, 255, 0.24);
    background: rgba(7, 18, 33, 0.78);
    color: #b8d3f2;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-dossier-shell .profile-command-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.profile-dossier-shell .profile-command-dock button,
.profile-dossier-shell .profile-command-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(255, 0, 58, 0.68);
    background: linear-gradient(180deg, #d1002f, #780018);
    color: #fff;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.profile-dossier-shell .profile-command-dock button.secondary,
.profile-dossier-shell .profile-command-link.secondary {
    border-color: rgba(74, 163, 255, 0.42);
    background: rgba(7, 22, 42, 0.9);
    color: #8cc4ff;
}

.profile-dossier-shell .profile-intel-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.profile-dossier-shell .profile-hero-intel {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.profile-dossier-shell .profile-intel-card,
.profile-dossier-shell .profile-public-panel {
    padding: 18px;
}

.profile-dossier-shell .profile-hero-intel .profile-intel-card {
    min-height: 112px;
    background: rgba(3, 8, 15, 0.72);
    backdrop-filter: blur(2px);
}

.profile-dossier-shell .profile-intel-card.primary {
    border-color: rgba(255, 216, 107, 0.34);
    background: linear-gradient(180deg, rgba(29, 22, 5, 0.52), rgba(3, 8, 15, 0.82));
}

.profile-dossier-shell .profile-kicker,
.profile-dossier-shell .profile-module-head {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-dossier-shell .profile-intel-card strong {
    display: block;
    margin-top: 8px;
    color: #f3f8ff;
    font-size: clamp(18px, 1.2vw, 24px);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dossier-shell .profile-intel-card .profile-money-value {
    font-size: clamp(16px, 1.04vw, 22px);
    letter-spacing: 0;
}

.profile-dossier-shell .profile-intel-card span {
    display: block;
    margin-top: 8px;
    color: #8fa8c8;
}

.profile-dossier-shell .profile-visible-intel,
.profile-dossier-shell .profile-street-talk,
.profile-dossier-shell .profile-public-panel,
.profile-dossier-shell .profile-expand {
    padding: 18px;
}

.profile-dossier-shell .profile-visible-grid {
    gap: 14px;
}

.profile-dossier-shell .profile-intel-column,
.profile-dossier-shell .profile-street-talk-item,
.profile-dossier-shell .profile-editor-box,
.profile-dossier-shell .profile-image-under-heading {
    border-color: rgba(74, 163, 255, 0.16);
    background: rgba(3, 8, 15, 0.68);
}

.profile-dossier-shell .profile-module-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    color: #4aa3ff;
    letter-spacing: 0.1em;
}

.profile-dossier-shell .profile-module-head strong {
    color: #ffd86b;
}

.profile-dossier-shell .profile-public-copy {
    color: #8fa8c8;
}

@media (max-width: 1300px) {
    .profile-dossier-shell .profile-intel-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .profile-dossier-shell .profile-intel-layout,
    .profile-dossier-shell .profile-command-dock {
        grid-template-columns: 1fr;
    }

    .profile-dossier-shell .profile-dossier-hero {
        min-height: 560px;
        padding: 20px;
        background:
            linear-gradient(180deg, rgba(3, 8, 15, 0.98), rgba(3, 8, 15, 0.82)),
            radial-gradient(circle at 50% 78%, rgba(74, 163, 255, 0.22), transparent 42%),
            radial-gradient(circle at 50% 78%, #234d86 0 17%, #102947 29%, #061424 50%, transparent 51%),
            #02060c;
    }

    .profile-dossier-shell.profile-planet-earth .profile-dossier-hero {
        background:
            linear-gradient(180deg, rgba(3, 8, 15, 0.98) 0%, rgba(3, 8, 15, 0.82) 48%, rgba(3, 8, 15, 0.58) 100%),
            url("/assets/images/backgrounds/profiles/earth-profile-bg.png") 72% center / cover no-repeat,
            #02060c;
    }

    .profile-dossier-shell.profile-planet-mars .profile-dossier-hero {
        background:
            linear-gradient(180deg, rgba(3, 8, 15, 0.98) 0%, rgba(3, 8, 15, 0.82) 48%, rgba(3, 8, 15, 0.58) 100%),
            url("/assets/images/backgrounds/profiles/mars-profile-bg.png") 72% center / cover no-repeat,
            #02060c;
    }

    .profile-dossier-shell.profile-planet-venus .profile-dossier-hero {
        background:
            linear-gradient(180deg, rgba(3, 8, 15, 0.98) 0%, rgba(3, 8, 15, 0.82) 48%, rgba(3, 8, 15, 0.58) 100%),
            url("/assets/images/backgrounds/profiles/venus-profile-bg.png") 72% center / cover no-repeat,
            #02060c;
    }

    .profile-dossier-shell .profile-hero-intel {
        grid-template-columns: 1fr;
    }
}
