/* Profile & Chat Section Styles */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5000;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(60px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    text-transform: uppercase;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

@media (max-width: 768px) {
    body.mobile-view-headerless .main-container {
        padding-top: 0;
    }

    .main-container {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    #view-profile {
        padding-bottom: calc(128px + env(safe-area-inset-bottom));
    }

    .bottom-nav {
        display: flex;
    }

    #chatFloatingBtn {
        display: none !important;
    }
}


/* Content Views System */
.view-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

/* Profile Page */
.profile-header {
    height: 250px;
    border-radius: 24px;
    position: relative;
    overflow: visible;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.8;
}

.profile-avatar-container {
    position: absolute;
    bottom: -50px;
    left: 40px;
}

@media (max-width: 768px) {
    .profile-header {
        border-radius: 0 0 20px 20px;
        margin: -20px -20px 56px -20px;
        height: 220px;
        overflow: hidden;
    }

    .profile-avatar-container {
        left: 18px;
        transform: none;
        bottom: -34px;
    }

    .profile-main-content {
        margin-top: 52px !important;
    }

    .profile-action-row {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .profile-action-row button {
        padding: 8px 10px;
        font-size: 10px;
    }
}

.avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), #00f2ff);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    border: 4px solid #050507;
    object-fit: cover;
}

.level-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #000;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Profile V2 (Gemini Reference Blend) */
.profile-v2-root {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.profile-v2-mobile-head {
    display: none;
}

.profile-v2-hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
}

.profile-v2-cover {
    width: 100%;
    height: 220px;
    position: relative;
    mask-image: linear-gradient(to bottom, black 62%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 100%);
}

.cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-v2-top-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.profile-v2-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(6, 6, 10, 0.58);
    color: #fff;
    transition: all 0.2s ease;
}

.profile-v2-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.profile-v2-icon-btn.danger:hover {
    background: rgba(220, 38, 38, 0.6);
}

.profile-v2-avatar-wrap {
    margin-top: -62px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-v2-avatar-ring {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 999px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), #00f2ff);
    box-shadow: 0 0 24px var(--accent-glow);
}

.profile-v2-status-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #050507;
}

.profile-v2-status-dot.online {
    background: #00ff88;
}

.profile-v2-status-dot.away {
    background: #facc15;
}

.profile-v2-status-dot.offline {
    background: #6b7280;
}

.profile-v2-rank-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -13px;
    background: #070709;
    border: 1px solid rgba(188, 19, 254, 0.45);
    color: #c084fc;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-v2-identity {
    padding: 14px 18px 22px;
    text-align: center;
}

.profile-v2-name {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 8px 0 0;
}

.profile-v2-handle {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-v2-bio {
    margin: 12px auto 0;
    max-width: 30ch;
    color: #d1d5db;
    font-size: 0.88rem;
    line-height: 1.45;
}

.profile-v2-xp-wrap {
    width: min(240px, 100%);
    margin: 12px auto 0;
}

.profile-v2-xp-meta {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
}

.profile-v2-xp-bg {
    margin-top: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.profile-v2-xp-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #00f2ff);
    box-shadow: 0 0 12px var(--accent-glow);
}

.profile-v2-stats-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-v2-stat-box {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.profile-v2-stat-value {
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
}

.profile-v2-stat-label {
    margin-top: 1px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.profile-v2-actions-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.profile-v2-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    transition: all 0.2s ease;
}

.profile-v2-btn.primary {
    background: #9333ea;
}

.profile-v2-btn.primary:hover {
    background: #a855f7;
}

.profile-v2-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
}

.profile-v2-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.profile-v2-btn.success {
    background: #16a34a;
}

.profile-v2-btn.success:hover {
    background: #22c55e;
}

.profile-v2-btn.danger {
    background: rgba(220, 38, 38, 0.86);
}

.profile-v2-btn.danger:hover {
    background: rgb(239, 68, 68);
}

.profile-v2-btn.muted {
    background: #374151;
    color: #d1d5db;
    cursor: not-allowed;
}

.profile-v2-meta-tags {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.profile-v2-tag {
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 10px;
}

.profile-v2-tag.friend {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.3);
}

.profile-v2-tag.info {
    color: #bae6fd;
    background: rgba(14, 116, 144, 0.35);
}

.profile-v2-content {
    padding: 0 2px 12px;
}

.profile-v2-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.profile-v2-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 900;
}

