/* TaskBirds homepage advertising section v326: compact title and two campaign cards. */
.tb-promote-section{
  position:relative;
  margin:0;
  padding:15px;
  border:2px solid rgba(105,78,255,.78);
  border-radius:18px;
  background:
    radial-gradient(circle at 88% 8%,rgba(56,189,248,.10),transparent 30%),
    radial-gradient(circle at 8% 94%,rgba(139,92,246,.12),transparent 34%),
    linear-gradient(180deg,rgba(8,19,47,.98),rgba(5,12,31,.99));
  box-shadow:0 0 24px rgba(89,72,255,.24),inset 0 1px 0 rgba(255,255,255,.05);
  overflow:hidden;
  box-sizing:border-box;
}
.tb-promote-section:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 0 44%,rgba(93,215,255,.03) 50%,transparent 56%);
}
.tb-promote-heading{
  position:relative;
  z-index:1;
  margin:0 0 11px;
  text-align:center;
}
.tb-promote-kicker{
  display:inline-flex;
  margin:0;
  padding:5px 12px;
  border:1px solid rgba(94,172,255,.45);
  border-radius:999px;
  background:rgba(22,54,111,.45);
  color:#74c9ff;
  font-size:11px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.6px;
}
.tb-promote-campaigns{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.tb-promote-card{
  min-width:0;
  display:grid;
  grid-template-columns:50px minmax(0,1fr);
  grid-template-rows:1fr auto;
  gap:9px 12px;
  padding:13px;
  border:1px solid rgba(88,127,255,.55);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(17,34,76,.9),rgba(9,18,46,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 22px rgba(0,0,0,.2);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
  box-sizing:border-box;
}
.tb-promote-card:hover{
  transform:translateY(-2px);
  border-color:rgba(146,91,255,.88);
  box-shadow:0 0 20px rgba(83,84,255,.18),0 12px 24px rgba(0,0,0,.23);
}
.tb-promote-icon{
  grid-row:1;
  width:48px;
  height:48px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(74,197,255,.5);
  background:linear-gradient(145deg,rgba(23,98,180,.9),rgba(52,52,181,.85));
  box-shadow:0 0 16px rgba(47,157,255,.22),inset 0 1px 0 rgba(255,255,255,.16);
}
.tb-promote-icon-video{
  background:linear-gradient(145deg,rgba(99,55,218,.94),rgba(37,93,205,.88));
  border-color:rgba(160,100,255,.58);
}
.tb-promote-icon svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:#fff;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tb-promote-card-body{min-width:0}
.tb-promote-card h3{
  margin:1px 0 5px;
  color:#fff;
  font-size:16px;
  line-height:1.18;
  font-weight:950;
}
.tb-promote-card p{
  margin:0;
  color:#c9d4f1;
  font-size:12px;
  line-height:1.45;
}
.tb-promote-card-btn{
  grid-column:1/-1;
  min-height:39px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border:1px solid rgba(111,112,255,.82);
  border-radius:10px;
  background:linear-gradient(90deg,#315fdd,#733ce7);
  box-shadow:0 7px 15px rgba(69,63,219,.22);
  color:#fff;
  text-decoration:none;
  text-align:center;
  font-size:12px;
  font-weight:950;
  letter-spacing:.2px;
  transition:filter .15s ease,transform .15s ease;
  box-sizing:border-box;
}
.tb-promote-card-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}

/* Keep the promotion block directly under the main content card. */
.tb-home-right{
  min-width:0;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.tb-home-right>.tb-content,
.tb-home-right>.tb-promote-section{
  width:100%;
  min-width:0;
  box-sizing:border-box;
}
.tb-home-right>.tb-promote-section{margin-top:0}

@media(max-width:700px){
  .tb-promote-section{
    padding:12px 10px;
    border-radius:15px;
  }
  .tb-promote-heading{margin-bottom:10px}
  .tb-promote-kicker{
    padding:5px 10px;
    font-size:10px;
    letter-spacing:.45px;
  }
  .tb-promote-campaigns{
    grid-template-columns:1fr;
    gap:10px;
  }
  .tb-promote-card{
    grid-template-columns:46px minmax(0,1fr);
    gap:8px 11px;
    padding:12px 11px;
    border-radius:13px;
  }
  .tb-promote-icon{
    width:44px;
    height:44px;
    border-radius:11px;
  }
  .tb-promote-icon svg{
    width:24px;
    height:24px;
  }
  .tb-promote-card h3{
    margin-bottom:4px;
    font-size:15px;
  }
  .tb-promote-card p{
    font-size:11.5px;
    line-height:1.42;
  }
  .tb-promote-card-btn{
    min-height:38px;
    font-size:11.5px;
  }
}

/* v322 mobile order: hero image and statistics first, then login/register.
   JavaScript moves the existing form into the slot below the statistics; desktop is unchanged. */
.tb-mobile-auth-slot{display:none}
@media(max-width:768px){
  .tb-home-right{gap:10px}
  .tb-mobile-auth-slot{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    width:100%;
    min-width:0;
    margin:0 0 12px;
  }
  .tb-mobile-auth-slot>.tb-login,
  .tb-mobile-auth-slot>.tb-register{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  .tb-mobile-auth-slot>.tb-login{order:1}
  .tb-mobile-auth-slot>.tb-register{order:2}
}
