*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #7c3aed;
    --primary_hi: #a78bfa;
    --primary_lo: #4c1d95;
    --primary_glow: rgba(124, 58, 237, 0.35);
    --accent: #06b6d4;
    --accent_glow: rgba(6, 182, 212, 0.4);
    --bg: #030712;
    --glass_bg: rgba(255,255,255,0.028);
    --glass_border: rgba(255,255,255,0.07);
    --glass_border_top: rgba(255,255,255,0.14);
    --text: rgba(255,255,255,0.9);
    --text_muted: rgba(255,255,255,0.4);
    --text_dim: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 40% 8%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 55% 25%, rgba(167,139,250,0.6), transparent),
        radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 85% 18%, rgba(6,182,212,0.55), transparent),
        radial-gradient(1px 1px at 15% 65%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 33% 78%, rgba(167,139,250,0.5), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 78% 58%, rgba(6,182,212,0.45), transparent),
        radial-gradient(1px 1px at 92% 72%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 48% 90%, rgba(167,139,250,0.4), transparent),
        radial-gradient(1px 1px at 8% 88%, rgba(255,255,255,0.35), transparent),
        radial-gradient(1px 1px at 22% 52%, rgba(6,182,212,0.4), transparent);
    background-size: 300px 300px, 100% 100%;
    pointer-events: none;
    animation: stars_twinkle 3s ease-in-out infinite alternate;
}

@keyframes stars_twinkle {
    0% { opacity: 0.85; }
    100% { opacity: 1; }
}

.mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% -15%, rgba(124,58,237,0.35) 0%, transparent 65%),
        radial-gradient(ellipse 45% 45% at 20% 75%, rgba(6,182,212,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 85%, rgba(76,29,149,0.2) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 10% 20%, rgba(6,182,212,0.1) 0%, transparent 50%),
        var(--bg);
    animation: nebula_drift 12s ease-in-out infinite;
}

@keyframes nebula_drift {
    0%, 100% { opacity: 1; transform: scale(1); }
    33% { opacity: 0.85; transform: scale(1.03); }
    66% { opacity: 0.9; transform: scale(0.98); }
}

.grid_lines {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 80%);
}

.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
}

.orb_1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, rgba(6,182,212,0.08) 40%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: orb_1_orbit 24s ease-in-out infinite;
}

.orb_2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, rgba(124,58,237,0.06) 45%, transparent 70%);
    bottom: -80px;
    right: -60px;
    animation: orb_2_orbit 30s ease-in-out infinite;
}

.orb_3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(167,139,250,0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orb_3_pulse 8s ease-in-out infinite;
}

@keyframes orb_1_orbit {
    0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
    33% { transform: translate(100px, 40px) scale(1.12) rotate(2deg); }
    66% { transform: translate(-20px, 140px) scale(0.9) rotate(-1deg); }
}

@keyframes orb_2_orbit {
    0%, 100% { transform: translate(0,0) scale(1) rotate(0deg); }
    40% { transform: translate(-80px, -100px) scale(1.15) rotate(-3deg); }
    70% { transform: translate(50px, -20px) scale(0.92) rotate(1.5deg); }
}

@keyframes orb_3_pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.8; }
}

.nav_wrap {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    animation: slide_down 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

@keyframes slide_down {
    from { opacity: 0; transform: translateX(-50%) translateY(-24px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 5px 5px 16px;
    border-radius: 99px;
    position: relative;
}

.nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 99px;
    background: rgba(15,12,30,0.5);
    backdrop-filter: blur(28px) saturate(1.8) brightness(1.15);
    -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.15);
    border: 1px solid rgba(124,58,237,0.15);
    border-top-color: rgba(167,139,250,0.3);
    border-bottom-color: rgba(0,0,0,0.45);
    box-shadow: 
        0 0 0 0.5px rgba(0,0,0,0.6), 
        0 1px 0 rgba(255,255,255,0.06) inset, 
        0 -1px 0 rgba(0,0,0,0.4) inset, 
        0 20px 60px rgba(0,0,0,0.8), 
        0 0 50px rgba(124,58,237,0.15);
}

.nav::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.4), rgba(6,182,212,0.3), transparent);
    border-radius: 99px;
}

.nav_brand {
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: rgba(255,255,255,0.92);
    margin-right: 8px;
}

.nav_brand em {
    font-style: normal;
    color: var(--accent);
}

.nav_sep {
    position: relative;
    z-index: 1;
    width: 1px;
    height: 16px;
    background: rgba(167,139,250,0.12);
    margin: 0 4px;
}

.nav_link {
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text_muted);
    text-decoration: none;
    transition: color 0.25s, background 0.25s;
}

.nav_link:hover {
    color: rgba(255,255,255,0.85);
    background: rgba(124,58,237,0.12);
}

.nav_cta {
    position: relative;
    z-index: 1;
    padding: 8px 18px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(175deg, rgba(124,58,237,1) 0%, rgba(6,182,212,0.85) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(167,139,250,0.4), 
        inset 0 -1px 0 rgba(0,0,0,0.3), 
        0 0 24px rgba(124,58,237,0.5),
        0 0 40px rgba(6,182,212,0.2);
    transition: box-shadow 0.3s, transform 0.15s;
}

.nav_cta::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
    border-radius: 99px 99px 0 0;
}

