.glass {
    background: rgba(18, 15, 28, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-glass {
    background: rgba(8, 7, 13, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: background 0.6s ease, border-color 0.6s ease, transform 0.3s ease, opacity 0.3s ease;
}

.glass-card {
    will-change: transform;
}
.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px -10px rgba(167, 139, 250, 0.25);
    border-color: rgba(167, 139, 250, 0.5) !important;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(167, 139, 250, 0.1), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.glass-card:hover::before {
    opacity: 1;
}
.glass-card > * {
    position: relative;
    z-index: 1;
}

.nav-link {
    position: relative;
    padding: 0.25rem 0;
    color: #a1a1aa;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -2px; left: 0;
    background-color: #a78bfa;
    transition: width 0.3s ease;
}
.nav-link:hover,
.nav-link.active-nav {
    color: inherit;
}
.nav-link:hover::after,
.nav-link.active-nav::after {
    width: 100%;
}

.dock-glass {
    background: rgba(8, 7, 13, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: background 0.6s ease, border-color 0.6s ease, transform 0.3s ease, opacity 0.3s ease;
}
body.light-mode .dock-glass {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dock-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-radius: 9999px;
    color: #9ca3af;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease, background-color 0.25s ease, padding 0.25s ease;
}
.dock-item i {
    font-size: 1.4rem;
}
.dock-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
body.light-mode .dock-item:hover {
    color: #111827;
    background: rgba(0, 0, 0, 0.05);
}
.dock-item .dock-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.2s ease, margin 0.3s ease;
}
.dock-item-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding-right: 1.5rem;
}
body.light-mode .dock-item-active {
    color: #111827;
    background: rgba(0, 0, 0, 0.08);
}
.dock-item-active .dock-label {
    max-width: 100px;
    opacity: 1;
}

@media (max-width: 767px) {
    #dock-nav {
        bottom: 1rem;
    }
    .dock-glass {
        padding: 0.35rem;
        gap: 0.15rem;
    }
    .dock-item {
        padding: 0.6rem 0.7rem;
        gap: 0.4rem;
    }
    .dock-item i {
        font-size: 1.15rem;
    }
    .dock-item .dock-label {
        font-size: 0.8rem;
    }
    .dock-item-active {
        padding-right: 0.9rem;
    }
    .dock-item-active .dock-label {
        max-width: 80px;
    }
}

.avatar-container {
    position: relative;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 9999px;
    z-index: 10;
}
@media (min-width: 768px) {
    .avatar-container {
        width: 7.5rem;
        height: 7.5rem;
    }
}
.avatar-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 125%;
    height: 125%;
    max-width: none;
    pointer-events: none;
    z-index: 20;
}
