/* Modern CSS Variables & Resets */
:root {
    --bg-color: #030305;
    --card-bg: rgba(10, 10, 15, 0.45);
    --card-border: rgba(138, 75, 245, 0.12);
    --card-border-hover: rgba(138, 75, 245, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #8f929d;
    --accent-purple: #8a4bf5;
    --accent-blue: #3b82f6;
    --accent-cyan: #00f0ff;
    --spotify-green: #1db954;

    --online-color: #23a55a;
    --idle-color: #f0b232;
    --dnd-color: #f23f43;
    --offline-color: #80848e;

    --font-header: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Hide default cursor for custom cursor experience */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-header);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Starfield Background Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    will-change: transform;
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(138, 75, 245, 0.3) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.2s, height 0.2s;
    will-change: transform;
}

/* Hover cursor effect */
body.hovering .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent-cyan);
}

body.hovering .cursor-glow {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.35) 0%, rgba(138, 75, 245, 0.1) 60%, rgba(0, 0, 0, 0) 80%);
}

/* Landing / Enter Screen */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #020204;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), visibility 1.2s;
}

.enter-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.enter-logo {
    font-size: 2.2rem;
    font-weight: 300;
    font-family: var(--font-mono);
    letter-spacing: 0.8rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    animation: enterLogoFade 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards, breathingGlow 4s infinite ease-in-out 1.2s;
    margin-left: 0.8rem;
    opacity: 0;
}

.enter-btn-wrapper {
    position: relative;
    animation: enterBtnFade 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.3s;
    opacity: 0;
    margin-top: 10px;
}

.enter-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.enter-btn-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    will-change: transform;
    transform: translateY(2px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
    filter: blur(2px);
}

.enter-btn-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(
        to left,
        hsl(262, 80%, 25%) 0%,
        hsl(262, 80%, 40%) 8%,
        hsl(262, 80%, 40%) 92%,
        hsl(262, 80%, 25%) 100%
    );
    box-shadow: 0 0 10px rgba(138, 75, 245, 0.15);
}

.enter-btn-front {
    display: block;
    position: relative;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.7);
    background: #06060c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    will-change: transform;
    transform: translateY(-6px);
    transition: transform 600ms cubic-bezier(.3, .7, .4, 1), background-color 0.3s, color 0.3s, border-color 0.3s;
    letter-spacing: 0.25rem;
    text-transform: uppercase;
}

.enter-btn:hover {
    filter: brightness(115%);
}

.enter-btn:hover .enter-btn-front {
    transform: translateY(-8px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
    background: #090915;
    border-color: var(--accent-purple);
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(138, 75, 245, 0.2), inset 0 0 6px rgba(0, 240, 255, 0.1);
}

.enter-btn:hover .enter-btn-shadow {
    transform: translateY(4px);
    transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.enter-btn:active .enter-btn-front,
.enter-btn.depressed .enter-btn-front {
    transform: translateY(-2px);
    transition: transform 34ms;
    color: #ffffff;
    border-color: var(--accent-cyan);
}

.enter-btn:active .enter-btn-shadow,
.enter-btn.depressed .enter-btn-shadow {
    transform: translateY(1px);
    transition: transform 34ms;
}

.enter-hint {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 10px;
    animation: enterHintFade 1.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes enterLogoFade {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes enterBtnFade {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes enterHintFade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes breathingGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    }

    50% {
        text-shadow: 0 0 25px rgba(138, 75, 245, 0.55), 0 0 10px rgba(138, 75, 245, 0.2);
    }
}

/* App Container (Main site) */
.app-container {
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: scale(0.96) translateY(20px);
    transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1), transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    /* Disable interaction until enter screen is clicked */
    width: 100%;
    max-width: 440px;
    padding: 20px;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.app-container.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Widget Integrated Media Controls */
.widget-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-control-btn:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

.widget-volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.widget-volume-wrapper input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5px;
    outline: none;
    cursor: pointer;
}

.widget-volume-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-primary);
    transition: transform 0.1s, background-color 0.1s;
}

.widget-volume-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background: var(--accent-cyan);
}

