/* =====================================================
   NEXO V — TEAM PAGE COMPLETE CSS
   Datei: team-tree.css
===================================================== */

/* =========================
   TEAM HERO
========================= */

.hero-team {
    position: relative;
    overflow: hidden;
}

.hero-team::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    background: linear-gradient(to top, #050507, transparent);
    pointer-events: none;
}

/* =========================
   COMMAND STRUCTURE
========================= */

.team-command {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(0,212,255,0.09), transparent 35%),
        radial-gradient(circle at bottom right, rgba(122,60,255,0.08), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.team-command-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 22px;
}

.command-card {
    position: relative;
    min-height: 240px;
    padding: 30px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015));
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transition: 0.35s ease;
}

.command-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(120deg, transparent, rgba(0,212,255,0.18), transparent);
    opacity: 0;
    transition: 0.35s ease;
}

.command-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,212,255,0.35);
}

.command-card:hover::before {
    opacity: 1;
}

.command-big {
    grid-row: span 2;
    min-height: 502px;
}

.command-kicker {
    position: relative;
    z-index: 1;
    font-family: 'Share Tech Mono', monospace;
    color: var(--b);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.command-card h2,
.team-philosophy h2,
.roles-head h2 {
    position: relative;
    z-index: 1;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--w);
}

.command-card h2 span,
.team-philosophy h2 span,
.roles-head h2 span {
    color: var(--b);
    text-shadow: 0 0 22px rgba(0,212,255,0.45);
}

.command-card h3 {
    position: relative;
    z-index: 1;
    font-family: 'Oswald', sans-serif;
    color: var(--w);
    font-size: 28px;
    text-transform: uppercase;
}

.command-card p,
.philosophy-left p,
.roles-head p,
.role-card p {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    max-width: 520px;
    color: var(--g);
    font-size: 15px;
    line-height: 1.9;
}

.command-num {
    position: relative;
    z-index: 1;
    font-family: 'Share Tech Mono', monospace;
    color: rgba(255,255,255,0.25);
    font-size: 13px;
    margin-bottom: 70px;
}

/* =========================
   PHILOSOPHY
========================= */

.team-philosophy {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 50%, rgba(122,60,255,0.14), transparent 35%),
        linear-gradient(180deg, transparent, rgba(255,255,255,0.025));
}

.team-philosophy-box {
    position: relative;
    padding: 46px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        linear-gradient(135deg, rgba(10,12,24,0.9), rgba(5,5,7,0.78));
    backdrop-filter: blur(18px);
    box-shadow: 0 40px 120px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 46px;
    overflow: hidden;
}

.team-philosophy-box::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,212,255,0.16), transparent 65%);
    pointer-events: none;
}

.philosophy-left,
.philosophy-right {
    position: relative;
    z-index: 1;
}

.philosophy-quote {
    margin-top: 34px;
    padding: 22px 24px;
    border-left: 2px solid var(--b);
    border-radius: 16px;
    background: rgba(0,212,255,0.045);
    color: rgba(255,255,255,0.72);
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.8;
}

.philosophy-right {
    display: grid;
    gap: 14px;
    align-content: center;
}

.philosophy-item {
    padding: 22px;
    border-radius: 20px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    transition: 0.25s ease;
}

.philosophy-item:hover {
    transform: translateX(8px);
    border-color: rgba(0,212,255,0.35);
    background: rgba(0,212,255,0.055);
}

.philosophy-item strong {
    display: block;
    color: var(--w);
    font-family: 'Oswald', sans-serif;
    font-size: 23px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.philosophy-item span {
    display: block;
    color: var(--g);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================
   ROLES
========================= */

.team-roles {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(0,212,255,0.07), transparent 45%);
}

.roles-head {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: end;
    gap: 40px;
    margin-bottom: 42px;
}

.roles-head p {
    margin-top: 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.role-card {
    position: relative;
    min-height: 260px;
    padding: 28px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.012));
    box-shadow: 0 26px 70px rgba(0,0,0,0.32);
    transition: 0.35s ease;
}

