:root {
    --bg-dark: #06070a;
    --discord-blurple: #5865F2;
    --discord-glow: rgba(88, 101, 242, 0.45);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(10, 11, 22, 0.65);
    --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-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding: 20px;
    position: relative;
}

/* Premium BG Overlays */
.glow-bg {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(100px);
}

.glow-bg-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
    filter: blur(100px);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 2;
    pointer-events: none;
}

/* Card Container */
.card-container {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    z-index: 10;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(88, 101, 242, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.card-container:hover::before {
    left: 100%;
    transition: 0.8s;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.server-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: #111224;
    border: 2px solid rgba(88, 101, 242, 0.4);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-container:hover .logo-inner {
    transform: scale(1.08) rotate(-4deg);
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow: 0 16px 36px rgba(88, 101, 242, 0.5);
}

.status-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    border: 3px solid #0d0f1a;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.85); opacity: 0.5; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.server-title {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.server-tagline {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    padding: 0 10px;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 2px;
}

/* Active Members Mockup */
.members-mockup {
    margin-bottom: 24px;
    text-align: center;
}

.section-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}

.avatars-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -8px; /* overlapping avatars */
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #0d0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 -4px;
}

.avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10;
    border-color: var(--discord-blurple);
}

.avatar.online::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 1.5px solid #0d0f1a;
}

.avatar-more {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #0d0f1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Hover Tooltip */
.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    background: #111224;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 20;
}

.avatar:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.feature-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(88, 101, 242, 0.2);
    transform: translateX(4px);
}

.feature-icon {
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #a5b4fc;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--discord-blurple);
    color: #fff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.feature-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #f1f5f9;
}

.feature-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Invite Button */
.join-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--discord-blurple) 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.55);
}

.join-btn i {
    font-size: 18px;
}

/* Floating Return Button */
.back-to-portfolio {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(10, 11, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.back-to-portfolio:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.2);
}
