*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --team-bg: #0a0a0b;
    --team-surface: rgba(18, 18, 22, 0.92);
    --team-surface-soft: rgba(18, 18, 22, 0.76);
    --team-surface-muted: rgba(255, 255, 255, 0.03);
    --team-border: rgba(255, 255, 255, 0.08);
    --team-border-strong: rgba(255, 255, 255, 0.14);
    --team-text: #f7f7f8;
    --team-text-soft: rgba(255, 255, 255, 0.78);
    --team-text-muted: rgba(255, 255, 255, 0.56);
    --team-orange: #3be22e;
    --team-orange-dark: #30b129;
    --team-danger: #ef4444;
    --team-radius-xl: 30px;
    --team-radius-lg: 24px;
    --team-radius-md: 18px;
    --team-radius-sm: 14px;
    --team-shadow-sm: 0 16px 38px rgba(0, 0, 0, 0.28);
    --team-shadow-md: 0 22px 56px rgba(0, 0, 0, 0.4);
    --team-shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.52);
    --team-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.team-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--main-font);
    color: var(--team-text);
    background:
        radial-gradient(40% 18% at 50% 0%, rgba(48, 177, 41, 0.09), rgba(10, 10, 11, 0) 75%),
        linear-gradient(180deg, #0a0a0b 0%, #0e0e10 100%);
    padding-top: 96px;
    overflow-x: hidden;
}

.team-page {
    flex: 1 0 auto;
}

.team-body footer,
.team-body .footer,
.team-body .site-footer {
    margin-top: auto;
}

.team-body ::selection {
    background: rgba(48, 177, 41, 0.22);
    color: #fff;
}

.team-no-scroll {
    overflow: hidden !important;
}

.team-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.team-text-gradient {
    background: linear-gradient(90deg, var(--servername-gradient));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* HERO */

.team-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 34px;
}

.team-hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(36% 22% at 24% 18%, rgba(48, 177, 41, 0.08), rgba(10, 10, 11, 0) 72%),
        radial-gradient(28% 18% at 78% 20%, rgba(48, 177, 41, 0.05), rgba(10, 10, 11, 0) 72%);
    pointer-events: none;
}

.team-hero__overlay {
    display: none;
}

.team-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 28px;
    align-items: center;
    padding-top: 26px;
}

.team-hero__content {
    padding: 18px 0;
}

.team-hero__badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 18, 22, 0.82);
    border: 1px solid rgba(48, 177, 41, 0.18);
    color: var(--team-orange);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.team-hero__title {
    margin: 20px 0 0;
    max-width: 760px;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.team-hero__title span {
    display: block;
    margin-top: 8px;
}

.team-hero__text {
    margin: 22px 0 0;
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--team-text-soft);
}

.team-hero__actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.team-hero__side {
    display: flex;
    align-items: stretch;
}

.team-sidecard {
    width: 100%;
    background: rgba(18, 18, 22, 0.92);
    border: 1px solid var(--team-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: var(--team-shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.team-sidecard__eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--team-orange);
}

.team-sidecard__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.12;
}

.team-sidecard__footer {
    margin-top: 18px;
    font-size: 0.92rem;
    line-height: 1.72;
    color: var(--team-text-muted);
}

/* BUTTONS */

.team-btn {
    appearance: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: #fff;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease;
    -webkit-tap-highlight-color: transparent;
}

.team-btn:hover {
    transform: translateY(-1px);
}

.team-btn--primary {
    background: linear-gradient(135deg, var(--team-orange), var(--team-orange-dark));
    border-color: rgba(48, 177, 41, 0.28);
    box-shadow: 0 12px 28px rgba(48, 177, 41, 0.18);
}

.team-btn--secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ALERTS */

.team-alert {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(19, 19, 24, 0.96);
    border: 1px solid var(--team-border);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--team-shadow-sm);
}

.team-alert-success {
    border-color: rgba(48, 177, 41, 0.22);
    background: rgba(48, 177, 41, 0.08);
}

