/* NEXO-V TEAM TREE — isolated final override */
.tree-section .rank-tree,
.tree-section .rank-tree * { box-sizing: border-box; }

.tree-section .rank-tree .tree-box {
  position: relative !important; min-width: 280px !important; padding: 20px !important;
  border-radius: 26px !important; overflow: visible !important;
  background: linear-gradient(145deg,rgba(17,24,39,.96),rgba(5,9,17,.98)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
.tree-section .rank-tree .tree-title {
  display:flex !important; align-items:center !important; gap:9px !important; margin:0 0 15px !important;
  padding:0 2px 13px !important; border-bottom:1px solid rgba(255,255,255,.07) !important;
  font:700 11px 'Share Tech Mono',monospace !important; letter-spacing:.13em !important; color:#fff !important;
}
.tree-section .rank-tree .tree-members { display:grid !important; gap:11px !important; }
.tree-section .rank-tree .tree-member {
  position:relative !important; display:flex !important; align-items:center !important; gap:15px !important;
  min-height:92px !important; padding:14px !important; border-radius:22px !important; overflow:visible !important;
  background:linear-gradient(120deg,rgba(255,255,255,.075),rgba(255,255,255,.018)) !important;
  border:1px solid rgba(255,255,255,.08) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
  transform:none !important; transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease !important;
}
.tree-section .rank-tree .tree-member:hover { transform:translateY(-4px) !important; border-color:rgba(255,209,102,.30) !important; box-shadow:0 18px 38px rgba(0,0,0,.35) !important; }

/* hard circular avatar reset */
.tree-section .rank-tree .tree-member .tree-avatar-shell {
  position:relative !important; display:block !important; width:68px !important; height:68px !important;
  min-width:68px !important; min-height:68px !important; max-width:68px !important; max-height:68px !important;
  flex:0 0 68px !important; border-radius:50% !important; overflow:visible !important;
}
.tree-section .rank-tree .tree-member .tree-avatar-shell img {
  position:absolute !important; inset:5px !important; margin:0 !important; padding:0 !important;
  width:58px !important; height:58px !important; min-width:58px !important; min-height:58px !important;
  max-width:58px !important; max-height:58px !important; aspect-ratio:1/1 !important;
  display:block !important; border-radius:50% !important; -webkit-border-radius:50% !important;
  clip-path:circle(50% at 50% 50%) !important; -webkit-clip-path:circle(50% at 50% 50%) !important;
  object-fit:cover !important; object-position:center !important; overflow:hidden !important;
  border:0 !important; outline:3px solid #ffd166 !important; outline-offset:2px !important;
  box-shadow:0 0 26px rgba(255,209,102,.24) !important; transform:none !important;
}
.tree-section .rank-tree .tree-member:hover .tree-avatar-shell img { transform:scale(1.06) !important; }

.tree-section .rank-tree .member-info { min-width:0 !important; display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:3px !important; }
.tree-section .rank-tree .member-info strong { color:#fff !important; font:700 17px 'Oswald',sans-serif !important; letter-spacing:.045em !important; text-transform:none !important; }
.tree-section .rank-tree .member-info small { display:inline-flex !important; padding:4px 8px !important; border-radius:999px !important; background:rgba(255,209,102,.08) !important; border:1px solid rgba(255,209,102,.15) !important; color:#ffe29a !important; font:700 9px 'Share Tech Mono',monospace !important; letter-spacing:.10em !important; text-transform:uppercase !important; }
.tree-section .rank-tree .tree-username { color:rgba(255,255,255,.48) !important; font:10px 'Share Tech Mono',monospace !important; }

/* OWNER — Dominik */
.tree-section .rank-tree .tree-box.owner { border-color:rgba(255,209,102,.32) !important; background:radial-gradient(circle at 20% 0,rgba(255,209,102,.12),transparent 45%),linear-gradient(145deg,rgba(24,20,13,.96),rgba(7,9,14,.98)) !important; }
.tree-section .rank-tree .tree-box.owner .owner-profile-card { min-height:128px !important; padding:18px !important; border:1px solid rgba(255,209,102,.25) !important; background:linear-gradient(120deg,rgba(255,209,102,.13),rgba(255,255,255,.025),rgba(255,138,0,.06)) !important; }
.tree-section .rank-tree .tree-box.owner .owner-profile-card .tree-avatar-shell { width:86px !important; height:86px !important; min-width:86px !important; max-width:86px !important; flex-basis:86px !important; }
.tree-section .rank-tree .tree-box.owner .owner-profile-card .tree-avatar-shell img { inset:6px !important; width:74px !important; height:74px !important; min-width:74px !important; min-height:74px !important; max-width:74px !important; max-height:74px !important; outline:3px solid #ffd166 !important; box-shadow:0 0 34px rgba(255,209,102,.34) !important; }
.tree-section .rank-tree .tree-box.owner .member-info strong { font-size:21px !important; color:#fff7df !important; }
.tree-section .rank-tree .owner-badge { display:inline-flex !important; padding:4px 9px !important; border-radius:999px !important; color:#ffe29a !important; border:1px solid rgba(255,209,102,.30) !important; background:rgba(255,209,102,.10) !important; font:800 8px 'Share Tech Mono',monospace !important; letter-spacing:.16em !important; }
.tree-section .rank-tree .owner-crown { position:absolute !important; z-index:20 !important; top:-13px !important; left:50% !important; transform:translateX(-50%) !important; color:#ffd166 !important; font-size:24px !important; filter:drop-shadow(0 0 8px rgba(255,209,102,.65)) !important; }

/* role rings */
.tree-section .rank-tree .tree-box.bot .tree-avatar-shell img { outline-color:#00f0ff !important; box-shadow:0 0 26px rgba(0,240,255,.22) !important; }
.tree-section .rank-tree .tree-box.lead .tree-avatar-shell img { outline-color:#ffd166 !important; }
.tree-section .rank-tree .tree-box.deputy .tree-avatar-shell img { outline-color:#a574ff !important; box-shadow:0 0 26px rgba(165,116,255,.22) !important; }
.tree-section .rank-tree .tree-box.cm .tree-avatar-shell img { outline-color:#35f58a !important; box-shadow:0 0 26px rgba(53,245,138,.18) !important; }
.tree-section .rank-tree .tree-box.dev .tree-avatar-shell img { outline-color:#00d4ff !important; box-shadow:0 0 26px rgba(0,212,255,.20) !important; }
.tree-section .rank-tree .tree-empty { padding:17px !important; border-radius:16px !important; border:1px dashed rgba(255,255,255,.12) !important; color:rgba(255,255,255,.35) !important; background:rgba(255,255,255,.025) !important; font:10px 'Share Tech Mono',monospace !important; }

@media(max-width:760px){
 .tree-section .rank-tree .rank-level{flex-direction:column !important;align-items:stretch !important}
 .tree-section .rank-tree .tree-box{width:100% !important;max-width:none !important;min-width:0 !important}
}
