* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Background Setup */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.7);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Enter Screen */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    cursor: none;
}

.enter-screen span {
    font-size: 1.5rem;
    letter-spacing: 5px;
    animation: pulseText 1.5s infinite alternate;
}

@keyframes pulseText {
    0% { opacity: 0.3; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); }
}

.enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Main Container Container */
.container {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 10;
}

/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
}

.username-container {
    position: relative;
    display: inline-block;
}

.username {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.6px;
}

/* Socials Section */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* Bottom View Container for Crossfade Animation */
.bottom-view-container {
    position: relative;
    width: 100%;
    margin-top: -10px; /* pull up slightly */
    overflow: visible;
    transition: height 0.28s ease;
}

.bottom-view-container > div {
    position: absolute;
    inset: 0 0 auto 0;
    width: 100%;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    transform-origin: top center;
}

/* Music Player Section */
.music-player {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.music-player:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

.music-player.hidden {
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    pointer-events: none;
}

.music-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.music-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.music-title {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: text-shadow 0.3s ease;
}

.music-title:hover {
    text-decoration: underline;
}

/* Custom Music Player */
.custom-player {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-top: 8px;
}

.player-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: none; /* keep custom cursor */
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
}

.player-btn:hover {
    transform: scale(1.2);
}

.progress-volume-container {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    height: 24px;
}

/* Progress Bar */
.progress-container {
    position: absolute;
    left: 0;
    width: calc(100% - 35px); /* Leave space for volume icon */
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    border-radius: 3px;
    box-shadow: 0 0 10px white;
    transition: width 0.1s linear;
}

/* Volume Control */
.volume-container {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30px;
    height: 100%;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(20, 20, 20, 0); /* Transparent initially */
    border-radius: 12px;
}

.volume-icon {
    font-size: 1.1rem;
    color: white;
    cursor: none;
    transition: transform 0.3s ease;
    width: 30px;
    text-align: right;
    z-index: 2;
}

.volume-icon:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px white;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    margin-right: 10px;
    cursor: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px white;
}

/* Hover states for Volume expanding & hiding length progress */
.progress-volume-container:has(.volume-container:hover) .progress-container {
    opacity: 0; /* Hide progress when volume is hovered */
    pointer-events: none;
}

.volume-container:hover {
    width: 100%;
    background: rgba(20, 20, 20, 0.6); /* Slight background when expanded to look like a pill */
    padding-left: 10px;
}

.volume-container:hover #volume-slider {
    width: calc(100% - 40px);
    opacity: 1;
}

/* GitHub Preview Section */
.github-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    
    opacity: 0;
    transform: translateY(10px) scaleY(0.96);
    visibility: hidden;
    pointer-events: none;
    z-index: 3;
    min-height: 168px;
}

.discord-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    opacity: 0;
    transform: translateY(10px) scaleY(0.96);
    visibility: hidden;
    pointer-events: none;
    z-index: 3;
    min-height: 168px;
}

.steam-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    opacity: 0;
    transform: translateY(10px) scaleY(0.96);
    visibility: hidden;
    pointer-events: none;
    z-index: 3;
    min-height: 168px;
    position: relative;
}

.telegram-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    opacity: 0;
    transform: translateY(10px) scaleY(0.96);
    visibility: hidden;
    pointer-events: none;
    z-index: 3;
    min-height: 168px;
}

.telegram-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.telegram-preview:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

.steam-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.steam-preview:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

.discord-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.discord-preview:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

.github-preview.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

.github-preview:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

.gh-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.gh-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.gh-chart-container {
    width: 100%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 86px;
}

.gh-chart-container svg {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.gh-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-top: 2px;
}

.gh-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: gray;
    box-shadow: 0 0 5px gray;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.gh-status-dot.active {
    background-color: #39d353; /* GitHub Green */
    box-shadow: 0 0 10px #39d353;
}


.gh-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gh-name {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.gh-login {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.dc-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.tg-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.st-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.st-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.st-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.st-level-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 58px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.st-name {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.st-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.st-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 8px rgba(107, 114, 128, 0.8);
    flex: 0 0 auto;
}

.st-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.st-status-dot.away {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
}

.st-status-dot.busy {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

.st-card-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.dc-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tg-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dc-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.tg-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.dc-name {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.tg-name {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.dc-login {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.tg-login {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.dc-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.dc-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    box-shadow: 0 0 8px rgba(107, 114, 128, 0.8);
    flex: 0 0 auto;
}

.dc-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
}

.dc-status-dot.idle {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
}

.dc-status-dot.dnd {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.9);
}

.dc-card-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.tg-card-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.glow-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
}

.glow-box:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 255, 255, 0.5);
}

/* Custom Cursor & Sparkles */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px white, 0 0 20px white;
}

.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 8px white;
    animation: sparkleAnim 0.8s linear forwards;
}

@keyframes sparkleAnim {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0) translateY(20px); }
}

/* Specific Sparkles for Username */
.username-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 5px white;
    animation: userSparkleAnim 1.5s infinite alternate;
}

@keyframes userSparkleAnim {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5); }
}