.team-alert-error {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(239, 68, 68, 0.08);
}

/* STATS */

.team-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.team-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--team-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--team-shadow-sm);
}

.team-stat__value {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
}

.team-stat__label {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--team-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

/* CONTENT */

.team-content {
    position: relative;
    z-index: 1;
    padding: 32px 0 90px;
}

.team-overview {
    margin-bottom: 28px;
    padding: 24px;
    border-radius: 24px;
    background: var(--team-surface);
    border: 1px solid var(--team-border);
    box-shadow: var(--team-shadow-sm);
}

.team-overview__title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.team-overview__text {
    margin: 10px 0 0;
    max-width: 700px;
    font-size: 0.98rem;
    line-height: 1.8;
    color: var(--team-text-soft);
}

.team-section-head__eyebrow {
    margin: 0 0 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--team-orange);
}

.team-section-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.team-pill {
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--team-border);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.team-pill:hover {
    transform: translateY(-1px);
    border-color: rgba(48, 177, 41, 0.22);
    background: rgba(48, 177, 41, 0.07);
}

.team-pill__count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(48, 177, 41, 0.12);
    border: 1px solid rgba(48, 177, 41, 0.2);
    color: var(--team-orange);
    font-size: 0.75rem;
    font-weight: 800;
}

.team-empty {
    padding: 34px 24px;
    border-radius: 22px;
    text-align: center;
    background: var(--team-surface);
    border: 1px solid var(--team-border);
    box-shadow: var(--team-shadow-sm);
}

.team-empty h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.team-empty p {
    margin: 0;
    color: var(--team-text-soft);
    line-height: 1.8;
}

/* SECTIONS */

.team-section {
    margin-top: 28px;
    scroll-margin-top: 120px;
}

.team-section-frame {
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(40% 22% at 50% 0%, rgba(48, 177, 41, 0.04), rgba(48, 177, 41, 0) 75%),
        rgba(18, 18, 22, 0.92);
    border: 1px solid var(--team-border);
    box-shadow: var(--team-shadow-md);
}

.team-section-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.team-section-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(48, 177, 41, 0.88);
}

.team-section-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.team-section-subtitle {
    margin: 10px 0 0;
    max-width: 700px;
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--team-text-soft);
}

.team-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--team-border);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.team-section-empty {
    padding: 18px;
    border-radius: 18px;
    background: rgba(10, 10, 12, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--team-text-soft);
}

/* GRID + CARD */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(10, 10, 12, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.team-card::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(48, 177, 41, 0), rgba(48, 177, 41, 0.75), rgba(48, 177, 41, 0));
    opacity: 0.55;
}

.team-card:hover,
.team-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(48, 177, 41, 0.18);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.team-card__glow {
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(48, 177, 41, 0.1), rgba(0, 0, 0, 0) 62%);
    pointer-events: none;
}

.team-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.team-avatar {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 68px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-fallback {
    width: 100%;
    height: 100%;
    display: block;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 55%),
        rgba(255, 255, 255, 0.04);
}

.team-headings {
    min-width: 0;
}

.team-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.team-name {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.28;
    color: #fff;
}

.team-role {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.74);
}

.team-role-muted {
    color: rgba(255, 255, 255, 0.58);
}

.team-divider {
    margin: 16px 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.team-info {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-col-title {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    background: rgba(48, 177, 41, 0.12);
    border: 1px solid rgba(48, 177, 41, 0.22);
    color: rgba(48, 177, 41, 0.95);
}

.team-muted {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
}

.team-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-discord-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(48, 177, 41, 0.12);
    border: 1px solid rgba(48, 177, 41, 0.18);
    color: rgba(48, 177, 41, 0.95);
}

.team-discord-icon svg {
    width: 18px;
    height: 18px;
}

.team-contact-text {
    min-width: 0;
}

.team-contact-name {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.2;
}

.team-contact-handle {
    margin-top: 2px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-word;
}

/* ADMIN MODAL */

.team-admin-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    font-family: var(--main-font);
}