/* Profile Card */
/* Profile Card Wrapper & Layout */
.profile-card-wrapper {
    perspective: 1000px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    min-height: 720px;
}

/* Discord Game Presence Card */
.discord-game-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 20px 24px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
    display: none; /* hidden until active class is added */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.discord-game-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.game-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at 50% 50%, rgba(138, 75, 245, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.game-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}

.game-badge {
    font-size: 8.5px;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.game-duration {
    font-size: 9.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.game-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

.game-art-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.game-large-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-small-image {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    position: absolute;
    bottom: -4px;
    right: -4px;
    border: 2.5px solid #0d0d14;
    background: #0d0d14;
    object-fit: cover;
    display: none;
}

.game-art-fallback {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--text-secondary);
}

.game-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.game-title {
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-state {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-details-text {
    color: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#card-visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.profile-card-wrapper {
    position: relative;
    width: 100%;
}

.profile-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
        0 0 calc(10px + var(--bass-intensity, 0) * 30px) color-mix(in srgb, var(--accent-purple) calc(var(--bass-intensity, 0) * 15%), transparent);
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
    overflow: visible;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.8),
        0 0 calc(30px + var(--bass-intensity, 0) * 30px) color-mix(in srgb, var(--accent-purple) calc(5% + var(--bass-intensity, 0) * 15%), transparent);
    transform: translateY(-5px);
}

/* Card Radial Glow Background */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(138, 75, 245, 0.07), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* Profile Header Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    transition: transform 0.05s linear;
    transform: scale(calc(1 + var(--bass-intensity, 0) * 0.12));
    perspective: 1000px;
    cursor: pointer;
}

/* Beat ring pulse — expands outward on kick hits like a Discord speaking ring */
.avatar-container::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
    opacity: calc(var(--bass-intensity, 0) * 0.6);
    transform: scale(calc(1 + var(--bass-intensity, 0) * 0.25));
    transition: transform 0.06s linear, opacity 0.06s linear;
    pointer-events: none;
    z-index: -1;
}

.avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(
        calc(135deg + var(--bass-intensity, 0) * 40deg),
        var(--accent-purple),
        color-mix(in srgb, var(--accent-cyan) calc(60% + var(--bass-intensity, 0) * 40%), var(--accent-purple))
    );
    z-index: -1;
    transform: translateZ(-1px);
    opacity: calc(0.25 + var(--bass-intensity, 0) * 0.6);
    filter: blur(calc(4px + var(--bass-intensity, 0) * 8px));
    animation: rotateGlow 10s linear infinite;
}

.avatar-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    z-index: 2;
}

.avatar-container:hover .avatar-inner {
    transform: rotateY(180deg);
}

.avatar-inner.intro-spin {
    animation: avatarIntroSpin 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes avatarIntroSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.avatar-front, .avatar-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.avatar-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.avatar-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0d0d14;
    display: block;
}

/* Status Indicator Dot */
.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #0d0d14;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.status-dot.online {
    background-color: var(--online-color);
    border-color: #0d0d14;
    mask-image: none;
    -webkit-mask-image: none;
    box-shadow: 0 0 10px rgba(35, 165, 90, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: statusPulse 2s infinite ease-in-out;
}

