:root {
    --bg-page: #000000;
    --app-bg: #1e112a;
    --sidebar-bg: #150b1f;
    --card-bg: rgba(45, 25, 65, 0.6);
    --card-hover: rgba(65, 35, 95, 0.8);
    --accent: #9d4edd;
    --accent-glow: #c77dff;
    --text-main: #ffffff;
    --text-muted: #a09eb0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
body {
    background-color: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    color: var(--text-main);
}
.app-container {
    width: 95vw;
    height: 95vh;
    background: var(--app-bg);
    border-radius: 35px;
    display: flex;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(157,78,221,0.1);
}
.app-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(157,78,221,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.sidebar-left {
    width: 90px;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 30px;
    border-right: 1px solid rgba(255,255,255,0.02);
    z-index: 10;
}
.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(157,78,221,0.4);
    transition: all 0.3s ease;
}

.nav-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}
.nav-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-item:hover, .nav-item.active {
    background: rgba(157,78,221,0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157,78,221,0.2);
}
.nav-item.active::after {
    content: '';
    position: absolute;
    left: -22px;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 4px;
}
.bottom-action {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}
.bottom-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 40px 15px 40px;
    z-index: 10;
}
.greeting h1 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
}
.greeting h1 span {
    font-weight: 800;
    color: #fff;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-box {
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(157,78,221,0.2);
}
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 200px;
}
.search-box i {
    color: var(--text-muted);
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}
.icon-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.content-wrap {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0 40px 35px 40px;
}
#panel-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 25px;
    background: transparent;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-right {
    width: 80px;
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 0;
    overflow-y: auto;
    z-index: 10;
}
.sidebar-right::-webkit-scrollbar {
    display: none;
}
.user-login-area {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    padding: 2px;
    cursor: pointer;
    transition: all 0.3s;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent);
}
.logout-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,75,75,0.2);
    color: #ff4b4b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: 10px;
}
.logout-btn:hover {
    background: #ff4b4b;
    color: #fff;
    box-shadow: 0 0 10px #ff4b4b;
    transform: rotate(90deg);
}
.steam-login-btn {
    background: #171a21;
    color: #c7d5e0;
    border: 1px solid #2a475e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    animation: pulseSteam 2s infinite;
}
.steam-login-btn:hover {
    background: #66c0f4;
    color: #fff;
    box-shadow: 0 0 15px #66c0f4;
    transform: scale(1.1);
    animation: none;
}
@keyframes pulseSteam {
    0% { box-shadow: 0 0 0 0 rgba(102, 192, 244, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(102, 192, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 192, 244, 0); }
}
.friends-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: center;
}
.friend-item {
    position: relative;
    width: 40px;
    height: 40px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}
.friend-item:nth-child(1) { animation-delay: 0.1s; }
.friend-item:nth-child(2) { animation-delay: 0.2s; }
.friend-item:nth-child(3) { animation-delay: 0.3s; }
@keyframes fadeIn {
    to { opacity: 1; }
}
.friend-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}
.friend-item:hover img {
    border-color: var(--accent);
    transform: scale(1.1);
}
.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
}
.status-dot.in-game { background: #00aaff; }
.status-dot.offline { background: #555; }
@media (max-width: 1024px) {
    .app-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        border: none;
        flex-direction: column;
    }
    .sidebar-left {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.02);
        gap: 15px;
        justify-content: center;
    }
    .brand-logo, .bottom-action {
        display: none;
    }
    .nav-icons {
        flex-direction: row;
        gap: 20px;
    }
    .nav-item.active::after {
        left: 50%;
        bottom: -5px;
        top: auto;
        width: 20px;
        height: 4px;
        transform: translateX(-50%);
    }
    .sidebar-right {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 15px 20px;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.02);
        justify-content: space-between;
        overflow-x: auto;
    }
    .user-login-area {
        margin-bottom: 0;
        flex-direction: row;
    }
    .logout-btn {
        margin-top: 0;
    }
    .friends-list {
        flex-direction: row;
        width: auto;
    }
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .search-box {
        flex: 1;
    }
    .search-box input {
        width: 100%;
    }
    .content-wrap {
        padding: 0 20px 20px 20px;
    }
}