.team-admin-modal.open {
    display: block;
}

.team-admin-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 55% at 50% 8%, rgba(48, 177, 41, 0.18), rgba(5, 5, 9, 0) 58%),
        rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team-admin-dialog {
    position: relative;
    width: min(1080px, calc(100% - 36px));
    margin: 92px auto 28px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 10, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.team-admin-dialog::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(48, 177, 41, 0.95), rgba(234, 88, 12, 0.15));
    opacity: 0.55;
}

.team-admin-header {
    padding: 18px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-admin-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.team-admin-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}

.team-admin-close:hover {
    background: rgba(48, 177, 41, 0.14);
    border-color: rgba(48, 177, 41, 0.4);
    box-shadow: 0 0 16px rgba(48, 177, 41, 0.18);
    transform: translateY(-1px);
}

.team-admin-close:focus,
.team-admin-close:focus-visible {
    outline: none;
}

.team-admin-tabs {
    padding: 0 18px 12px;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.team-admin-tab {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        background 0.12s ease,
        border-color 0.12s ease;
}

.team-admin-tab:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}

.team-admin-tab-active {
    color: white;
    background: linear-gradient(135deg, var(--team-orange), var(--team-orange-dark));
    border-color: rgba(48, 177, 41, 0.4);
    box-shadow: 0 0 0 1px rgba(48, 177, 41, 0.1) inset;
}

.team-admin-body {
    padding: 0 18px 18px;
    overflow: auto;
}

.team-admin-body::-webkit-scrollbar {
    width: 10px;
}

.team-admin-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.25);
}

.team-admin-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    border: 2px solid rgba(10, 10, 12, 0.86);
}

.team-admin-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.16);
}

.team-admin-panel {
    display: none;
}

.team-admin-panel-active {
    display: block;
}

.team-admin-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.team-admin-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 16px;
    background: rgba(10, 10, 12, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.team-admin-card-title {
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.team-admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.team-admin-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-admin-field label {
    font-size: 0.82rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
}

.team-admin-field input,
.team-admin-field select,
.team-admin-field textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    padding: 12px;
    outline: none;
    font-family: var(--main-font);
}

.team-admin-field textarea {
    min-height: 110px;
    resize: vertical;
}

.team-admin-check {
    justify-content: flex-end;
}

.team-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 64px;
    height: 36px;
}

.team-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.team-switch-ui {
    width: 64px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: 0.2s ease;
}

.team-switch-ui::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: #fff;
    transition: 0.2s ease;
}

.team-switch input:checked + .team-switch-ui {
    background: rgba(48, 177, 41, 0.22);
    border-color: rgba(48, 177, 41, 0.32);
}

.team-switch input:checked + .team-switch-ui::after {
    transform: translateX(28px);
    background: var(--team-orange);
}

.team-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.team-admin-submit,
.team-admin-ghost,
.team-mini-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    transition: 0.16s ease;
}

.team-admin-submit {
    background: linear-gradient(135deg, var(--team-orange), var(--team-orange-dark));
    border-color: rgba(48, 177, 41, 0.3);
    color: #fff;
}

.team-admin-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.team-admin-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.team-admin-empty {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.66);
}

.team-admin-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-admin-item-main {
    min-width: 0;
}

.team-admin-item-title {
    font-weight: 900;
    color: #fff;
    line-height: 1.35;
}

.team-admin-item-meta {
    margin-top: 4px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
}

.team-admin-item-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.16);
    color: rgba(48, 177, 41, 0.95);
    font-size: 0.72rem;
    font-weight: 900;
}

.team-admin-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.team-mini-form {
    margin: 0;
}

.team-mini-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.team-mini-btn:hover,
.team-admin-submit:hover,
.team-admin-ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.team-mini-delete {
    background: rgba(220, 78, 78, 0.14);
    border-color: rgba(220, 78, 78, 0.26);
}

/* REVEAL */

