.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-pill,
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    user-select: none;
}

.login-pill {
    background: rgb(255 255 255 / 4%);
    color: var(--text-secondary);
    border: 1px solid rgb(255 255 255 / 8%);
}

.login-pill:hover {
    background: rgb(255 255 255 / 8%);
    color: var(--text);
    border-color: var(--primary);
}

.user-pill {
    background: rgb(99 102 241 / 10%);
    color: var(--primary-light);
    border: 1px solid rgb(99 102 241 / 20%);
}

.user-pill:hover {
    background: rgb(99 102 241 / 18%);
    border-color: rgb(99 102 241 / 40%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(99 102 241 / 20%);
}

.user-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-pill .dropdown-icon {
    font-size: 18px;
    opacity: 0.45;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown:hover .user-pill .dropdown-icon {
    transform: rotate(180deg);
    opacity: 0.8;
}

.admin-link-btn,
.logout-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    background: rgb(255 255 255 / 3%);
    border: 1px solid rgb(255 255 255 / 6%);
    flex-shrink: 0;
}

.admin-link-btn {
    color: var(--primary-light);
}

.admin-link-btn:hover {
    background: rgb(99 102 241 / 12%);
    color: var(--primary);
    border-color: rgb(99 102 241 / 50%);
    box-shadow: 0 0 16px rgb(99 102 241 / 20%);
}

.logout-btn {
    color: var(--text-muted);
}

.logout-btn:hover {
    background: rgb(239 68 68 / 10%);
    color: var(--danger);
    border-color: rgb(239 68 68 / 40%);
    box-shadow: 0 0 16px rgb(239 68 68 / 15%);
}

.nav-user .material-symbols-rounded {
    font-size: 20px;
}

body:has(.user-profile-layout) .nav-bar {
    background: rgb(10 10 15 / 50%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgb(255 255 255 / 5%) !important;
    box-shadow: none !important;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 224px;
    background: rgb(12 14 22 / 96%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 16px 48px rgb(0 0 0 / 60%), 0 0 0 1px rgb(255 255 255 / 3%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.dropdown-item:hover {
    background: rgb(255 255 255 / 5%);
    color: #fff;
    transform: translateX(3px);
}

.dropdown-item .material-symbols-rounded {
    font-size: 19px;
    opacity: 0.65;
    flex-shrink: 0;
}

.dropdown-item.logout:hover {
    background: rgb(239 68 68 / 10%);
    color: #f87171;
}

.dropdown-divider {
    height: 1px;
    background: rgb(255 255 255 / 7%);
    margin: 5px 8px;
}

@keyframes glassShimmer {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

@keyframes bannerShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes barPulse {
    from {
        filter: brightness(1.1);
    }

    to {
        filter: brightness(1.6) contrast(1.1);
    }
}

@keyframes barLiquid {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes pulseGaming {

    0%,
    100% {
        box-shadow: 0 0 20px rgb(144 186 60 / 50%);
    }

    50% {
        box-shadow: 0 0 50px rgb(144 186 60 / 85%);
    }
}

@keyframes pulseOnline {

    0%,
    100% {
        box-shadow: 0 0 16px rgb(87 203 222 / 45%);
    }

    50% {
        box-shadow: 0 0 44px rgb(87 203 222 / 70%);
    }
}

@keyframes xpShimmer {
    0% {
        transform: translateX(-60px);
    }

    100% {
        transform: translateX(260px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes flashInfo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.stat-card-mini,
.modern-game-card,
.main-game-showcase {
    position: relative;
    overflow: hidden;
}

.stat-card-mini::before,
.modern-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 5%) 50%, transparent);
    transform: translateX(-150%) skewX(-20deg);
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.stat-card-mini:hover::before,
.modern-game-card:hover::before {
    animation: glassShimmer 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.entrance-stagger {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.entrance-stagger.entrance-visible {
    opacity: 1;
    transform: translateY(0);
}

.entrance-stagger:nth-child(1) {
    transition-delay: 0.08s;
}

.entrance-stagger:nth-child(2) {
    transition-delay: 0.16s;
}

.entrance-stagger:nth-child(3) {
    transition-delay: 0.24s;
}

.entrance-stagger:nth-child(4) {
    transition-delay: 0.32s;
}

.profile-background-ambient {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #080810;
}

.ambient-video-overlay,
.ambient-image-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    filter: blur(36px) saturate(2);
    transform: scale(1.18);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ambient-image-overlay {
    background-size: cover;
    background-position: center;
}

.ambient-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 15%, rgb(0 0 0 / 50%) 100%),
        linear-gradient(to bottom, transparent 55%, #080810 100%);
    z-index: 1;
}

.profile-hero-section {
    position: relative;
    max-width: 1400px;
    margin: calc(var(--nav-height) + 40px) auto 40px;
    border-radius: 36px;
    border: 1px solid rgb(255 255 255 / 8%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 30px;
    overflow: hidden;
    background: rgb(10 10 15 / 65%);
    backdrop-filter: blur(24px);
    box-shadow: 0 48px 96px rgb(0 0 0 / 70%), inset 0 1px 0 rgb(255 255 255 / 8%);
}

.profile-hero-content {
    width: 100%;
    padding: 0 50px;
    position: relative;
}

.hero-banner-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-banner-backdrop video,
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px) brightness(0.75);
    transform: scale(1.06);
}

.hero-bg-img {
    background-size: cover;
    background-position: center;
}

.hero-glass-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 18% 50%, rgb(99 102 241 / 18%), transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgb(10 10 15 / 35%) 0%,
            rgb(10 10 15 / 92%) 85%,
            rgb(10 10 15 / 98%) 100%);
    z-index: 1;
}

.profile-content-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

.banner-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            transparent 38%,
            rgb(99 102 241 / 7%) 50%,
            transparent 62%);
    background-size: 200% 100%;
    animation: bannerShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.profile-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgb(99 102 241 / 12%), transparent 55%);
    pointer-events: none;
}

.profile-hero {
    display: flex;
    align-items: flex-end;
    gap: 36px;
    padding-bottom: 50px;
    position: relative;
    z-index: 100;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    margin-right: 28px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    display: block;
}

.profile-avatar-container::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 10px;
    background: transparent;
    z-index: 0;
    transition: box-shadow 0.5s ease;
}

.profile-avatar-container.status-gaming::after {
    box-shadow: 0 0 44px rgb(144 186 60 / 45%);
}

.profile-avatar-container.status-online::after {
    box-shadow: 0 0 38px rgb(87 203 222 / 35%);
}

.avatar-frame-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    z-index: 2;
}

.profile-avatar-container.status-gaming .avatar-frame-wrapper {
    box-shadow: 0 0 28px rgb(144 186 60 / 45%);
    animation: pulseGaming 2.4s ease-in-out infinite;
}

.profile-avatar-container.status-online .avatar-frame-wrapper {
    box-shadow: 0 0 22px rgb(87 203 222 / 38%);
    animation: pulseOnline 2.4s ease-in-out infinite;
}

.presence-floating-badge {
    position: absolute;
    top: calc(var(--nav-height) + 28px);
    right: 40px;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgb(0 0 0 / 35%);
    backdrop-filter: blur(20px);
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgb(255 255 255 / 10%);
    box-shadow: 0 16px 40px rgb(0 0 0 / 55%);
    transition: background 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.presence-floating-badge:hover {
    background: rgb(0 0 0 / 65%);
    transform: translateY(-2px);
    border-color: rgb(255 255 255 / 20%);
    box-shadow: 0 20px 48px rgb(0 0 0 / 75%);
}

.presence-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
}

.presence-label.status-gaming {
    color: #90ba3c;
}

.presence-label.status-online {
    color: #57cbde;
}

.presence-label.status-offline {
    color: #666;
}

.avatar-frame {
    position: absolute;
    top: -12.5%;
    left: -12.5%;
    width: 125%;
    height: 125%;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 0 10px rgb(0 0 0 / 55%));
}

