/* Stage 4 — Main hub UX */

.ab-hub-command{
  padding:32px 20px 44px;
  border-bottom:1px solid #123653;
  background:
    radial-gradient(circle at 90% 0%,rgba(21,151,255,.09),transparent 26rem),
    linear-gradient(180deg,#05101c,#030a14);
}
.ab-hub-command__inner{
  max-width:1180px;
  margin:0 auto;
}
.ab-hub-command__head{
  display:grid;
  grid-template-columns:1fr minmax(260px,.72fr);
  gap:28px;
  align-items:end;
  margin-bottom:20px;
}
.ab-hub-command__head h2{
  margin:.2rem 0 0;
  color:#fff!important;
  font-size:clamp(1.9rem,4vw,3rem);
  line-height:1.04;
  letter-spacing:-.035em;
}
.ab-hub-command__head p{
  margin:0;
  color:#9eb3c8!important;
  line-height:1.65;
}
.ab-hub-command__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.ab-hub-command__card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:185px;
  padding:18px;
  border:1px solid #1c4668;
  border-radius:18px;
  background:linear-gradient(180deg,#0b1d31,#06121f);
  color:#dce9f7!important;
  text-decoration:none!important;
  box-shadow:0 14px 36px rgba(0,0,0,.2);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.ab-hub-command__card:hover{
  transform:translateY(-4px);
  border-color:#2d96d7;
  box-shadow:0 20px 55px rgba(0,105,210,.24);
}
.ab-hub-command__index{
  color:#4ecaff;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.1em;
}
.ab-hub-command__card strong{
  margin-top:12px;
  color:#fff!important;
  font-size:1.05rem;
  line-height:1.3;
}
.ab-hub-command__card small{
  margin-top:7px;
  color:#95acc1!important;
  line-height:1.5;
}
.ab-hub-command__arrow{
  margin-top:auto;
  padding-top:12px;
  color:#4ecaff;
}

/* Better hierarchy for hub modules */
.ab-stage4-hubs .ab-affiliate-path__grid>article,
.ab-stage4-hubs .ab-learning-module-card,
.ab-stage4-hubs .ab-tools-category-grid .ab-hub-entry__card{
  position:relative;
  overflow:hidden;
}
.ab-stage4-hubs .ab-affiliate-path__grid>article::before,
.ab-stage4-hubs .ab-learning-module-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,#1597ff,#00c2ff);
}
.ab-stage4-hubs .ab-affiliate-path__top strong{
  color:#fff!important;
}
.ab-stage4-hubs .ab-affiliate-path__footer{
  border-color:#173653!important;
}

/* Sticky local nav for long hub pages */
.ab-hub-mini-nav{
  position:sticky;
  top:74px;
  z-index:40;
  border-block:1px solid #173653;
  background:rgba(3,10,20,.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.ab-hub-mini-nav__inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:9px 20px;
  scrollbar-width:none;
}
.ab-hub-mini-nav__inner::-webkit-scrollbar{display:none}
.ab-hub-mini-nav a{
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid #1c4668;
  border-radius:999px;
  color:#9fc7e6!important;
  text-decoration:none;
  font-size:.78rem;
  font-weight:800;
}
.ab-hub-mini-nav a:hover,
.ab-hub-mini-nav a.is-active{
  color:#fff!important;
  border-color:#2e96d7;
  background:#0c2a46;
}

/* Creator platform cards */
.ab-stage4-platform-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.ab-stage4-platform-card{
  min-height:150px;
  padding:18px;
  border:1px solid #1b4668;
  border-radius:18px;
  background:linear-gradient(180deg,#0b1c2f,#06121f);
}
.ab-stage4-platform-card span{
  color:#4cc7ff;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.09em;
}
.ab-stage4-platform-card strong{
  display:block;
  margin-top:8px;
  color:#fff!important;
}
.ab-stage4-platform-card a{
  display:inline-block;
  margin-top:12px;
  color:#61ccff!important;
  font-weight:800;
  text-decoration:none;
}

@media(max-width:1000px){
  .ab-hub-command__grid,
  .ab-stage4-platform-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:780px){
  .ab-hub-command{
    padding-inline:14px;
  }
  .ab-hub-command__head{
    grid-template-columns:1fr;
  }
  .ab-hub-command__grid,
  .ab-stage4-platform-grid{
    grid-template-columns:1fr;
  }
  .ab-hub-mini-nav{
    top:64px;
  }
}
@media(prefers-reduced-motion:reduce){
  .ab-hub-command__card{
    transition:none;
  }
  .ab-hub-command__card:hover{
    transform:none;
  }
}