.nav_cta:hover {
    transform: translateY(-1px);
    box-shadow: 
        inset 0 1px 0 rgba(167,139,250,0.5), 
        inset 0 -1px 0 rgba(0,0,0,0.3), 
        0 0 35px rgba(124,58,237,0.65),
        0 0 55px rgba(6,182,212,0.3);
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: 22px;
    overflow: hidden;
    animation: card_in 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes card_in {
    from { opacity: 0; transform: translateY(36px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.card_glass {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(124,58,237,0.08) 0%, rgba(6,182,212,0.03) 40%, rgba(124,58,237,0.05) 100%);
    backdrop-filter: blur(44px) saturate(2) brightness(0.7);
    -webkit-backdrop-filter: blur(44px) saturate(2) brightness(0.7);
    border: 1px solid rgba(124,58,237,0.15);
    border-top-color: rgba(167,139,250,0.35);
    border-bottom-color: rgba(0,0,0,0.55);
    box-shadow: 
        inset 0 1.5px 0 rgba(167,139,250,0.2), 
        inset 0 -1px 0 rgba(0,0,0,0.5), 
        0 32px 80px rgba(0,0,0,0.7),
        0 0 60px rgba(124,58,237,0.1);
    transition: box-shadow 0.5s, background 0.5s;
}

.profile-card:hover .card_glass {
    background: linear-gradient(145deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.05) 40%, rgba(124,58,237,0.08) 100%);
    box-shadow: 
        inset 0 1.5px 0 rgba(167,139,250,0.28), 
        inset 0 -1px 0 rgba(0,0,0,0.5), 
        0 40px 100px rgba(0,0,0,0.78),
        0 0 80px rgba(124,58,237,0.18);
}

.card_specular {
    position: absolute;
    top: 0; left: 8%; right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.6), rgba(6,182,212,0.4), transparent);
    z-index: 3;
    pointer-events: none;
    border-radius: 99px;
}

.card_body {
    position: relative;
    z-index: 5;
    padding: 40px 32px;
    text-align: center;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(124,58,237,0.4);
    box-shadow: 
        0 0 35px rgba(124,58,237,0.4),
        0 0 15px rgba(6,182,212,0.15);
    transition: transform 0.35s, box-shadow 0.35s;
}

.avatar-wrapper:hover .avatar {
    transform: scale(1.06);
    box-shadow: 
        0 0 50px rgba(124,58,237,0.6),
        0 0 25px rgba(6,182,212,0.3);
}

.avatar-border {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(6,182,212,0.3), rgba(167,139,250,0.5), rgba(6,182,212,0.3), rgba(124,58,237,0.6));
    animation: rotate_border 5s linear infinite;
}

@keyframes rotate_border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nickname {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 8px;
}

.nickname em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 40%, #7c3aed 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(124,58,237,0.12);
    border: 1px solid rgba(124,58,237,0.25);
    font-size: 11px;
    font-family: "DM Mono", monospace;
    color: rgba(255,255,255,0.45);
    margin-bottom: 12px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent_glow);
    animation: pulse_dot 2s ease-in-out infinite;
}

@keyframes pulse_dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.hero_stats {
    display: inline-flex;
    gap: 24px;
    margin-bottom: 16px;
}

.stat {
    text-align: center;
}

.stat_val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.stat_val em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat_label {
    font-size: 9px;
    font-family: "DM Mono", monospace;
    text-transform: uppercase;
    color: var(--text_dim);
    display: block;
    margin-top: 2px;
}

.stat_sep {
    width: 1px;
    background: rgba(124,58,237,0.12);
    align-self: stretch;
}

.divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), rgba(6,182,212,0.2), transparent);
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 13px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, rgba(124,58,237,1) 0%, rgba(6,182,212,0.8) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(167,139,250,0.35), 
        inset 0 -1px 0 rgba(0,0,0,0.35), 
        0 8px 32px rgba(124,58,237,0.5),
        0 0 40px rgba(6,182,212,0.15);
    transition: transform 0.14s, box-shadow 0.25s;
    margin-right: 8px;
}

.dashboard-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
    border-radius: 13px 13px 0 0;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(167,139,250,0.4), 
        inset 0 -1px 0 rgba(0,0,0,0.35), 
        0 16px 48px rgba(124,58,237,0.65),
        0 0 55px rgba(6,182,212,0.25);
}

.logout-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.12);
    transition: all 0.25s;
}

.logout-btn:hover {
    color: rgba(255,255,255,0.75);
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.25);
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(175deg, #5865F2 0%, #404EED 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3), 
        inset 0 -1px 0 rgba(0,0,0,0.3), 
        0 8px 32px rgba(88,101,242,0.5);
    transition: transform 0.14s, box-shadow 0.25s;
}

.discord-btn::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent);
    border-radius: 13px 13px 0 0;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.35), 
        inset 0 -1px 0 rgba(0,0,0,0.3), 
        0 16px 48px rgba(88,101,242,0.65);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-label {
    position: relative;
    z-index: 1;
}

.guest-icon {
    margin: 0 auto 20px;
    opacity: 0.25;
    display: block;
}

.guest-message {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    margin-bottom: 24px;
}

.action-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}