.role-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,212,255,0.12), transparent 45%);
    opacity: 0;
    transition: 0.35s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,212,255,0.32);
}

.role-card:hover::before {
    opacity: 1;
}

.role-card span {
    position: relative;
    z-index: 1;
    display: block;
    color: var(--b);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    margin-bottom: 76px;
}

.role-card h3 {
    position: relative;
    z-index: 1;
    color: var(--w);
    font-family: 'Oswald', sans-serif;
    font-size: 27px;
    text-transform: uppercase;
}

.role-card p {
    margin-top: 16px;
}

/* =========================
   BRUTAL TEAM TREE
========================= */

.team-tree {
    position: relative;
    padding: 160px 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 0%, rgba(0,212,255,0.16), transparent 34%),
        radial-gradient(circle at 15% 55%, rgba(122,60,255,0.14), transparent 34%),
        radial-gradient(circle at 85% 70%, rgba(255,43,214,0.09), transparent 30%),
        linear-gradient(180deg, #050507, #080812);
}

.team-tree::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.team-tree::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    height: 28%;
    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0,212,255,0.06) 50%,
            transparent 100%
        );
    animation: treeScan 7s linear infinite;
    pointer-events: none;
}

@keyframes treeScan {
    0% {
        transform: translateY(-120%);
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        transform: translateY(420%);
        opacity: 0;
    }
}

.team-tree .section-eyebrow {
    text-align: center;
    color: #00d4ff;
    letter-spacing: 3px;
}

.team-tree .section-heading {
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.9;
    text-transform: uppercase;
    color: #fdfbff;
}

.team-tree .section-heading span {
    color: #00d4ff;
    text-shadow:
        0 0 14px rgba(0,212,255,0.7),
        0 0 42px rgba(0,212,255,0.35);
}

.team-tree .section-rule {
    margin: 28px auto 70px;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    box-shadow: 0 0 30px rgba(0,212,255,0.75);
}

.tree {
    position: relative;
    width: 100%;
    overflow-x: auto;
    padding: 40px 0 20px;
}

.tree::-webkit-scrollbar {
    height: 8px;
}

.tree::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04);
    border-radius: 999px;
}

.tree::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00d4ff, #7a3cff);
    border-radius: 999px;
}

.tree ul {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 58px;
    margin: 0;
    list-style: none;
}

.tree > ul {
    min-width: 1180px;
}

.tree li {
    position: relative;
    text-align: center;
    padding: 58px 18px 0;
}

.tree li::before,
.tree li::after {
    content: "";
    position: absolute;
    top: 0;
    width: 50%;
    height: 58px;
    border-top: 1px solid rgba(0,212,255,0.38);
}

.tree li::before {
    right: 50%;
    border-right: 1px solid rgba(0,212,255,0.38);
}

.tree li::after {
    left: 50%;
    border-left: 1px solid rgba(0,212,255,0.38);
}

.tree li:only-child::before,
.tree li:only-child::after {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: none;
}

.tree li:first-child::after {
    border-radius: 12px 0 0 0;
}

.tree li:last-child::before {
    border-radius: 0 12px 0 0;
}

.tree ul ul::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 58px;
    background: linear-gradient(to bottom, rgba(0,212,255,0.85), rgba(0,212,255,0.22));
    box-shadow: 0 0 16px rgba(0,212,255,0.55);
}

.tree-box {
    position: relative;
    min-width: 230px;
    max-width: 270px;
    min-height: 122px;
    padding: 20px 18px 18px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.09), rgba(255,255,255,0.018)),
        rgba(5,5,7,0.78);
    backdrop-filter: blur(18px);
    box-shadow:
        0 24px 70px rgba(0,0,0,0.52),
        inset 0 0 0 1px rgba(255,255,255,0.025);
    overflow: hidden;
    transition: 0.35s ease;
}

