.glass-panel {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
        var(--glass-bg);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(22px) saturate(135%);
}

.btn,
.nav-action,
.icon-control {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.78rem 1rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 14px 34px rgba(24, 64, 255, 0.25);
}

.btn.ghost,
.nav-action,
.icon-control {
    background: rgba(255, 255, 255, 0.065);
}

.btn:hover,
.nav-action:hover,
.icon-control:hover {
    transform: translateY(-2px);
    border-color: rgba(53, 192, 255, 0.58);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.icon-control {
    width: 44px;
    padding: 0;
    font-size: 0.72rem;
}

.profile-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
    align-items: end;
    gap: clamp(18px, 4vw, 34px);
}

.profile-card {
    overflow: hidden;
    min-height: 660px;
    display: grid;
    align-items: end;
    isolation: isolate;
}

.profile-card::before,
.featured-card::before,
.social-link-card::before,
.activity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 12%), rgba(53, 192, 255, 0.20), transparent 32%),
        linear-gradient(135deg, rgba(227, 18, 45, 0.12), transparent 34%, rgba(24, 64, 255, 0.12));
    opacity: 0.84;
    pointer-events: none;
    z-index: 0;
}

.profile-content,
.profile-avatar-wrap,
.mini-panel > *,
.featured-card > *,
.social-link-card > *,
.activity-card > * {
    position: relative;
    z-index: 1;
}

.profile-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.profile-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 4, 11, 0.16), rgba(2, 4, 11, 0.86) 64%, rgba(2, 4, 11, 0.96)),
        radial-gradient(circle at 20% 16%, rgba(53, 192, 255, 0.22), transparent 34%);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.54;
    transform: scale(1.04);
    filter: saturate(1.24) contrast(1.08);
}

.profile-avatar-wrap {
    position: absolute;
    top: clamp(28px, 5vw, 52px);
    left: 50%;
    width: min(260px, 54vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
}

.avatar-orbit {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(53, 192, 255, 0.32);
    background:
        conic-gradient(from 0deg, rgba(53, 192, 255, 0), rgba(53, 192, 255, 0.76), rgba(227, 18, 45, 0.62), rgba(53, 192, 255, 0));
    filter: blur(0.5px);
    animation: orbit-spin 12s linear infinite;
}

.profile-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52), 0 0 44px rgba(53, 192, 255, 0.22);
}

.rank-emblem {
    position: absolute;
    right: 3px;
    bottom: 12px;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(2, 4, 11, 0.78);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(16px);
}

.rank-emblem img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.profile-content {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 330px clamp(20px, 5vw, 52px) clamp(24px, 5vw, 46px);
    text-align: center;
}

.profile-content h1 {
    margin-bottom: 0.55rem;
    font-size: clamp(3.1rem, 9vw, 6.9rem);
    text-transform: uppercase;
}

.profile-subtitle {
    margin-bottom: 0.55rem;
    color: #ffffff;
    font-size: clamp(1.02rem, 2.2vw, 1.42rem);
    font-weight: 900;
}

.profile-bio {
    max-width: 620px;
    margin-inline: auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px auto 18px;
}

.stat-pill {
    min-height: 76px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
}

.stat-pill strong {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    line-height: 1;
}

.stat-pill small {
    color: var(--color-muted);
    font-weight: 800;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 26px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 0.48rem 0.78rem;
    background: rgba(255, 255, 255, 0.065);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.mini-panel {
    overflow: hidden;
    padding: 22px;
}

.mini-panel::after {
    content: "";
    position: absolute;
    inset: auto -18% -34% auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 18, 45, 0.22), transparent 66%);
    pointer-events: none;
}

.mini-kicker,
.activity-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mini-panel strong {
    display: block;
    margin-bottom: 0.65rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1.12;
}

.mini-panel p {
    color: var(--color-muted);
}

.mini-rank {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.055);
    font-weight: 900;
}

.mini-rank img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.social-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-link-card {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.062);
    backdrop-filter: blur(18px);
    transform-style: preserve-3d;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.social-link-card:hover {
    border-color: rgba(53, 192, 255, 0.48);
    background: rgba(255, 255, 255, 0.095);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.link-icon,
.link-arrow {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    font-weight: 900;
}

.link-icon {
    width: 56px;
    height: 56px;
    background: rgba(2, 4, 11, 0.62);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.86rem;
}

.link-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 4px;
}

.link-copy strong {
    font-size: 1.08rem;
}

.link-copy small {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.placeholder-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.28rem 0.54rem;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.link-arrow {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-accent);
    font-size: 1.2rem;
}

.featured-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 46px);
    align-items: center;
    padding: clamp(18px, 4vw, 36px);
}

.featured-visual {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(227, 18, 45, 0.34), rgba(24, 64, 255, 0.18)),
        #080e20;
}

.featured-visual img {
    position: absolute;
    right: -8%;
    bottom: -35%;
    width: min(78%, 360px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.play-button {
    position: absolute;
    left: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.play-button::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 19px;
    border-left: 17px solid #ffffff;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.featured-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.4;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 70%);
}

.featured-copy p {
    max-width: 620px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.activity-card {
    overflow: hidden;
}

.activity-media {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, rgba(227, 18, 45, 0.18), rgba(53, 192, 255, 0.14));
}

.activity-media img {
    width: 64%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
    transition: transform 0.3s ease;
}

.activity-card:nth-child(3) .activity-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-card:hover .activity-media img {
    transform: scale(1.05);
}

.activity-copy {
    padding: 18px;
}

.activity-copy h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.activity-copy p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: grid;
    gap: 10px;
}

.toast {
    max-width: min(360px, calc(100vw - 32px));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    background: rgba(5, 9, 20, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    color: #ffffff;
    font-weight: 800;
    backdrop-filter: blur(16px);
}

.tone-cyan {
    --tone-color: var(--color-accent);
    --card-glow: rgba(53, 192, 255, 0.24);
}

.tone-red {
    --tone-color: var(--color-primary);
    --card-glow: rgba(227, 18, 45, 0.24);
}

.tone-blue {
    --tone-color: var(--color-secondary);
    --card-glow: rgba(24, 64, 255, 0.24);
}

.tone-violet {
    --tone-color: var(--color-violet);
    --card-glow: rgba(138, 92, 255, 0.22);
}

@media (max-width: 980px) {
    .profile-stage,
    .featured-card,
    .activity-grid {
        grid-template-columns: 1fr;
    }

    .mini-panel {
        display: none;
    }
}

@media (max-width: 720px) {
    .profile-card {
        min-height: 620px;
    }

    .profile-content {
        padding: 300px 18px 24px;
    }

    .profile-avatar-wrap {
        width: min(232px, 68vw);
    }

    .profile-content h1 {
        font-size: clamp(2.8rem, 16vw, 4.55rem);
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }

    .stat-pill {
        min-height: 66px;
    }

    .stat-pill strong {
        font-size: 1.02rem;
    }

    .social-link-grid {
        grid-template-columns: 1fr;
    }

    .social-link-card {
        min-height: 98px;
        padding: 14px;
    }

    .placeholder-chip {
        position: absolute;
        top: 12px;
        right: 52px;
    }

    .featured-card {
        padding: 14px;
    }

    .featured-visual {
        min-height: 220px;
    }
}
