/* Team Page */
.team-dashboard {
    max-width: 1200px;
    margin: 0 auto 18px;
    padding: 0 30px;
}

.team-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.team-kpi-card {
    background: rgba(18, 18, 18, 0.85);
    border: 1px solid rgba(255, 0, 51, 0.22);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.team-kpi-card p {
    margin: 0 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.team-kpi-card strong {
    font-size: 24px;
    line-height: 1;
    color: var(--white);
    text-shadow: var(--text-glow);
}

.team-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 51, 0.22);
    background: rgba(12, 12, 12, 0.82);
}

.team-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    flex: 1 1 240px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.team-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-family: var(--primary-font);
    font-size: 14px;
}

.team-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.team-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-chip:hover {
    border-color: rgba(255, 0, 51, 0.45);
    color: var(--white);
}

.team-chip.is-active {
    border-color: rgba(255, 0, 51, 0.45);
    background: rgba(255, 0, 51, 0.15);
    color: var(--white);
    box-shadow: 0 0 0 1px rgba(255, 0, 51, 0.15) inset;
}

.team-active-only {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.team-active-only input {
    accent-color: var(--primary-red);
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.team-empty-state {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.25);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.team-status-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    background-color: rgba(20, 20, 20, 0.8);
    padding: 10px 25px;
    border-radius: 50px;
    border: var(--neon-border);
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-section-title {
    font-size: 30px;
    margin: 10px 30px 4px;
    color: var(--primary-red);
    position: relative;
    display: inline-block;
    letter-spacing: 0.4px;
}

.team-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), rgba(255, 0, 51, 0.3));
}

.page-container>.story-text {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    min-width: 0;
}

.team-status-legend .status-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    border: 2px solid #ffffff;
    font-size: 0;
    color: transparent;
    position: relative;
}

.status-dot.active {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.9);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-dot.inactive {
    background-color: #9e9e9e;
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.7);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-text {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
}

.member-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.76);
    padding: 5px 9px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.member-status .status-dot {
    width: 9px;
    height: 9px;
    border: 0;
    box-shadow: none;
}

.member-status .status-dot.active {
    background: #47d76f;
    box-shadow: 0 0 8px rgba(71, 215, 111, 0.65);
}

.member-status .status-dot.inactive {
    background: #bdbdbd;
    box-shadow: 0 0 8px rgba(189, 189, 189, 0.45);
}

.member-status::after {
    content: 'Active';
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    color: #9af1b0;
}

.member-status.inactive::after {
    content: 'Inactive';
    color: #d1d1d1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@supports (content-visibility: auto) {
    main#main-content .team-grid {
        content-visibility: auto;
        contain-intrinsic-size: 1px 1000px;
    }
}

.team-member {
    background: linear-gradient(165deg, rgba(22, 22, 22, 0.88) 0%, rgba(12, 12, 12, 0.86) 100%);
    border: var(--neon-border);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
    overflow: hidden;
    position: relative;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 51, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.team-member:hover::before {
    transform: translateX(100%);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(255, 0, 51, 0.18);
    border-color: rgba(255, 0, 51, 0.45);
}

.team-member:focus-within {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 51, 0.45);
}

.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%) contrast(1.05) brightness(0.9);
}

.team-member:hover .member-image img,
.team-member:focus-within .member-image img,
.team-member:active .member-image img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1) brightness(1);
}

.member-info {
    padding: 25px;
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-title {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
    text-shadow: var(--text-glow);
}

.member-bio {
    color: var(--very-light-gray);
    font-weight: 300;
    margin-bottom: 12px;
    min-height: 0;
}

.member-social {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.member-tag {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 0, 51, 0.26);
    background: rgba(255, 0, 51, 0.08);
}

.team-grid[data-reveal-ready="true"] .team-member {
    opacity: 0;
    transform: translateY(18px);
}

.team-grid[data-reveal-ready="true"] .team-member.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        padding: 22px;
    }
}

@media (max-width: 927px) {
    .team-dashboard,
    .page-container > .story-text {
        padding: 0 16px;
    }

    .team-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 16px;
    }

    .member-image {
        height: 240px;
    }
}

@media (max-width: 576px) {
    .team-kpis {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
        justify-items: center;
    }

    .team-member {
        width: min(100%, 305px);
        margin: 0;
        clip-path: polygon(5% 0, 100% 0, 98% 100%, 0 100%);
        border-radius: 0;
        overflow: hidden;
    }

    .member-image {
        height: clamp(220px, 64vw, 260px);
        aspect-ratio: auto;
    }

    .member-image img {
        object-fit: cover;
        object-position: center;
    }

    .member-info {
        padding: 20px;
    }

    .member-info h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .member-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .member-social {
        margin-top: auto;
        padding-top: 15px;
    }

    .social-icon {
        font-size: 17px;
        margin-right: 15px;
    }
}

.social-links-home {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-icon-home,
