@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-dark: #050507;
    --bg-panel: rgba(18, 18, 24, 0.7);
    --primary-purple: #8b5cf6;
    --primary-glow: #7c3aed;
    --accent-cyan: #06b6d4;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --discord-color: #5865F2;
    --steam-color: #1b2838;
    --danger: #ef4444;
    --success: #10b981;
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.15), transparent 25%);
    filter: blur(60px);
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Glass Card */
.main-card {
    background: var(--bg-panel);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 4rem;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.2),
        0 20px 40px rgba(0,0,0,0.4),
        0 0 80px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), transparent);
    opacity: 0.5;
}

/* Typography */
.brand-title {
    font-size: 4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    letter-spacing: -0.02em;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background-size: 200% auto;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px -10px var(--glow-color);
}

.btn:hover::after {
    opacity: 1;
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    --glow-color: rgba(88, 101, 242, 0.5);
}

.btn-steam {
    background: linear-gradient(135deg, #171a21, #2a475e);
    --glow-color: rgba(42, 71, 94, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    --glow-color: rgba(239, 68, 68, 0.5);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 2rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: 0.3s;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.05);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

.status-discord { background-color: #3ba55c; }
.status-steam { background-color: #66c0f4; }

.username {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.user-id-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.connection-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.connection-line {
    position: absolute;
    top: 50%;
    left: -20px;
    right: -20px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-purple), 
        var(--accent-cyan), 
        var(--primary-purple), 
        transparent
    );
    z-index: -1;
    animation: pulseLine 3s infinite linear;
    background-size: 200% 100%;
}

.link-status-card {
    background: rgba(0,0,0,0.4);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.link-icon {
    font-size: 2rem;
    color: var(--success);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
}

.auth-info {
    text-align: center;
}

.auth-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.auth-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseLine {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Floating Particles (JS will spawn these, but basic CSS here) */
.particle {
    position: fixed;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .connection-line {
        display: none;
    }

    .brand-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .main-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .user-card {
        padding: 1.5rem;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .username {
        font-size: 1.4rem;
    }
    
    .user-id-tag {
        font-size: 0.75rem;
    }

    .btn {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }
}
