/* Shared account cards */
.user-button {
    gap: 15px;
}

.user-button-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
}

.user-button-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.user-button-name {
    font-weight: 600;
}

.user-button-meta {
    margin-top: 3px;
    overflow-wrap: anywhere;
    opacity: 0.7;
    font-size: 0.78rem;
}

.user-button-extra-meta {
    margin-top: 6px;
    color: #9be36d;
    font-size: 0.76rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.user-button-extra-meta.is-warning {
    color: #f8c76a;
}

/* Team */
.team-body,
.team-page {
    background: #202126;
}

.team-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
    color: #fff;
}

.team-page .row > * {
    min-width: 0;
}

.team-hero {
    position: relative;
    display: flex;
    min-height: min(78svh, 820px);
    align-items: flex-end;
    overflow: hidden;
    background: #18191d;
}

.team-hero-image,
.team-hero-overlay {
    position: absolute;
    inset: 0;
}

.team-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 8, 11, 0.94) 0%, rgba(7, 8, 11, 0.59) 48%, rgba(7, 8, 11, 0.08) 78%),
        linear-gradient(0deg, #202126 0%, rgba(32, 33, 38, 0.02) 45%);
}

.team-hero > .container {
    z-index: 1;
}

.team-hero-content {
    width: min(780px, 78%);
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.74);
}

