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

:root {
    --bg-dark: #050505;
    --accent: #fff;
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(7, 7, 7, 0.6);
    --glass-border: rgba(255, 255, 255, 0.04);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-enter-text {
    font-size: 10px;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 300;
    animation: blink 2s infinite;
}

@keyframes blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.gradient-bg {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 200, 255, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    filter: blur(2px);
}

.page {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.profile {
    width: 660px;
    max-width: 95%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    opacity: 0;
    transform-style: preserve-3d;
    overflow: hidden;
}

.profile::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 4px;
    padding: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.profile-banner {
    width: 100%;
    min-height: 100px;
    max-height: 250px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    padding: 6px;
    background: #050505;
    margin-top: -70px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) contrast(1.1);
}

.profile-main {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 35px;
    padding: 35px;
}

.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.username-section {
    margin-bottom: 12px;
}

.username {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.discriminator {
    color: var(--text-dim);
    font-weight: 200;
}

.presence-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.status-dot.online { background: #fff; box-shadow: 0 0 10px #fff; }
.status-dot.idle { background: #ffa502; box-shadow: 0 0 10px #ffa502; }
.status-dot.dnd { background: #ff4757; box-shadow: 0 0 10px #ff4757; }

.custom-status-card {
    margin-bottom: 16px;
}

.custom-status {
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
    font-weight: 300;
}

.bio-text {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

.profile-links {
    display: flex;
    gap: 15px;
}

.profile-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.01);
    color: var(--text-dim);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    text-decoration: none;
}

.profile-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.location-box {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.location-box i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.custom-tooltip {
    position: fixed;
    padding: 6px 12px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.15s ease, transform 0.15s ease;
    transform: translateY(10px);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .profile {
        width: 95%;
        margin: 20px auto;
    }

    .profile-main {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        text-align: center;
        gap: 20px;
    }

    .avatar-section {
        margin-top: 0;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
        margin: -60px auto 0;
    }

    .avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

    .username, .presence-bar, .profile-links {
        justify-content: center;
    }

    .username {
        font-size: 28px;
    }

    .location-box {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-banner {
        height: 100px;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
        margin: -50px auto 0;
    }

    .avatar {
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }
}
