.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%;
}

.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;
}