.mini-profile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
    filter: blur(32px) saturate(1.6);
    overflow: hidden;
    transition: opacity 0.4s;
}

.mini-profile-bg.video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
}

.profile-banner-wrapper:hover .mini-profile-bg {
    opacity: 0.48;
}

.avatar-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    background: rgb(255 255 255 / 4%);
    border: 5px solid #0d0d1a;
}

.role-badge-floating {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 18px rgb(0 0 0 / 55%);
    border: 3px solid #0d0d1a;
    z-index: 10;
}

.role-badge-floating.owner {
    background: #fbbf24;
}

.role-badge-floating.admin {
    background: #ef4444;
}

.role-badge-floating.contributor {
    background: #6366f1;
}

.role-badge-floating .material-symbols-rounded {
    font-size: 18px;
}

.profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 6px;
}

.steam-scorecard {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgb(255 255 255 / 2%);
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid rgb(255 255 255 / 5%);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgb(0 0 0 / 25%);
}

.score-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
    font-weight: 700;
    color: rgb(255 255 255 / 82%);
    transition: transform 0.2s;
}

.score-item:hover {
    transform: translateY(-1px);
}

.level-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    border: 2px solid #66c0f4;
    background: rgb(102 192 244 / 10%);
    box-shadow: 0 0 16px rgb(102 192 244 / 40%);
    transition: box-shadow 0.3s, transform 0.3s;
}

