/* ---------- Vertical Team Card (refined) ---------- */
.cardV{
  position: relative;
  border-radius: 20px;
  background:#111216;
  border:1px solid #252633;
  box-shadow:0 8px 28px rgba(0,0,0,.35);
  overflow:visible;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.cardV:hover{ transform: translateY(-2px); border-color:#FFDF00; background:#14161c; }

/* Banner */
.cardV__banner {
  position: absolute;
  inset: 0;                 /* ✅ was -1px */
  border-radius: inherit;      /* ✅ makes the banner respect the card rounding */
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.cardV__edge{
  position:absolute; inset:0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.35) 65%, rgba(0,0,0,.55));
  pointer-events:none;
  border-radius: inherit;
}
.cardV__tag{
  position:absolute; top:12px; left:12px;
  padding:6px 10px; border-radius:10px;
  font-weight:800; font-size:.8rem; letter-spacing:.3px;
  color:#121214; background:linear-gradient(180deg,#FFDF00,#f0c000);
  box-shadow:0 6px 14px rgba(255,215,64,.25);
}

/* Overlap logo */
.cardV__logoWrap{ position:relative; width:76px; height:76px; margin:-38px 0 0 16px; }
.cardV__logo{
  width:76px; height:76px; border-radius:14px; object-fit:cover;
  border:2px solid #2a2b3a; background:#0f1015; display:block;
}
.cardV__logo--fallback{ display:grid; place-items:center; color:#FFDF00; font-size:26px; }
.cardV__ring{
  position:absolute; inset:-4px; border-radius:16px; border:2px solid transparent;
  background: conic-gradient(#FFDF00, #fd8700, #ffd86c, #FFDF00) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.45; transition:opacity .15s ease;
}
.cardV:hover .cardV__ring{ opacity:.8; }

/* Body */
.cardV__body{ padding:12px 16px 16px; }
.cardV__title{
  color:#f3f4f7; font-weight:900; letter-spacing:.2px; margin:8px 0 2px;
}
.cardV__meta{
  margin:0 0 14px; color:#a9adba; font-size:.92rem;
}
.cardV .sep{ opacity:.5; margin:0 .6rem; }

/* Member stack */
/* Member stack */
.cardV__stack{ 
  display:flex; 
  align-items:center; 
  min-height:32px; 
  margin-bottom:14px; 
}

/* ✅ stacking goes on the wrapper now */
.cardV__stack .cardV__avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:-6px;
}

.cardV__stack .cardV__avatar:first-child{
  margin-left:0;
}

/* ✅ image keeps only size + styling */
.cardV__stack .cardV__avatar img{
  width:30px;
  height:30px;
  border-radius: 50%;
  object-fit:cover;
  border:2px solid #12131a;
  box-shadow:0 2px 10px rgba(0,0,0,.35);
}


.cardV__more{
  margin-left:8px; padding:2px 8px; border:1px dashed #3a3a48;
  border-radius:999px; font-size:.75rem; color:#c8c8d2;
}

/* Footer */
.cardV__footer{ border-top:1px solid #1d1f28; padding-top:12px; }

.view-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 34px;
  height: 31px;
}
.view-btn-icon i {
  font-size: 1rem;
  line-height: 1;
}

.follow-btn {
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.follow-btn i {
  font-size: 1rem;
  line-height: 1;
}
.follow-btn:hover {
  background-color: #fff;
  color: #111;
  border-color: #fff;
}

/* Chips */
.chip{
  font-size:.75rem; padding:4px 10px; border-radius:999px;
  border:1px solid #2b2b39; background:#1b1b24;
}
.chip--green{ color:#8fe68f; }
.chip--blue { color:#6ec9ff; }

/* Container wrapper */
.teamV.cardV{ border-radius:20px; }

/* =========================
   TEAM LIST PAGE UPGRADE
   ========================= */

.teamlist{ position:relative; }

/* Hero */
.teamlist-hero{
  position:relative;
  border-radius:18px;
  padding:18px 18px 14px;
  background:#111216;
  border:1px solid #252633;
  box-shadow:0 8px 28px rgba(0,0,0,.35);
  overflow:hidden;
}

.teamlist-hero__bg{
  position:absolute;
  inset:-2px;
  /* background:
    radial-gradient(700px 300px at 15% 0%, rgba(255,223,0,.18), transparent 60%),
    radial-gradient(700px 300px at 85% 0%, rgba(110,201,255,.12), transparent 55%),
    radial-gradient(600px 260px at 50% 120%, rgba(253,135,0,.10), transparent 60%); */
  /* filter: blur(.2px); */
  pointer-events:none;
}
.teamlist-kicker{
  color:#c9cbd7;
  font-size:.85rem;
  opacity:.95;
}
.teamlist-title{
  /* font-weight: 950; */
  /* letter-spacing:.3px; */
  color:#f4f5f8;
}
.teamlist-sub{
  color:#aeb2c1;
  font-size:.92rem;
  max-width: 70ch;
}
.teamlist-cta{
  /* border-radius: 16px; */
  box-shadow: 0 10px 28px rgba(255,223,0,.08);
}

.teamlist-controls{
  position:relative;
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  border:1px solid #242536;
  background: rgba(15,16,21,.55);
  backdrop-filter: blur(6px);
}
.teamlist-search{
  position:relative;
}
.teamlist-search i{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  color:#9aa0b2;
  pointer-events:none;
}
.teamlist-search__input{
  padding-left:30px !important;
  border-radius:14px;
  border:1px solid #2b2c3c;
  background:#0f1015;
  color:#e9eaf0;
}
.teamlist-search__input:focus{
  border-color:#FFDF00;
  box-shadow:0 0 0 .15rem rgba(255,223,0,.14);
}
.teamlist-select{
  border-radius:14px;
  border:1px solid #2b2c3c;
  background:#0f1015;
  color:#e9eaf0;
}
.teamlist-btn{
  border-radius:14px;
}

/* Pagination polish */
.teamlist-pagination .page-link{
  background:#0f1015;
  border-color:#2b2c3c;
  color:#e7e8ef;
}
.teamlist-pagination .page-item.active .page-link{
  background:#FFDF00;
  border-color:#FFDF00;
  color:#121214;
  font-weight:900;
}

/* Empty */
.teamlist-empty{
  border:1px dashed #303245;
  border-radius:18px;
}

/* =========================
   TEAM CARD UPGRADE LAYER
   ========================= */

.teamCard{ isolation:isolate; }

.teamCard__bannerRatio {
  overflow: hidden;
  background: #111216;

  /* ✅ critical: give the parent a radius so .cardV__banner can inherit it */
  border-radius: 20px 20px 0 0;
}

.teamCard__banner{
  /* border-bottom: 1px solid rgba(255,255,255,.04); */
  transition: transform .22s ease;
}
.teamCard:hover .teamCard__banner{
  transform: scale(1.01);
}

.teamCard__tag{
  text-transform: uppercase;
}

.teamCard__quick{
  position:absolute;
  top:10px;
  right:10px;
  display:flex;
  gap:8px;
  opacity:0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.teamCard__quickItem{
  width:32px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(15,16,21,.55);
  color:#f0f1f6;
}
.teamCard:hover .teamCard__quick{
  opacity:1;
  transform: translateY(0);
}
@media (max-width: 768px){
  .teamCard__quick{ opacity:1; transform:none; }
}

.teamCard__bannerText{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:10px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
}
.teamCard__bannerTitle{
  color:#f6f7fb;
  font-weight:900;
  letter-spacing:.25px;
  text-shadow: 0 10px 24px rgba(0,0,0,.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teamCard__logoWrap{ z-index: 2; }
.teamCard__body{ padding-top: 6px; }

.teamCard__titleLink:hover .teamCard__title{
  color:#FFDF00;
}

.teamCard__pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
  margin-bottom:12px;
}
.teamCard__pill{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#0f1015;
  border:1px solid #2b2c3c;
  color:#c8cbda;
  font-size:.82rem;
}

.teamCard__stack{ margin-bottom: 10px; }
.teamCard__more{
  border-style: solid;
  border-color:#2b2c3c;
  background:#0f1015;
}

.teamCard__footer{ padding-top: 10px; }
/* .teamCard__btn{ border-radius: 12px; } */
.teamCard__hint{
  color:#9aa0b2;
  font-size:.78rem;
  opacity:.9;
}
