.team-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.team-modal-overlay.active {
    display: flex;
}

.team-modal-box {
    background: var(--bg-dark-1, #1b1663);
    border: 1px solid rgba(233, 2, 30, 0.25);
    border-radius: var(--rounded-1, 10px);
    max-width: 700px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    color: var(--body-font-color-dark, rgba(255, 255, 255, 0.7));
    font-family: var(--body-font, 'Manrope', sans-serif);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(233, 2, 30, 0.1);
    animation: tmSlideIn .25s ease;
}

@keyframes tmSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.team-modal-header {
    background: var(--bg-dark-2, #120d4f);
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(233, 2, 30, 0.18);
}

.team-modal-box h3 {
    font-family: var(--heading-font, 'Oxanium', sans-serif);
    font-weight: var(--heading-font-weight, 500);
    color: #ffffff;
    font-size: 1.45rem;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.tm-role {
    color: var(--primary-color, #E9021E);
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 8px;
}

.tm-creds {
    color: rgba(255, 255, 255, 0.45);
    font-size: .78rem;
    line-height: 1.7;
    letter-spacing: .02em;
}

.team-modal-body {
    padding: 24px 32px 32px;
}

.team-modal-box p {
    font-size: .87rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
}

.tm-section-title {
    font-family: var(--heading-font, 'Oxanium', sans-serif);
    color: #ffffff;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 20px 0 8px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-color, #E9021E);
}

.team-modal-box ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.team-modal-box ul li {
    font-size: .84rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.6;
}

.team-modal-box ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color, #E9021E);
}

.team-modal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 18px 0;
}

.team-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 2, 30, 0.12);
    border: 1px solid rgba(233, 2, 30, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
}

.team-modal-close:hover {
    background: var(--primary-color, #E9021E);
    border-color: var(--primary-color, #E9021E);
    color: #fff;
}

.team-modal-box::-webkit-scrollbar {
    width: 4px;
}

.team-modal-box::-webkit-scrollbar-track {
    background: transparent;
}

.team-modal-box::-webkit-scrollbar-thumb {
    background: var(--primary-color, #E9021E);
    border-radius: 4px;
}

.tm-view-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 20px;
    background: var(--primary-color, #E9021E);
    color: #fff !important;
    font-size: .78rem;
    font-family: var(--heading-font, 'Oxanium', sans-serif);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    text-decoration: none;
    z-index: 10;
    position: relative;
}

.tm-view-btn:hover {
    background: #c0001a;
    transform: translateY(-1px);
    color: #fff !important;
}