:root {
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #FF2A2A; 
    --accent-glow: rgba(255, 42, 42, 0.6);
    --glass-bg: rgba(10, 10, 10, 0.25);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background-color: #000;
    cursor: url('assets/cursor.svg') 5 3, auto; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


.cursor-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff3232;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    box-shadow: 0 0 10px #ff3232, 0 0 20px #ff3232;
    animation: trailFade 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes trailFade {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}


.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 2.5px
    );
    pointer-events: none;
    z-index: 1000000;
    opacity: 0.6;
}


.welcome-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
    overflow: hidden;
}

.welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-main);
    text-transform: lowercase;
    text-shadow: 0 0 10px var(--accent-glow);
    animation: welcome-pulse 2s infinite ease-in-out alternate;
}

@keyframes welcome-pulse {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 0.8; transform: scale(1.02); }
}


.stage-hidden {
    opacity: 0;
    pointer-events: none;
    transition: 
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
        opacity 0.8s ease;
}


.card.stage-hidden { transform: translateY(30px) scale(0.98); }
.music-player.stage-hidden { transform: translate(-50%, 50px); }
.pill-left.stage-hidden { transform: translateX(-30px); }
.pill-right.stage-hidden { transform: translateX(30px); }


.stage-active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0, 0) scale(1) !important;
    pointer-events: all !important;
}


.music-player.stage-active {
    transform: translate(-50%, 0) scale(1) !important;
}

.bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: saturate(1.1) brightness(0.8);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
}

.glass-pill {
    position: fixed;
    top: 24px;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000001; 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.pill-left { left: 24px; }
.pill-right { right: 24px; }


.layout-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 310px;
    position: relative;
    z-index: 10;
}

.widgets-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 22px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 100;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    min-height: 380px; 
    height: var(--card-height, auto); 
    transition: 
        height 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}


.card::before, .discord-profile-widget::before, .rpc-widget::before, .clean-server-widget::before, .music-player::before {
    content: "";
    position: absolute;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    background-position: var(--noise-x, 0) var(--noise-y, 0);
    opacity: 0.055;
    pointer-events: none;
    z-index: -1;
    filter: contrast(150%) brightness(120%);
}


@keyframes cardPulse {
    0%, 100% { 
        box-shadow: 
            0 10px 50px rgba(0, 0, 0, 0.9), 
            inset 0 0 0 1px rgba(255,255,255,calc(0.1 + var(--audio-pulse, 0) * 0.2)), 
            0 0 calc(50px + var(--audio-pulse, 0) * 40px) rgba(255, 255, 255, calc(0.4 + var(--audio-pulse, 0) * 0.3)), 
            0 0 calc(100px + var(--audio-pulse, 0) * 60px) rgba(255, 255, 255, calc(0.15 + var(--audio-pulse, 0) * 0.2)); 
        border-color: rgba(255, 255, 255, calc(0.4 + var(--audio-pulse, 0) * 0.5));
    }
    50% { 
        box-shadow: 
            0 15px 60px rgba(0, 0, 0, 0.9), 
            inset 0 0 0 1px rgba(255,255,255,calc(0.15 + var(--audio-pulse, 0) * 0.25)), 
            0 0 calc(70px + var(--audio-pulse, 0) * 50px) rgba(255, 255, 255, calc(0.6 + var(--audio-pulse, 0) * 0.35)), 
            0 0 calc(130px + var(--audio-pulse, 0) * 70px) rgba(255, 255, 255, calc(0.25 + var(--audio-pulse, 0) * 0.25)); 
        border-color: rgba(255, 255, 255, calc(0.5 + var(--audio-pulse, 0) * 0.5));
    }
}


.click-ripple {
    position: absolute;
    width: 250px; height: 250px; 
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ripple-pop {
    from { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}


.glass-pill {
    position: fixed;
    top: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 8px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(0,0,0,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.6), inset 0 0 10px rgba(255,255,255,0.1);
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100000;
    cursor: default;
}

.pill-left { 
    left: 24px; 
    transform: translateX(-20px); 
}
.pill-right { 
    right: 24px; 
    transform: translateX(20px); 
}

.glass-pill.visible {
    opacity: 1;
    transform: translateX(0);
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 30px rgba(0,0,0,0.7), 0 0 15px rgba(255, 255, 255, 0.2);
}

.glass-pill i {
    font-size: 13px;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.card > * {
    transform: translateZ(30px);
    transition: transform 0.1s ease-out;
}

.fade-in {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: perspective(1000px) translateY(30px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) translateY(0px);
    }
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 12px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.8);
}

.profile-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.name {
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-transform: lowercase;
    text-shadow: 0 0 12px var(--accent-glow), 0 2px 5px rgba(0,0,0,0.8);
    position: relative;
}


.name:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    background-color: rgba(0,0,0,0.2); 
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}