.status-dot.idle {
    background-color: var(--idle-color);
    border-color: #0d0d14;
    mask-image: radial-gradient(circle at 4px 4px, transparent 7px, #000 7.5px);
    -webkit-mask-image: radial-gradient(circle at 4px 4px, transparent 7px, #000 7.5px);
    filter: drop-shadow(0 0 2px rgba(240, 178, 50, 0.4));
    animation: statusPulseIdle 2s infinite ease-in-out;
}

.status-dot.dnd {
    background-color: var(--dnd-color);
    border-color: #0d0d14;
    mask-image: linear-gradient(to bottom, #000 7px, transparent 7px, transparent 11px, #000 11px);
    -webkit-mask-image: linear-gradient(to bottom, #000 7px, transparent 7px, transparent 11px, #000 11px);
    filter: drop-shadow(0 0 2px rgba(242, 63, 67, 0.4));
    animation: statusPulseDnd 2s infinite ease-in-out;
}

.status-dot.offline {
    background-color: transparent;
    border-color: var(--offline-color);
    mask-image: none;
    -webkit-mask-image: none;
}

/* Thought Bubble Status */
.thought-bubble-container {
    position: absolute;
    top: -55px;
    left: 55px;
    z-index: 10;
    pointer-events: none;
    animation: floatBubble 4s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
}

.thought-bubble {
    background: var(--card-bg);
    border: 1.5px solid var(--accent-purple);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 8px 14px;
    max-width: 180px;
    width: max-content;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thought-bubble-text {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    line-height: 1.35;
    display: block;
    text-align: center;
    word-break: break-word;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Thought dots trailing down toward the avatar */
.thought-dot {
    position: absolute;
    background: var(--card-bg);
    border: 1.5px solid var(--accent-purple);
    border-radius: 50%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thought-dot.dot1 {
    width: 9px;
    height: 9px;
    bottom: -14px;
    left: 30px;
}

.thought-dot.dot2 {
    width: 6px;
    height: 6px;
    bottom: -24px;
    left: 20px;
}

@keyframes floatBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustment for thought bubble status */
@media (max-width: 480px) {
    .thought-bubble-container {
    }

    .thought-bubble {
        padding: 5px 10px;
        max-width: 140px;
        border-radius: 12px;
    }

    .thought-bubble-text {
        font-size: 0.65rem;
    }

    .thought-dot.dot1 {
        bottom: -12px;
        left: 25px;
        width: 7px;
        height: 7px;
    }

    .thought-dot.dot2 {
        bottom: -20px;
        left: 16px;
        width: 4px;
        height: 4px;
    }
}


.user-info {
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.username-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.username {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    background: linear-gradient(to right, #fff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.verified-badge {
    color: var(--accent-cyan);
    font-size: 1rem;
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.user-handle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.local-time-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.85;
}

.local-time-wrapper i {
    font-size: 0.75rem;
}

.time-diff {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    background: color-mix(in srgb, var(--accent-cyan) 8%, transparent);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}



/* Bio Section */
.bio-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px 18px;
    min-height: 48px;
    display: flex;
    align-items: center;
    z-index: 2;
}

.bio-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #b3b6c2;
    line-height: 1.4;
    white-space: pre-wrap;
}

.cursor-blink {
    color: var(--accent-purple);
    font-weight: 700;
    animation: blink 1s infinite steps(2, start);
}

/* Social Links Column Stack */
.socials-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon {
    font-size: 1.15rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
}

.social-label {
    font-size: 0.9rem;
    font-weight: 600;
    flex-grow: 1;
}

.arrow-icon {
    font-size: 0.75rem;
    opacity: 0.4;
    transition: transform 0.3s, opacity 0.3s;
}

/* Hover States for Social Links */
.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.social-link:hover .arrow-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.social-link.github:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.social-link.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.social-link.spotify-social:hover {
    background: rgba(29, 185, 84, 0.12);
    border-color: rgba(29, 185, 84, 0.4);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.2);
}

.social-link.about-card-trigger:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}

.social-link.trendedektor-card:hover {
    background: rgba(255, 122, 0, 0.08);
    border-color: rgba(255, 122, 0, 0.35);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.2);
}

.social-link.trendedektor-card:hover .social-icon {
    color: #ff7a00;
}

.socials-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.socials-row-split .social-link {
    padding: 12px 14px;
}

/* Spotify Live Listening Expansion styling */
#spotify-link {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

#spotify-link .spotify-default-view {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

#spotify-link .spotify-live-view {
    display: none; /* Hidden by default */
    width: 100%;
    gap: 16px;
    align-items: center;
}

#spotify-link.listening {
    background: rgba(29, 185, 84, 0.08); /* Faint Spotify green tint */
    border: 1px solid rgba(29, 185, 84, 0.25);
    box-shadow: 0 4px 20px rgba(29, 185, 84, 0.15);
    padding: 16px;
}

#spotify-link.listening:hover {
    background: rgba(29, 185, 84, 0.12);
    border-color: rgba(29, 185, 84, 0.4);
    box-shadow: 0 6px 24px rgba(29, 185, 84, 0.25);
}

#spotify-link.listening .spotify-default-view {
    display: none;
}