.level-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px rgb(102 192 244 / 65%);
}

.trust-chip {
    color: #34d399;
    text-shadow: 0 0 12px rgb(52 211 153 / 45%);
}

.score-item i {
    font-size: 1.1rem;
    color: rgb(255 255 255 / 45%);
}

.ban-warning {
    color: #ef4444;
    animation: flashInfo 2s ease-in-out infinite;
    text-shadow: 0 0 12px rgb(239 68 68 / 45%);
}

.profile-info h1 {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.profile-name {
    flex-shrink: 0;
}

.name-box {
    display: flex;
    flex-direction: column;
}

.real-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgb(255 255 255 / 38%);
    letter-spacing: 0;
    margin-top: -4px;
    -webkit-text-fill-color: rgb(255 255 255 / 38%);
}

.steam-flag {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    opacity: 0.65;
    filter: grayscale(0.15);
    box-shadow: 0 0 6px rgb(0 0 0 / 55%);
    margin-top: 5px;
}

.presence-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 9px currentColor;
}

.presence-indicator.status-online {
    color: #57cbde;
    background: #57cbde;
}

.presence-indicator.status-gaming {
    color: #90ba3c;
    background: #90ba3c;
}

.presence-indicator.status-offline {
    color: #777;
    background: #777;
}

.profile-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.83rem;
    font-weight: 700;
    color: rgb(255 255 255 / 48%);
    padding: 7px 16px;
    background: rgb(255 255 255 / 3%);
    border-radius: 100px;
    border: 1px solid rgb(255 255 255 / 7%);
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
    cursor: default;
}

.meta-tag:hover {
    background: rgb(255 255 255 / 6%);
    border-color: rgb(255 255 255 / 14%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgb(0 0 0 / 22%);
    color: #fff;
}

.meta-tag.sid {
    font-family: 'JetBrains Mono', monospace;
    color: #818cf8;
    background: rgb(129 140 248 / 5%);
    border-color: rgb(129 140 248 / 12%);
}

.meta-tag.sid:hover {
    color: #a5b4fc;
    border-color: rgb(129 140 248 / 32%);
    box-shadow: 0 0 22px rgb(129 140 248 / 18%);
}

.meta-tag.discord {
    background: rgb(88 101 242 / 5%);
    border-color: rgb(88 101 242 / 12%);
}

.meta-tag.discord:hover {
    color: #8c9eff;
    border-color: rgb(88 101 242 / 32%);
    box-shadow: 0 0 22px rgb(88 101 242 / 18%);
}

.xp-progress-wrapper {
    position: relative;
    height: 9px;
    background: rgb(0 0 0 / 35%);
    border-radius: 100px;
    padding: 1.5px;
    border: 1px solid rgb(255 255 255 / 5%);
    box-shadow: inset 0 2px 4px rgb(0 0 0 / 50%);
    overflow: hidden;
    margin-top: 12px;
    width: 240px;
}

.xp-progress-bar {
    height: 100%;
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    box-shadow: 0 0 22px rgb(102 192 244 / 85%);
    background-image: linear-gradient(90deg,
            rgb(255 255 255 / 0%) 0%,
            rgb(255 255 255 / 38%) 50%,
            rgb(255 255 255 / 0%) 100%);
    background-size: 200% 100%;
    animation: barPulse 2.5s ease-in-out infinite alternate, barLiquid 5s linear infinite;
    will-change: width;
}

.xp-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(255 255 255 / 22%), transparent);
    border-radius: inherit;
}

.xp-label {
    font-size: 0.68rem;
    color: rgb(255 255 255 / 28%);
    margin-top: 5px;
    font-family: 'JetBrains Mono', monospace;
    display: block;
}

.profile-level-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-weight: 900;
    font-size: 0.65rem;
    width: 38px;
    height: 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 4px 18px rgb(251 191 36 / 42%);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    line-height: 1;
    flex-shrink: 0;
}