.tree-box::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 24px;
    background:
        conic-gradient(
            from 180deg,
            transparent,
            rgba(0,212,255,0.8),
            rgba(122,60,255,0.6),
            transparent,
            transparent
        );
    opacity: 0;
    filter: blur(8px);
    transition: 0.35s ease;
}

.tree-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 0%,
            transparent 35%,
            rgba(255,255,255,0.12) 50%,
            transparent 65%,
            transparent 100%
        );
    transform: translateX(-130%);
    transition: 0.6s ease;
}

.tree-box:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(0,212,255,0.48);
    box-shadow:
        0 35px 90px rgba(0,0,0,0.65),
        0 0 42px rgba(0,212,255,0.18);
}

.tree-box:hover::before {
    opacity: 1;
}

.tree-box:hover::after {
    transform: translateX(130%);
}

.tree-title {
    position: relative;
    z-index: 2;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fdfbff;
    letter-spacing: 0.8px;
}

.tree-members {
    position: relative;
    z-index: 2;
    margin-top: 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.tree-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 5px 8px;
    border-radius: 999px;
    color: #00ff96;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    border: 1px solid rgba(0,255,150,0.28);
    background: rgba(0,255,150,0.08);
    box-shadow: 0 0 18px rgba(0,255,150,0.14);
}

.tree-box.owner {
    border-color: rgba(255,43,214,0.42);
    box-shadow:
        0 26px 90px rgba(255,43,214,0.12),
        0 24px 70px rgba(0,0,0,0.52);
}

.tree-box.owner .tree-title {
    color: #ff2bd6;
    text-shadow: 0 0 18px rgba(255,43,214,0.65);
}

.tree-box.lead {
    border-color: rgba(122,60,255,0.42);
}

.tree-box.lead .tree-title {
    color: #9b7cff;
    text-shadow: 0 0 18px rgba(122,60,255,0.65);
}

.tree-box.cm {
    border-color: rgba(0,212,255,0.42);
}

.tree-box.cm .tree-title {
    color: #00d4ff;
    text-shadow: 0 0 18px rgba(0,212,255,0.65);
}

.tree-box.head {
    border-color: rgba(0,255,150,0.38);
}

.tree-box.head .tree-title {
    color: #00ff96;
    text-shadow: 0 0 18px rgba(0,255,150,0.5);
}

.tree-box.deputy {
    border-color: rgba(0,212,255,0.24);
}

/* =========================
   MEMBERS / AVATARS
========================= */

.member {
    position: relative;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.member-avatar-wrap {
    position: relative;
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0,212,255,0.9), rgba(122,60,255,0.8));
    box-shadow: 0 0 22px rgba(0,212,255,0.15);
}

.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #111;
    border: 2px solid #050507;
}

.member-avatar-wrap i {
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff96;
    border: 2px solid #050507;
    box-shadow: 0 0 14px rgba(0,255,150,0.8);
}

.member.empty {
    opacity: 0.35;
    cursor: default;
}

.member.empty .member-avatar-wrap {
    background: rgba(255,255,255,0.12);
    box-shadow: none;
}

.member.empty .member-avatar-wrap i {
    background: rgba(255,255,255,0.25);
    box-shadow: none;
}

.member-live:hover .member-avatar-wrap {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 28px rgba(0,212,255,0.35);
}

.tree-loading {
    opacity: 0.7;
}

.tree-loading .tree-title::after {
    content: " // syncing";
    color: rgba(0,212,255,0.6);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
}

.tree-offline {
    border-color: rgba(255,45,85,0.25);
}

/* =========================
   TEAM UPDATES
========================= */

.team-page-new {
    position: relative;
    padding: 130px 0;
    overflow: hidden;
    background:
        radial-gradient(circle at bottom right, rgba(0,212,255,0.08), transparent 40%);
}

.team-inner-new {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.team-head {
    margin-bottom: 36px;
}

.team-head-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

.team-head-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    color: var(--w);
    text-transform: uppercase;
}

.team-head-title span {
    color: var(--b);
    text-shadow: 0 0 22px rgba(0,212,255,0.45);
}