#spotify-link.listening .spotify-live-view {
    display: flex;
}

.spotify-album-cover-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spotify-album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-live-wave {
    position: absolute;
    bottom: 3px;
    right: 3px;
    display: flex;
    gap: 2.2px;
    align-items: flex-end;
    height: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2.5px 3.5px;
    border-radius: 3px;
}

.spotify-live-wave span {
    display: block;
    width: 2px;
    height: 2px;
    background-color: #1db954;
    animation: waveBounce 0.8s ease-in-out infinite alternate;
}
.spotify-live-wave span:nth-child(2) {
    animation-delay: 0.2s;
    animation-duration: 0.6s;
}
.spotify-live-wave span:nth-child(3) {
    animation-delay: 0.4s;
    animation-duration: 0.7s;
}

@keyframes waveBounce {
    0% { height: 2px; }
    100% { height: 8px; }
}

.spotify-track-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.spotify-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.spotify-status-badge {
    font-size: 8px;
    font-weight: 800;
    color: #1db954;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.spotify-song-title {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-song-artist {
    color: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.spotify-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 3px;
}

.spotify-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #1db954;
    transition: width 1s linear;
}

.spotify-progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
}

/* Tooltip for Copy Action */
.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    z-index: 100;
}

.social-link:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Now Playing Music Widget */
.music-widget {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
    transition: all 0.4s ease;
}

.music-widget:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--card-border-hover);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-icon {
    color: var(--accent-purple);
    font-size: 1.15rem;
    animation: rotateMusic 8s infinite linear;
    animation-play-state: paused;
}

.music-widget:hover .music-icon {
    animation-play-state: running;
}

.music-header-text {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.music-tag {
    background: rgba(138, 75, 245, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(138, 75, 245, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.widget-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.album-art-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.vinyl-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 3px 7px;
    font-size: 0.62rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.album-art-wrapper:hover .vinyl-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vinyl-glow-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 1.5px dashed rgba(138, 75, 245, 0.4);
    opacity: 0.6;
    animation: spinRecord 20s infinite linear;
    z-index: 1;
    transition: border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
}

.vinyl-glow-ring.playing {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
    animation-duration: 5s;
    opacity: 0.9;
}

.vinyl-highlights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(transparent 0%,
            transparent 15%,
            rgba(255, 255, 255, 0.12) 20%,
            transparent 25%,
            transparent 50%,
            transparent 65%,
            rgba(255, 255, 255, 0.12) 70%,
            transparent 75%,
            transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Vinyl Player Styles */
.vinyl-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #08080a;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.vinyl-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #18181f 0%, #0d0d11 12%, #22222b 25%, #0d0d11 38%, #1f1f28 50%, #08080c 62%, #2c2c38 75%, #0d0d11 88%, #030305 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: spinRecord 25s infinite linear;
}

.vinyl-disc.playing {
    animation: spinRecord 6s infinite linear;
}

.vinyl-label {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.vinyl-label-center {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #030305;
}

.vinyl-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    background: conic-gradient(from 45deg, transparent 35%, rgba(255, 255, 255, 0.08) 45%, transparent 55%, transparent 85%, rgba(255, 255, 255, 0.08) 95%, transparent 100%);
    border-radius: 50%;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex-grow: 1;
}

.track-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.mini-spectrum {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    width: 14px;
    height: 11px;
    flex-shrink: 0;
}

.mini-spectrum span {
    width: 2px;
    height: 100%;
    background-color: var(--accent-cyan);
    border-radius: 1px;
    transform-origin: bottom;
    transform: scaleY(0.35);
    transition: transform 0.25s ease;
}

.mini-spectrum.playing span:nth-child(1) {
    animation: miniBounceBar 0.8s ease-in-out infinite alternate;
}
.mini-spectrum.playing span:nth-child(2) {
    animation: miniBounceBar 0.5s ease-in-out infinite alternate 0.15s;
}
.mini-spectrum.playing span:nth-child(3) {
    animation: miniBounceBar 0.75s ease-in-out infinite alternate 0.05s;
}
.mini-spectrum.playing span:nth-child(4) {
    animation: miniBounceBar 0.6s ease-in-out infinite alternate 0.2s;
}

@keyframes miniBounceBar {
    0% {
        transform: scaleY(0.3);
    }
    100% {
        transform: scaleY(1);
    }
}

.track-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
}

.track-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.track-album {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2px;
}

/* Progress Container */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-bar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(to right, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
    transition: width 0.5s linear;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.25);
}



@keyframes rotateMusic {
    0% {
        transform: rotate(0deg);
    }

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

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 15px;
    margin-top: 5px;
    z-index: 2;
}

.view-counter i {
    margin-right: 4px;
}

.footer-credit {
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Custom Sparkles spawned on Click */
.sparkle {
    position: fixed;
    pointer-events: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    z-index: 9997;
    animation: spawnSparkle 0.8s ease-out forwards;
}

/* Keyframes Animations */
@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.8;
        filter: drop-shadow(0 0 10px rgba(138, 75, 245, 0.4));
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(138, 75, 245, 0.8));
    }
}