.profile-level-badge::before {
    content: 'LVL';
    font-size: 0.45rem;
    opacity: 0.75;
    margin-bottom: 2px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-mini {
    background: rgb(255 255 255 / 2%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgb(255 255 255 / 5%);
    transition: background 0.3s, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 40px rgb(0 0 0 / 28%);
}

.stat-card-mini:hover {
    background: rgb(255 255 255 / 5%);
    transform: translateY(-5px);
    border-color: rgb(255 255 255 / 12%);
    box-shadow: 0 24px 56px rgb(0 0 0 / 48%);
}

.stat-card-mini.platform-card {
    display: block;
    padding: 20px 24px;
}

.stat-card-mini i,
.stat-card-mini .material-symbols-rounded {
    font-size: 30px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.icon-purple {
    background: rgb(99 102 241 / 10%);
    color: #818cf8;
}

.icon-cyan {
    background: rgb(6 182 212 / 10%);
    color: #22d3ee;
}

.icon-amber {
    background: rgb(245 158 11 / 10%);
    color: #fbbf24;
}

.icon-brand {
    background: rgb(102 192 244 / 10%);
    color: #66c0f4;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.76rem;
    color: rgb(255 255 255 / 28%);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.content-section-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
}

.content-section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgb(255 255 255 / 88%);
    white-space: nowrap;
}

.header-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgb(255 255 255 / 10%), transparent);
}

.contribution-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.modern-game-card {
    background: rgb(255 255 255 / 2%);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 5%);
    box-shadow: 0 10px 40px rgb(0 0 0 / 28%);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.35s, box-shadow 0.35s;
}

.modern-game-card.card--visible {
    opacity: 1;
    transform: translateY(0);
}

.modern-game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgb(99 102 241 / 32%);
    box-shadow: 0 24px 48px rgb(0 0 0 / 45%);
}

.game-artwork-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.game-artwork-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-game-card:hover .game-artwork-wrapper img {
    transform: scale(1.08);
}

.store-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid rgb(255 255 255 / 10%);
}

.store-badge-overlay.steam {
    color: #66c0f4;
    border-color: rgb(102 192 244 / 32%);
}

.store-badge-overlay.epic {
    color: #fff;
    border-color: rgb(255 255 255 / 22%);
}

.store-badge-overlay.gog {
    color: #a855f7;
    border-color: rgb(168 85 247 / 22%);
}

.store-badge-overlay.ubisoft {
    color: #0070f3;
    border-color: rgb(0 112 243 / 22%);
}

.store-badge-overlay.ea {
    color: #f04c24;
    border-color: rgb(240 76 36 / 22%);
}

.store-badge-overlay.battlenet {
    color: #00aeff;
    border-color: rgb(0 174 255 / 22%);
}

.game-details-modern {
    padding: 18px 20px;
}

.game-details-modern h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exe-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgb(129 140 248 / 10%);
    color: #818cf8;
    border-radius: 8px;
    border: 1px solid rgb(129 140 248 / 22%);
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-date {
    font-size: 0.66rem;
    color: rgb(255 255 255 / 18%);
    margin-left: auto;
    white-space: nowrap;
}

.empty-state-card {
    background: rgb(255 255 255 / 1%);
    border: 1px dashed rgb(255 255 255 / 9%);
    border-radius: 28px;
    padding: 80px 40px;
    text-align: center;
}

.empty-state-card .material-symbols-rounded.large {
    font-size: 60px;
    color: rgb(255 255 255 / 5%);
    margin-bottom: 24px;
}

.empty-state-card h3 {
    font-size: 1.35rem;
    margin: 0 0 10px;
}

.empty-state-card p {
    color: rgb(255 255 255 / 28%);
    max-width: 400px;
    margin: 0 auto;
}

.user-profile-layout {
    max-width: 1400px;
    margin: 100px auto 40px;
    padding: 0 20px 80px;
}

.profile-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
    position: relative;
    z-index: 10;
}

.profile-primary-col {
    min-width: 0;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sidebar-card {
    margin-top: 0 !important;
}

.sidebar-sub-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: block;
}

.specs-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-heatmap-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
}

.heatmap-day {
    aspect-ratio: 1;
    background: rgb(255 255 255 / 4%);
    border-radius: 2px;
    transition: opacity 0.15s;
}

.heatmap-day:hover {
    opacity: 0.75;
}

.heatmap-day.lvl-1 {
    background: #312e81;
}

.heatmap-day.lvl-2 {
    background: #4338ca;
}

.heatmap-day.lvl-3 {
    background: #6366f1;
}

.heatmap-day.lvl-4 {
    background: #818cf8;
    box-shadow: 0 0 5px rgb(129 140 248 / 45%);
}

