
.vis-page-title {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    z-index: 1;
}

.vis-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 10;
    font-family: 'Inter', sans-serif;
    color: #f8f9fa;
    perspective: 1000px; 
}

.vis-main-card {
    width: 100%;
    max-width: 360px;
    background: rgba(20, 20, 25, 0.35);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 
                0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: 36px;
    padding: 45px 28px 35px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-style: preserve-3d;
    will-change: transform;
}

.vis-main-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 36px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.vis-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.vis-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vis-avatar:hover {
    transform: scale(1.05) rotate(2deg);
}

.vis-profile h1 {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff, #a8a8aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

.vis-profile p {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    z-index: 1;
}

.vis-links-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vis-links-stack:hover .vis-link:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

.vis-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.vis-link {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

.vis-link:hover {
    transform: scale(1.03) translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.vis-link:active {
    transform: scale(0.97);
}

.link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-icon {
    width: 20px;
    height: 20px;
    fill: #fff;
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.vis-link:hover .link-icon {
    opacity: 1;
}

.link-title {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.music-widget {
    margin-top: 30px;
    margin-bottom: 10px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

.music-widget:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vinyl-record {
    width: 54px;
    height: 54px;
    background: #111;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spinVinyl 4s linear infinite;
    animation-play-state: paused;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.music-widget.playing .vinyl-record {
    animation-play-state: running;
}

.record-center {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #222;
}

.record-grooves {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}
.record-grooves::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes spinVinyl {
    100% { transform: rotate(360deg); }
}

.music-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.music-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.music-track {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
}

.bar {
    width: 3px;
    background: #1DB954;
    border-radius: 3px;
    animation: eqBounce 1s ease-in-out infinite alternate;
    animation-play-state: paused;
}

.music-widget.playing .bar {
    animation-play-state: running;
}

.bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.bar:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.bar:nth-child(3) { height: 40%; animation-delay: 0.0s; }
.bar:nth-child(4) { height: 80%; animation-delay: 0.3s; }

@keyframes eqBounce {
    0% { height: 20%; }
    100% { height: 100%; }
}

.vis-back {
    margin-top: 15px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.vis-back:hover {
    background: rgba(255, 255, 255, 0.03);
    border-style: solid;
    color: #fff;
    transform: none;
}

.animate-entry {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 20, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vis-container {
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

body.page-enter .vis-container, body.page-exit .vis-container {
    opacity: 0;
    filter: blur(15px);
    transform: scale(0.97);
}

.copyright-text {
    animation: blurFadeIn 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
    opacity: 0;
    filter: blur(10px);
}

@keyframes blurFadeIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(10px);
    }
    100% {
        opacity: 0.4;
        filter: blur(0);
        transform: translateY(0);
    }
}

.vis-theme-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-main);
}

.light-mode .vis-main-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.light-mode .vis-page-title {
    color: rgba(0, 0, 0, 0.2);
}

.light-mode .vis-profile h1 {
    background: linear-gradient(135deg, #1d1d1f, #434344);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-mode .vis-profile p {
    color: #555;
}

.light-mode .vis-link {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    color: #1d1d1f;
}

.light-mode .vis-link:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .link-icon {
    fill: #333;
    color: #333;
}

.light-mode .vis-back {
    border-color: rgba(0, 0, 0, 0.1);
    color: #888;
}

.light-mode .vis-back:hover {
    background: rgba(0, 0, 0, 0.02);
    color: #1d1d1f;
}

.light-mode .copyright-text {
    color: rgba(0, 0, 0, 0.3);
}
