* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050508;
    min-height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 10;
    pointer-events: none;
}

.top-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    flex-wrap: wrap;
}

.nav-item, .nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px; 
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.discord-static {
    background: rgba(88, 101, 242, 0.06);
    border-color: rgba(88, 101, 242, 0.15);
    color: #ffffff;
    cursor: pointer;
}

.discord-static:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.2);
}

.avatar-wrapper {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.discord-tag {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.bm-logo, .spigot-logo {
    object-fit: contain;
}

.nav-button:hover .icon {
    transform: scale(1.1);
}

.nav-button.tg:hover {
    background: rgba(36, 161, 222, 0.1);
    border-color: rgba(36, 161, 222, 0.3);
    color: #24A1DE;
}

.nav-button.bm:hover {
    background: rgba(0, 200, 115, 0.1);
    border-color: rgba(0, 200, 115, 0.3);
    color: #00c873;
}

.nav-button.spigot:hover {
    background: rgba(239, 135, 51, 0.1);
    border-color: rgba(239, 135, 51, 0.3);
    color: #ef8733;
}

.nav-button.gh:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.theme-selector {
    position: relative;
    pointer-events: auto;
}

.theme-button {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.theme-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.theme-button:active {
    transform: scale(0.96);
}

.theme-dropdown {
    position: absolute;
    top: 56px;
    right: 0;
    background: rgba(20, 20, 25, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.theme-dropdown.show {
    display: flex;
}

.theme-option {
    padding: 10px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    background: transparent;
    border: none;
    width: 100%;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.theme-option:active {
    transform: scale(0.97);
}

.theme-option.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}