.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), inset 0 0 5px rgba(255,255,255,0.1);
    z-index: 1000;
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    width: 85%;
    margin: 6px auto;
}


.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.tab-btn, .project-card, .social-link-item, .social-icon, .card, .discord-profile-widget, .rpc-widget, .clean-server-widget {
    will-change: transform;
}

.tab-content {
    width: 100%;
    position: relative;
}

.tab-pane {
    display: none;
    animation: tabFadeIn 0.4s ease forwards;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tab-pane.active {
    display: flex;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.setup-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.setup-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.setup-item i {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 2px;
}

.setup-item span {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.setup-item strong {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}


.social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.social-link-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.social-link-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--accent);
}


.music-player {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 25px rgba(0,0,0,0.6), inset 0 0 10px rgba(255, 255, 255, 0.1), 0 0 40px rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 18px;
    box-sizing: border-box;
    gap: 12px;
    z-index: 1000005; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.music-player:hover {
    background: rgba(255, 255, 255, 0.05);
    bottom: 28px;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 255, 255, 0.3);
}

.mp-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
}

.player-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.control-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.play-btn {
    font-size: 16px;
    color: #fff;
}

.song-info {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px; 
    overflow: hidden;
}

.song-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    width: 14px;
}

.vis-bar {
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}


#visualizer:not(.paused) .vis-bar {
    animation: vis-bounce 0.8s ease-in-out infinite alternate;
}

#visualizer:not(.paused) .vis-bar:nth-child(2) { animation-delay: 0.2s; }
#visualizer:not(.paused) .vis-bar:nth-child(3) { animation-delay: 0.4s; }
#visualizer:not(.paused) .vis-bar:nth-child(4) { animation-delay: 0.1s; }

@keyframes vis-bounce {
    0% { height: 3px; }
    100% { height: 10px; }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vol-slider {
    width: 80px; 
    height: 3px;
    accent-color: var(--accent);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}

.vol-slider:hover {
    background: rgba(255, 255, 255, 0.25);
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    padding: 2px;
}

.control-btn:hover {
    color: var(--text-main);
    transform: scale(1.1);
}

.play-btn {
    font-size: 14px;
    color: var(--text-main);
}

.vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: transform 0.1s;
}

.vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}


.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.social-icon {
    color: var(--text-muted);
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 15px var(--accent-glow);
}


#firefly-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5; 
}

#vfx-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 100000; 
}

.particle {
    position: absolute;
    
    pointer-events: none;
    color: #fff;
    font-size: 10px;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--accent-glow);
    opacity: 0;
    user-select: none;
    animation: 
        twinkle var(--t-dur) infinite alternate ease-in-out,
        spin var(--rot-dur) infinite linear;
    will-change: left, top, opacity;
}

@keyframes twinkle {
    0% { opacity: 0.2; scale: 0.7; }
    100% { opacity: 0.8; scale: 1.1; }
}

@keyframes spin {
    from { rotate: 0deg; }
    to { rotate: 360deg; }
}



.discord-profile-widget {
    display: none; 
    width: 100%;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 14px 16px;
    gap: 12px;
    align-items: center;
    flex-direction: row;
    transition: border-color 0.3s;
    z-index: 100;
    position: relative;
}
.discord-profile-widget:hover {
    border-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    box-shadow: 
        0 6px 25px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        -2px 0 3px rgba(255, 0, 0, 0.2), 
        2px 0 3px rgba(0, 255, 255, 0.2),
        0 0 50px rgba(255, 255, 255, 0.6),
        0 0 90px rgba(255, 255, 255, 0.3);
}
.discord-profile-widget.visible { display: flex; }