.team-eyebrow {
    display: block;
    color: #ffc107;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.team-hero h1 {
    margin: 15px 0 20px;
    font-size: clamp(3.5rem, 7vw, 7.3rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: 0;
}

.team-hero-content > p {
    max-width: 660px;
    margin-bottom: 30px;
    color: #dedee1;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.7;
}

.team-primary-button {
    padding: 12px 20px;
    color: #111;
    font-weight: 700;
    border: 0;
    border-radius: 8px;
    background: #ffc107;
}

.team-primary-button:hover,
.team-primary-button:focus {
    color: #111;
    background: #fff;
}

.team-hero-note {
    position: absolute;
    right: clamp(30px, 5vw, 78px);
    bottom: 45px;
    z-index: 1;
    max-width: 310px;
    padding-left: 18px;
    border-left: 2px solid #ffc107;
}

.team-hero-note span,
.team-hero-note strong {
    display: block;
}

.team-hero-note span {
    color: #aaaab0;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-hero-note strong {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.team-intro {
    background: #292a30;
}

.team-intro h2,
.team-section-heading h2,
.team-values-heading h2,
.team-closing h2 {
    margin: 12px 0 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: 0;
}

.team-intro p,
.team-section-heading > p {
    color: #aaaab0;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.team-stats div {
    padding: 28px 25px;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.team-stats div:last-child {
    border-right: 0;
}

.team-stats strong,
.team-stats span {
    display: block;
}

.team-stats strong {
    color: #ffc107;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.team-stats span {
    margin-top: 6px;
    color: #898a91;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.76rem;
}

.team-members {
    padding-top: 52px;
    padding-bottom: 62px;
}

.team-leadership {
    scroll-margin-top: 20px;
    background: #222329;
}

.team-crew {
    background: #292a30;
}

.team-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 38px;
    margin-bottom: 36px;
}

.team-section-heading > p {
    max-width: 480px;
    margin: 0;
}

.team-members-grid {
    margin-right: -10px;
    margin-left: -10px;
}

.team-member-column {
    padding-right: 10px;
    padding-left: 10px;
}

.team-member-card {
    position: relative;
    min-height: 128px;
    gap: 19px;
    padding: 22px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    background: #18191d !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.team-member-card::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #ffc107;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.team-member-card:hover,
.team-member-card:focus {
    border-color: rgba(255, 193, 7, 0.28) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    transform: translateY(-3px);
}

.team-member-card:hover::before,
.team-member-card:focus::before {
    transform: scaleX(1);
}

.team-member-card.is-premium-member {
    border-color: rgba(244, 199, 80, 0.58) !important;
    background:
        linear-gradient(115deg, transparent 22%, rgba(255, 226, 132, 0.12) 44%, transparent 66%) 180% 0 / 220% 100%,
        linear-gradient(145deg, #302611, #18191d 66%) !important;
    box-shadow: 0 16px 42px rgba(180, 128, 18, 0.18), inset 0 0 0 1px rgba(255, 233, 159, 0.05);
    animation: premiumAccountShimmer 5.4s ease-in-out infinite;
}

.team-member-card.is-premium-member::before {
    background: linear-gradient(90deg, #b98920, #ffe08a, #b98920);
    transform: scaleX(1);
}

.team-member-card.is-premium-member .user-button-avatar {
    border-color: #f4c750;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28), 0 0 20px rgba(244, 199, 80, 0.2);
}

.team-member-card.is-premium-member:hover,
.team-member-card.is-premium-member:focus {
    border-color: #f4c750 !important;
    box-shadow: 0 22px 54px rgba(180, 128, 18, 0.25), inset 0 0 0 1px rgba(255, 233, 159, 0.08);
}

.team-member-card .user-button-avatar {
    width: 76px;
    height: 76px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.team-member-card .user-button-name {
    font-size: 0.96rem;
}

.team-member-card .user-button-meta {
    color: #a2a3a9;
    font-family: system-ui, -apple-system, sans-serif;
}

.team-member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.team-member-roles span {
    padding: 5px 8px;
    color: #d5b75b;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.62rem;
    border: 1px solid rgba(255, 193, 7, 0.16);
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.065);
}

.team-member-arrow {
    align-self: flex-start;
    margin-left: auto;
    color: #6e6f76;
    font-size: 0.9rem;
    transition: color 160ms ease, transform 160ms ease;
}

.team-member-card:hover .team-member-arrow,
.team-member-card:focus .team-member-arrow {
    color: #ffc107;
    transform: translate(2px, -2px);
}

.team-empty {
    padding: 34px;
    color: #85868d;
    font-family: system-ui, -apple-system, sans-serif;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #18191d;
}

.team-values {
    padding-top: 50px;
    padding-bottom: 60px;
    background: #222329;
}

.team-values-heading {
    margin-bottom: 34px;
}

.team-value-card {
    position: relative;
    min-height: 280px;
    padding: 32px;
    border-top: 3px solid #ffc107;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #18191d;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.team-value-card > span {
    color: #ffc107;
    font-size: 0.7rem;
}

.team-value-card h3 {
    margin: 55px 0 14px;
    font-size: 1.16rem;
    font-weight: 700;
}

.team-value-card p {
    margin: 0;
    color: #92939a;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.65;
}

.team-closing {
    background: #292a30;
}

.team-closing-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    margin: 30px 0;
    padding: clamp(36px, 5vw, 66px);
    border-left: 4px solid #ffc107;
    background: #1f2025;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.team-closing h2 {
    max-width: 790px;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.team-closing .btn {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .team-hero-note {
        display: none;
    }

    .team-section-heading {
        display: block;
    }

    .team-section-heading > p {
        margin-top: 18px;
    }

    .team-closing-card {
        display: block;
    }

    .team-closing .btn {
        margin-top: 25px;
    }
}

@media (max-width: 767.98px) {
    .team-hero {
        min-height: 720px;
    }

    .team-hero-image {
        object-position: 58% center;
    }

    .team-hero-overlay {
        background:
            linear-gradient(0deg, #202126 3%, rgba(7, 8, 11, 0.66) 62%, rgba(7, 8, 11, 0.12) 100%),
            linear-gradient(90deg, rgba(7, 8, 11, 0.5), transparent);
    }

    .team-hero-content {
        width: 100%;
    }

    .team-hero h1 {
        font-size: clamp(3.2rem, 16vw, 5rem);
    }

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

    .team-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }

    .team-stats div:last-child {
        border-bottom: 0;
    }

    .team-member-card {
        align-items: flex-start !important;
        min-height: 116px;
        padding: 18px !important;
    }

    .team-member-card .user-button-avatar {
        width: 60px;
        height: 60px;
    }

    .team-member-arrow {
        display: none;
    }

    .team-value-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-member-card,
    .team-member-card::before,
    .team-member-arrow {
        transition: none;
    }
}