.profile-v2-count-chip {
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 8px;
}

.profile-v2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-v2-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #d8b4fe;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-v2-games-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.profile-v2-games-scroll::-webkit-scrollbar {
    display: none;
}

.profile-v2-game-card {
    min-width: 170px;
    border-radius: 16px;
    overflow: hidden;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-v2-game-thumb {
    width: 100%;
    height: 108px;
    object-fit: cover;
}

.profile-v2-card-btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 8px;
    transition: all 0.2s ease;
}

.profile-v2-card-btn.play {
    color: #fff;
    background: #9333ea;
    border-color: transparent;
}

.profile-v2-card-btn.play:hover {
    background: #a855f7;
}

.profile-v2-card-btn.active {
    color: #fff;
    background: #ec4899;
    border-color: rgba(249, 168, 212, 0.6);
}

.profile-v2-empty {
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 768px) {
    .profile-v2-mobile-head {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        align-items: center;
        gap: 10px;
        margin: 0 0 10px;
        padding: 10px 12px;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1450;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .profile-v2-mobile-title {
        text-align: center;
        font-size: 1.35rem;
        font-weight: 900;
        letter-spacing: -0.02em;
        line-height: 1;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-v2-mobile-btn {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .profile-v2-root {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .profile-v2-hero {
        border-radius: 0 0 20px 20px;
        border-left: none;
        border-right: none;
    }

    .profile-v2-cover {
        height: 210px;
    }
}

@media (min-width: 1024px) {
    .profile-v2-root {
        grid-template-columns: 350px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .profile-v2-hero {
        position: sticky;
        top: 90px;
    }

    .profile-v2-cover {
        height: 165px;
    }

    .profile-v2-avatar-wrap {
        margin-top: -72px;
    }

    .profile-v2-avatar-ring {
        width: 132px;
        height: 132px;
    }

    .profile-v2-content {
        padding-top: 8px;
    }

    .profile-v2-games-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        overflow: visible;
        gap: 16px;
    }

    .profile-v2-game-card {
        min-width: 0;
    }

    .profile-v2-game-thumb {
        height: 124px;
    }
}

/* Chat Section */
.chat-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100dvh - 150px);
    min-height: 520px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.chat-v2-mini-nav {
    background: rgba(6, 6, 10, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
}

.chat-v2-mini-item {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: #8b8b96;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chat-v2-mini-item:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.08);
}

.chat-v2-mini-item.active {
    color: #d8b4fe;
    background: rgba(188, 19, 254, 0.16);
}

.chat-list-panel {
    background: rgba(8, 8, 12, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-view-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    position: relative;
    background: #050507;
}

.chat-v2-list-head {
    background: rgba(6, 6, 10, 0.9);
}

.chat-v2-list-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chat-v2-list-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.chat-v2-tab-wrap {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
}

.chat-v2-tab-btn,
.chat-v2-mobile-tab-btn {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 9px 10px;
    transition: all 0.2s ease;
    flex: 1;
}

.chat-v2-tab-btn.active,
.chat-v2-mobile-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.chat-v2-trending-block {
    background: rgba(7, 7, 11, 0.72);
}

.chat-v2-desktop-head {
    height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: rgba(6, 6, 10, 0.82);
    backdrop-filter: blur(12px);
}

.chat-v2-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-v2-head-user {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.chat-v2-head-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-v2-head-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-head-sub {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-v2-global-wrap {
    padding: 10px;
}

.chat-v2-section-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 8px;
}

.chat-v2-online-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.chat-v2-online-rail::-webkit-scrollbar {
    display: none;
}

.chat-v2-online-item {
    width: 58px;
    flex-shrink: 0;
    text-align: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.chat-v2-avatar-ring {
    position: relative;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(34, 197, 94, 0.7), rgba(255, 255, 255, 0.15));
}

.chat-v2-avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 2px solid #0a0a0e;
    object-fit: cover;
    background: #111827;
}

.chat-v2-online-dot {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #0a0a0e;
    background: #6b7280;
}

.chat-v2-online-dot.online {
    background: #22c55e;
}

.chat-v2-online-name {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-channel-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.chat-v2-channel-item:hover {
    border-color: rgba(188, 19, 254, 0.45);
    background: rgba(188, 19, 254, 0.08);
}

.chat-v2-channel-item.active {
    border-color: rgba(188, 19, 254, 0.6);
    background: rgba(188, 19, 254, 0.14);
}

.chat-v2-channel-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.chat-v2-channel-icon.globe {
    background: linear-gradient(145deg, #4f46e5, #6366f1);
}

.chat-v2-channel-icon.support {
    background: linear-gradient(145deg, #16a34a, #22c55e);
}

.chat-v2-channel-name {
    font-size: 13px;
    font-weight: 800;
    color: #f3f4f6;
}

.chat-v2-channel-meta {
    font-size: 11px;
    color: #9ca3af;
}

.chat-v2-channel-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.chat-v2-channel-badge.muted {
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

.chat-v2-dm-wrap {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-v2-friend-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.chat-v2-friend-strip::-webkit-scrollbar {
    display: none;
}

.chat-v2-friend-pill {
    border: 0;
    background: transparent;
    color: inherit;
    width: 62px;
    flex-shrink: 0;
    text-align: center;
    padding: 0;
    cursor: pointer;
}

.chat-v2-friend-pill-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    margin: 0 auto;
    position: relative;
    padding: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.chat-v2-friend-pill-avatar.online {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8), rgba(124, 58, 237, 0.35));
}

.chat-v2-friend-pill-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 2px solid #0a0a0e;
    object-fit: cover;
}

.chat-v2-friend-pill-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    right: 1px;
    bottom: 1px;
    border: 2px solid #0a0a0e;
    background: #6b7280;
}

.chat-v2-friend-pill-dot.online {
    background: #22c55e;
}

.chat-v2-friend-pill-name {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-friend-pill.active .chat-v2-friend-pill-avatar {
    background: linear-gradient(135deg, rgba(188, 19, 254, 0.9), rgba(0, 242, 255, 0.5));
}

.chat-v2-search-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
}

.chat-v2-dm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-v2-dm-row {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: all 0.2s ease;
}

.chat-v2-dm-row:hover {
    border-color: rgba(188, 19, 254, 0.45);
    background: rgba(188, 19, 254, 0.08);
}

.chat-v2-dm-row.active {
    border-color: rgba(188, 19, 254, 0.6);
    background: rgba(188, 19, 254, 0.14);
}

.chat-v2-dm-avatar-wrap {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-v2-dm-online-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    right: 1px;
    bottom: 1px;
    border: 2px solid #0a0a0e;
    background: #6b7280;
}

.chat-v2-dm-online-dot.online {
    background: #22c55e;
}

.chat-v2-dm-main {
    min-width: 0;
    flex: 1;
}

.chat-v2-dm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-v2-dm-name {
    font-size: 13px;
    font-weight: 800;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-dm-time {
    font-size: 10px;
    color: #6b7280;
    flex-shrink: 0;
}

.chat-v2-dm-preview {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-v2-dm-preview.unread {
    color: #f3f4f6;
    font-weight: 700;
}

.chat-v2-unread-badge {
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    padding: 0 6px;
    background: #9333ea;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-v2-info-sidebar {
    background: rgba(8, 8, 12, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chat-v2-info-avatar {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: #111827;
    box-shadow: 0 14px 26px rgba(124, 58, 237, 0.2);
}

.chat-v2-info-title {
    margin-top: 14px;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
}

.chat-v2-info-sub {
    margin-top: 3px;
    font-size: 12px;
    color: #9ca3af;
}

.chat-v2-info-actions {
    margin-top: 18px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.chat-v2-info-btn {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
}

.chat-v2-mobile-head {
    display: none;
}

.chat-v2-mobile-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0;
}

.chat-messages-area {
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 45%);
    min-height: 0;
}

.chat-input-container {
    background: rgba(6, 6, 10, 0.92);
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.message-bubble.me {
    background: linear-gradient(135deg, #bc13fe, #7c3aed);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

.message-bubble.them {
    background: rgba(255, 255, 255, 0.08);
    color: #eee;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-login-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 6000;
    display: none;
    align-items: center;
    justify-content: center;
}

.chat-login-overlay.active {
    display: flex;
}

#chatLoginOverlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    z-index: 7000;
}

#chatLoginOverlay.active {
    display: flex;
}

.auth-form {
    background: #13131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.2);
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    outline: none;
    transition: all 0.2s;
}

.auth-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.auth-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 800;
    margin-top: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

.auth-switch {
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}

.auth-switch:hover {
    color: white;
}

@media (min-width: 1024px) {
    .chat-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

@media (min-width: 1280px) {
    .chat-layout {
        grid-template-columns: 320px minmax(0, 1fr) 280px;
    }
}

/* Mobile Specifics for Chat */
@media (max-width: 768px) {
    .chat-layout {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        border: none;
        border-radius: 0;
        background: transparent;
        margin: -20px;
    }

    body.mobile-view-headerless .chat-layout {
        margin-top: 0;
    }

    .chat-list-panel {
        display: none;
    }

    .chat-v2-mobile-head {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(10px);
        position: sticky;
        top: 0;
        z-index: 1450;
    }

    .chat-v2-desktop-head {
        display: none !important;
    }

    .mobile-chat-tabs {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 10px 12px;
        background: rgba(5, 5, 7, 0.95);
        position: sticky;
        top: 0;
        z-index: 1440;
        backdrop-filter: blur(12px);
    }

    .mobile-chat-tabs .chat-v2-tab-wrap {
        width: 100%;
    }

    .chat-v2-global-wrap {
        padding: 8px;
    }

    .chat-v2-section-label {
        margin-bottom: 6px;
    }

    .chat-v2-online-item {
        width: 54px;
    }

    .chat-v2-avatar-ring {
        width: 42px;
        height: 42px;
    }

    .chat-v2-channel-item {
        padding: 8px;
    }

    .chat-v2-channel-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .chat-v2-dm-wrap {
        padding: 8px;
        gap: 10px;
    }

    .chat-v2-dm-row {
        padding: 8px;
    }

    #mobile-chat-conversation-header {
        position: sticky;
        top: 0;
        z-index: 1450;
    }

    .chat-view-panel {
        height: 100dvh;
    }

    .chat-input-container {
        position: fixed;
        bottom: calc(60px + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(10px);
        padding: 10px;
        z-index: 50;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .chat-messages-area {
        padding-bottom: 150px !important;
    }

    body.mobile-dm-focused .chat-input-container {
        bottom: env(safe-area-inset-bottom);
    }

    body.mobile-dm-focused .chat-messages-area {
        padding-bottom: 92px !important;
    }
}

/* Gamer Card Modal */
.gamer-card-overlay {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 7000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.gamer-card-overlay.active {
    display: flex;
}

.gamer-card {
    background: #13131a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 360px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-banner {
    height: 120px;
    background: linear-gradient(45deg, #1a1a2e, #4c1d95);
    position: relative;
}

.card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #13131a;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
}

.card-content {
    padding: 50px 20px 20px;
    text-align: center;
}

.card-username {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 4px;
}

.card-status {
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: white;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

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

.btn-primary {
    flex: 1;
    background: var(--accent);
    color: white;
    padding: 10px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 10px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Feed */
.social-feed {
    padding: 0 20px 80px;
}

.feed-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #000;
}

.feed-content {
    flex: 1;
}

.feed-header {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 4px;
}

.feed-header b {
    color: white;
}

.feed-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
}

.feed-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feed-game-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.feed-btn-join {
    margin-left: auto;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.feed-btn-join:hover {
    background: var(--accent);
    color: white;
}

/* Feed V2 (Gemini Reference Blend) */
.rail-panel {
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.feed-v2-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.feed-v2-main {
    width: 100%;
}

.feed-v2-mobile-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 10px 12px;
}

.feed-v2-main-title {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.feed-v2-mobile-menu {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.feed-v2-mobile-search {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
}

.feed-v2-stories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 0 4px;
    margin-bottom: 14px;
}

.feed-v2-stories::-webkit-scrollbar {
    display: none;
}

.feed-v2-story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 62px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.feed-v2-story-ring {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), #00f2ff);
}

.feed-v2-story-ring.add {
    background: linear-gradient(135deg, #374151, #4b5563);
}

.feed-v2-story-img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 3px solid #050507;
    object-fit: cover;
}

.feed-v2-story-name {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    color: #9ca3af;
    font-weight: 700;
}

.feed-v2-composer {
    padding: 14px;
    margin-bottom: 12px;
}

.feed-v2-composer-input {
    width: 100%;
    min-height: 68px;
    border-radius: 12px;
    border: none;
    padding: 12px;
    color: #fff;
    background: rgba(0, 0, 0, 0.26);
    resize: none;
}

.feed-v2-composer-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.42);
}

.feed-v2-composer-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.feed-v2-icon-action {
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feed-v2-icon-action:hover {
    color: var(--accent);
    border-color: rgba(188, 19, 254, 0.45);
}

.feed-v2-post-btn {
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(188, 19, 254, 0.35);
    cursor: pointer;
}

.feed-v2-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 12px;
}

.feed-v2-filters::-webkit-scrollbar {
    display: none;
}

.feed-v2-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #d1d5db;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
}

.feed-v2-chip:disabled {
    pointer-events: none;
}

.feed-v2-chip.active {
    color: var(--accent);
    border-color: rgba(188, 19, 254, 0.75);
    background: rgba(188, 19, 254, 0.16);
}

.feed-v2-chip.passive {
    color: #9ca3af;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.8;
}

.feed-v2-mobile-following {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.feed-v2-mobile-following::-webkit-scrollbar {
    display: none;
}

.feed-v2-stream {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 14px;
}

.feed-v2-post {
    padding: 14px;
}

.feed-v2-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.feed-v2-user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.feed-v2-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0;
    background: transparent;
}

.feed-v2-user-name {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.feed-v2-user-time {
    font-size: 11px;
    color: #9ca3af;
}

.feed-v2-more-btn {
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
}

.feed-v2-post-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.45;
    margin-bottom: 10px;
}

.feed-v2-post-body {
    margin-bottom: 10px;
}

.feed-v2-status-text {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.5;
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-v2-post-media {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-v2-system-event {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.feed-v2-mini-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.feed-v2-mini-play {
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
}

.feed-v2-post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.feed-v2-action-btn {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    border: none;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.feed-v2-action-btn:hover {
    color: #fff;
}

.feed-v2-action-btn.liked {
    color: #f43f5e;
}

.feed-v2-comment-row {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
}

.feed-v2-comment-input {
    flex: 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 12px;
    padding: 8px 10px;
}

.feed-v2-comment-send {
    border: none;
    border-radius: 10px;
    background: #9333ea;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
}

.feed-v2-empty {
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
}

.feed-v2-left,
.feed-v2-right {
    padding: 14px;
    height: fit-content;
}

.feed-v2-side-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 10px;
}

.feed-v2-profile-link {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
    cursor: pointer;
}

.feed-v2-profile-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #00f2ff);
}

.feed-v2-side-block {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
}

.feed-v2-side-label {
    color: #6b7280;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.feed-v2-suggest-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-v2-suggest-user {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.feed-v2-suggest-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
}

.feed-v2-suggest-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-v2-suggest-meta {
    font-size: 10px;
    color: #6b7280;
}

.feed-v2-follow-btn {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(188, 19, 254, 0.2);
    color: #d8b4fe;
    cursor: pointer;
}

.feed-v2-trend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    padding: 8px;
    cursor: pointer;
}

.feed-v2-trend-rank {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(147, 51, 234, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.feed-v2-trend-title {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.feed-v2-trend-meta {
    font-size: 10px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .feed-v2-mobile-head {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1450;
        margin: 0 0 10px;
        padding: 10px 12px;
        background: rgba(5, 5, 7, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .feed-v2-main-title {
        font-size: 1.35rem;
    }

    .feed-v2-mobile-menu,
    .feed-v2-mobile-search {
        width: 38px;
        height: 38px;
    }

    .feed-v2-layout {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .feed-v2-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
    }

    .feed-v2-chip {
        min-height: 38px;
        padding: 8px 6px;
        font-size: 10.5px;
        width: 100%;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .feed-v2-post-actions {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .feed-v2-chip i {
        display: none;
    }
}

@media (min-width: 1024px) {
    .feed-v2-layout {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 24px;
        padding-top: 8px;
    }

    .feed-v2-left {
        position: sticky;
        top: 92px;
    }

    .feed-v2-main {
        min-width: 0;
    }

    .feed-v2-mobile-head {
        display: none;
    }

    .feed-v2-composer {
        padding: 16px;
    }
}

@media (min-width: 1280px) {
    .feed-v2-layout {
        grid-template-columns: 260px minmax(0, 1fr) 300px;
    }

    .feed-v2-right {
        position: sticky;
        top: 92px;
    }
}

/* PROFILE V2 STYLES - Mobile Optimization */
.profile-v2-root {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 80px;
    /* Space for mobile nav */
    position: relative;
}

.profile-v2-hero {
    position: relative;
    width: 100%;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0) 0%, rgba(15, 15, 20, 1) 90%);
}

.profile-v2-cover {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

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

.profile-v2-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.profile-v2-avatar-wrap {
    position: relative;
    margin-top: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
}

.profile-v2-avatar-ring {
    position: relative;
    width: 90px;
    height: 90px;
    padding: 3px;
    background: #0f0f13;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0f0f13;
}

.profile-v2-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #0f0f13;
}

.profile-v2-status-dot.online {
    background: #22c55e;
}

.profile-v2-status-dot.away {
    background: #eab308;
}

.profile-v2-status-dot.offline {
    background: #6b7280;
}

.profile-v2-rank-pill {
    margin-top: -10px;
    background: rgba(15, 15, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.profile-v2-identity {
    text-align: center;
    padding: 10px 20px 20px 20px;
    margin-bottom: 20px;
    position: relative;
}

.profile-v2-name {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin: 10px 0 2px 0;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.profile-v2-handle {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 600;
}

.profile-v2-bio {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
    max-width: 400px;
    margin: 10px auto;
    opacity: 0.9;
}

/* Stats Logic */
.profile-v2-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.profile-v2-stat-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 12px 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-v2-stat-value {
    font-size: 18px;
    font-weight: 900;
    color: white;
}

.profile-v2-stat-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
}

/* Scroll Container Fixes */
.profile-v2-games-scroll {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 4px 16px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.profile-v2-games-scroll::-webkit-scrollbar {
    height: 4px;
    display: none;
    /* Cleaner look on mobile */
}

/* Individual Game Card inside Scroll */
.game-card-mini {
    min-width: 140px;
    /* Ensure width */
    width: 140px;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
    background: #1f2937;
}

.game-card-mini .thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-mini .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    opacity: 1;
    /* Always show text on mobile */
}

.game-card-mini .title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* XP Bar */
.profile-v2-xp-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-v2-xp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    color: #9ca3af;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.profile-v2-xp-bg {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 999px;
    overflow: hidden;
}

.profile-v2-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #9333ea, #c084fc);
    border-radius: 999px;
    transition: width 0.5s ease-out;
}

/* Badges */
.profile-v2-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.profile-v2-badge {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Fix Overflow specifically */
@media (max-width: 768px) {
    .profile-v2-root {
        overflow-x: hidden;
        width: 100vw;
    }

    .profile-v2-hero {
        width: 100vw;
        border-radius: 0 0 30px 30px;
    }

    .profile-v2-content {
        padding: 0 16px;
    }
}

/* FIX: Sliding Game Cards for Mobile */
.profile-v2-game-card {
    min-width: 160px;
    width: 160px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-right: 12px;
}

.profile-v2-game-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

/* Ensure buttons inside the card fit */
.profile-v2-game-card .p-3 {
    padding: 12px;
}

.profile-v2-card-btn {
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    width: 100%;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.profile-v2-card-btn.play {
    background: #9333ea;
    color: white;
}

.profile-v2-card-btn.active {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

/* Ensure the container slides */
.profile-v2-games-scroll {
    display: flex;
    overflow-x: auto;
    width: 100%;
    gap: 12px;
    padding: 4px 4px 16px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* Prevent wrapping */
}

.profile-v2-games-scroll::-webkit-scrollbar {
    height: 4px;
    display: none;
}

/* Force Fix Overflow on Mobile */
@media (max-width: 768px) {

    body,
    html {
        overflow-x: hidden;
    }

    .profile-v2-root {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        padding-bottom: 80px;
    }

    .profile-v2-hero {
        width: 100vw;
        left: 50%;
        margin-left: -50vw;
        position: relative;
        border-radius: 0 0 24px 24px;
    }

    /* Container for layout fixes */
    .profile-v2-content {
        padding: 0 16px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* FIX 2: Correct Mobile Margins and Padding - ROBUST NATURAL WIDTH */
@media (max-width: 1100px) {

    /* Since we removed parent padding, this is naturally 100vw */
    .profile-v2-root {
        width: 100%;
        margin: 0;
        padding-bottom: 80px;
        position: relative;
    }

    .profile-v2-hero {
        width: 100%;
        border-radius: 0 0 32px 32px;
        overflow: hidden;
        position: relative;
    }

    /* Content container applies padding internally */
    .profile-v2-content {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .profile-v2-top-actions {
        top: 16px;
        right: 16px;
    }

    .profile-v2-games-scroll {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* End of file */