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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0a0608;
    position: relative;
    font-family: 'Roboto Mono', monospace;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0608;
    z-index: 1;
}

.center-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    padding: 20px;
}

.box {
    width: 400px;
    border-radius: 24px;
    background: rgba(14, 8, 18, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 140, 200, 0.12);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 180, 220, 0.1),
        0 0 60px rgba(255, 110, 180, 0.04);
    position: relative;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    pointer-events: auto;
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.box:hover {
    border-color: rgba(255, 140, 200, 0.22);
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(255, 180, 220, 0.18),
        0 0 80px rgba(255, 110, 180, 0.07);
}

/* Banner */

.banner-container {
    margin: 0 -24px;
    width: calc(100% + 48px);
    height: 118px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Profile */

.profile-container {
    position: relative;
    width: 96px;
    height: 96px;
    margin-top: -48px;
    margin-bottom: 12px;
    z-index: 10;
}

.profile-border {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ff6eb4, #ffd966);
    box-shadow: 0 8px 30px rgba(255, 110, 180, 0.35);
    position: relative;
    z-index: 2;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

@keyframes pfp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.profile-img.spinning {
    animation: pfp-spin 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0e0812;
    display: block;
}

.profile-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #ff6eb4, #ffd966);
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.5;
    z-index: 1;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(0.96);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

/* Status dot */

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #0e0812;
    z-index: 5;
    transition: background-color 0.4s ease;
}

.status-dot.online  { background: #23a55a; }
.status-dot.idle    { background: #f0b232; }
.status-dot.dnd     { background: #f23f43; }
.status-dot.offline { background: #80848e; }

.status-bubble {
    position: absolute;
    top: 2px;
    left: 74px;
    z-index: 40;
    pointer-events: none;
    animation: bubble-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 0.4s;
}

@keyframes bubble-in {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(6px);
    }

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

.status-bubble::before,
.status-bubble::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: #fdf0f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.status-bubble::before {
    width: 9px;
    height: 9px;
    bottom: -5px;
    left: 2px;
}

.status-bubble::after {
    width: 5px;
    height: 5px;
    bottom: -11px;
    left: -3px;
}

.status-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fdf0f5;
    border-radius: 14px;
    padding: 5px 11px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    min-height: 26px;
}

.status-icon {
    width: 13px;
    height: 13px;
    color: #c06080;
    flex-shrink: 0;
}

.status-text {
    font-family: 'Roboto Mono', monospace;
    font-style: italic;
    font-size: 0.74rem;
    font-weight: 500;
    color: #7a2040;
    line-height: 1;
    letter-spacing: 0.2px;
}

.status-cursor {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.74rem;
    font-weight: 500;
    color: #c06080;
    margin-left: -3px;
    animation: status-blink 1s step-end infinite;
}

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

.box:hover .profile-border {
    transform: scale(1.05) rotate(5deg);
}

/* Name + badges */

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
    position: relative;
    z-index: 50;
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.95rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff9fd6, #ffd966 60%, #e0c8f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-item {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.badge-icon {
    width: 13px;
    height: 13px;
    transition: transform 0.3s ease;
}

.badge-item:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 14px var(--glow-color);
    transform: translateY(-3px);
}

.badge-item:hover .badge-icon {
    transform: scale(1.15);
}

.badge-item::after,
.social-icon-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(14, 8, 18, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 140, 200, 0.15);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    z-index: 100;
    letter-spacing: 0.5px;
}

.badge-item:hover::after,
.social-icon-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Bio */

.profile-bio {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 200, 225, 0.55);
    text-align: center;
    margin-bottom: 18px;
    line-height: 1.6;
    max-width: 300px;
    font-weight: 400;
}

/* Divider */

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 110, 180, 0.35) 30%,
        rgba(255, 217, 102, 0.35) 70%,
        rgba(255, 255, 255, 0) 100%);
    margin-bottom: 18px;
}

/* Social icons */

.socials-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 140, 200, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 200, 225, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.social-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hover-color, rgba(255, 140, 200, 0.5));
    color: var(--hover-color, #ffffff);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 16px var(--hover-glow, rgba(255, 110, 180, 0.2));
    transform: translateY(-4px) scale(1.08);
}

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

/* CTA button */

.cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    margin-top: 14px;
    background: linear-gradient(135deg, #ff6eb4, #ffd966);
    border: none;
    border-radius: 16px;
    color: #1a0a10;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(255, 110, 180, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.cta-button:hover::before {
    animation: shine 1.5s ease-in-out infinite;
}

@keyframes shine {
    100% { left: 200%; }
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 110, 180, 0.45);
    filter: brightness(1.08);
}

.cta-arrow {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

@media (max-width: 440px) {
    .box {
        width: 100%;
        border-radius: 16px;
    }

    .banner-container {
        border-radius: 14px 14px 0 0;
    }
}
