* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #fff;
    overflow-x: hidden;
    cursor: default;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0f2e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
    transition: opacity 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-text {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #b794f6, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(183, 148, 246, 0.1);
    border: 2px solid #b794f6;
    color: #b794f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.music-toggle:hover {
    background: rgba(183, 148, 246, 0.2);
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(183, 148, 246, 0.3); }
    50% { box-shadow: 0 0 20px rgba(183, 148, 246, 0.5); }
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #b794f6, transparent),
        radial-gradient(2px 2px at 60% 70%, #9f7aea, transparent),
        radial-gradient(1px 1px at 50% 50%, #ffffff, transparent),
        radial-gradient(1px 1px at 80% 10%, #b794f6, transparent),
        radial-gradient(2px 2px at 90% 60%, #9f7aea, transparent),
        radial-gradient(1px 1px at 33% 80%, #ffffff, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    opacity: 0.4;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Profile Card */
.profile-card {
    width: 100%;
    max-width: 480px;
    background: rgba(15, 15, 20, 0.85);
    border: 1px solid rgba(183, 148, 246, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: border-color 0.3s ease;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
    /* GPU ACCELERATION */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.profile-card:hover {
    border-color: rgba(183, 148, 246, 0.5);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Profile Header */
.profile-header {
    padding: 40px 30px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(183, 148, 246, 0.05) 0%, transparent 100%);
    border-bottom: 1px solid rgba(183, 148, 246, 0.1);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b794f6, #ffffff);
    animation: avatarRotate 4s linear infinite;
}

@keyframes avatarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-text {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a0f2e 0%, #0f0a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #b794f6;
    border: 3px solid #0a0a0f;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #b794f6;
    border: 3px solid #0a0a0f;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(183, 148, 246, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(183, 148, 246, 0); }
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(183, 148, 246, 0.3);
    display: flex;
    justify-content: center;
    position: relative;
}

.name-letter {
    display: inline-block;
    animation: tvStatic 0.4s infinite;
    text-shadow: 
        1px 0 #b794f6,
        -1px 0 #9f7aea,
        0 0 8px rgba(183, 148, 246, 0.4);
    will-change: filter, text-shadow;
}

@keyframes tvStatic {
    0% { 
        text-shadow: 
            1px 0 #b794f6,
            -1px 0 #9f7aea,
            0 0 8px rgba(183, 148, 246, 0.4);
    }
    50% { 
        text-shadow: 
            -1px 0 #b794f6,
            1px 0 #9f7aea,
            0 0 10px rgba(183, 148, 246, 0.5);
    }
    100% { 
        text-shadow: 
            1px 0 #b794f6,
            -1px 0 #9f7aea,
            0 0 8px rgba(183, 148, 246, 0.4);
    }
}

.name-letter:nth-child(1) { animation-delay: 0s; }
.name-letter:nth-child(2) { animation-delay: 0.05s; }
.name-letter:nth-child(3) { animation-delay: 0.1s; }
.name-letter:nth-child(4) { animation-delay: 0.15s; }
.name-letter:nth-child(5) { animation-delay: 0.2s; }
.name-letter:nth-child(6) { animation-delay: 0.25s; }
.name-letter:nth-child(7) { animation-delay: 0.3s; }
.name-letter:nth-child(8) { animation-delay: 0.35s; }

.name-letter:hover {
    animation: none;
    filter: blur(0px);
    text-shadow: 0 0 20px rgba(183, 148, 246, 1);
}

.view-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(183, 148, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(183, 148, 246, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    font-weight: 600;
}

.view-counter svg {
    color: #b794f6;
}

#view-count {
    min-width: 30px;
    text-align: center;
}

.name-divider {
    color: #b794f6;
    opacity: 0.5;
}

.profile-bio {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    min-height: 24px;
}

.typing-cursor {
    color: #b794f6;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.profile-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 14px;
    background: rgba(183, 148, 246, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(183, 148, 246, 0.2);
}

.profile-location svg {
    color: #b794f6;
}

/* Profile Body */
.profile-body {
    padding: 30px;
}

/* Info Cards Grid - 3 Column Layout */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: rgba(183, 148, 246, 0.05);
    border: 1px solid rgba(183, 148, 246, 0.2);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

.info-card:hover {
    background: rgba(183, 148, 246, 0.12);
    border-color: rgba(183, 148, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(183, 148, 246, 0.2);
}

.location-card {
    cursor: pointer;
}

.location-hover-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #b794f6;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.location-card:hover .location-hover-text {
    opacity: 1;
}

.location-card:hover .info-card-title,
.location-card:hover .info-card-subtitle {
    opacity: 0.3;
}

.info-card-icon {
    color: #b794f6;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.info-card:hover .info-card-icon {
    transform: scale(1.1);
}

.info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.info-card-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box {
    background: rgba(183, 148, 246, 0.05);
    border: 1px solid rgba(183, 148, 246, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.info-box:hover {
    background: rgba(183, 148, 246, 0.08);
    border-color: rgba(183, 148, 246, 0.25);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #b794f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.username-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.username-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    flex: 1;
}

.watching-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.watching-dot {
    width: 12px;
    height: 12px;
    background: #b794f6;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.watching-info {
    flex: 1;
    font-size: 14px;
}

.watching-label {
    color: rgba(255, 255, 255, 0.6);
}

.watching-title {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    background: rgba(183, 148, 246, 0.05);
    border: 1px solid rgba(183, 148, 246, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(183, 148, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.social-link:hover::before {
    width: 300px;
    height: 300px;
}

.social-link:hover {
    background: rgba(183, 148, 246, 0.15);
    border-color: rgba(183, 148, 246, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(183, 148, 246, 0.25);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 3px currentColor);
    will-change: transform;
}

.social-link:hover svg {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 0 6px currentColor);
}

.social-link span {
    position: relative;
    z-index: 1;
}

/* Footer */
.profile-footer {
    padding: 20px 30px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(183, 148, 246, 0.15);
    background: rgba(183, 148, 246, 0.03);
}

/* Responsive */
@media (max-width: 600px) {
    .profile-card {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .splash-text {
        font-size: 2rem;
    }

    .profile-name {
        font-size: 24px;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .social-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Purple Shooting Stars */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(183, 148, 246, 0.6);
    animation: shootingStar 1.5s linear forwards;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(183, 148, 246, 0.6), transparent);
    transform-origin: 0 50%;
}

@keyframes shootingStar {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
    100% {
        transform: translate3d(200px, 200px, 0);
        opacity: 0;
    }
}

/* Copy notification */
@keyframes copyNotification {
    0% { opacity: 0; transform: translateY(10px); }
    20%, 80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(183, 148, 246, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    animation: copyNotification 2s ease;
    pointer-events: none;
}
