@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-cyan: #01f2f5;
    --primary-glow: #53f8fa;
    --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);
    background-image: url('/SplashRust.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    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;
}

/* Hero Overlay */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.7) 100%);
}

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

/* ── Glass Card (Splash Rust style) ─────────────────────────── */
.main-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── Splash Rust shared classes ─────────────────────────────── */

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gradient button */
.btn-gradient {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shimmer sweep */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: shimmerSlide 2.5s infinite;
}

@keyframes shimmerSlide {
    0%   { left: -100%; }
    100% { left: 160%;  }
}

/* Floating bob */
.floating {
    animation: float 4s ease-in-out infinite;
}

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

/* Fade in */
.fade-in {
    animation: fadeInUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* ── 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%, #53f8fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    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;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background-size: 200% auto;
    cursor: pointer;
}

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

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

.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;
}

.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(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(6, 182, 212, 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(--accent-cyan),
        var(--primary-cyan),
        var(--accent-cyan),
        transparent
    );
    z-index: -1;
    animation: pulseLine 3s infinite linear;
    background-size: 200% 100%;
}

.link-status-card {
    background: rgba(0, 0, 0, 0.35);
    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; }
}

.back-website {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 100;
}

.back-website .back-website-link {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 15px;
    font-size: 12px;
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-website .back-website-link:hover {
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.14);
    transform: translateX(-3px);
    transition: all 0.3s ease-in-out;
}

@media (max-width: 600px) {
    .back-website {
        top: 1rem;
        left: 1rem;
    }
    .back-website .back-website-link {
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* ── Responsive ──────────────────────────────────────────────── */
@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; }
}