.team-head-sub {
    color: rgba(255,255,255,0.42);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

.team-head-rule {
    width: 100%;
    height: 1px;
    margin-top: 28px;
    background: linear-gradient(90deg, var(--b), transparent);
}

.team-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-btn {
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.65);
    padding: 11px 15px;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--w);
    border-color: rgba(0,212,255,0.45);
    background: rgba(0,212,255,0.08);
    box-shadow: 0 0 24px rgba(0,212,255,0.12);
}

.team-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.update-card.ultra {
    position: relative;
    min-height: 250px;
    padding: 26px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.012));
    box-shadow: 0 24px 70px rgba(0,0,0,0.32);
    animation: updateIn 0.55s ease both;
}

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

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

.update-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at top right, rgba(0,212,255,0.18), transparent 45%);
    transition: 0.35s ease;
}

.update-card.ultra:hover {
    transform: translateY(-8px);
    border-color: rgba(0,212,255,0.32);
}

.update-card.ultra:hover .update-card-bg {
    opacity: 1;
}

.update-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: #00d4ff;
    border: 1px solid rgba(0,212,255,0.28);
    background: rgba(0,212,255,0.08);
}

.update-tag.hire {
    color: #00ff96;
    border-color: rgba(0,255,150,0.28);
    background: rgba(0,255,150,0.08);
}

.update-tag.fire {
    color: #ff2d55;
    border-color: rgba(255,45,85,0.32);
    background: rgba(255,45,85,0.08);
}

.update-tag.promo {
    color: #ffcc00;
    border-color: rgba(255,204,0,0.3);
    background: rgba(255,204,0,0.08);
}

.update-title {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    line-height: 1;
    color: var(--w);
    text-transform: uppercase;
}

.update-text {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    color: var(--g);
    line-height: 1.8;
    font-size: 14px;
}

.update-meta {
    position: absolute;
    z-index: 1;
    left: 26px;
    right: 26px;
    bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.update-meta span {
    font-family: 'Share Tech Mono', monospace;
    color: rgba(255,255,255,0.42);
    font-size: 12px;
}

.update-btn {
    cursor: pointer;
    border: 1px solid rgba(0,212,255,0.32);
    background: rgba(0,212,255,0.08);
    color: var(--w);
    padding: 9px 13px;
    border-radius: 999px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    transition: 0.25s ease;
}

.update-btn:hover {
    background: rgba(0,212,255,0.16);
    box-shadow: 0 0 22px rgba(0,212,255,0.16);
}

.team-loading-state,
.team-empty-state {
    grid-column: 1 / -1;
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;
    background: rgba(255,255,255,0.035);
}

.loading-core {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    border-top-color: #00d4ff;
    box-shadow: 0 0 30px rgba(0,212,255,0.22);
    animation: spinCore 1s linear infinite;
}

@keyframes spinCore {
    to {
        transform: rotate(360deg);
    }
}

.team-empty-state div {
    color: var(--b);
    font-family: 'Share Tech Mono', monospace;
}

.team-empty-state p,
.team-loading-state span {
    margin-top: 12px;
    color: var(--g);
}

/* =========================
   MODAL
========================= */

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

.modal.active,
.modal.show {
    display: flex;
}

.modal-box {
    width: min(540px, 100%);
    border-radius: 28px;
    overflow: hidden;
}

.profile-card-ultra,
.update-modal-ultra {
    position: relative;
    padding: 44px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.1);
    background:
        radial-gradient(circle at top, rgba(0,212,255,0.13), transparent 45%),
        linear-gradient(135deg, rgba(10,12,24,0.98), rgba(5,5,7,0.96));
    box-shadow: 0 40px 120px rgba(0,0,0,0.75);
    text-align: center;
    overflow: hidden;
}

.profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: var(--w);
    cursor: pointer;
}

.profile-avatar {
    width: 116px;
    height: 116px;
    margin: 0 auto 22px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #00d4ff, #7a3cff, #ff2bd6);
    box-shadow: 0 0 42px rgba(0,212,255,0.2);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #050507;
    object-fit: cover;
}