@keyframes pulseAvatar {

    0%,
    100% {
        opacity: 0.6;
        filter: blur(4px) brightness(1);
    }

    50% {
        opacity: 0.8;
        filter: blur(6px) brightness(1.2);
    }
}

@keyframes blink {

    from,
    to {
        color: transparent;
    }

    50% {
        color: var(--accent-purple);
    }
}

@keyframes spinRecord {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes rotateSpotify {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes pulseLive {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes spawnSparkle {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(1.5);
        opacity: 0;
    }
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 4px rgba(35, 165, 90, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(35, 165, 90, 0.85), 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

@keyframes statusPulseIdle {

    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(240, 178, 50, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 5px rgba(240, 178, 50, 0.85));
    }
}

@keyframes statusPulseDnd {

    0%,
    100% {
        filter: drop-shadow(0 0 1px rgba(242, 63, 67, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 5px rgba(242, 63, 67, 0.85));
    }
}

/* Fallback/Responsiveness: Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }

    .app-container {
        padding: 10px;
    }

    .profile-card {
        padding: 22px;
    }

    .floating-controls {
        top: -45px;
        right: 10px;
        padding: 6px 12px;
    }

    .volume-slider-wrapper {
        display: none;
        /* Hide volume slider on mobile as it's hard to drag nicely and system controls are preferred */
    }
}

/* ==========================================
   THEME TOGGLE BUTTON & STYLES
   ========================================== */
/* ==========================================
   3D CARD FLIP ARCHITECTURE & CONTROLS
   ========================================== */
.profile-card-3d {
    perspective: 1500px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.profile-card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.profile-card-inner.flipped {
    transform: rotateY(180deg);
}

.profile-card.card-front,
.profile-card.card-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.profile-card.card-front {
    transform: rotateY(0deg);
    position: relative;
    z-index: 2;
}

.profile-card.card-back {
    transform: rotateY(180deg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.profile-card.card-back::-webkit-scrollbar {
    width: 5px;
}
.profile-card.card-back::-webkit-scrollbar-track {
    background: transparent;
}
.profile-card.card-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
.profile-card.card-back::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Card controls positioning */
.card-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.theme-toggle-btn,
.about-toggle-btn,
.about-close-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover,
.about-toggle-btn:hover,
.about-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(138, 75, 245, 0.2);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(20deg);
}

/* About Me Content Styling */
.about-me-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    z-index: 2;
    padding-top: 5px;
}

.about-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.about-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-status-row {
    margin-top: 6px;
}

.about-status-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 240, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.12);
}

.about-body {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-lead {
    font-family: var(--font-mono);
    color: var(--accent-purple);
    font-size: 0.85rem;
    line-height: 1.4;
    border-left: 2px solid var(--accent-purple);
    padding-left: 10px;
    margin-bottom: 5px;
}

.about-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-section p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.about-section-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list li {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    line-height: 1.4;
}

.about-list li span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-project-logo {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    vertical-align: middle;
    margin: 0 4px 2px 4px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-footer-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Theme 1: Default Aura (Purple / Cyan) - already specified in root */

/* Theme 2: Sakura (Pastel Pink / Lavender) */
body.theme-sakura {
    --bg-color: #0b070d;
    --card-bg: rgba(22, 12, 25, 0.45);
    --accent-purple: #ff6b9d;
    --accent-cyan: #ffc2d4;
    --card-border: rgba(255, 107, 157, 0.15);
    --card-border-hover: rgba(255, 107, 157, 0.4);
}

body.theme-sakura .theme-toggle-btn:hover {
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.3);
}

/* Custom cursor glow and scrollbar thumbs for Sakura */
body.theme-sakura .cursor-glow {
    background: radial-gradient(circle, rgba(255, 107, 157, 0.35) 0%, rgba(255, 194, 212, 0.1) 60%, rgba(0, 0, 0, 0) 80%);
}

body.theme-sakura.hovering .cursor-glow {
    background: radial-gradient(circle, rgba(255, 194, 212, 0.4) 0%, rgba(255, 107, 157, 0.15) 60%, rgba(0, 0, 0, 0) 80%);
}

body.theme-sakura::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* Theme 3: Matrix (Neon Cyber Green) */
body.theme-matrix {
    --bg-color: #010803;
    --card-bg: rgba(2, 16, 6, 0.48);
    --accent-purple: #00ff66;
    --accent-cyan: #a2ff00;
    --card-border: rgba(0, 255, 102, 0.15);
    --card-border-hover: rgba(0, 255, 102, 0.4);
}

body.theme-matrix .theme-toggle-btn:hover {
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
}

/* Custom cursor glow and scrollbar thumbs for Matrix */
body.theme-matrix .cursor-glow {
    background: radial-gradient(circle, rgba(0, 255, 102, 0.35) 0%, rgba(162, 255, 0, 0.1) 60%, rgba(0, 0, 0, 0) 80%);
}

body.theme-matrix.hovering .cursor-glow {
    background: radial-gradient(circle, rgba(162, 255, 0, 0.4) 0%, rgba(0, 255, 102, 0.15) 60%, rgba(0, 0, 0, 0) 80%);
}

body.theme-matrix::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ==========================================
   WARP SPEED / HYPERSPEED STYLING
   ========================================== */
.warp-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2; /* In front of stars (1), behind card wrapper (z-index of card elements is higher) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: radial-gradient(circle, transparent 35%, rgba(138, 75, 245, 0.15) 70%, rgba(0, 240, 255, 0.28) 100%);
}

.warp-vignette.active {
    opacity: 1;
}

body.theme-sakura .warp-vignette {
    background: radial-gradient(circle, transparent 35%, rgba(255, 107, 157, 0.15) 70%, rgba(255, 194, 212, 0.28) 100%);
}

body.theme-matrix .warp-vignette {
    background: radial-gradient(circle, transparent 35%, rgba(0, 255, 102, 0.15) 70%, rgba(162, 255, 0, 0.28) 100%);
}

/* Spaceship Engine Vibration shake on Cards */
.profile-card.warp-shake,
.discord-game-card.warp-shake {
    animation: warpEngineShake 0.12s infinite linear;
}

@keyframes warpEngineShake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-1.5px, -1px) rotate(-0.2deg); }
    20% { transform: translate(-2px, 0px) rotate(0.2deg); }
    30% { transform: translate(0px, 1.5px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(0.2deg); }
    50% { transform: translate(-0.5px, 1px) rotate(-0.2deg); }
    60% { transform: translate(-2px, 0.5px) rotate(0deg); }
    70% { transform: translate(1.5px, 0.5px) rotate(-0.2deg); }
    80% { transform: translate(-0.5px, -0.5px) rotate(0.2deg); }
    90% { transform: translate(1.5px, 1.5px) rotate(0deg); }
    100% { transform: translate(0.5px, -1px) rotate(-0.2deg); }
}

/* ==========================================
   ACHIEVEMENT NOTIFICATION SYSTEM
   ========================================== */
.achievement-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: rgba(13, 13, 20, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(138, 75, 245, 0.2);
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    max-width: 90%;
    width: 390px;
}

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

.achievement-icon {
    font-size: 30px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.achievement-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.achievement-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.achievement-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11.5px;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
}