.team {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 120px 22px 40px;
}

.team-head {
    text-align: center;
    margin-bottom: 50px;
}

.main-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 8vw, 4.4rem);
    line-height: 1;
    margin: 0 0 14px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 0%, #c9b8ff 60%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-head p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 0;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 56px 0 26px;
}

.section-label span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    white-space: nowrap;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-brd), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.leadership {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    max-width: 760px;
    margin: 0 auto;
}

.leadership .member-card {
    flex: 1 1 320px;
    max-width: 360px;
}

.member-card {
    position: relative;
    overflow: hidden;
    background: rgba(20, 14, 30, 0.62);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.member-card.lead { --accent: var(--brand); }
.member-card.coowner { --accent: #f5a623; }
.member-card.mod { --accent: var(--brand-2); }

.member-card img {
    position: relative;
    width: auto;
    height: 150px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

.avatar-fallback {
    position: relative;
    display: grid;
    place-items: center;
    width: 100px;
    height: 150px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-brd);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.6rem;
    color: var(--accent);
}

.name {
    position: relative;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
}

.rank-badge {
    position: relative;
    display: inline-block;
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.status {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--glass-brd);
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status.active { color: var(--grass); }
.status.active::before { background: var(--grass); }
.status.inactive { color: #9a93a8; }
.status.inactive::before { background: #9a93a8; }

.badges {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.description {
    position: relative;
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.55;
}

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

@media (max-width: 600px) {
    .leadership .member-card { flex-basis: 100%; }
}