.profile-kicker,
.update-modal-date {
    font-family: 'Share Tech Mono', monospace;
    color: var(--b);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.profile-card-ultra h2,
.update-modal-ultra h2 {
    margin-top: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--w);
}

.profile-card-ultra p,
.update-modal-ultra p {
    margin-top: 14px;
    color: var(--g);
    line-height: 1.8;
}

.profile-divider {
    width: 80px;
    height: 1px;
    margin: 28px auto;
    background: linear-gradient(90deg, transparent, var(--b), transparent);
}

.profile-roles {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-roles span {
    padding: 7px 10px;
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .roles-grid,
    .team-updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-command-grid {
        grid-template-columns: 1fr 1fr;
    }

    .command-big {
        grid-column: span 2;
        grid-row: auto;
        min-height: auto;
    }
}

@media (max-width: 850px) {
    .team-command-grid,
    .team-philosophy-box,
    .roles-head {
        grid-template-columns: 1fr;
    }

    .team-command,
    .team-philosophy,
    .team-roles,
    .team-tree,
    .team-page-new {
        padding: 90px 0;
    }

    .team-philosophy-box {
        padding: 34px;
    }

    .team-head-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .tree > ul {
        min-width: 1050px;
    }
}

@media (max-width: 560px) {
    .roles-grid,
    .team-updates-grid,
    .team-command-grid {
        grid-template-columns: 1fr;
    }

    .command-big {
        grid-column: auto;
    }

    .command-card,
    .role-card {
        min-height: auto;
        padding: 24px;
    }

    .command-num,
    .role-card span {
        margin-bottom: 54px;
    }

    .team-philosophy-box {
        padding: 26px;
        border-radius: 24px;
    }

    .profile-card-ultra,
    .update-modal-ultra {
        padding: 34px 22px;
    }
}

/* =====================================================
   NEXO V — RANK TREE LAYOUT
===================================================== */

.team-tree-rank .tree {
    display: none;
}

.rank-tree {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 40px 0 20px;
}

.rank-level {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 42px;
    margin: 0 auto;
}

.rank-line {
    position: relative;
    width: 2px;
    height: 54px;
    margin: 0 auto;
    background: linear-gradient(
        to bottom,
        rgba(0,212,255,0.9),
        rgba(122,60,255,0.45),
        rgba(0,212,255,0.15)
    );
    box-shadow:
        0 0 16px rgba(0,212,255,0.7),
        0 0 36px rgba(122,60,255,0.35);
}

.rank-line::before,
.rank-line::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: #00d4ff;
    box-shadow:
        0 0 14px rgba(0,212,255,0.95),
        0 0 32px rgba(0,212,255,0.5);
}

.rank-line::before {
    top: -7px;
}

.rank-line::after {
    bottom: -7px;
}

.rank-tree .tree-box {
    width: 260px;
    min-height: 132px;
}

.rank-tree .level-1 .tree-box {
    width: 320px;
    min-height: 150px;
}

.rank-tree .level-2 {
    max-width: 760px;
}

.rank-tree .level-5 {
    flex-wrap: wrap;
}

.tree-box.dev {
    border-color: rgba(0,212,255,0.42);
}

.tree-box.dev .tree-title {
    color: #00d4ff;
    text-shadow: 0 0 18px rgba(0,212,255,0.65);
}

.rank-tree .tree-box::before {
    opacity: 0.35;
}

.rank-tree .tree-box:hover::before {
    opacity: 1;
}

.rank-tree::before {
    content: "";
    position: absolute;
    inset: 20px 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0,212,255,0.22),
        rgba(122,60,255,0.18),
        transparent
    );
    z-index: -1;
}

@media (max-width: 800px) {
    .rank-level {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .rank-tree .tree-box,
    .rank-tree .level-1 .tree-box {
        width: min(100%, 320px);
    }

    .rank-line {
        height: 42px;
    }
}