
}

/* ── Our Team public page ── */
.team-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.team-page main {
    flex: 1 0 auto;
}

.team-page footer {
    flex-shrink: 0;
}

.team-section {
    padding: clamp(40px, 6vw, 80px) 0 0 !important;
    background: transparent !important;
}

/* Nexora gaming background for Our Team page */
.team-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, #080b12 0%, #060810 40%, #040508 100%),
        radial-gradient(600px 400px at 10% 20%, rgba(232, 56, 79, .06), transparent 70%),
        radial-gradient(500px 350px at 90% 75%, rgba(232, 56, 79, .045), transparent 65%),
        repeating-linear-gradient(145deg, transparent 0 110px, rgba(232, 56, 79, .015) 110px 111px, transparent 111px 220px),
        repeating-linear-gradient(-35deg, transparent 0 150px, rgba(232, 56, 79, .012) 150px 151px, transparent 151px 300px);
}

.team-page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(142deg, rgba(255, 12, 42, .14) 0%, rgba(255, 12, 42, .04) 4%, transparent 18%),
        linear-gradient(-38deg, rgba(255, 12, 42, .11) 0%, rgba(255, 12, 42, .03) 5%, transparent 20%),
        linear-gradient(148deg, transparent 36%, rgba(255, 18, 48, .025) 45%, transparent 64%),
        linear-gradient(-32deg, transparent 38%, rgba(255, 15, 42, .018) 47%, transparent 62%);
}

.team-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 25% 20% at 5% 8%, rgba(255, 15, 42, .04), transparent 70%),
        radial-gradient(ellipse 22% 18% at 95% 92%, rgba(255, 15, 42, .035), transparent 65%),
        radial-gradient(ellipse 15% 12% at 92% 6%, rgba(255, 20, 48, .02), transparent 60%),
        radial-gradient(ellipse 15% 12% at 8% 94%, rgba(255, 20, 48, .018), transparent 60%);
}

.team-section .section-heading {
    margin-bottom: clamp(18px, 3vw, 32px) !important;
}

.team-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    padding: 10px 0 !important;
}

.team-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: team-scroll var(--team-marquee-duration, 30s) linear infinite;
}

.team-marquee:hover .team-marquee-track {
    animation-play-state: paused;
}

.team-marquee-reverse .team-marquee-track {
    animation-direction: reverse;
}

@keyframes team-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.team-member-card {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 18px 20px;
    background: linear-gradient(145deg, #1a1f2e, #141820);
    border: 1px solid rgba(232, 56, 79, 0.12);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(232, 56, 79, 0.15);
    border-color: rgba(232, 56, 79, 0.3);
}

.team-member-img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1c2233, #151b28);
    border: 2px solid rgba(232, 56, 79, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-fallback {
    font-size: 28px;
    font-weight: 700;
    color: #e8384f;
    letter-spacing: 1px;
}

.team-member-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.3;
}

/* Team entrance animation */
.team-section[data-team-section] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    animation: revealFallback 0s ease 1.2s forwards;
}

.team-section[data-team-section].team-entrance {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}

/* Static fallback grid when no rows configured */
.team-members-static {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

/* ── Lightbox popup for team member images ── */
.team-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.team-lightbox.open {
    display: flex;
}

.team-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-lightbox-inner img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

.team-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8384f;
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(232, 56, 79, 0.5);
    transition: transform .2s ease, background .2s ease;
    z-index: 10;
}

.team-lightbox-close:hover {
    background: #ff5b6c;
    transform: scale(1.1);
}

.team-lightbox-caption {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Make member image clickable */
.team-member-img {
    cursor: zoom-in;
}

/* ── Admin Team Management ── */
.team-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.team-create-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-create-rows {
    display: flex;
    flex-direction: column;
}

.team-section-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.team-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.team-section-head h3 {
    margin: 0;
    font-size: 17px;
    color: #fff;
}

.team-section-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.team-members-area {
    margin-top: 0;
}

.team-members-area h4 {
    margin: 14px 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .5);
}

.team-add-member-form {
    margin-bottom: 14px;
}

.team-add-member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.team-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.team-member-admin-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px !important;
}

.team-member-admin-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
}

.team-member-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-admin-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.team-member-admin-info strong {
    font-size: 14px;
    color: #fff;
}

.team-member-admin-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.row-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.row-config-item {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-config-item strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .5);
}

/* Admin team responsive */
@media (max-width: 900px) {
    .team-create-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-member-card {
        flex: 0 0 160px !important;
        padding: 18px 14px 16px !important;
    }

    .team-member-img {
        width: 96px !important;
        height: 96px !important;
        border-radius: 10px !important;
    }

    .team-member-fallback {
        font-size: 22px !important;
    }

    .team-member-name {
        font-size: 13px !important;
    }

    .team-add-member-grid {
        grid-template-columns: 1fr;
    }

    .team-member-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .row-config-grid {
        grid-template-columns: 1fr;
    }

    .team-section-actions {
        gap: 6px;
    }
}

/* ---------------------------------------------
   PRICE DISPLAY HIERARCHY (single source: backend)
   current = prominent | original = small muted strikethrough
   --------------------------------------------- */
body:not(.admin-body) .price-line {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    justify-items: start !important;
    row-gap: 3px !important;
}

body:not(.admin-body) .price-chips p.price-line strong.price-now,
body:not(.admin-body) .price-chips strong.price-now,
body:not(.admin-body) .reg-price-tag strong.price-now,
body:not(.admin-body) .price-preview strong.price-now {
    display: block !important;
    font-size: 1.5em !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #fde047 !important;
}

body:not(.admin-body) .price-chips del.price-was,
body:not(.admin-body) .reg-price-tag del.price-was,
body:not(.admin-body) .price-preview del.price-was {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-top: 2px !important;
    font-size: 0.9em !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    color: #ffffff !important;
    text-decoration: line-through !important;
    text-decoration-color: #e8384f !important;
    text-decoration-thickness: 2.5px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6) !important;
}

/* Hero tag variant (inline row on register page): keep compact but separated */
body:not(.admin-body) .reg-price-tag {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 6px !important;
}

body:not(.admin-body) .reg-price-tag del.price-was {
    display: inline-block !important;
    margin-top: 0 !important;