.members-hero {
    position: relative;
    padding: 10rem 2rem 4rem;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.members-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.members-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.members-hero .section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.members-hero .section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a0a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.members-hero .section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.members-count-display {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.members-count-display strong {
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.members-filter-section {
    position: sticky;
    top: 65px;
    z-index: 10;
    padding: 1rem 2rem;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    color: var(--text-secondary);
}

.filter-search:focus-within {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.filter-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.filter-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.filter-roles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(0, 240, 255, 0.4);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.members-grid-section {
    position: relative;
    padding: 3rem 2rem 6rem;
    z-index: 1;
    min-height: 400px;
}

.members-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.member-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.5s ease forwards;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    opacity: 0;
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.08);
}

.member-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    position: relative;
    border: 2px solid rgba(0, 240, 255, 0.15);
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-avatar-fallback {
    font-size: 2rem;
    opacity: 0.6;
}

.member-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.member-role {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.role-owner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-co-owner {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 69, 0, 0.2));
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

.role-admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.role-moderator {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.2));
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-recruiter {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(219, 39, 119, 0.2));
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.role-veteran {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(6, 182, 212, 0.2));
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.role-member {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-player {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.member-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.member-detail-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.member-detail-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.member-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    margin-top: 0.8rem;
}

.member-link:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

.members-loading,
.members-empty,
.members-error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .members-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }

    .filter-roles {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
}