.heatmap-month-labels {
    display: grid;
    grid-template-columns: repeat(53, 1fr);
    gap: 3px;
    margin-bottom: 4px;
    height: 16px;
    position: relative;
}

.month-label {
    font-size: 0.62rem;
    color: rgb(255 255 255 / 28%);
    text-align: left;
    grid-row: 1;
    white-space: nowrap;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    margin-top: 10px;
}

.heatmap-legend .heatmap-day {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.heatmap-legend .stat-label {
    margin: 0 4px;
    font-size: 0.68rem;
}

.platform-distribution {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 18px;
    width: 100%;
}

.platform-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-name {
    width: 80px;
    font-size: 0.73rem;
    color: rgb(255 255 255 / 38%);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.platform-bar-bg {
    flex: 1;
    height: 5px;
    background: rgb(255 255 255 / 4%);
    border-radius: 100px;
    overflow: hidden;
}

.platform-bar-fill {
    height: 100%;
    background: var(--fill-color, #818cf8);
    border-radius: 100px;
    transition: width 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.platform-count {
    width: 30px;
    font-size: 0.73rem;
    color: rgb(255 255 255 / 58%);
    text-align: right;
    font-weight: 700;
}

.profile-actions-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.action-fab {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #1a1a2a;
    border: 1px solid rgb(255 255 255 / 8%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s,
        border-color 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 10px 24px rgb(0 0 0 / 35%);
    text-decoration: none;
}

.action-fab:hover {
    transform: translateY(-5px);
    background: #242438;
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 16px 36px rgb(0 0 0 / 45%);
}

.action-fab span {
    font-size: 20px;
}

.rank-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid;
}

.rank-newcomer {
    color: rgb(255 255 255 / 48%);
    border-color: rgb(255 255 255 / 14%);
    background: rgb(255 255 255 / 4%);
}

.rank-contributor {
    color: #818cf8;
    border-color: rgb(99 102 241 / 32%);
    background: rgb(99 102 241 / 8%);
}

.rank-veteran {
    color: #22d3ee;
    border-color: rgb(6 182 212 / 32%);
    background: rgb(6 182 212 / 8%);
}

.rank-expert {
    color: #34d399;
    border-color: rgb(52 211 153 / 32%);
    background: rgb(52 211 153 / 8%);
}

.rank-elite {
    color: #f472b6;
    border-color: rgb(244 114 182 / 32%);
    background: rgb(244 114 182 / 8%);
}

.rank-legend {
    color: #fbbf24;
    border-color: rgb(251 191 36 / 42%);
    background: rgb(251 191 36 / 10%);
    box-shadow: 0 0 14px rgb(251 191 36 / 22%);
}

.privacy-management-card {
    background: rgb(239 68 68 / 4%);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgb(239 68 68 / 18%);
    margin-top: 60px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.privacy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.privacy-header-content h3 {
    margin: 0;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
}

.privacy-header-content p {
    margin: 8px 0 0 36px;
    color: rgb(255 255 255 / 38%);
    font-size: 0.875rem;
    max-width: 600px;
}

.delete-data-btn {
    background: rgb(239 68 68 / 10%);
    color: #ef4444;
    border: 1px solid rgb(239 68 68 / 22%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.875rem;
}

.delete-data-btn:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 24px rgb(239 68 68 / 32%);
    transform: translateY(-2px);
}

.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 0.86rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    background: rgb(22 22 36 / 92%);
    border: 1px solid rgb(255 255 255 / 8%);
    box-shadow: 0 10px 36px rgb(0 0 0 / 45%);
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

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

.toast--success .material-symbols-rounded {
    color: #34d399;
}

.toast--error .material-symbols-rounded {
    color: #f87171;
}

.specs-full-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-top: 28px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
}

.specs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.specs-header h3 {
    margin: 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-light);
}

.private-badge {
    background: rgb(168 85 247 / 10%);
    color: #a855f7;
    font-size: 0.73rem;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgb(168 85 247 / 22%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.spec-val {
    font-size: 0.93rem;
    color: var(--text);
    font-weight: 500;
}

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

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

    .profile-hero {
        flex-direction: column;
        text-align: center;
        margin-top: -80px;
    }

    .profile-meta-tags {
        justify-content: center;
    }

    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .heatmap-month-labels {
        display: none;
    }

    .profile-hero-section {
        border-radius: 20px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .profile-hero-content {
        padding: 0 24px;
    }

    .profile-content-container {
        padding: 0 20px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .presence-floating-badge {
        right: 16px;
    }
}