.reveal-item {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    position: relative;
    margin-top: 72px;
    padding: 0 0 28px;
    background: none;
    color: #fff;
    font-family: var(--main-font);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            42% 20% at 50% 0%,
            rgba(48, 177, 41, 0.05),
            rgba(48, 177, 41, 0) 75%
        );
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 34px 22px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        rgba(12, 12, 16, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.footer-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            60% 80% at 50% 0%,
            rgba(48, 177, 41, 0.035),
            rgba(48, 177, 41, 0) 62%
        );
}

.footer-top,
.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 28px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brandBlock {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #fff;
    width: fit-content;
}

.footer-logo {
    width: 78px;
    height: 78px;
    object-fit: contain;
    flex-shrink: 0;
    filter: none;
}

.footer-brandText {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.05;
}

.footer-brand-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(48, 177, 41, 0.1);
    border: 1px solid rgba(48, 177, 41, 0.18);
    color: rgba(48, 177, 41, 0.96);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-brand-main {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

.footer-brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
}

.footer-lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    font-size: 0.96rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 28px 0 24px;
}

.footer-card {
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-card--about {
    background:
        linear-gradient(180deg, rgba(48, 177, 41, 0.07), rgba(48, 177, 41, 0.03)),
        rgba(255, 255, 255, 0.03);
    border-color: rgba(48, 177, 41, 0.14);
}

.footer-card-label {
    display: block;
    margin-bottom: 12px;
    color: rgba(48, 177, 41, 0.95);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-card-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    font-size: 0.92rem;
}

.footer-mail {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    word-break: break-word;
}

.footer-mail:hover {
    color: rgba(48, 177, 41, 0.96);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.16s ease, transform 0.16s ease;
}

.footer-link:hover {
    color: rgba(48, 177, 41, 0.96);
    transform: translateX(2px);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.footer-social:hover {
    transform: translateY(-1px);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(48, 177, 41, 0.18);
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-social span {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom-copy,
.footer-bottom-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    line-height: 1.6;
}

.team-admin-field select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.team-admin-field select option {
    background: #111318;
    color: #ffffff;
}

.team-admin-field select option:checked {
    background: #2f6fdb;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 56px;
        padding-bottom: 18px;
    }

    .footer-inner {
        width: min(100% - 24px, 1240px);
        padding: 22px 16px 18px;
        border-radius: 22px;
    }

    .footer-brandBlock {
        align-items: flex-start;
        gap: 14px;
    }

    .footer-logo {
        width: 62px;
        height: 62px;
    }

    .footer-brand-main {
        font-size: 1.05rem;
    }

    .footer-brand-sub {
        font-size: 0.62rem;
    }

    .footer-lead {
        font-size: 0.9rem;
    }

    .footer-card {
        padding: 16px;
        border-radius: 16px;
    }

    .footer-social {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* RESPONSIVE */

@media (max-width: 1180px) {
    .team-hero__grid {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .team-admin-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-info {
        grid-template-columns: 1fr;
    }

    .team-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .team-body {
        padding-top: 88px;
    }

    .team-shell {
        width: min(100% - 24px, 1240px);
    }

    .team-hero {
        min-height: auto;
        padding-top: 24px;
    }

    .team-hero__overlay {
        inset: 24px 12px 0;
        border-radius: 24px;
    }

    .team-hero__grid {
        padding-top: 44px;
    }

    .team-hero__title {
        line-height: 1.02;
    }

    .team-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .team-btn {
        width: 100%;
    }

    .team-section-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-admin-row {
        grid-template-columns: 1fr;
    }

    .team-admin-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-admin-item-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .team-overview,
    .team-section-frame,
    .team-sidecard,
    .team-card {
        border-radius: 18px;
    }

    .team-card {
        padding: 18px;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-admin-submit,
    .team-admin-ghost,
    .team-mini-btn {
        width: 100%;
    }

    .team-admin-actions,
    .team-admin-item-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .team-admin-dialog {
        width: min(100% - 16px, 980px);
        margin: 72px auto 16px;
        max-height: calc(100vh - 88px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-item {
        opacity: 1;
        transform: none;
    }
}