.copy-notification {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    z-index: 1000000 !important;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dp-avatar-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}
.dp-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.dp-avatar-dec {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; 
    height: 120%;
    z-index: 5;
    pointer-events: none;
}
.dp-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #747f8d;
    border: 2px solid #111; 
    z-index: 10;
    transition: background-color 0.3s;
}
.dp-status.online { background-color: #23a559; box-shadow: 0 0 8px rgba(35,165,89,0.5); }
.dp-status.idle { background-color: #f0b232; box-shadow: 0 0 8px rgba(240,178,50,0.5); }
.dp-status.dnd { background-color: #f23f43; box-shadow: 0 0 8px rgba(242,63,67,0.5); }
.dp-status.offline { background-color: #80848e; }

.dp-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.dp-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.dp-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.dp-clan-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 18px;
    transition: all 0.3s ease;
}

.dp-clan-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.dp-clan-badge {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.dp-custom-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dp-custom-status img.emoji { width: 14px; height: 14px; }

.clean-server-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 14px 16px;
    text-decoration: none;
    z-index: 100;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.clean-server-widget:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.2), 0 0 50px rgba(255, 255, 255, 0.6), 0 0 90px rgba(255, 255, 255, 0.3);
}
.sw-content { display: flex; align-items: center; gap: 14px; }
.sw-icon-wrap {
    width: 44px; height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.sw-guild-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sw-details { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.sw-name { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.sw-members { font-size: 11px; color: rgba(255, 255, 255, 0.5); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.sw-dot { width: 6px; height: 6px; border-radius: 50%; background: #23a559; box-shadow: 0 0 6px rgb(35, 165, 89); }
.sw-join { font-size: 16px; color: rgba(255, 255, 255, 0.4); transition: color 0.3s, transform 0.3s; }
.clean-server-widget:hover .sw-join { color: #ff3232; transform: translateX(3px); }

.visualizer {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 12px;
}
.vis-bar {
    width: 3px;
    height: 3px;
    background: #ff3232;
    border-radius: 2px;
    transition: height 0.1s ease;
}

@keyframes pulse {
    0%, 100% { height: 3px; }
    50% { height: 12px; }
}

.playing .vis-bar:nth-child(1) { animation: pulse 1s infinite; }
.playing .vis-bar:nth-child(2) { animation: pulse 0.8s infinite 0.2s; }
.playing .vis-bar:nth-child(3) { animation: pulse 1.2s infinite 0.4s; }
.playing .vis-bar:nth-child(4) { animation: pulse 0.9s infinite 0.1s; }

.quote-container {
    margin: 0 0 4px 0;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    min-height: 15px;
    text-shadow: 0 0 8px rgba(255, 50, 50, 0.4);
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.4;
    max-width: 95%;
}
#typewriter::after {
    content: '_';
    animation: blink 1s infinite;
    margin-left: 1px;
}
@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0; } 
}
.visualizer .bar:nth-child(5) { animation-duration: 0.6s; }

@keyframes eq {
    0% { height: 3px; }
    100% { height: 14px; }
}

@keyframes sparkleFall {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg); opacity: 0; }
}

.rpc-widget {
    display: none; 
    width: 100%;
    box-sizing: border-box;
    --rpc-rgb: 255, 50, 50; 
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 40px rgba(255, 255, 255, 0.5), 0 0 80px rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 14px 16px;
    gap: 14px;
    align-items: center;
    flex-direction: row;
    z-index: 100;
    position: relative;
    animation: fadeSlideIn 0.5s ease forwards;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.rpc-widget:hover {
    background: rgba(var(--rpc-rgb), 0.1);
    border-color: rgba(var(--rpc-rgb), 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(var(--rpc-rgb), 0.2), 0 0 50px rgba(255, 255, 255, 0.6), 0 0 90px rgba(255, 255, 255, 0.3);
}

.rpc-widget.visible {
    display: flex;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.rpc-art {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.rpc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.rpc-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.rpc-logo {
    color: rgb(var(--rpc-rgb));
    font-size: 13px;
}

.rpc-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgb(var(--rpc-rgb));
    font-weight: 700;
}

.rpc-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    transition: color 0.2s;
}

.rpc-title:hover { color: rgb(var(--rpc-rgb)); }

.rpc-details {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpc-state {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpc-bar-wrap {
    margin-top: 4px;
}

.rpc-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.rpc-bar-fill {
    height: 100%;
    background: rgb(var(--rpc-rgb));
    border-radius: 2px;
    width: 0%;
    transition: width 1s linear;
    box-shadow: 0 0 6px rgba(var(--rpc-rgb), 0.6);
}


.custom-cm {
    position: fixed;
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    z-index: 2000000;
    min-width: 180px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
}

.cm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cm-item i {
    font-size: 14px;
    width: 16px;
    color: var(--accent);
}

.cm-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.cm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 8px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-header i {
    font-size: 14px;
    color: var(--accent);
}

.project-header strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.project-card p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0;
}

.project-peek-follower {
    position: fixed;
    top: 0; left: 0;
    width: 260px;
    height: 160px;
    pointer-events: none;
    z-index: 200000;
    opacity: 0;
    transform: scale(0.8) translate(20px, 20px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-peek-follower.visible {
    opacity: 1;
    transform: scale(1) translate(25px, 25px);
}

.peek-content {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.1);
}

.peek-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.peek-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.badge-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    margin: 10px 0 8px 0;
    width: 100%;
}

.badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(255,255,255,0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.badge i {
    font-size: 11px;
    color: var(--accent);
    line-height: 1;
}

.badge span {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1;
}

.quote-container {
    min-height: 32px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
